Add OAuth Client management section to Admin Dashboard#741
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
aura-historia-staging | fbfb932 | Commit Preview URL Branch Preview URL |
May 31 2026, 11:26 AM |
- Add internal OAuthClient data model with mapping from API types - Add useAdminOAuthClients hook for fetching client list - Add useCreateOAuthClient, usePatchOAuthClient, useDeleteOAuthClient mutation hooks - Add AdminOAuthClientsSection component with list view - Add AdminOAuthClientCreateDialog with secret-shown-once notice - Add AdminOAuthClientEditDialog for updating client metadata - Add /admin/oauth-clients route - Update AdminSidebar with OAuth Clients navigation item - Update AdminOverviewPage with OAuth Clients card and count - Add translations for all 5 locales (en, de, fr, it, es) - Add tests for AdminOAuthClientsSection and updated AdminOverviewPage test
Addressed in |
|
|
@copilot the backend added additional fields for oauth-client metadata, see Changelog. Please fully support these fields in the Admin Dashboard. PS: The hydration bug is still there and creation of clients work backend-side but only show after refresh - I still get an immediate error page after creating new clients in the admin dashboard. |
Addressed in This adds full admin support for |
|
@BauZee would you please fix the hydration error? Upon successful creation of a new oauth client I get an error - hydration I guess according to browser-logs - which is resolved after reloading the page. OAuth Client is then accessible so it's correctly created backend-side. |


Backend shipped CRUD endpoints for OAuth client metadata (
/api/v1/oauth/clients). This PR wires them into the Admin Dashboard.Changes
getOAuthClients,postOAuthClient,patchOAuthClient,deleteOAuthClientand associated types, including the new OAuth client URI metadata fieldssrc/data/internal/oauth/OAuthClient.tsmaps snake_case API response to internal camelCase type, includingtosUri,policyUri,clientUri, andlogoUriuseAdminOAuthClients(list query),useCreateOAuthClient,usePatchOAuthClient,useDeleteOAuthClient(mutations with cache invalidation + toast feedback), plus immediate query-cache updates so created/edited/deleted clients show without a refreshAdminOAuthClientsSection— lists clients with edit/delete actions, displays the client logo, renders the additional URI metadata, and avoids the localizedcreatedAthydration mismatchAdminOAuthClientCreateDialog— RHF+Zod form; surfaces the plaintext client secret once on creation and now captures the full OAuth client URI metadataAdminOAuthClientEditDialog— patch client name, URI metadata, redirect URIs, and scopes/admin/oauth-clientsroute, sidebar entry (KeyRoundicon), overview card with client count