Commit Graph

16 Commits

Author SHA1 Message Date
c6649c9c8f Show the store's scannable QR code right after onboarding
The consumer app resolves a storefront by scanning a QR that encodes
{tenantid, locationid}. Store Onboarding was creating the location but never
surfacing its QR, so operators had to hunt for it later in the store detail
view. Now that the backend returns the created location's locationid in the
onboarding response, render the existing StoreQRView component directly in
the "Store Branch Active!" success panel (both onboarding UI variants) so the
printable QR is available the moment the branch is created.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-23 11:09:09 +05:30
58c42d9013 Fix app_users.configid mismatch blocking Staff/Rider first login
UsersPanel.tsx was sending configid: 15 (Staff) / 6 (Rider) when creating
users, copied from an unrelated Hasura "role config" convention. Every
login call (auth.ts) queries app_users with configid: 1, so any account
created with 15/6 could never be found on login and was stuck before it
even reached the password-setup step. Both create paths and the
CreateUserInput default now consistently use configid: 1.

Also fixes getRiderLogs() calling riders/getriderlogs, which 404s since
the backend only registers this route under /partners.
2026-07-22 17:35:07 +05:30
Suriya
fef75a1cc2 Add first-login password setup flow
Accounts created by tenant/store onboarding (createtenantuser,
createtenantlocation) have no password set. Previously the login form
treated the backend's "please setup a password" response as a
successful login instead of prompting for one. Now auth.ts recognizes
it (PasswordSetupRequiredError) and LoginView routes to a create-
password step, then signs in immediately with the new password.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 16:46:07 +05:30
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
11baf732b7 import product catalogue 2026-07-16 17:05:06 +05:30
8a1527cef8 new changes in api base url 2026-07-09 15:50:04 +05:30
4ef9cd9085 new changes in api base url 2026-07-09 15:49:45 +05:30
7cd0ae85ef stock request 2026-07-04 17:46:30 +05:30
93df333df1 implemented the sales and revenue report 2026-06-23 19:18:01 +05:30
8707004405 changes on global catalogue 2026-06-20 18:45:25 +05:30
2e9ffb15bb udpates on the ui changes on theprodut catalogs 2026-06-16 20:12:45 +05:30
Gokul
01685f14c2 e2e testing 2026-06-15 19:17:13 +05:30
0519e3b19c api integration on the dispatch page 2026-06-12 15:24:05 +05:30
Gokul
5378f2df1f dispatch page 2026-06-12 14:45:06 +05:30
Gokul
9f25c5f60a udpates on the ui changesand api integration 2026-06-09 11:25:29 +05:30
Suriya
6eaeb5c4a7 feat: relocate orders and deliveries to store console & polish store cover images 2026-06-03 18:20:43 +05:30