Skip to content

[Admin][UI] SPA scaffold — auth gate, shell, navigation #35

Description

@serge-ivo

[Admin][UI] SPA scaffold — auth gate, shell, navigation

Why

The admin app (from the Infra issue) needs its shell before feature pages land.

Scope

  • App shell: 48px header (match console), left/top nav, dark theme, shared design tokens.
  • Auth gate: on load call GET /v1/admin/me; if not admin show a clean "Admin access required" state; if signed out, link to /console/ sign-in. Read session from the same localStorage token the console uses.
  • Central apiFetch wrapper (Bearer token + error handling), mirroring console.
  • Nav routes (stubs, filled by later issues): Overview · Users · Agents & Instances · Usage & Spending · Errors & Ops · Moderation.
  • Mobile-friendly (the store convention: icon nav, scrollable).

Acceptance criteria

  • Admin sees the shell + empty routed pages; non-admin sees the gate; signed-out sees sign-in prompt.
  • Client-side routing works on deep links (pairs with host serving).
  • Shares fonts/tokens/dark mode with console.

Relevant code

  • store/admin/ (new app), reference store/console/src/ (apiFetch, nav, header)

References

  • FGS App.tsx router + auth gate; FAS App.tsx.

Part of the PAGS Admin Portal epic. Depends on Infra + Foundation. Blocks the other UI issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    admin-portalPAGS admin/operator portalenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions