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

@@ -27,7 +27,7 @@ const listQuery = `
query($id: ID!, $first: Int, $after: CursorKey, $orderBy: ApplicabilityStatementOrder) {
node(id: $id) {
__typename
... on StateOfApplicability {
... on StatementOfApplicability {
applicabilityStatements(first: $first, after: $after, orderBy: $orderBy) {
totalCount
edges {
@@ -130,8 +130,8 @@ func NewCmdList(f *cmdutil.Factory) *cobra.Command {
if resp.Node == nil {
return nil, fmt.Errorf("statement of applicability %s not found", args[0])
}
if resp.Node.Typename != "StateOfApplicability" {
return nil, fmt.Errorf("expected StateOfApplicability node, got %s", resp.Node.Typename)
if resp.Node.Typename != "StatementOfApplicability" {
return nil, fmt.Errorf("expected StatementOfApplicability node, got %s", resp.Node.Typename)
}
return &resp.Node.ApplicabilityStatements, nil
},