Toasts, logo icons, shared table toolbar with search, and a density toggle
Feedback: toasts confirm common actions, and a page's error or success message that appears out of view is also shown as a toast. Icons: the tab, app and home-screen icons are the house from the logo; a dev instance gets a coloured dot on its tab icon. Tables: Secrets, Admin Links, IP Addresses and Alerts share one toolbar (search, filters, row count, actions, Export CSV); twelve more tables get a multi-word search box; long tables keep their column headings in view on wide screens. Density: Compact / Normal / Roomy in the user menu, remembered per browser. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d56ad18b7
commit
617dc1ea2f
56 files changed
+757
-158
No files matched your search
@@ -14,6 +14,7 @@ import {
|
||||
} from "../api/client";
|
||||
import { formatAgo } from "../utils/duration";
|
||||
import StatusStrip from "../components/StatusStrip";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
|
||||
const DNS_TYPE_COLORS: Record<string, string> = {
|
||||
A: "#60a5fa",
|
||||
@@ -576,7 +577,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
)
|
||||
}
|
||||
>
|
||||
{dnsError && <div className="alert alert-danger mb-2">{dnsError}</div>}
|
||||
<ErrorNotice error={dnsError} className="mb-2" />
|
||||
{!dnsStats ? (
|
||||
<div className="text-secondary">Fetching status…</div>
|
||||
) : dnsStats.totalProviders === 0 ? (
|
||||
@@ -669,7 +670,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
)
|
||||
}
|
||||
>
|
||||
{serverError && <div className="alert alert-danger mb-2">{serverError}</div>}
|
||||
<ErrorNotice error={serverError} className="mb-2" />
|
||||
{!serverSummary ? (
|
||||
!serverError && <div className="text-secondary">Fetching status…</div>
|
||||
) : serverSummary.total === 0 ? (
|
||||
@@ -762,7 +763,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
|
||||
)
|
||||
}
|
||||
>
|
||||
{domainError && <div className="alert alert-danger mb-2">{domainError}</div>}
|
||||
<ErrorNotice error={domainError} className="mb-2" />
|
||||
{!domainList ? (
|
||||
!domainError && <div className="text-secondary">Fetching status…</div>
|
||||
) : domains.length === 0 ? (
|
||||
|
||||
Reference in new issue
Block a user