vendor – mero.live

Important: Do not use or replace my existing code. We are working directly with my current codebase.

Only make the minimum changes required for what I describe below. Do not rewrite, refactor, reorganize, or modify unrelated code.

User Types

We currently have these user groups:

  1. Normal User — already exists and should continue working exactly as it does now.
  2. Admin — already implemented. Do not change anything related to Admin.
  3. Vendor — this is a new user group that we need to add.

Vendor — For Now

For now, the only requirement is to add the Vendor user group.

  • Admin will manually assign a normal user as a Vendor from the Admin → Users tab.
  • Add a new Vendor button next to the existing Ban action.
  • The Vendor button should initially be gray, similar to the current “dead/inactive” style.
  • When the admin taps the Vendor button, that user should be assigned the Vendor role.
  • After the user becomes a Vendor, the button should change to green to clearly indicate that the user is currently a Vendor.
  • The admin should be able to tap the button again to remove the Vendor status if needed.
  • Store the Vendor status using the existing user/role structure where possible. Do not create an unnecessary new system if the current code already has a suitable user-type/role structure.

Very Important

Do only what I requested above.

Do not implement any Vendor-specific features, permissions, pages, dashboards, restrictions, or behavior yet.

We will define what Vendors can and cannot do in the next chat.

For this step, the task is simply:

Add the new Vendor user group and allow Admin to manually assign/unassign it from the existing Users tab.

Return only the code changes that are necessary for my existing codebase. Do not give me a completely rewritten version of the project.