Skip to content

feat(web): admin pre-approvals page#43

Merged
ankitsejwal merged 1 commit into
mainfrom
feat/web-pre-approvals
Jul 2, 2026
Merged

feat(web): admin pre-approvals page#43
ankitsejwal merged 1 commit into
mainfrom
feat/web-pre-approvals

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

Mirrors the mobile pre-approval flow on the web dashboard so admins/front-desk get oversight of expected visitors. Backend already existed; this adds the web client methods + UI.

  • Client: listPreApprovals, createPreApproval, redeemPreApproval.
  • /admin/pre-approvals: table of active pre-approvals (visitor, apartment, code, type, uses, expiry, status) + a create form (name, phone, apartment, type). New nav entry.

Verified E2E (Chrome DevTools, live Neon): the page lists the existing pre-approval (Expected Guest / 7F56BDFE); created a new one via the form (Web Test Visitor @ A-101) → it appeared at the top with a fresh code and Uses 0, form reset. Console clean; gate + SSR build green.

Note: routeTree.gen.ts is regenerated by the router plugin and committed with the new route.

Adds a Pre-approvals admin view (list active expected-visitor codes with
apartment/type/uses/status, plus a create form) and the web client
pre-approval methods, giving front-desk oversight of the pre-approval system.
@ankitsejwal ankitsejwal merged commit 1a8556a into main Jul 2, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the feat/web-pre-approvals branch July 2, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant