feat: redesign portal UI with Sakani UI and add release notes
Replace the hand-rolled Tailwind/shadcn look with Sakani UI across the editorial area, the admin area and all signed-out pages. - AppShell (Sakani Sidebar + TopBar) for /redaktion and /admin, with a mobile drawer, theme toggle, sign-out, legal links and a "Was ist neu" button; PublicShell for login, registration, password, 2FA and errors. - Shared primitives (Button, Card, Input, PageHeader) now render Sakani; components/ui/sakani.tsx is the client boundary for Server Components (Sakani ships no "use client") and adds FormSelect (native form value) and DataTable (element cells from the server). - Legacy CSS variables map onto Sakani tokens; globals.css shrinks from ~2200 to ~700 lines. Geist replaces Inter. recharts/lucide-react dropped (charts via Sakani BarChart). - Release notes popup per area, shown once per version (localStorage) and reopenable from the sidebar; native <dialog> for focus trapping. - Fixes found while testing: TOTP field reused the typed password in clear text, modal dialogs sat top-left, invisible unchecked checkboxes in dark mode. - Parallel run: compose.parallel.yaml, AUTO_RULE_SYNC_DISABLED switch and docs/operations.md §8 (start, rollback, cutover). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
453bece72c
commit
9e938e4d07
79 files changed
+2266
-4316
No files matched your search
@@ -1,26 +1,21 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicShell } from "@/components/layout/public-shell";
|
||||
import { LoginForm } from "@/modules/auth/public-forms";
|
||||
|
||||
export default function LoginPage() {
|
||||
return (
|
||||
<main className="public-account-page">
|
||||
<header className="masthead">
|
||||
<Link className="wordmark" href="/">
|
||||
Leon Tonhäuser
|
||||
</Link>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
<section className="account-panel" aria-labelledby="login-title">
|
||||
<p className="eyebrow">Zugang</p>
|
||||
<h1 id="login-title">Anmelden</h1>
|
||||
<p className="lede">Melden Sie sich mit der E-Mail-Adresse Ihrer Redaktion an.</p>
|
||||
<LoginForm />
|
||||
<nav className="account-links" aria-label="Zugang verwalten">
|
||||
<Link href="/passwort-vergessen">Passwort vergessen?</Link>
|
||||
<Link href="/registrieren">Neue Redaktion registrieren</Link>
|
||||
</nav>
|
||||
</section>
|
||||
</main>
|
||||
<PublicShell
|
||||
kicker="Zugang"
|
||||
title="Anmelden"
|
||||
titleId="login-title"
|
||||
lede="Melden Sie sich mit der E-Mail-Adresse Ihrer Redaktion an."
|
||||
>
|
||||
<LoginForm />
|
||||
<nav aria-label="Zugang verwalten" className="flex flex-wrap justify-between gap-x-4 gap-y-2 text-sm">
|
||||
<Link className="font-medium text-[var(--color-brand-fg)] hover:underline" href="/passwort-vergessen">Passwort vergessen?</Link>
|
||||
<Link className="font-medium text-[var(--color-brand-fg)] hover:underline" href="/registrieren">Neue Redaktion registrieren</Link>
|
||||
</nav>
|
||||
</PublicShell>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +1,15 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicShell } from "@/components/layout/public-shell";
|
||||
import { PasswordResetRequestForm } from "@/modules/auth/public-forms";
|
||||
|
||||
export default function ForgotPasswordPage() {
|
||||
return (
|
||||
<main className="public-account-page">
|
||||
<header className="masthead">
|
||||
<Link className="wordmark" href="/">
|
||||
Leon Tonhäuser
|
||||
</Link>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
<section className="account-panel" aria-labelledby="forgot-password-title">
|
||||
<p className="eyebrow">Zugang</p>
|
||||
<h1 id="forgot-password-title">Passwort vergessen?</h1>
|
||||
<p className="lede">Fordern Sie einen Link zum Zurücksetzen Ihres Passworts an.</p>
|
||||
<PasswordResetRequestForm />
|
||||
<nav className="account-links" aria-label="Zurück zur Anmeldung">
|
||||
<Link href="/anmelden">Zur Anmeldung</Link>
|
||||
</nav>
|
||||
</section>
|
||||
</main>
|
||||
<PublicShell kicker="Zugang" title="Passwort vergessen?" titleId="forgot-password-title" lede="Fordern Sie einen Link zum Zurücksetzen Ihres Passworts an.">
|
||||
<PasswordResetRequestForm />
|
||||
<nav aria-label="Zurück zur Anmeldung" className="text-sm">
|
||||
<Link className="font-medium text-[var(--color-brand-fg)] hover:underline" href="/anmelden">Zur Anmeldung</Link>
|
||||
</nav>
|
||||
</PublicShell>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicShell } from "@/components/layout/public-shell";
|
||||
import { PasswordResetForm } from "@/modules/auth/public-forms";
|
||||
|
||||
export default async function ResetPasswordPage({
|
||||
@@ -10,22 +11,11 @@ export default async function ResetPasswordPage({
|
||||
const { token } = await searchParams;
|
||||
|
||||
return (
|
||||
<main className="public-account-page">
|
||||
<header className="masthead">
|
||||
<Link className="wordmark" href="/">
|
||||
Leon Tonhäuser
|
||||
</Link>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
<section className="account-panel" aria-labelledby="reset-password-title">
|
||||
<p className="eyebrow">Zugang</p>
|
||||
<h1 id="reset-password-title">Neues Passwort setzen</h1>
|
||||
<p className="lede">Wählen Sie ein neues Passwort für den Zugang Ihrer Redaktion.</p>
|
||||
<PasswordResetForm token={token} />
|
||||
<nav className="account-links" aria-label="Zurück zur Anmeldung">
|
||||
<Link href="/anmelden">Zur Anmeldung</Link>
|
||||
</nav>
|
||||
</section>
|
||||
</main>
|
||||
<PublicShell kicker="Zugang" title="Neues Passwort setzen" titleId="reset-password-title" lede="Wählen Sie ein neues Passwort für den Zugang Ihrer Redaktion.">
|
||||
<PasswordResetForm token={token} />
|
||||
<nav aria-label="Zurück zur Anmeldung" className="text-sm">
|
||||
<Link className="font-medium text-[var(--color-brand-fg)] hover:underline" href="/anmelden">Zur Anmeldung</Link>
|
||||
</nav>
|
||||
</PublicShell>
|
||||
);
|
||||
}
|
||||
@@ -1,25 +1,21 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicShell } from "@/components/layout/public-shell";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
export default function RegistrationConfirmedPage() {
|
||||
return (
|
||||
<main className="public-account-page">
|
||||
<header className="masthead">
|
||||
<Link className="wordmark" href="/">
|
||||
Leon Tonhäuser
|
||||
</Link>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
<section className="account-panel" aria-labelledby="confirmation-title">
|
||||
<p className="eyebrow">Registrierung</p>
|
||||
<h1 id="confirmation-title">Vielen Dank.</h1>
|
||||
<p className="lede">
|
||||
Bitte folgen Sie den weiteren Hinweisen, die wir Ihnen gegebenenfalls zusenden. Danach
|
||||
prüfen wir Ihre Registrierung.
|
||||
</p>
|
||||
<Link className="primary-action" href="/anmelden">
|
||||
Zur Anmeldung
|
||||
</Link>
|
||||
</section>
|
||||
</main>
|
||||
<PublicShell
|
||||
kicker="Registrierung"
|
||||
title="Vielen Dank."
|
||||
titleId="confirmation-title"
|
||||
lede="Bitte folgen Sie den weiteren Hinweisen, die wir Ihnen gegebenenfalls zusenden. Danach prüfen wir Ihre Registrierung."
|
||||
>
|
||||
<div>
|
||||
<Button asChild>
|
||||
<Link href="/anmelden">Zur Anmeldung</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</PublicShell>
|
||||
);
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import Link from "next/link";
|
||||
import { redirect } from "next/navigation";
|
||||
import { headers } from "next/headers";
|
||||
|
||||
import { PublicShell } from "@/components/layout/public-shell";
|
||||
import { env } from "@/config/env";
|
||||
import { registerEditorial } from "@/modules/auth/auth";
|
||||
import {
|
||||
@@ -16,29 +16,22 @@ import { RateLimitExceededError } from "@/modules/security/rate-limit-guard";
|
||||
|
||||
export default function RegistrationPage() {
|
||||
return (
|
||||
<main className="public-account-page">
|
||||
<header className="masthead">
|
||||
<Link className="wordmark" href="/">
|
||||
Leon Tonhäuser
|
||||
</Link>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
<section className="account-panel account-panel-wide" aria-labelledby="registration-title">
|
||||
<p className="eyebrow">B2B-Zugang</p>
|
||||
<h1 id="registration-title">Redaktion registrieren</h1>
|
||||
<p className="lede">
|
||||
Das Redaktionsportal steht ausschließlich Unternehmen und Redaktionen zur Verfügung.
|
||||
</p>
|
||||
<RegistrationForm
|
||||
action={registerAction}
|
||||
legalUrls={{
|
||||
imprint: env.LEGAL_IMPRINT_URL,
|
||||
privacy: env.LEGAL_PRIVACY_URL,
|
||||
terms: env.LEGAL_TERMS_URL,
|
||||
}}
|
||||
/>
|
||||
</section>
|
||||
</main>
|
||||
<PublicShell
|
||||
kicker="B2B-Zugang"
|
||||
title="Redaktion registrieren"
|
||||
titleId="registration-title"
|
||||
lede="Das Redaktionsportal steht ausschließlich Unternehmen und Redaktionen zur Verfügung."
|
||||
wide
|
||||
>
|
||||
<RegistrationForm
|
||||
action={registerAction}
|
||||
legalUrls={{
|
||||
imprint: env.LEGAL_IMPRINT_URL,
|
||||
privacy: env.LEGAL_PRIVACY_URL,
|
||||
terms: env.LEGAL_TERMS_URL,
|
||||
}}
|
||||
/>
|
||||
</PublicShell>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user