feat: add logout functionality and auto-logout on 401 responses

Add AUTH_EXPIRED_EVENT constant and dispatch event on 401 responses in API client, clearing stored token. Add handleLogout function to App component and wire up event listener to trigger logout on auth expiration. Pass onLogout prop to Layout component and add Logout button to topbar-actions. Update CSS to apply flex layout to topbar-actions and make responsive. Add backend hostname and network aliases in docker-compose to ensure consistent
This commit is contained in:
2026-03-17 19:39:13 +01:00
parent 61d2b4b25c
commit e2362c6033
5 changed files with 40 additions and 7 deletions

View File

@@ -63,7 +63,8 @@ button {
.auth-brand,
.brand-block,
.topbar-brand {
.topbar-brand,
.topbar-actions {
display: flex;
align-items: center;
gap: 16px;
@@ -300,6 +301,7 @@ button {
.auth-brand,
.brand-block,
.topbar-brand,
.topbar-actions,
.page-header {
align-items: flex-start;
flex-direction: column;