Skip to content

Feat/service provider role - #1422

Merged
alexanmtz merged 4 commits into
masterfrom
feat/service-provider-role
Mar 5, 2026
Merged

Feat/service provider role#1422
alexanmtz merged 4 commits into
masterfrom
feat/service-provider-role

Conversation

@alexanmtz

Copy link
Copy Markdown
Member

This pull request introduces support for a new "provider" user type (service provider) throughout the application, updates the UI to reflect this new role, and enhances the database seeding and migration tooling. The changes ensure that users with the "provider" type have access to relevant dashboard cards and profile menu items, and that the new type is properly seeded in the database. Additionally, several improvements are made to developer tooling for managing seeders and migrations.

Provider Role Support

  • Added a new "provider" user type to the user type hook (useUserTypes) and ensured it is set based on the user's types.
  • Updated the dashboard and profile sidebar menu logic to display payment-related cards and menu items for both "contributor" and "provider" users. [1] [2] [3] [4] [5] [6] [7]
  • Added the "provider" role and its icon to the roles selection UI, including updating the image import paths and role-image mapping. [1] [2]

Seeder and Migration Tooling

  • Added a new seeder for the "provider" type, ensuring it is present in the Types table.
  • Enhanced the migration/seeder tooling with new npm scripts for rolling back and reverting specific seeders, and fixed the migration status logic. [1] [2] [3] [4]

UI/UX Improvements

  • Adjusted the SelectChoices grid to display four items per row on medium screens and improved grid alignment and background color for better visual consistency. [1] [2] [3]

@alexanmtz
alexanmtz merged commit 9dc5f72 into master Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant