d1ec7367a0
Root cause: when auth.me() failed during initial navigation, the catch block
called navigate('/login') without clearing _pendingLoginRedirect. The outer
finally then fired a second concurrent navigate('/login'), which held
isNavigating=true while running. If the user submitted the login form (or
iCloud Keychain autofilled credentials) before the second navigation
completed, navigate('/', user) was silently blocked by the isNavigating guard —
login appeared to succeed but the app never advanced to the dashboard.
Fix: clear _pendingLoginRedirect in the catch block so the finally handler
does not spawn the duplicate navigation.
Also adds a GET /api/v1/version endpoint (no auth required) and shows the
version on the login page, so users can verify their PWA has received the
latest cached JS.
Resolves #68
Co-authored-by: Ulas Kalayci <ulas.kalayci@googlemail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
1.3 KiB
CSS
66 lines
1.3 KiB
CSS
/**
|
|
* Modul: Login-Seite
|
|
* Zweck: Styles für die Anmeldeseite
|
|
* Abhängigkeiten: tokens.css, reset.css, layout.css
|
|
*/
|
|
|
|
.login-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100dvh;
|
|
width: 100vw;
|
|
padding: var(--space-4);
|
|
background-color: var(--color-bg);
|
|
}
|
|
|
|
/* Hero-Bereich über dem Login-Formular */
|
|
.login-hero {
|
|
text-align: center;
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.login-hero__title {
|
|
font-size: clamp(2rem, 5vw, 3rem);
|
|
font-weight: var(--font-weight-bold);
|
|
color: var(--color-accent);
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
.login-hero__tagline {
|
|
font-size: var(--text-base);
|
|
color: var(--color-text-secondary);
|
|
max-width: 360px;
|
|
line-height: var(--line-height-relaxed, 1.6);
|
|
}
|
|
|
|
/* Login-Karte */
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 380px;
|
|
}
|
|
|
|
.login-form__submit {
|
|
width: 100%;
|
|
margin-top: var(--space-2);
|
|
}
|
|
|
|
.login-error {
|
|
padding: var(--space-3) var(--space-4);
|
|
background-color: var(--color-danger-light);
|
|
color: var(--color-danger);
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--text-sm);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.login-version {
|
|
margin-top: var(--space-4);
|
|
font-size: var(--text-xs);
|
|
color: var(--color-text-tertiary, var(--color-text-secondary));
|
|
text-align: center;
|
|
opacity: 0.6;
|
|
}
|