feat(admin): eigener Arbeitsbereich mit Dashboard, Zaehlern und Schnellsuche

- Admin ohne Shop-Kopf-/Fusszeile (HideOnAdmin); kein doppeltes <main> mehr
- Seitenleiste gruppiert (Verkauf, Sortiment, Kundschaft, Seite), aktive
  Seite als wandernde Flaeche mit Wabe, Zaehler fuer Wartendes: bezahlte
  offene Bestellungen, neue Retouren, unfreigegebene Bewertungen, neue
  Firmenanfragen (COUNT-Abfragen erst nach Admin-/2FA-Pruefung)
- Schnellsuche (Strg/Cmd+K): Seiten und haeufige Aktionen per Tastatur,
  tolerante Wortsuche, Ziele nur aus fester Liste
- Dashboard: Begruessung nach Tageszeit (Berliner Zeit), eine Leitzahl
  "Umsatz heute" mit Vergleich zu gestern und Mini-Verlauf, "Zu erledigen"
  mit direkten Links bzw. "Alles erledigt"-Siegel, ruhigere Kennzahl-Kacheln
- Diagramme nach dataviz-Skill: per Validator gepruefter Diagrammton
  #a0722f (>=3:1; #b88a44 erreichte nur 2,93:1), gerundete Balkenkappen,
  2px Luecke, Tooltip je Balken (auch per Tastatur), Meter mit Spur im
  selben Ton, Rang der Top-Produkte als Wabe
- Einheitliche Admin-Details zentral: groessere Ueberschriften,
  Tabellenkopf als Etikett, feste Ziffernbreite, eigene Auswahlpfeile

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Nick SzaunigandClaude Opus 5.5 committed 2026-09-25 13:45:24 +02:00
1 parent 15ddceaa39
commit c95c713717
11 files changed
+762 -133

No files matched your search

+29
View File
@@ -1220,6 +1220,19 @@ export const en: Dictionary = {
noVouchersYet: "No vouchers redeemed yet.",
usedCountLabel: (count, maxUses) => `used ${count}×${maxUses ? ` / ${maxUses}` : ""}`,
viewAllOrders: "View all orders →",
greeting: (part, name) =>
`${part === "morning" ? "Good morning" : part === "day" ? "Hello" : "Good evening"}, ${name}.`,
todayRevenueLabel: "Revenue today",
monthRevenueLabel: "Revenue this month",
vsYesterday: (delta, up) => `${up ? "↑" : "↓"} ${delta} vs. yesterday`,
toDoHeading: "To do",
toDoOrders: (count) => (count === 1 ? "1 order waiting to ship" : `${count} orders waiting to ship`),
toDoReturns: (count) => (count === 1 ? "1 new return" : `${count} new returns`),
toDoReviews: (count) => (count === 1 ? "1 review awaiting approval" : `${count} reviews awaiting approval`),
toDoInquiries: (count) => (count === 1 ? "1 new business inquiry" : `${count} new business inquiries`),
allDoneTitle: "All done.",
allDoneText: "Nothing is waiting for you right now. Time for the bees.",
chartTooltip: (day, value) => `${day}: ${value}`,
},
adminContentPage: {
backToDashboard: "Back to dashboard",
@@ -1294,6 +1307,22 @@ export const en: Dictionary = {
closeMenu: "Close menu",
loggedInAs: (name) => `Signed in as ${name}`,
logout: "Sign out",
groupSales: "Sales",
groupRange: "Range",
groupCustomers: "Customers",
groupSite: "Site",
paletteOpen: "Quick search",
paletteShortcut: "Ctrl K",
palettePlaceholder: "Where to? Search a page or action …",
paletteNoResults: "Nothing found.",
paletteSectionPages: "Pages",
paletteSectionActions: "Actions",
actionNewProduct: "Create new product",
actionNewVoucher: "Create new voucher",
actionNewUser: "Create new account",
actionNewShippingTier: "Create new shipping tier",
actionViewShop: "View shop",
badgeWaiting: (count) => `${count} waiting`,
twoFactorWarning:
"This admin account doesn't have two-factor authentication enabled yet, recommended for accounts with access to orders, refunds, and customer data.",
twoFactorSetupLink: "Set up now →",