Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[full-ci] Refactor extension appBar design/concept - #8447

Merged
JammingBen merged 11 commits into
owncloud:masterfrom
pascalwengerter:feature/8422
Jul 11, 2023
Merged

JammingBen merged 11 commits into
owncloud:masterfrom
pascalwengerter:feature/8422

Conversation

@pascalwengerter

Copy link
Copy Markdown
Contributor

Description

Details (esp. design) tbd, just wanted to make this take into consideration the existing apps (and try to limit the codechanges needed)

Related Issue

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

45.5% 45.5% Coverage
0.0% 0.0% Duplication

@ownclouders

ownclouders commented Feb 27, 2023 •

Copy link
Copy Markdown
Contributor

Results for acceptance oC10 https://drone.owncloud.com/owncloud/web/36230/20/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUIPreview-mediaPreview_feature-L106.png

webUIPreview-mediaPreview_feature-L106.png

webUIPreview-mediaPreview_feature-L114.png

webUIPreview-mediaPreview_feature-L114.png

webUIPreview-mediaPreview_feature-L122.png

webUIPreview-mediaPreview_feature-L122.png

webUIPreview-mediaPreview_feature-L138.png

webUIPreview-mediaPreview_feature-L138.png

webUIPreview-mediaPreview_feature-L139.png

webUIPreview-mediaPreview_feature-L139.png

webUIPreview-mediaPreview_feature-L14.png

webUIPreview-mediaPreview_feature-L14.png

webUIPreview-mediaPreview_feature-L140.png

webUIPreview-mediaPreview_feature-L140.png

webUIPreview-mediaPreview_feature-L143.png

webUIPreview-mediaPreview_feature-L143.png

webUIPreview-mediaPreview_feature-L15.png

webUIPreview-mediaPreview_feature-L15.png

webUIPreview-mediaPreview_feature-L153.png

webUIPreview-mediaPreview_feature-L153.png

webUIPreview-mediaPreview_feature-L16.png

webUIPreview-mediaPreview_feature-L16.png

webUIPreview-mediaPreview_feature-L18.png

webUIPreview-mediaPreview_feature-L18.png

webUIPreview-mediaPreview_feature-L25.png

webUIPreview-mediaPreview_feature-L25.png

webUIPreview-mediaPreview_feature-L35.png

webUIPreview-mediaPreview_feature-L35.png

webUIPreview-mediaPreview_feature-L56.png

webUIPreview-mediaPreview_feature-L56.png

webUIPreview-mediaPreview_feature-L57.png

webUIPreview-mediaPreview_feature-L57.png

webUIPreview-mediaPreview_feature-L60.png

webUIPreview-mediaPreview_feature-L60.png

webUIPreview-mediaPreview_feature-L68.png

webUIPreview-mediaPreview_feature-L68.png

webUIPreview-mediaPreview_feature-L77.png

webUIPreview-mediaPreview_feature-L77.png

webUIPreview-mediaPreview_feature-L84.png

webUIPreview-mediaPreview_feature-L84.png

webUIPreview-mediaPreview_feature-L91.png

webUIPreview-mediaPreview_feature-L91.png

webUIPreview-mediaPreview_feature-L98.png

webUIPreview-mediaPreview_feature-L98.png

@pascalwengerter pascalwengerter changed the title Refactor extension appBar design/concept [full-ci] Refactor extension appBar design/concept May 31, 2023
@pascalwengerter
pascalwengerter marked this pull request as ready for review May 31, 2023 19:36
Comment thread packages/web-app-external/src/App.vue Resolved
@ownclouders

ownclouders commented May 31, 2023 •

Copy link
Copy Markdown
Contributor

Results for acceptance oCIS https://drone.owncloud.com/owncloud/web/36230/50/1

💥 The acceptance tests failed on retry. Please find the screenshots inside ...

webUIPreview-mediaPreview_feature-L106.png

webUIPreview-mediaPreview_feature-L106.png

webUIPreview-mediaPreview_feature-L114.png

webUIPreview-mediaPreview_feature-L114.png

webUIPreview-mediaPreview_feature-L122.png

webUIPreview-mediaPreview_feature-L122.png

webUIPreview-mediaPreview_feature-L138.png

webUIPreview-mediaPreview_feature-L138.png

webUIPreview-mediaPreview_feature-L139.png

webUIPreview-mediaPreview_feature-L139.png

