milestone 32: task-shaped configuration, file mode as a rendering, config status api
Gates / frontend (push) Successful in 1m22s
Gates / test (push) Successful in 1m54s
Gates / test-aarch64 (push) Successful in 7m57s
Gates / package (push) Successful in 5m29s
Gates / container (push) Successful in 10s
CI / gates (push) Successful in 32m51s
Gates / frontend (push) Successful in 1m22s
Gates / test (push) Successful in 1m54s
Gates / test-aarch64 (push) Successful in 7m57s
Gates / package (push) Successful in 5m29s
Gates / container (push) Successful in 10s
CI / gates (push) Successful in 32m51s
This commit is contained in:
@@ -8,14 +8,16 @@
|
||||
* `DIAGNOSTIC_CODES` to prove it at runtime too. A sixteenth code added to the
|
||||
* enum fails `tsc` here before it can reach the page as a bare dotted string.
|
||||
*
|
||||
* `link` points at the configuration surface that governs the failure. Those
|
||||
* are today's routes; the navigation restructure re-points them.
|
||||
* `link` points at the configuration surface that governs the failure. The
|
||||
* path alone decides which tab of that surface the detail page opens, so the
|
||||
* copy never carries a tab of its own to drift from it.
|
||||
*/
|
||||
|
||||
import { DIAGNOSTIC_CODES, type DiagnosticCode } from "@/lib/types";
|
||||
|
||||
/** The literal paths keep `link.to` assignable to a typed router `Link`. */
|
||||
export type CopyLinkPath = "/settings" | "/blocklists" | "/upstreams" | "/clients";
|
||||
export type CopyLinkPath =
|
||||
"/configuration/system" | "/configuration/protection" | "/configuration/resolution" | "/clients";
|
||||
|
||||
export interface EventCopy {
|
||||
title: string;
|
||||
@@ -39,9 +41,9 @@ export function copyFor(code: DiagnosticCode): EventCopy {
|
||||
);
|
||||
}
|
||||
|
||||
const SETTINGS = { to: "/settings", label: "Settings" } as const;
|
||||
const BLOCKLISTS = { to: "/blocklists", label: "Blocklists" } as const;
|
||||
const UPSTREAMS = { to: "/upstreams", label: "Upstreams" } as const;
|
||||
const SETTINGS = { to: "/configuration/system", label: "System" } as const;
|
||||
const BLOCKLISTS = { to: "/configuration/protection", label: "Blocklist sources" } as const;
|
||||
const UPSTREAMS = { to: "/configuration/resolution", label: "Upstreams" } as const;
|
||||
const CLIENTS = { to: "/clients", label: "Clients" } as const;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user