Build out the admin panel

- Overview: users, organizations, workspaces, spaces, pages, files and
  storage (org admins see their organization), plus pages open right now,
  the search index size, and version, uptime and database health.
- Users: invite people by email (with resend, revoke and a copyable link
  when mail fails) and send a password-reset email.
- Authentication: sign-up on or off, the email-domain allow-list, and
  sign-in links by email.
- Branding: instance name, accent colour and logo. The web app shows them
  on the sign-in pages and applies the accent colour everywhere.
- Email and Storage: SMTP and S3 settings with test buttons.
- Maintenance: create, download and delete database backups, and a view
  of the background jobs with their last run, duration and errors.

On the server, a small jobs registry records each search-indexing pass,
and "search.rebuild" replaces the separate reindex endpoint. A new
instance package serves the dashboard numbers, health and backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-10-31 17:34:48 +01:00
1 parent 92cd81fd96
commit ffc6cc4fbc
31 files changed
+2326 -134

No files matched your search

+2 -1
View File
@@ -42,7 +42,7 @@ type api struct {
dir DirectoryService
settings SettingsService
files *auth.FileTokens
index SearchIndex
instance InstanceService
collab CollabHub
log *slog.Logger
}
@@ -152,6 +152,7 @@ func (a *api) routes(mux *routeMux) {
a.transferRoutes(mux)
a.shareRoutes(mux)
a.commentRoutes(mux)
a.adminRoutes(mux)
}
func (a *api) decode(w http.ResponseWriter, r *http.Request, v any) bool {