Skip to content

feat: add admin database size page and rebuild.sh#378

Merged
neoneye merged 1 commit intomainfrom
admin-db-size-page
Mar 21, 2026
Merged

feat: add admin database size page and rebuild.sh#378
neoneye merged 1 commit intomainfrom
admin-db-size-page

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Mar 21, 2026

Summary

  • Add /admin/db-size admin page showing PostgreSQL disk space usage (total DB size in MB, per-table breakdown with data vs index sizes, visual bar chart)
  • Add rebuild.sh script for the common down --remove-orphans → build --no-cache → up workflow
  • Update docs/docker.md to reference the new script

Test plan

  • Run ./rebuild.sh and verify it performs all 3 docker compose steps
  • Navigate to /admin/db-size as admin and verify total size and per-table breakdown renders
  • Verify non-admin users get 403 on /admin/db-size
  • Verify the link appears on the admin console index page

🤖 Generated with Claude Code

Admin page at /admin/db-size shows PostgreSQL disk usage with
per-table breakdown (data vs index size). Added rebuild.sh for
the common down/build/up workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@neoneye neoneye merged commit f059057 into main Mar 21, 2026
3 checks passed
@neoneye neoneye deleted the admin-db-size-page branch March 21, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant