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:
@@ -24,9 +24,9 @@ import (
|
||||
)
|
||||
|
||||
const updateMutation = `
|
||||
mutation($input: UpdateStateOfApplicabilityInput!) {
|
||||
updateStateOfApplicability(input: $input) {
|
||||
stateOfApplicability {
|
||||
mutation($input: UpdateStatementOfApplicabilityInput!) {
|
||||
updateStatementOfApplicability(input: $input) {
|
||||
statementOfApplicability {
|
||||
id
|
||||
name
|
||||
}
|
||||
@@ -35,12 +35,12 @@ mutation($input: UpdateStateOfApplicabilityInput!) {
|
||||
`
|
||||
|
||||
type updateResponse struct {
|
||||
UpdateStateOfApplicability struct {
|
||||
StateOfApplicability struct {
|
||||
UpdateStatementOfApplicability struct {
|
||||
StatementOfApplicability struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"stateOfApplicability"`
|
||||
} `json:"updateStateOfApplicability"`
|
||||
} `json:"statementOfApplicability"`
|
||||
} `json:"updateStatementOfApplicability"`
|
||||
}
|
||||
|
||||
func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
|
||||
@@ -103,7 +103,7 @@ func NewCmdUpdate(f *cmdutil.Factory) *cobra.Command {
|
||||
return fmt.Errorf("cannot parse response: %w", err)
|
||||
}
|
||||
|
||||
s := resp.UpdateStateOfApplicability.StateOfApplicability
|
||||
s := resp.UpdateStatementOfApplicability.StatementOfApplicability
|
||||
_, _ = fmt.Fprintf(
|
||||
f.IOStreams.Out,
|
||||
"Updated statement of applicability %s (%s)\n",
|
||||
|
||||
Reference in New Issue
Block a user