webUIPreview-mediaPreview_feature-L14.png

webUIPreview-mediaPreview_feature-L14.png

webUIPreview-mediaPreview_feature-L140.png

webUIPreview-mediaPreview_feature-L140.png

webUIPreview-mediaPreview_feature-L143.png

webUIPreview-mediaPreview_feature-L143.png

webUIPreview-mediaPreview_feature-L15.png

webUIPreview-mediaPreview_feature-L15.png

webUIPreview-mediaPreview_feature-L153.png

webUIPreview-mediaPreview_feature-L153.png

webUIPreview-mediaPreview_feature-L16.png

webUIPreview-mediaPreview_feature-L16.png

webUIPreview-mediaPreview_feature-L18.png

webUIPreview-mediaPreview_feature-L18.png

webUIPreview-mediaPreview_feature-L25.png

webUIPreview-mediaPreview_feature-L25.png

webUIPreview-mediaPreview_feature-L35.png

webUIPreview-mediaPreview_feature-L35.png

webUIPreview-mediaPreview_feature-L56.png

webUIPreview-mediaPreview_feature-L56.png

webUIPreview-mediaPreview_feature-L57.png

webUIPreview-mediaPreview_feature-L57.png

webUIPreview-mediaPreview_feature-L60.png

webUIPreview-mediaPreview_feature-L60.png

webUIPreview-mediaPreview_feature-L68.png

webUIPreview-mediaPreview_feature-L68.png

webUIPreview-mediaPreview_feature-L77.png

webUIPreview-mediaPreview_feature-L77.png

webUIPreview-mediaPreview_feature-L84.png

webUIPreview-mediaPreview_feature-L84.png

webUIPreview-mediaPreview_feature-L91.png

webUIPreview-mediaPreview_feature-L91.png

webUIPreview-mediaPreview_feature-L98.png

webUIPreview-mediaPreview_feature-L98.png

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

55.6% 55.6% Coverage
0.0% 0.0% Duplication

@lookacat

lookacat commented Jun 1, 2023

Copy link
Copy Markdown
Contributor

Screenshot (39)
on small thing i noticed is the search icon margin to the right is off at smaller screens

@pascalwengerter

Copy link
Copy Markdown
Contributor Author

Screenshot (39) on small thing i noticed is the search icon margin to the right is off at smaller screens

Looks more like the smaller gap between the other icons got lost on the way ;) I'll take a look later

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, I really like the feature! A few things I noticed though:

  • Is it really intended that the search bar goes missing? I would at least expect the search icon like in the mobile view.
  • Is it possible to align the tabs to the left? Having them centered feels a bit weird to me.
  • The disabled-/enabled-states of the "save"-button in the text-editor hardly differ from each other, especially in light mode. That makes it hard to tell if the button is clickable or not.

@kulmann

kulmann commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

Nice, I really like the feature! A few things I noticed though:

  • Is it really intended that the search bar goes missing? I would at least expect the search icon like in the mobile view.
  • Is it possible to align the tabs to the left? Having them centered feels a bit weird to me.
  • The disabled-/enabled-states of the "save"-button in the text-editor hardly differ from each other, especially in light mode. That makes it hard to tell if the button is clickable or not.

Strongly agree with @JammingBen's opinion on all three points... the first and second are blockers for me on the course of getting this merged.

@diocas

diocas commented Jun 13, 2023

Copy link
Copy Markdown
Contributor

Pasting my feedback from ownCloud talk:

I'm trying it and is not working that well... i.e external apps don't show anything (not even the logo). But, since we haven't used the latest web, I might need to change settings.json...

And did we lose the extra actions like download or add to favs? I suppose this is app dependent? it shows on the photo viewer, but not on pdf viewer, for example.

finally, the radius seems unproportionate to the others in the UI

@pascalwengerter

Copy link
Copy Markdown
Contributor Author

Pasting my feedback from ownCloud talk:

I'm trying it and is not working that well... i.e external apps don't show anything (not even the logo). But, since we haven't used the latest web, I might need to change settings.json...

And did we lose the extra actions like download or add to favs? I suppose this is app dependent? it shows on the photo viewer, but not on pdf viewer, for example.

finally, the radius seems unproportionate to the others in the UI

Thanks for porting your feedback ;)

