Add compliance registry snapshots

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-08-29 11:05:01 +02:00
parent 828895a436
commit 16c94c4cca
25 changed files with 781 additions and 199 deletions

View File

@@ -3,6 +3,7 @@ type Translator = (s: string) => string;
export const snapshotTypes = [
"DATA",
"NONCONFORMITY_REGISTRIES",
"COMPLIANCE_REGISTRIES",
] as const;
export function getSnapshotTypeLabel(__: Translator, type: string | null | undefined) {
@@ -34,6 +35,8 @@ export function getSnapshotTypeUrlPath(type?: string): string {
return "/data";
case "NONCONFORMITY_REGISTRIES":
return "/nonconformity-registries";
case "COMPLIANCE_REGISTRIES":
return "/compliance-registries";
default:
return "";
}