v0.9.12 — admin button + direct DB table CRUD, no auth for now (#38) #42

Merged
kamilkrzywda merged 1 commits from admin-db-crud into master 2026-09-29 23:53:45 +02:00
Owner

ADMIN button in header next to SECTOR SCAN opens an overlay with generic CRUD over all game tables (registry off schema.ts): list tables w/ row counts, read rows capped at 200/page, insert/update/delete by PK. Unauthenticated by explicit request (ponytail: add auth later). +8 unit tests, +2 read-only e2e specs.

ADMIN button in header next to SECTOR SCAN opens an overlay with generic CRUD over all game tables (registry off schema.ts): list tables w/ row counts, read rows capped at 200/page, insert/update/delete by PK. Unauthenticated by explicit request (ponytail: add auth later). +8 unit tests, +2 read-only e2e specs.
kamilkrzywda added 1 commit 2026-09-29 23:53:44 +02:00
feat(admin): DB CRUD panel + /api/admin endpoints (#38)
CI / build + unit + e2e (pull_request) Successful in 3m47s
0d2370850f
- ADMIN button in the mission-control header opens a table picker + row grid with add/edit/delete (components/admin-panel.tsx), deliberately unauthenticated by explicit request
- /api/admin/tables and /api/admin/tables/{name}/rows driven off a name→table registry built from lib/db/schema.ts (lib/db/admin.ts) — no per-table code; 404 unknown table, 400 malformed payload, 409 constraint violation
- OpenAPI spec updated for all four admin operations + Admin* schemas
- unit: lib/db/admin.test.ts (registry, CRUD round-trips, composite PKs, error mapping); e2e: read-only admin.spec.ts
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-09-29 23:53:44 +02:00
kamilkrzywda merged commit 2a8cb4da06 into master 2026-09-29 23:53:45 +02:00
kamilkrzywda deleted branch admin-db-crud 2026-09-29 23:53:46 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/SpaceWanderer#42