Admin-Dashboard: jede Karte sagt in einem Satz, wofuer sie da ist
Das Dashboard war fuer jemanden geschrieben, der es taeglich sieht. Wer es
zweimal im Jahr aufmacht, muss sich erinnern, was "synced 3d ago" heisst, ob
ein Invite-Code weg ist, wenn er widerrufen wird, und was mit den Daten
passiert, wenn ein Konto deaktiviert wird. Alles Antworten, die die Seite
kennt und nicht gesagt hat.
Jede Karte oeffnet jetzt mit einem Satz: die Invite-Karte sagt, ob Anmeldung
ueberhaupt invite-only ist (steht laengst in /api/admin/users, wurde nur nie
angezeigt) und dass jeder Code einmal funktioniert; die Nutzer-Karte sagt, dass
Deaktivieren nichts loescht; das Aktivitaetslog sagt, was drinsteht. Der
Deaktivieren-Knopf trägt denselben Satz noch einmal direkt darunter, weil man
genau dort zoegert.
Widerrufen fragt jetzt nach, statt sofort zu loeschen — die einzige Aktion auf
der Seite, die ohne Rueckfrage etwas kaputtmachen konnte. Codes sind in
"Unused · tap to copy" und "Already used" getrennt, sind selbst tippbar und
haben zusaetzlich einen Kopier-Knopf mit 44px-Trefferflaeche.
Optisch: `tag` wird `adm-pill` — ein Wort mit Punkt davor, statt farbigem
Kleingedrucktem. Kuerzel ausgeschrieben ('3m ago' → '3 min ago', 'Active 7d' →
'Active 7 days', 'ex 2/5' → 'exercise 2 of 5', 'off' → 'disabled'), Trennlinien
auf `var(--hair)` wie im Rest der App, leere Zustaende sagen, was zu tun ist.
Neu: frontend/src/admin.css. Englisch-only wie die Seite selbst, also keine
Strings in den Sprachpaketen.
This commit is contained in:
1 parent
ddaaf12929
commit
9d7abdab44
2 files changed
+116
-51
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/* Admin dashboard — operator-facing, English-only. Sits on top of the app's tokens; nothing
|
||||
here is used outside views/Admin.jsx. The page is looked at maybe twice a year, so every
|
||||
card says what it is for in a sentence and every state is a word, not a colour to decode. */
|
||||
|
||||
.adm-intro{color:var(--label-2);font-size:14px;line-height:1.45;margin:-6px 0 16px}
|
||||
|
||||
/* one sentence under a card heading that says what the card is for */
|
||||
.adm-lead{color:var(--label-2);font-size:13px;line-height:1.45;margin:2px 0 12px}
|
||||
|
||||
/* status pill: a word and a colour, never a paragraph */
|
||||
.adm-pill{
|
||||
display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;
|
||||
font-size:12.5px;font-weight:600;letter-spacing:-.004em;line-height:1.5;white-space:nowrap;
|
||||
background:var(--surface-2);color:var(--label-2)
|
||||
}
|
||||
.adm-pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
|
||||
.adm-pill.bad{background:color-mix(in srgb,var(--red) 16%,transparent);color:var(--red)}
|
||||
.adm-pill.acc{background:var(--acc-soft);color:var(--acc)}
|
||||
|
||||
/* a dim explainer that reads like a sentence, not a footnote */
|
||||
.adm-hint{font-size:13px;color:var(--label-2);line-height:1.45;margin:6px 0 10px}
|
||||
|
||||
/* a small heading over a group of rows ("Unused · tap to copy") */
|
||||
.adm-group-t{font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--label-3);margin:0 0 7px}
|
||||
|
||||
/* an invite code, sized to be tapped and read out loud */
|
||||
.adm-code{
|
||||
font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;letter-spacing:.08em;
|
||||
background:var(--surface-2);padding:4px 9px;border-radius:8px;font-size:14px
|
||||
}
|
||||
.adm-iconbtn{width:44px;height:44px;border-radius:12px;font-size:17px}
|
||||
.adm-empty{color:var(--label-3);font-size:13.5px;padding:10px 2px}
|
||||
Reference in new issue
Block a user