Rename State of Applicability to Statement of Applicability

Rename the entity across the full stack: database table
(states_of_applicability → statements_of_applicability), Go model,
GraphQL types, MCP specification, CLI commands, frontend components,
routes, and display labels. Includes a migration to rename the table
and its foreign key column.

Widen sidebar from 260px to 280px to fit the longer label.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-09 13:06:06 +02:00
parent 050073ab3c
commit 5fd580e995
48 changed files with 978 additions and 957 deletions

View File

@@ -22,7 +22,7 @@ export const snapshotTypes = [
"FINDINGS",
"OBLIGATIONS",
"PROCESSING_ACTIVITIES",
"STATES_OF_APPLICABILITY",
"STATEMENTS_OF_APPLICABILITY",
] as const;
export function getSnapshotTypeLabel(__: Translator, type: string | null | undefined) {
@@ -47,8 +47,8 @@ export function getSnapshotTypeLabel(__: Translator, type: string | null | undef
return __("Obligations");
case "PROCESSING_ACTIVITIES":
return __("Processing Activities");
case "STATES_OF_APPLICABILITY":
return __("States of Applicability");
case "STATEMENTS_OF_APPLICABILITY":
return __("Statements of Applicability");
default:
return __("Unknown");
}
@@ -72,8 +72,8 @@ export function getSnapshotTypeUrlPath(type?: string): string {
return "/obligations";
case "PROCESSING_ACTIVITIES":
return "/processing-activities";
case "STATES_OF_APPLICABILITY":
return "/states-of-applicability";
case "STATEMENTS_OF_APPLICABILITY":
return "/statements-of-applicability";
default:
return "";
}

View File

@@ -47,7 +47,7 @@ export function Sidebar({ children }: PropsWithChildren) {
<aside
className={clsx(
"border-r border-border-solid relative pt-16 flex-none",
open ? "px-4 w-[260px]" : "px-2",
open ? "px-4 w-[280px]" : "px-2",
)}
>
{children}