Skip to content

Commit

Permalink
chore: use normal sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Sep 4, 2024
1 parent 472271d commit cf02e80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/src/components/Fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Fields({ common = [], rows = [], oneOf, anyOf, connectio
return 1
}

return 0
return a.field.localeCompare(b.field)
}
rows = rows.concat(common.filter(row => row.required))
rows.sort(fieldSorter);
Expand Down
15 changes: 10 additions & 5 deletions mission-control/docs/reference/topology/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ title: Component
{
"field": "id",
"scheme": "`uuid`",
"description": "The id of the component"
"description": "The id of the component",
"required": true,
},
{
"field": "name",
"scheme": "string",
"description": "The name of the component"
"description": "The name of the component",
"required": true,
},
{
"field": "namespace",
"scheme": "string",
"description": "The namespace of the component"
"description": "The namespace of the component",
"required": true,
},
{
"field": "description",
Expand Down Expand Up @@ -88,7 +91,8 @@ title: Component
{
"field": "type",
"scheme": "string",
"description": "The type of the component"
"description": "The type of the component",
"required": true,
},
{
"field": "cost_per_minute",

Check failure on line 98 in mission-control/docs/reference/topology/components.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] mission-control/docs/reference/topology/components.mdx#L98

[Flanksource.Spelling] Is 'cost_per_minute' spelled correctly? Is it missing code formatting?
Raw output
{"message": "[Flanksource.Spelling] Is 'cost_per_minute' spelled correctly? Is it missing code formatting?", "location": {"path": "mission-control/docs/reference/topology/components.mdx", "range": {"start": {"line": 98, "column": 19}}}, "severity": "ERROR"}
Expand Down Expand Up @@ -118,7 +122,8 @@ title: Component
{
"field": "created_at",

Check failure on line 123 in mission-control/docs/reference/topology/components.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] mission-control/docs/reference/topology/components.mdx#L123

[Flanksource.Spelling] Is 'created_at' spelled correctly? Is it missing code formatting?
Raw output
{"message": "[Flanksource.Spelling] Is 'created_at' spelled correctly? Is it missing code formatting?", "location": {"path": "mission-control/docs/reference/topology/components.mdx", "range": {"start": {"line": 123, "column": 19}}}, "severity": "ERROR"}
"scheme": "`time.Time`",
"description": "Created timestamp"
"description": "Created timestamp",
"required": true,
},
{
"field": "updated_at",

Check failure on line 129 in mission-control/docs/reference/topology/components.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] mission-control/docs/reference/topology/components.mdx#L129

[Flanksource.Spelling] Is 'updated_at' spelled correctly? Is it missing code formatting?
Raw output
{"message": "[Flanksource.Spelling] Is 'updated_at' spelled correctly? Is it missing code formatting?", "location": {"path": "mission-control/docs/reference/topology/components.mdx", "range": {"start": {"line": 129, "column": 19}}}, "severity": "ERROR"}
Expand Down

0 comments on commit cf02e80

Please sign in to comment.