-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make viewoption modes configurable via appBar || Extend OcResourceIco…
…n for spaces (#8105)
- Loading branch information
1 parent
f707192
commit 508c716
Showing
32 changed files
with
339 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
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 resource navigation. | ||
The change gets saved to the route and persisted across folder | ||
navigation in all files, spaces and favorites views. | ||
|
||
https://github.com/owncloud/web/pull/7976 | ||
https://github.com/owncloud/web/pull/8105 | ||
https://github.com/owncloud/web/issues/6380 |
5 changes: 5 additions & 0 deletions
5
packages/design-system/changelog/unreleased/enhancement-resource-icon-space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Make OcResourceIcon accept space resource | ||
|
||
We have modified the OcResourceIcon component to show the space icon if a space resource is passed. | ||
|
||
https://github.com/owncloud/web/pull/8105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/design-system/src/components/OcResourceIcon/OcResourceIcon.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { shallowMount } from 'web-test-helpers' | ||
import { AVAILABLE_SIZES } from '../../helpers/constants' | ||
import { OcResourceIcon } from '..' | ||
|
||
const resources = ['file', 'folder', 'space'] | ||
|
||
describe('OcResourceIcon', () => { | ||
resources.forEach((resourceType) => { | ||
AVAILABLE_SIZES.forEach((size) => { | ||
it(`renders OcIcon for resource type ${resourceType} in size ${size}`, () => { | ||
const { wrapper } = getWrapper({ resourceType, size }) | ||
expect(wrapper.html()).toMatchSnapshot() | ||
}) | ||
}) | ||
}) | ||
}) | ||
|
||
function getWrapper(props) { | ||
return { | ||
wrapper: shallowMount(OcResourceIcon as any, { | ||
props: { | ||
resource: { type: props.resourceType }, | ||
size: props.size | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.