core
core copied to clipboard
Create a dedicated accounts/users page in the web UI to view/manage users
Since 5351407 the web UI database page is not displaying the system collections, the one prefixed with sb_ owned by StaticBackend.
In #26 there were an item regarding adding a dedicated page for user management. This is its dedicated issue.
I'd see a simple table listing the sb_accounts and when clicking on an account we would see its users from sb_tokens either directly in the same page or in a new page for this account.
There's currently no way to list accounts and users from an account. Here's how I'd approach this:
- In persistor.go I'd add two new functions in the
// system user account function ssection. ListAccounts and ListUsers - An implementation for the
postgresql,mongo, andmemoryproviders will be required. - In the
ui.gocreate two new hanglers likelistAccountsandlistUsers. ThelistAccountsdoes not need much parameters, butlistUserwill require anaccountId. - Add the two route in
server.goline:227 nearwebUI := ui{}block of routes.
Additional thoughts.
- Could be nice to be able to search by email for an account / user in that page.
- Ideally, the account would be sorted by last created.