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

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

Merged
merged 11 commits into from
Jul 11, 2023

Conversation

pascalwengerter
Copy link
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

@sonarcloud
Copy link

sonarcloud bot commented Feb 27, 2023

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
Copy link
Contributor

ownclouders commented Feb 27, 2023

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
@ownclouders
Copy link
Contributor

ownclouders commented May 31, 2023

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

@sonarcloud
Copy link

sonarcloud bot commented May 31, 2023

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
Copy link
Contributor

lookacat commented Jun 1, 2023

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

@pascalwengerter
Copy link
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

Copy link
Collaborator

@JammingBen JammingBen left a comment

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
Copy link
Member

kulmann commented Jun 13, 2023

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
Copy link
Contributor

diocas commented Jun 13, 2023

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
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
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
Copy link
Contributor

tbsbdr commented Jun 16, 2023

relates to 31e2ad6

@diocas
Copy link
Contributor

diocas commented Jun 20, 2023

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
Copy link
Collaborator

JammingBen commented Jun 23, 2023

@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.

Copy link
Collaborator

@JammingBen JammingBen left a comment

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
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 ;)

method: '',
formParameters: {}
resource: <Resource>null
Copy link
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

@@ -33,7 +34,7 @@ export default defineComponent({
loading: true,
loadingError: false,
url: '',
resource: null
resource: <Resource>null
Copy link
Member

Choose a reason for hiding this comment

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

Same

@saw-jan
Copy link
Member

saw-jan commented Jul 11, 2023

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
Copy link
Member

saw-jan commented Jul 11, 2023

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",

@sonarcloud
Copy link

sonarcloud bot commented Jul 11, 2023

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

Copy link
Collaborator

@JammingBen JammingBen left a comment

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
2 checks passed
@pascalwengerter pascalwengerter deleted the feature/8422 branch July 13, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Universal "app context" top bar
9 participants