Skip to content

Commit

Permalink
feat: add min oCIS to app releases table
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Sep 13, 2024
1 parent 9a93ca2 commit 678be48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
22 changes: 13 additions & 9 deletions packages/web-app-app-store/src/components/AppVersions.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<template>
<oc-table
class="oc-width-1-1"
:data="data"
:fields="fields"
padding-x="remove"
:has-header="false"
>
<oc-table class="oc-width-1-1" :data="data" :fields="fields" padding-x="remove">
<template #version="{ item }">
v{{ item.version }}
<oc-tag v-if="item.version === app.mostRecentVersion.version" size="small" class="oc-ml-s">
Expand Down Expand Up @@ -41,24 +35,34 @@ export default defineComponent({
return props.app.versions.map((version) => {
return {
...version,
minOcis: version.minOcis || '-',
id: version.version
}
})
})
const fields = computed(() => {
return [
{
name: 'minOcis',
type: 'raw',
width: 'shrink',
wrap: 'nowrap',
title: $gettext('oCIS Version')
},
{
name: 'version',
type: 'slot',
width: 'expand',
wrap: 'truncate'
wrap: 'truncate',
title: $gettext('App Version')
},
{
name: 'actions',
type: 'slot',
alignH: 'right',
width: 'shrink',
wrap: 'nowrap'
wrap: 'nowrap',
title: ''
}
]
})
Expand Down
1 change: 1 addition & 0 deletions packages/web-app-app-store/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const AppStoreConfigSchema = z.object({

export const AppVersionSchema = z.object({
version: z.string(),
minOcis: z.string().optional(),
url: z.string(),
filename: z.string().optional()
})
Expand Down

0 comments on commit 678be48

Please sign in to comment.