feat: Auth UX & Admin Console Polish for v0.6.5-beta - #46
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
v0.6.5-betaand document the new auth/roles behavior in README and release notes.Description
frontend/src/types.tsandfrontend/src/api.ts(User,UserCreatePayload,UserUpdatePayload,listUsers,createUser,updateUser,getMe,logout).currentUserinfrontend/src/App.tsx, improve logout (onLogout) to clear local state on failure, add dashboard auth-capability card, and implement view guards for forbidden sections.frontend/src/components/Layout.tsxto showAngemeldet als <username> · <role>, add role-aware navigation and visibleLogoutbutton, and addUsersnav entry for admins.frontend/src/components/UsersView.tsxfor listing, creating, updating (role / is_active / password reset) users with solid UX for loading, errors and success.backend/app/api/routes_users.pyto validate roles, never returnpassword_hash, and includecreated_at/updated_at/last_login_atin responses.v0.6.5-betainbackend/app/core/system_status.py,backend/app/api/routes_system.py, andbackend/app/main.pyand updatebackend/pyproject.toml.README.md,RELEASE_NOTES.md,docs/operations/security.md, anddocs/operations/troubleshooting.mdto describe roles, admin user management, logout behavior and known limitations.Testing
cd backend && pytest -q, resulting in all tests passing (86 passed).cd frontend && npm run build, which completed successfully producing a production build.Codex Task