diff --git a/changelog/unreleased/enhancement-condensed-files-view b/changelog/unreleased/enhancement-condensed-files-view index ffd6899e2bb..93b8cf44d24 100644 --- a/changelog/unreleased/enhancement-condensed-files-view +++ b/changelog/unreleased/enhancement-condensed-files-view @@ -1,7 +1,7 @@ Enhancement: Add switch to enable condensed resource table We've added a switch to have a more condensed resource table. -The change gets saved to the route and persisted across folder +The change gets saved to the url and persisted across folder navigation in all files, spaces and favorites views. https://github.com/owncloud/web/pull/7976 diff --git a/changelog/unreleased/enhancement-resources-tiles-view b/changelog/unreleased/enhancement-resources-tiles-view new file mode 100644 index 00000000000..5c5d0fac35b --- /dev/null +++ b/changelog/unreleased/enhancement-resources-tiles-view @@ -0,0 +1,9 @@ +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 url and persisted across resource navigation. + +https://github.com/owncloud/web/pull/7991 +https://github.com/owncloud/web/issues/6378 +https://github.com/owncloud/web/issues/6379 +https://github.com/owncloud/web/issues/6380 diff --git a/packages/design-system/changelog/unreleased/enhancement-oc-resource-optional-icon b/packages/design-system/changelog/unreleased/enhancement-oc-resource-optional-icon new file mode 100644 index 00000000000..cd9b3e8d2ce --- /dev/null +++ b/packages/design-system/changelog/unreleased/enhancement-oc-resource-optional-icon @@ -0,0 +1,5 @@ +Enhancement: Add option to hide icon/thumbnail OcResource + +We added a property to the OcResource component so it can be displayed without icon/thumbnail. + +https://github.com/owncloud/web/pull/7991 diff --git a/packages/design-system/src/components/OcResource/OcResource.spec.ts b/packages/design-system/src/components/OcResource/OcResource.spec.ts index 8c85981b5d8..9ebe182b25f 100644 --- a/packages/design-system/src/components/OcResource/OcResource.spec.ts +++ b/packages/design-system/src/components/OcResource/OcResource.spec.ts @@ -128,4 +128,20 @@ describe('OcResource', () => { expect(wrapper.html()).toMatchSnapshot() }) + + it('can be used without icon/thumbnail', () => { + const wrapper = mount(Resource, { + props: { + resource: fileResourceWithoutParentFoldername, + isIconDisplayed: false, + parentFolderNameDefault: 'Example parent folder name' + }, + global: { + stubs + } + }) + + expect(wrapper.find('oc-resource-thumbnail').exists()).toBeFalsy() + expect(wrapper.find('oc-resource-icon').exists()).toBeFalsy() + }) }) diff --git a/packages/design-system/src/components/OcResource/OcResource.vue b/packages/design-system/src/components/OcResource/OcResource.vue index 69e52772eb7..f0c9bc6876a 100644 --- a/packages/design-system/src/components/OcResource/OcResource.vue +++ b/packages/design-system/src/components/OcResource/OcResource.vue @@ -1,6 +1,7 @@ + + + + + +