-
Notifications
You must be signed in to change notification settings - Fork 159
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
[full-ci] Add admin space sidebar details #8192
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
b1b3037
to
ae29b83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the panels a bit confusing at the moment. We have SpaceDetails
if one space is selected and we have DetailsPanel
if no or >1 spaces are selected. I would go for one of the following:
- Use one panel (
SpaceDetails
) to handle all cases. Problem with this approach is that theSpaceDetails
panel is used in the files-app as well, where we don't want this. Hence I'd rather do it like it's done in the files-app already: - Have 3 separate panels for all 3 cases:
NoSelection
(0 spaces),SpaceDetails
(1 space),SpaceDetailsMultiple
(2 or more spaces). Those components can live inweb-pkg
because we might re-use them in the files app as well. The check which panels needs to be displayed would then be done inpackages/web-app-admin-settings/src/views/Spaces.vue
via theenabled
prop of each panel.
And we also need to make sure to not display the space image in SpaceDetails
in the admin-settings. You could just introduce another property showImage
which defaults to true
.
9f8db69
to
578c06a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍 Just a few minor things I've noticed.
changelog/unreleased/enhancement-add-admin-space-details-sidebar
Outdated
Show resolved
Hide resolved
af29e08
to
4e82032
Compare
@@ -0,0 +1,19 @@ | |||
<template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the Details
folder should have another parent folder named Spaces
. And then please move SpaceNoSelection.vue
one level up. Result should be this layout:
- Spaces
- Details
- SpaceDetails.vue
- SpaceDetailsMultiple.vue
- SpaceNoSelection.vue
In a followup PR you could make use of the SpaceNoSelection
component in the Projects.vue
view of the files app.
packages/web-pkg/src/components/sideBar/Details/SpaceDetails.vue
Outdated
Show resolved
Hide resolved
…ple spaces selection
8d75fc6
to
f668b2d
Compare
packages/web-pkg/src/components/sideBar/Details/SpaceDetails.vue
Outdated
Show resolved
Hide resolved
<div class="oc-mt-xl"> | ||
<div class="oc-flex space-info"> | ||
<oc-icon name="layout-grid" size="xxlarge" /> | ||
<p v-translate>Multiple spaces selected</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open a followup issue, the multi selected space panel could show some more info. E.g. how many spaces are selected and what their combined quota values are (total, remaining, used).
Followup: #8222 |
packages/web-pkg/tests/unit/components/sidebar/Details/SpaceDetails.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/owncloud/web/pull/8192/files#r1067973359 is still unresolved. Other than that good now. Please also add tests in a followup.
Kudos, SonarCloud Quality Gate passed! |
Description
See #8219
Related Issue
Types of changes
Checklist: