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 6dfec15
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/enhancement-app-store-min-ocis-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Show min oCIS version in app details (app store)

We're now showing the minimum required oCIS version of apps in the app releases of the app store.

https://github.com/owncloud/web/pull/11580
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 ? `v${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 6dfec15

Please sign in to comment.