Skip to content

feat: add platform administration panel - #57

Merged
darwin67 merged 5 commits into
mainfrom
feat/rfd1-admin-panel
Aug 26, 2026
Merged

feat: add platform administration panel#57
darwin67 merged 5 commits into
mainfrom
feat/rfd1-admin-panel

Conversation

@darwin67

Copy link
Copy Markdown
Member

Summary

  • add the initial read-only /admin LiveView with installation totals, exact user/organization/workspace lookup, recent public paste metadata, largest paste metadata, and cursor-paginated platform audit history
  • reload platform authority for every administration read and notify mounted panels after revocation
  • keep paste bodies out of admin results and suppress non-public capability IDs while retaining unique, non-secret LiveView stream identities
  • backfill legacy inline paste sizes and create query-matching administration indexes concurrently under PostgreSQL advisory migration locking
  • update the RFD 1 implementation checklist for the completed authorization and read-panel milestones

Routing and authorization

/admin is placed in the existing [:browser, :require_authenticated_user] pipeline and live_session :require_authenticated_user because every panel route requires an authenticated registered user. AdminLive adds the :require_platform_admin module-level on_mount hook as the separate installation-wide authorization boundary, while every context read independently reloads current authority.

Oracle review follow-up

Regression coverage was added before fixing the review findings:

  • multiple non-public largest-paste rows no longer collapse onto one stream DOM ID
  • legacy inline rows with size_bytes = NULL are backfilled, counted in storage totals, displayed with their computed size, and sorted defensively with nulls last
  • administration indexes use CREATE INDEX CONCURRENTLY outside a DDL transaction with advisory migration locking

The migration regression runs against a temporary PostgreSQL database and verifies the backfill, index definitions, lock strategy, and disabled DDL transaction.

Validation

  • mix precommit — 489 tests passed
  • focused administration context, LiveView, and migration suites — 27 tests passed
  • migration rollback/forward dry run with SQL logging confirmed DROP INDEX CONCURRENTLY and CREATE INDEX CONCURRENTLY
  • make check-rfds — passed

Add freshly authorized installation totals, exact account and workspace lookup, bounded paste metadata views, and cursor-paginated platform audit history. Protect non-public paste capability IDs and notify mounted administrators when their authority is revoked.
Give protected largest-paste rows unique non-secret stream identities, account for legacy inline paste sizes, and create administration indexes concurrently under advisory migration locking. Add context, LiveView, and temporary-database migration regressions.
@github-actions github-actions Bot added the feat label Aug 26, 2026
@darwin67
darwin67 merged commit f514932 into main Aug 26, 2026
17 checks passed
@darwin67
darwin67 deleted the feat/rfd1-admin-panel branch August 26, 2026 17:18
@chaba2-bot chaba2-bot Bot mentioned this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant