feat: Phase 5b — dashboard for tenants and platform operators - #23
Open
TheMeinerLP wants to merge 2 commits into
Open
feat: Phase 5b — dashboard for tenants and platform operators#23TheMeinerLP wants to merge 2 commits into
TheMeinerLP wants to merge 2 commits into
Conversation
Dashboard on top of Phase 5a. Nuxt 4 in SPA mode, Vue 3, Tailwind 4, Nuxt UI — matching the launchpad house standard. Two levels, separated by the role in the token: tenants manage their own sources, maps, renders and hosting; platform operators manage tenants, quotas and allowed domains. - Frontend role checks are convenience only; enforcement stays in the API, and nothing here is built to look like the frontend enforces rights. - Progress is displayed honestly: when telemetry degrades without the render being at risk, the API reports -1 and degraded: true, and the UI says so instead of drawing a bar at zero or inventing a value. - Tokens live in memory only, never in localStorage/sessionStorage, so a bearer JWT can't be scraped from Web Storage by XSS; a hard reload drops it, covered by silent renewal against the broker's own session. - Fixes a runtime error in the shared layout: Nuxt's directory-prefixed component names meant `<AppHeader />` failed to resolve at runtime despite passing vue-tsc and nuxt build cleanly. Now guarded by a test that mounts the layout and fails if a component doesn't resolve — a guard validated by reverting the fix and watching the test fail exactly as the original bug manifested. - Fixes two API gaps that made the platform level unusable, per spec §10.3: no way to change an existing tenant's quota, and no cluster-wide view of running renders (GET /api/renders always resolved the caller's own tenant namespace). The new cluster-wide endpoint is hard-restricted to platform-admin with a test proving every other role is refused. - 107 frontend tests plus lint, typecheck and a production build with a runtime smoke test; API tests green including the new endpoints. This branch replaces clean/phase-5b-ui (PR #15), stacked on clean2/phase-5-api instead of clean/phase-5-api. Same content otherwise.
TheMeinerLP
force-pushed
the
clean2/phase-5-api
branch
from
August 9, 2026 10:30
3be773d to
6df10e1
Compare
TheMeinerLP
force-pushed
the
clean2/phase-5b-ui
branch
from
August 9, 2026 10:30
cca0062 to
38f9a36
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 5b of Apus: the dashboard. Stacked on PR #6.
Nuxt 4 in SPA mode, Vue 3, Tailwind 4, Nuxt UI — matching the
launchpadhouse standard. Two levels, separated by the role in the token: tenants manage their own sources, maps, renders and hosting; platform operators manage tenants, quotas and allowed domains.Two things done deliberately
Frontend role checks are convenience, not security. The dashboard hides what a role may not do, but enforcement stays in the API. Nothing here is built to look like the frontend enforces rights — that invites dropping the server-side check later.
Progress is displayed honestly. Telemetry can degrade without the render being at risk; the API then reports
-1anddegraded: true. The UI says so instead of drawing a bar at zero or inventing a value. That distinction is why phase 1 has a contract test in the first place.Tokens live in memory only — not
localStorage, notsessionStorage. A bearer JWT in Web Storage is scrapable by any XSS for as long as it sits there. Cost: a hard reload drops it, covered by silent renewal against the broker's own session.Bugs found while building
A runtime error in the shared layout. Nuxt registers components from subdirectories with a directory prefix, so
components/layout/AppHeader.vueisLayoutAppHeaderin templates. The layout referenced<AppHeader />, which compiles to aresolveComponentthat fails at runtime — and neithervue-tscnornuxt buildreports it. Both parallel agents hit this independently.It is now guarded by a test that actually mounts the layout and fails if a component does not resolve. That guard was itself validated: the fix was reverted, the test failed exactly as the original bug manifested, then the fix was restored. A typecheck demonstrably does not catch this.
Two API gaps that made the platform level unusable. There was no way to change an existing tenant's quota (only
GETandPOST /api/tenants), and no cluster-wide view of running renders —GET /api/rendersalways resolves the namespace from the caller's own tenant. Both contradict spec §10.3, which grantsplatform-adminexactly those abilities. The agent surfaced them as visible notices rather than faking a working screen, and both are now implemented.The cluster-wide endpoint is the one place in the API that crosses tenant boundaries, so it is hard-restricted to
platform-adminwith a test proving every other role is refused. That kind of endpoint is precisely the hole that had to be closed three times already, in phases 2a, 3 and 5a.Testing
107 frontend tests plus lint, typecheck and a production build with a runtime smoke test; API tests green including the new endpoints.
Known gaps