From cf02e809713b67fe3c97dc91b85a60738cbb6270 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Wed, 4 Sep 2024 20:59:42 +0530 Subject: [PATCH] chore: use normal sort order --- common/src/components/Fields.jsx | 2 +- .../docs/reference/topology/components.mdx | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/common/src/components/Fields.jsx b/common/src/components/Fields.jsx index 89485dca..b871b632 100644 --- a/common/src/components/Fields.jsx +++ b/common/src/components/Fields.jsx @@ -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); diff --git a/mission-control/docs/reference/topology/components.mdx b/mission-control/docs/reference/topology/components.mdx index 727f33fd..76141d5e 100644 --- a/mission-control/docs/reference/topology/components.mdx +++ b/mission-control/docs/reference/topology/components.mdx @@ -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", @@ -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", @@ -118,7 +122,8 @@ title: Component { "field": "created_at", "scheme": "`time.Time`", - "description": "Created timestamp" + "description": "Created timestamp", + "required": true, }, { "field": "updated_at",