Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Admin-Pana/llms.txt

Use this file to discover all available pages before exploring further.

The Users page gives administrators a centralized view of every registered account on the Panahashi platform. From here you can browse the full user list, search for specific accounts, and control what level of access each user has by assigning them a role. Changes take effect immediately via the API with no page reload required. When you open the Users page, the admin panel fetches all registered users from GET /api/v1/users and displays them in a table. Each row shows the user’s display name, email address, UID, and their current role as a color-coded badge. To narrow down the list, type into the search field at the top of the page. Filtering happens client-side across three fields simultaneously:
  • Display name — matches any part of the user’s display name
  • Email — matches any part of the email address
  • UID — matches any part of the Firebase UID
Clearing the search field restores the full list.

Reload button

The reload button re-fetches the user list from GET /api/v1/users and refreshes the table. Use it if you expect a new user to have registered since the page loaded, or after making changes in another browser session.

Role system

Every user has exactly one role that controls what they can access across the platform.
RoleBadge colorDescription
CUSTOMERZinc (gray)Standard account. Can browse bakeries and place orders. No admin access.
BAKERAmber (yellow)Operates a bakery. Can be assigned as a bakery owner when creating a new bakery listing.
ADMINPurpleFull access to the Panahashi admin panel, including users, bakeries, and orders.
Changing a user’s role to BAKER makes that account available in the owner dropdown when creating a new bakery. If the user you want to assign as an owner is not listed, check that their role has been set to BAKER first. See Bakeries for more details.
Assigning the ADMIN role grants the user complete access to the admin panel, including the ability to manage other users, bakeries, and orders. Only assign this role to trusted team members.

How to change a user’s role

1

Find the user

Use the search field to locate the user by display name, email, or UID. The list filters in real time as you type.
2

Click the target role button

Each user row has three inline role buttons — CUSTOMER, BAKER, and ADMIN. The user’s current role button is highlighted and disabled. Click one of the other two buttons to assign that role.
3

Change is applied

The admin panel sends PATCH /api/v1/users/:uid/role with the body { "role": "CUSTOMER" | "BAKER" | "ADMIN" }. The role badge in the row updates immediately and a confirmation message appears above the list. No page reload is needed.

Build docs developers (and LLMs) love