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

Implement spaces list #6199

Merged
merged 18 commits into from
Jan 13, 2022
Merged

Implement spaces list #6199

merged 18 commits into from
Jan 13, 2022

Conversation

JammingBen
Copy link
Collaborator

@JammingBen JammingBen commented Dec 27, 2021

Description

Adds an entry point to access all available spaces for the user.

Related Issue

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Implement suitable software architecture
  • Design (?)
  • Tests
  • Changelog item

@JammingBen JammingBen force-pushed the list-spaces branch 2 times, most recently from b39d0c8 to 3f86aa9 Compare January 3, 2022 13:04
@JammingBen
Copy link
Collaborator Author

JammingBen commented Jan 3, 2022

This is ready for a first review cycle. A few annotations:

  • We're not sure about the routing. The way we implemented this causes issues with the active flag. Assuming the spaces live under /spaces/projects, this has to be fixed.
    image
  • The missing spaces icon in the left sidebar requires the new ODS release.
  • URL for Learn more about spaces is still missing.
  • Should we hide the view options?
    image
  • It UI Kit being removed in the near future? Then we have change the classes being used.

@JammingBen JammingBen marked this pull request as ready for review January 3, 2022 13:15
@JammingBen JammingBen changed the title Implement spaces overview Implement spaces list Jan 3, 2022
JammingBen added a commit that referenced this pull request Jan 3, 2022
@owncloud owncloud deleted a comment from update-docs bot Jan 3, 2022
@kulmann
Copy link
Member

kulmann commented Jan 3, 2022

@dragotin how's the learn more about spaces link planned? Is there already some info page on owncloud.com? Or can we at least define a URL for it (without the page actually existing) which can be placed in the code?

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The static nav item is an issue. We need to have an enabled spaces capability. IMO we should add an optional isEnabled callback to nav items, similar to the file action mixins. Could you look into that? Needs the store in the param object so that you can check the capabilities.

packages/web-app-files/src/index.js Show resolved Hide resolved
packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
@ownclouders
Copy link
Contributor

Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/21530/41/1
The following scenarios passed on retry:

  • webUISharingExternalToRoot/federationSharing.feature:378

packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/index.js Show resolved Hide resolved
packages/web-app-files/src/index.js Outdated Show resolved Hide resolved
@ownclouders
Copy link
Contributor

Results for oC10SharingAccept https://drone.owncloud.com/owncloud/web/21540/15/1
The following scenarios passed on retry:

  • webUISharingAcceptSharesToRoot/acceptShares.feature:108

@ownclouders
Copy link
Contributor

Results for oCISSharingInternal3 https://drone.owncloud.com/owncloud/web/21543/59/1
The following scenarios passed on retry:

  • webUISharingInternalGroupsSharingIndicator/shareWithGroups.feature:136

@ownclouders
Copy link
Contributor

Results for oC10SharingPublic2 https://drone.owncloud.com/owncloud/web/21543/38/1
The following scenarios passed on retry:

  • webUISharingPublicDifferentRoles/shareByPublicLinkDifferentRoles.feature:286

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicks. ;-)
Please rebase to current master. Icons/ODS update has been merged to web master.

In index.js of the files app you can append personal/ to the route of the All files nav item. That will fix the duplicate highlighting of active nav items in the sidebar.

packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/spaces/views/Spaces.vue Outdated Show resolved Hide resolved
packages/web-app-files/src/index.js Outdated Show resolved Hide resolved
@kulmann
Copy link
Member

kulmann commented Jan 5, 2022

  • Should we hide the view options?

Makes sense, yes.

  • Is UI Kit being removed in the near future? Then we have change the classes being used.

Yes, planned to be removed this week. 😉 basically anything that is uk- will be oc- then AFAIK. @pascalwengerter can say more about this.

@JammingBen
Copy link
Collaborator Author

Addressed your comments 👍 Two questions left:

  • See Implement spaces list #6199 (comment) -> Should we keep the spaces "header" regardless of the no-content-message? If so, it's hard to 100% center the message vertically, because height: 100% does not work. We added 50% for now, it's better, but not exactly centered.
  • We removed the view options. Now the app bar is empty but still takes away some space. Okay, or hide as well? I think the spaces won't use the existing app bar at all, but rather their "own" implementation.
    image

@kulmann
Copy link
Member

kulmann commented Jan 5, 2022

  • See Implement spaces list #6199 (comment) -> Should we keep the spaces "header" regardless of the no-content-message? If so, it's hard to 100% center the message vertically, because height: 100% does not work. We added 50% for now, it's better, but not exactly centered.

Awesome, looks better now. 👍

  • We removed the view options. Now the app bar is empty but still takes away some space. Okay, or hide as well? I think the spaces won't use the existing app bar at all, but rather their "own" implementation.

I hope that we can use the same AppBar for spaces as for the other views, but it will probably need some restructuring. ;-) For the overview of the spaces I think we can hide it completely.

Copy link
Collaborator

@fschade fschade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found some small things.
I would love to see some e2e tests as part of this pr.

packages/web-app-files/src/router/spaces.ts Outdated Show resolved Hide resolved
packages/web-app-files/src/spaces/sdk/index.ts Outdated Show resolved Hide resolved
packages/web-app-files/tests/unit/spaces/Spaces.spec.js Outdated Show resolved Hide resolved
packages/web-app-files/tests/unit/spaces/Spaces.spec.js Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jan 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.0% 87.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 💪

@kulmann
Copy link
Member

kulmann commented Jan 13, 2022

One thing that I found is, that the spaces are neither sorted by created time, nor by name. Not an issue for this PR, but please open a ticket about default sorting or simply sort by name for now.

"license": "AGPL-3.0",
"main": "src/index.ts",
"scripts": {
"generate-openapi": "rm -rf src/generated && docker run --rm -v \"${PWD}/src:/local\" openapitools/openapi-generator-cli generate -i https://github.com/raw/owncloud/libre-graph-api/main/api/openapi-spec/v0.0.yaml -g typescript-axios -o /local/generated"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JammingBen
Copy link
Collaborator Author

One thing that I found is, that the spaces are neither sorted by created time, nor by name. Not an issue for this PR, but please open a ticket about default sorting or simply sort by name for now.

I've created #6253, since we really want to merge this now as the pipeline is currently green for once :D

@JammingBen JammingBen merged commit 34ffb3f into master Jan 13, 2022
@delete-merged-branch delete-merged-branch bot deleted the list-spaces branch January 13, 2022 15:18
@AlexAndBear
Copy link
Contributor

One thing that I found is, that the spaces are neither sorted by created time, nor by name. Not an issue for this PR, but please open a ticket about default sorting or simply sort by name for now.

Sorting should be a task for the API, this feature is yet not there, so we just wait until it is done and fix this in the next PR 😇

JammingBen added a commit that referenced this pull request Jan 13, 2022
@kulmann
Copy link
Member

kulmann commented Jan 13, 2022

Sorting should be a task for the API, this feature is yet not there, so we just wait until it is done and fix this in the next PR 😇

Yes, of course something for the API. I meant it as a mitigation for the status quo. Which is a oneliner. ;-) if sorting in the backend happens soon then it's fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Listing: Display Spaces overview
7 participants