 Tomas DvorakandDevin
|
8b6214a0f5
|
feat: public platform, admin console, templates, landing docs
Projects become publicly browsable after admin approval; management and
secret-adjacent reads (logs, variables, exec, connection URLs) require
owner/member/admin auth, and platform controls sit behind RequireAdmin.
- Backend: OptionalAuth middleware, read/authed/admin route groups,
projects.is_approved + service_templates.owner_id migration,
visibility-aware sqlc queries, admin overview/users/approval endpoints,
EnsureAdminAccount bootstrap (ADMIN_* env), 30 seeded templates with
owner CRUD, managed-database connection URLs gated owner+admin, fix
DB.Stats() infinite recursion.
- Frontend: expandable persisted sidebar + clickable user menu, public
landing page with searchable docs browser (GitHub sync, bundled
snapshot + localStorage fallback), DocsBrowser shared with /docs,
template create/edit/JSON-upload for owned templates, database create
dialog, admin console (stats, approvals, project edit/delete, user
admin toggles), HA/Security/Usage polish with dead CSS tokens mapped
to real theme vars, anonymous-safe gating on every mutation control.
- Tests: safe window.localStorage access fixes happy-dom crashes in
PlatformShell and canvas storage.
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
2026-09-22 19:58:59 +02:00 |
|
Tomas Dvorak
|
08d92fb10f
|
feat(backups): scheduled database backups via cron tick
- database_services gains backup_schedule + next_backup_at (goose migration,
sqlc schema, new queries).
- PUT /databases/:id accepts backup_schedule — validated cron expression,
empty string disables; invalid returns 400.
- Cron scheduler tick now also folds due databases into the existing
snapshot pipeline (createBackupProcess).
- Databases page backups section gets a schedule row showing current expr
and next run.
- resolveBackupConfig reports real next_backup/enabled instead of a fake
last+24h estimate.
- Verified e2e: '* * * * *' produced three consecutive completed archives
containing the seeded payload; invalid schedule rejected.
Authored By: TDvorak <[email protected]>
|
2026-09-17 17:46:02 +02:00 |
|