Suriya ecbae9d8fc Add Super Admin login routing and wire tenant onboarding to auto-create a location
super_admin is now a real LoginRole, derived from the server's
issuperadmin flag (not a client-guessable roleid) — routes exclusively
to a new minimal SuperAdminPage, never the merchant console.

That page reuses the existing tenant/store/rider onboarding wizard
(AdminConsole) rather than duplicating it — its Tenant tab was already
calling the right composite endpoint but had nowhere to send location
data, and was never actually reachable from anywhere in the app. Now
it collects a primary outlet name + business category and sends a
nested tenantlocations object, so one submit provisions tenant +
active location + admin user instead of leaving the tenant
locationless. createTenantUser also moves off the mob API base onto
the web one, matching where this is actually called from.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 20:46:07 +05:30
2026-07-04 17:46:30 +05:30
2026-07-09 15:49:45 +05:30
2026-07-09 15:49:45 +05:30
2026-06-12 14:45:06 +05:30
2026-07-09 15:49:45 +05:30
2026-07-09 15:49:45 +05:30
2026-07-04 17:46:30 +05:30
2026-07-04 17:46:30 +05:30
2026-06-15 19:45:17 +05:30
2026-07-16 17:05:06 +05:30
2026-07-16 17:05:06 +05:30
2026-07-16 17:05:06 +05:30
2026-06-15 19:17:13 +05:30
2026-07-16 17:05:06 +05:30
2026-06-15 19:17:13 +05:30
2026-07-09 15:49:45 +05:30

GHBanner

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/0406e53f-aca4-4047-80a3-dbe279cebc0b

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev
Description
No description provided
Readme 4.4 MiB
Languages
TypeScript 79.9%
CSS 19.4%
JavaScript 0.6%