client icon indicating copy to clipboard operation
client copied to clipboard

[Spaces] Separate Spaces from Personal Files and Shares

Open michaelstingl opened this issue 2 years ago • 1 comments

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Feature description

On the account page, it would be nice, to have Personal Files and Shares on top, then all your spaces below, with some visual separation.

Proposed solution

See current iOS implementation for inspiration: CleanShot 2022-08-18 at 12 15 40@2x

Alternative solutions you considered

No response

Additional context

Current state:

CleanShot 2022-08-18 at 12 06 09@2x

testpilotcloud 3.0.0.8351-daily20220818 804d66 Aug 18 2022 02:40:12
Libraries Qt 5.15.5, OpenSSL 1.1.1q 5 Jul 2022
Using virtual files plugin: suffix
osx-21.6.0

michaelstingl avatar Aug 18 '22 10:08 michaelstingl

This issue was marked stale because it has been open for 30 days with no activity. Remove the stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 18 '22 00:09 github-actions[bot]

This has to be done after https://github.com/owncloud/client/pull/10224 goes in, it's in the same code.

erikjv avatar Nov 02 '22 16:11 erikjv

First attempt can be seen in https://github.com/owncloud/client/pull/10265

TheOneRing avatar Nov 18 '22 12:11 TheOneRing

List views on iOS support grouping, while Qt does not. One option is to add a separator item, but that would complicate the underlying model code even more. Another option is to sort the "personal" and "shared" spaces into different items in a treeview, but this would be a big change to the underlying model, the views, and the painting code. We thing that complicating this code is a good idea, on the contrary: we are simplifying it by moving the "Add" button out of the list and into the surrounding dialog.

So I would propose to take the simple route: just add an extra text label for shared spaces. See the "(Shared)" text in the screenshot below.

Screenshot 2023-02-02 at 15 18 09

erikjv avatar Feb 02 '23 14:02 erikjv

Is it possible to separate

  • Personal
  • Shares
  • Spaces just via different icons?

image

tbsbdr avatar Feb 13 '23 13:02 tbsbdr

Looks sorting not properly working:

CleanShot 2023-02-13 at 14 16 11@2x

testpilotcloud 4.0.0.10074-daily20230209 6ba0a9
Libraries Qt 5.15.8, OpenSSL 1.1.1t 7 Feb 2023
Using virtual files plugin: suffix
osx-22.2.0

New issue:

  • https://github.com/owncloud/client/issues/10501

michaelstingl avatar Feb 13 '23 13:02 michaelstingl

Proposal was, to use different icons:

CleanShot 2023-02-14 at 11 08 35@2x+ CleanShot 2023-02-14 at 12 35 44@2x+

Personal

  • http://ocis.ocis-traefik.latest.owncloud.works/icons/resource-type-folder-fill.svg

Shares

  • http://ocis.ocis-traefik.latest.owncloud.works/icons/share-forward-fill.svg

Project Spaces

  • http://ocis.ocis-traefik.latest.owncloud.works/icons/layout-grid-fill.svg (or Space image thumbnail)

Default icons Gould be retrieved from theme.json

  • https://github.com/owncloud/web/issues/8424

@fmoc already separated the overlay status icons

/cc @TheOneRing

michaelstingl avatar Feb 14 '23 11:02 michaelstingl

Proposal from @TheOneRing :

  • Graph API Drives endpoint should respond with a default image, if no Space image is set.

michaelstingl avatar Mar 17 '23 09:03 michaelstingl

Alternatively the web fronted should set a default image if none is set by the user.

TheOneRing avatar Mar 17 '23 11:03 TheOneRing

Is using a default icon an option as well? I.e. space returns the icon name from the remixicon icon set. Could be used by all clients then if no space image is set.

kulmann avatar Mar 21 '23 10:03 kulmann

Is using a default icon an option as well? I.e. space returns the icon name from the remixicon icon set. Could be used by all clients then if no space image is set.

Is that icon available in the new branding endpoint? Or are you suggesting to start a shared resources initiative?

TheOneRing avatar Mar 21 '23 10:03 TheOneRing

space returns the icon name

Should return full URL please

michaelstingl avatar Mar 21 '23 10:03 michaelstingl

oCIS issue:

  • https://github.com/owncloud/ocis/issues/5895

michaelstingl avatar Mar 21 '23 14:03 michaelstingl

Icons look all the same in ownCloud 4.0.0.10645-daily20230414, mac

Screenshot 2023-04-14 at 10 44 47

HanaGemela avatar Apr 14 '23 08:04 HanaGemela

Icons look all the same in ownCloud 4.0.0.10645-daily20230414, mac

Screenshot 2023-04-14 at 10 44 47

Works as designed ✅

Backend need to provide different icons:

  • https://github.com/owncloud/ocis/issues/5895

Currently you only see different icons when you upload a Space image.

michaelstingl avatar Apr 14 '23 10:04 michaelstingl

Wouldn't it be nice to crop the images the same way server does? (I'm not saying the server approach is the correct one, just that both of them should be the same)

Screenshot 2023-04-14 at 13 58 15 Screenshot 2023-04-14 at 14 07 31

HanaGemela avatar Apr 14 '23 12:04 HanaGemela

@michaelstingl confirmed that it works as designed. Client displays what server provides

HanaGemela avatar Apr 18 '23 08:04 HanaGemela