Lifecycle planning, and consistent empty and loading states

- Inventory: end of support and replacement cost per asset; a Lifecycle page showing what ages out year by year and what replacing it will cost; support ending within 90 days in the weekly digest
- Lists: a shared empty state saying what is missing, why, and the one thing to do; "nothing matches" with a clear button; skeleton rows instead of empty-looking lists while loading

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-18 23:18:42 +02:00
1 parent 92726568b7
commit 846af02851
50 files changed
+4434 -233

No files matched your search

+4 -6
View File
@@ -13,6 +13,7 @@ import { confirmDialog } from "../utils/dialogs";
import { ErrorNotice } from "../components/Notice";
import { toast } from "../utils/toast";
import TableToolbar from "../components/TableToolbar";
import { EmptyRow, LoadingRow } from "../components/EmptyState";
const TYPE_LABELS: Record<SecretRecord["type"], string> = {
api_token: "API Token",
@@ -458,12 +459,9 @@ export default function Secrets({ user }: { user: CurrentUser }) {
)}
</tr>
))}
{(sorted ?? []).length === 0 && (
<tr>
<td colSpan={canEdit ? 8 : 6} className="text-secondary text-center">
No secrets tracked yet.
</td>
</tr>
{secrets === null && <LoadingRow colSpan={canEdit ? 8 : 6} />}
{secrets !== null && (sorted ?? []).length === 0 && (
<EmptyRow colSpan={canEdit ? 8 : 6} title="No secrets tracked yet" hint="Track an API token, a certificate or a password that expires, and you are warned before it does. The form is at the top of this page." filtered={secrets && secrets.length > 0 ? () => { setSearch(""); setStatusFilter("all"); } : undefined} />
)}
</tbody>
</table>