A warmer, friendlier admin: first pass

- The INBUXA palette on warm surfaces, softer cards, buttons and inputs, and
  self-hosted Inter and Space Grotesk.
- Each section's icon sits on a colored tile, colored by what the section is
  about.
- The sidebar gets a guide line for sub-pages and a labeled Management /
  Settings / Account switch, and folds to a rail of tiles (remembered).
- Every page has a header with its section's tile.
- Fields and pages with no label of their own are spelled out in words
  (defaultCertificateId becomes Default certificate ID).
- The dashboard greets you, and its stat cards wear colored tiles.
- Unavailable live numbers are a calm note, not an error.
- The cat appears in empty lists and while loading.
- Chart colors work again: they were hex values wrapped in hsl().
This commit is contained in:
2026-09-19 00:38:53 -07:00
parent 92bcb58f76
commit e4ad5e2c1e
26 changed files with 789 additions and 161 deletions
+15 -11
View File
@@ -1,9 +1,13 @@
/*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
* SPDX-FileCopyrightText: 2026 Coffey Labs
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/
import { EmptyState } from '@/components/common/EmptyState';
import { PageHeader } from '@/components/common/PageHeader';
import { iconForView } from '@/lib/viewIcon';
import React, { useState, useEffect, useCallback, useMemo } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
@@ -1105,12 +1109,9 @@ export function DynamicList({ viewName }: DynamicListProps) {
}
return (
<div className="relative space-y-4">
<div className="flex items-start justify-between gap-4">
<div>
<h1 className="text-2xl font-bold tracking-tight">{list.title}</h1>
{list.subtitle && <p className="text-sm text-muted-foreground mt-1">{list.subtitle}</p>}
</div>
<div className="relative space-y-5">
<div className="flex flex-wrap items-start justify-between gap-4">
<PageHeader icon={iconForView(schema, viewName)} title={list.title} subtitle={list.subtitle} />
<div className="flex items-center gap-2">
{hasMassActions && selectedIds.size > 0 && (
<DropdownMenu>
@@ -1233,11 +1234,11 @@ export function DynamicList({ viewName }: DynamicListProps) {
</div>
)}
<div className="rounded-lg border bg-background shadow-sm">
<div className="overflow-x-auto rounded-[calc(var(--radius-lg)-1px)]">
<div className="rounded-xl border bg-card shadow-soft">
<div className="overflow-x-auto rounded-[calc(var(--radius-xl)-1px)]">
<table className="w-full text-sm">
<thead>
<tr className="border-b bg-muted">
<tr className="border-b bg-muted/60 text-xs uppercase tracking-wide text-muted-foreground">
{hasMassActions && (
<th className="w-10 px-3 py-3">
<Checkbox
@@ -1276,9 +1277,12 @@ export function DynamicList({ viewName }: DynamicListProps) {
<tr>
<td
colSpan={list.columns.length + (hasMassActions ? 1 : 0) + (hasItemActions ? 1 : 0)}
className="px-3 py-12 text-center text-muted-foreground"
className="px-3"
>
{t('list.noResults', 'No results found')}
<EmptyState
title={t('list.emptyTitle', 'Nothing here yet')}
hint={t('list.noResults', 'No results found')}
/>
</td>
</tr>
) : (