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 createMutation = `
|
||||
mutation($input: CreateStateOfApplicabilityInput!) {
|
||||
createStateOfApplicability(input: $input) {
|
||||
stateOfApplicabilityEdge {
|
||||
mutation($input: CreateStatementOfApplicabilityInput!) {
|
||||
createStatementOfApplicability(input: $input) {
|
||||
statementOfApplicabilityEdge {
|
||||
node {
|
||||
id
|
||||
name
|
||||
@@ -38,15 +38,15 @@ mutation($input: CreateStateOfApplicabilityInput!) {
|
||||
`
|
||||
|
||||
type createResponse struct {
|
||||
CreateStateOfApplicability struct {
|
||||
StateOfApplicabilityEdge struct {
|
||||
CreateStatementOfApplicability struct {
|
||||
StatementOfApplicabilityEdge struct {
|
||||
Node struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
} `json:"node"`
|
||||
} `json:"stateOfApplicabilityEdge"`
|
||||
} `json:"createStateOfApplicability"`
|
||||
} `json:"statementOfApplicabilityEdge"`
|
||||
} `json:"createStatementOfApplicability"`
|
||||
}
|
||||
|
||||
func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
|
||||
@@ -107,7 +107,7 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
|
||||
return fmt.Errorf("cannot parse response: %w", err)
|
||||
}
|
||||
|
||||
s := resp.CreateStateOfApplicability.StateOfApplicabilityEdge.Node
|
||||
s := resp.CreateStatementOfApplicability.StatementOfApplicabilityEdge.Node
|
||||
_, _ = fmt.Fprintf(
|
||||
f.IOStreams.Out,
|
||||
"Created statement of applicability %s (%s)\n",
|
||||
|
||||
Reference in New Issue
Block a user