Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add min oCIS to app releases table #11580

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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