From f25e7afb032c4ad2b206c7862a612f1c8f3bcf0c Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Wed, 28 Dec 2022 21:38:33 +0100 Subject: [PATCH] Update PoC --- changelog/unreleased/enhancement-tiles-view | 7 +++ .../src/components/AppBar/AppBar.vue | 6 ++- .../components/FilesList/ResourceTable.vue | 45 +++++++++++-------- .../src/composables/viewMode/constants.ts | 8 ++++ .../AppBar/__snapshots__/AppBar.spec.ts.snap | 2 +- 5 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 changelog/unreleased/enhancement-tiles-view diff --git a/changelog/unreleased/enhancement-tiles-view b/changelog/unreleased/enhancement-tiles-view new file mode 100644 index 00000000000..05fb5c1335c --- /dev/null +++ b/changelog/unreleased/enhancement-tiles-view @@ -0,0 +1,7 @@ +Enhancement: Add tiles view for resource display + +We've added a switch to change from the known resource table to a tiles view. +The change gets saved to the route and persisted across resource navigation. + +https://github.com/owncloud/web/pull/7991 +https://github.com/owncloud/web/issues/6378 diff --git a/packages/web-app-files/src/components/AppBar/AppBar.vue b/packages/web-app-files/src/components/AppBar/AppBar.vue index e5851394794..ce25f4b0aec 100644 --- a/packages/web-app-files/src/components/AppBar/AppBar.vue +++ b/packages/web-app-files/src/components/AppBar/AppBar.vue @@ -142,7 +142,11 @@ export default defineComponent({ if (!this.displayViewModeSwitch) { return [] } - return [ViewModeConstants.condensedTable, ViewModeConstants.default] + return [ + ViewModeConstants.tilesView, + ViewModeConstants.condensedTable, + ViewModeConstants.default + ] } }, mounted() { diff --git a/packages/web-app-files/src/components/FilesList/ResourceTable.vue b/packages/web-app-files/src/components/FilesList/ResourceTable.vue index 2f78d707014..c04549ee66a 100644 --- a/packages/web-app-files/src/components/FilesList/ResourceTable.vue +++ b/packages/web-app-files/src/components/FilesList/ResourceTable.vue @@ -1,5 +1,6 @@ - +