bettersight-statement-extra.../frontend/src/router
JasonFraser c18492bee4 Layout mapper L.8: superuser review screen (completes the L.1-L.8 plan)
New AdminLayoutReviewView.vue (/admin/layouts), rendered by App.vue
outside the normal authStore-gated shell entirely - a PocketBase
superuser is never a `users` record. Its own inline login against
pbAdmin's `_superusers` collection; lists every private mapping across
every owner (a superuser session bypasses collection rules); each row
expands into a read-only SourceDocumentPanel inspection (reusing L.7's
labeled-strip pattern) plus an Approve action that promotes straight to
shared, independent of the two-user confirmation hook.

adminLayoutsService.js gains getSourceDocument()/sourceFileUrl(), both
routed through pbAdmin since the mapping's sourceDocument belongs to its
owner, not the superuser.

Verified end to end against the real running stack (15 assertions via
the actual service files, not reimplementations): a fresh app user's
private mapping is visible to and approvable by the real superuser, its
source file round-trips byte-for-byte, and a completely independent
third-party user immediately resolves the now-shared mapping via
findByFingerprintHash. npm run build passes; app container rebuilt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-15 05:30:14 -04:00
..
index.js Layout mapper L.8: superuser review screen (completes the L.1-L.8 plan) 2026-10-15 05:30:14 -04:00