Responses in order

  • haven't tested it with external apps myself, current setup doesn't work for me (but will debug now)
  • actions need to be registered per extension - media viewer and PDF viewer e.g. don't get a dedicated "download" action since they both feature a download button within the actual extension "body"
  • will update the radius, good point

@pascalwengerter

Copy link
Copy Markdown
Contributor Author

Nice, I really like the feature! A few things I noticed though:

  • Is it really intended that the search bar goes missing? I would at least expect the search icon like in the mobile view.
  • Is it possible to align the tabs to the left? Having them centered feels a bit weird to me.
  • The disabled-/enabled-states of the "save"-button in the text-editor hardly differ from each other, especially in light mode. That makes it hard to tell if the button is clickable or not.

Strongly agree with @JammingBen's opinion on all three points... the first and second are blockers for me on the course of getting this merged.

Thanks for the feedback. In order:

  • search bar missing - from the original designs I figured that's a tradeoff everyone is fine with (at least for now), adding this in a sane way will be a pain but here we go I guess^^
  • align tabs to the left - looking at Universal "app context" top bar #8422 again I realise you're right and the apptopbar is displayed aligned to the left, however without background color (which was requested from oC) it felt a bit lost which is why I think I centered it...will re-align it to the left
  • action visibility - true, will take another look. Got lost in the appearance/variation/configurable background color jungle and will need to adjust ActionMenuItem component/type to expect and apply more configuration options

@tbsbdr

tbsbdr commented Jun 16, 2023

Copy link
Copy Markdown

relates to 31e2ad6

@diocas

diocas commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

actions need to be registered per extension - media viewer and PDF viewer e.g. don't get a dedicated "download" action since they both feature a download button within the actual extension "body"

I understand, but each app has it's own place for the download button. Having a consistent place (even if duplicated) for users to search for it would be an improvement, in my view.

@JammingBen

JammingBen commented Jun 23, 2023 •

Copy link
Copy Markdown
Contributor

@pascalwengerter After talking with @tbsbdr : it's okay to drop the search bar, at least for now. Alignment to the left and the button color are still valid points. Also, we think it might be better to make the tab more decent looking. Goal: it should be clear that actions belong to the tab. Let's do it like that:

image

Just ping me if I can help you with some of these points as we want to get that merged soon.

I understand, but each app has it's own place for the download button. Having a consistent place (even if duplicated) for users to search for it would be an improvement, in my view.

I agree, although I'd suggest doing that in a follow-up PR.

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The buttons look very nice now 👍 The tabs are still aligned in the center and missing their border though (see #8447 (comment)).

@pascalwengerter

Copy link
Copy Markdown
Contributor Author

The buttons look very nice now 👍 The tabs are still aligned in the center and missing their border though (see #8447 (comment)).

Alignment was a major PITA and yeah, I did mess up the ODS color token/theme situation but should be fixed now ;)

Comment thread packages/web-app-external/src/App.vue Outdated
appUrl: '',
method: '',
formParameters: {}
resource: <Resource>null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You don't need to cast null

Comment thread packages/web-app-pdf-viewer/src/App.vue Outdated
loadingError: false,
url: '',
resource: null
resource: <Resource>null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same

@saw-jan

saw-jan commented Jul 11, 2023

Copy link
Copy Markdown
Member

The drone-ci failure is due to the new version availability of the notifications app. We can either upgrade the app with occ upgrade or pull from the commit that has the previous version.

@saw-jan

saw-jan commented Jul 11, 2023

Copy link
Copy Markdown
Member

I think add line php occ upgrade below should work

web/.drone.star

Lines 2269 to 2276 in 15e09d8

"commands": [
"mkdir -p %s/apps/" % dir["server"],
"rm -rf %s/apps/notifications" % dir["server"],
"git clone -b master https://github.com/owncloud/notifications.git %s/apps/notifications" % dir["server"],
"cd %s || exit" % dir["server"],
"php occ a:e notifications",
"php occ a:l",
],

            "cd %s || exit" % dir["server"],
+           "php occ upgrade",
            "php occ a:e notifications",

@sonarqubecloud

Copy link
Copy Markdown

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

58.9% 58.9% Coverage
0.0% 0.0% Duplication

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome! 🥳

@JammingBen
JammingBen merged commit b1fb385 into owncloud:master Jul 11, 2023
@pascalwengerter
pascalwengerter deleted the feature/8422 branch July 13, 2023 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Universal "app context" top bar

9 participants