Skip to content

Commit

Permalink
index: Align all sdk versions to begin with v
Browse files Browse the repository at this point in the history
Signed-off-by: FilipZajdel <[email protected]>
  • Loading branch information
FilipZajdel committed Jun 5, 2024
1 parent e04cc5f commit 405cdb7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
12 changes: 6 additions & 6 deletions index/golioth.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
"date": "2024-02-21T21:05:15Z",
"name": "Release template_v2.0.0",
"tag": "template_v2.0.0",
"sdk": "2.5.1"
"sdk": "v2.5.1"
},
{
"date": "2023-11-08T19:48:02Z",
"name": "Release template_v1.2.0",
"tag": "template_v1.2.0",
"sdk": "2.5.0"
"sdk": "v2.5.0"
},
{
"date": "2023-08-18T19:37:19Z",
"name": "Release 1.1.0",
"tag": "template_v1.1.0",
"sdk": "2.4.1"
"sdk": "v2.4.1"
},
{
"date": "2023-07-14T20:37:49Z",
"name": "template_v1.0.1",
"tag": "template_v1.0.1",
"sdk": "2.3.0"
"sdk": "v2.3.0"
}
]
},
Expand All @@ -47,7 +47,7 @@
"date": "2023-09-12T16:46:38Z",
"name": "CAN Asset Tracker RD v1.7.0",
"tag": "v1.7.0",
"sdk": "2.4.1"
"sdk": "v2.4.1"
}
]
},
Expand All @@ -63,7 +63,7 @@
"date": "2023-09-05T17:23:36Z",
"name": "Air Quality Monitor RD v1.2.0",
"tag": "v1.2.0",
"sdk": "2.4.1"
"sdk": "v2.4.1"
}
]
}
Expand Down
17 changes: 9 additions & 8 deletions index/onomondo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,48 +13,49 @@
"date": "2024-02-20T12:00:50Z",
"name": "v3.0.1",
"tag": "v3.0.1",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2024-02-08T13:27:49Z",
"name": "v3.0.0",
"tag": "v3.0.0",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2024-01-30T09:06:14Z",
"name": "v2.2.2",
"tag": "v2.2.2",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2023-12-14T13:39:57Z",
"name": "v2.2.1",
"tag": "v2.2.1",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2023-11-14T11:09:52Z",
"name": "v2.2.0",
"tag": "v2.2.0",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2023-11-06T20:33:30Z",
"name": "v2.1.0",
"tag": "v2.1.0",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2023-10-30T07:42:31Z",
"name": "v2.0.0",
"tag": "v2.0.0",
"sdk": "2.5.2"
"sdk": "v2.5.2"
},
{
"date": "2023-09-29T11:04:31Z",
"name": "v1.0.0",
"tag": "v1.0.0"
"tag": "v1.0.0",
"sdk": "v2.4.0"
}
]
}
Expand Down
1 change: 0 additions & 1 deletion site/src/app/ReleasesDropDownList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface Props {
};

function ReleasesDropDownList({ app, onReleaseChosen }: Props): JSX.Element {
console.log(app.releases ?? `${app.name} doesn't have releases`)
const releases = [{ label: app.defaultBranch, value: app.defaultBranch }, ...app.releases.map((release) => ({ label: release.tag, value: release.tag ?? '' })),];

return (
Expand Down
9 changes: 5 additions & 4 deletions site/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ export const appMetadataSchema = {
},
releases: {
type: 'array',
description: 'The collection of project`s releases.',
items: {
type: 'object',
properties: {
tag: { type: 'string' },
name: { type: 'string' },
date: { type: 'string', format: 'date' },
sdk: { type: 'string' },
tag: { type: 'string', description: 'Git tag of the released version.' },
name: { type: 'string', description: 'The title of the release.' },
date: { type: 'string', format: 'date', description: 'The date of publishing the release.' },
sdk: { type: 'string', description: 'The nRF Connect SDK version the release is compatible with.' },
},
required: ['tag', 'name', 'date', 'sdk'],
additionalProperties: false,
Expand Down

0 comments on commit 405cdb7

Please sign in to comment.