Skip to content

Conversation

@marius-mather
Copy link
Collaborator

@marius-mather marius-mather commented Nov 12, 2025

Description

The backend admin that was originally set up stopped working, and in trying to fix it I discovered it had a few issues that meant it wasn't going to work long-term. starlette-admin is similar but copes better with our data (e.g. enums).

Changes

  • Switch to starlette-admin for viewing backend data at /db-admin
  • Add all existing models to it - no create/delete/edit permissions by default
  • Use Auth0 for authentication - can only access admin with the correct role
  • Use a separate Auth0 client ID/secret to log in to the admin - our existing backend app does not play well with it
    • The admin will be disabled if this is not configured
  • Update unit tests of admin

Screenshots

Screenshot 2025-11-12 at 10 48 31 am

@amandazhuyilan
Copy link
Contributor

Looks great! Also tested on my machine that the backend admin dashboard can show up successfully on localhost:8000/db-admin. Only additional request is to add instructions on how to fire up the admin dashboard on the README 🙏 .

Copy link
Contributor

@amandazhuyilan amandazhuyilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets ship it (when all tests are green)

@marius-mather marius-mather merged commit 2d32253 into main Nov 12, 2025
4 checks passed
@amandazhuyilan amandazhuyilan deleted the fix/reworked-backend-admin branch November 24, 2025 22:22
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.

3 participants