Skip to content

Other Type addition#23

Open
TrickkyRicky wants to merge 2 commits intomainfrom
feat-additional-user-type
Open

Other Type addition#23
TrickkyRicky wants to merge 2 commits intomainfrom
feat-additional-user-type

Conversation

@TrickkyRicky
Copy link
Contributor

Summary

Introduces a new OTHER user role for users who need platform access but should not be able to post or claim food. These users can participate in discussions and view announcements.

Behavior

  • Every new sign-up is automatically assigned the OTHER role
  • OTHER users land on a home dashboard with links to Discussions and Announcements
  • A "Complete Profile" prompt lets them upgrade to Supplier or Nonprofit at any time via /onboarding

Changes

Database

  • Added OTHER to the UserRole enum (prisma/schema.prisma)
  • Migration: 20260301045459_add_other_user_role

Routing (src/app/page.tsx)

  • OTHER users see a landing dashboard instead of being redirected to /onboarding

Onboarding (src/app/onboarding/page.tsx)

  • OTHER users can now access /onboarding to upgrade their account type
  • Refreshed UI replaced the dropdown with card buttons

Navigation

  • src/components/layout/header.tsx "Complete Profile" nav item shown for OTHER users
  • src/components/layout/user-menu.tsx "Complete Profile" avatar menu item shown for OTHER users

@TrickkyRicky TrickkyRicky requested a review from a team as a code owner March 1, 2026 06:00
@TrickkyRicky TrickkyRicky linked an issue Mar 1, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add additional user type(s)

1 participant