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

Bump nextcloud-dialogs from 3.1.2 to 3.1.4 #33307

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

PVince81
Copy link
Member

This brings in the "aria-live" attribute for accessibility.

To test:

  1. Create a folder "abc"
  2. Open a second browser window on the root
  3. In the second window, rename "abc" to "def"
  4. Go back to the first browser window and also rename "abc" to "def" to trigger an error
  5. Inspect the notification

image

We can see that aria-live is there.

BUT there's also this weird button size now, perhaps due to my increased font sizes.
Not sure, but could be caused by nextcloud-libraries/nextcloud-dialogs#582 as it touches the button

@PVince81 PVince81 self-assigned this Jul 21, 2022
@PVince81
Copy link
Member Author

this is the state before this PR:
image

the close button did not have the border and also was properly aligned

@PVince81
Copy link
Member Author

raised nextcloud-libraries/nextcloud-dialogs#631 to look into this.

let's not merge until this is solved

dist/icons.css Outdated Show resolved Hide resolved
@PVince81
Copy link
Member Author

for the record, this is how I updated the deps:

  1. Edited package.json and set the version to 3.1.4
  2. Ran: npm install @nextcloud/dialogs
  3. Ran: make build-js-production
  4. Pushed after testing

not sure why this would mess with icons.css and also produce those side effects

@PVince81
Copy link
Member Author

/compile amend /

@nickvergessen
Copy link
Member

git checkout master
npm ci
npm i @nextcloud/dialogs@^3.1.4
make build-js-production

All looks good here
Bildschirmfoto vom 2022-07-21 17-02-38

@nextcloud-command nextcloud-command force-pushed the bump/nextcloud-dialogs-3.1.2-to-3.1.4 branch from 20e6cbe to 3fc2575 Compare July 21, 2022 15:05
@nickvergessen
Copy link
Member

Also looks good now with what the bot commited

@PVince81
Copy link
Member Author

I ran the same command like Joas locally but it produced a different result that leads to the same problem: shifted button + circle around the "x". I have node v14.17, so I'll investigate this separately.

Now I've retested with this PR with the bot's result, and the circle is gone.
The cross is still shifted though:
image

@PVince81
Copy link
Member Author

we did more research and at first thought that this line was missing:

import '@nextcloud/dialogs/styles/toast.scss'

but adding it in the relevant places didn't fix the down-shifted cross icon

then we tried upgrading the notifications app: nextcloud/notifications#1235
and here we noticed that the cross icon was not shifted, but this was on the settings page.

now I noticed that even with the "notifications" app disabled, if I go to the settings page, it works fine with this on the console:

OC.Notification.show("is the cross icon shifted down ?")

running the above code in the console:

  • on the settings page ✅
  • in the files app: 🚫

so probably the files app has something else that is interfering with the notification

@PVince81
Copy link
Member Author

PVince81 commented Jul 21, 2022

with notifications app enabled with nextcloud/notifications#1235: works everywhere

with notifications app disabled: works on settings page, but broken on files app and dashboard

@PVince81
Copy link
Member Author

DOM differences:

master:
image

the cross is a button and the parent has a flex on it

this PR:
image

no button, no flex

@PVince81
Copy link
Member Author

this PR on the settings page:
image

same markup, but with an additional padding

@PVince81
Copy link
Member Author

this PR with notifications app enabled, files app page:
image

@PVince81
Copy link
Member Author

alright, I have compared the files app with and without the notifications app loadade:

  1. files app without notifications app:
  • toast.scss is loaded but it's an older version
  1. files app with notifications app:

next up: check which toastify

@PVince81
Copy link
Member Author

PVince81 commented Jul 25, 2022

  • without notifications enabled:

image

first is pointing to "webpack://./node_modules/@nextcloud/dialogs/styles/toast.scss"
second points to "https://vvortex.local/node_modules/@nextcloud/dialogs/styles/toast.scss"
BOTH contain the old version

  • with notifications enabled:

image

the two first entries are loaded from "webpack://./node_modules/@nextcloud/dialogs/styles/toast.scss" which contains the correct version

the last one is loaded from "https://vvortex.local/node_modules/@nextcloud/dialogs/styles/toast.scss"
and only that one contains the old version

a bit weird....

@PVince81
Copy link
Member Author

the local file in the workspace "./node_modules/@nextcloud/dialogs/styles/toast.scss" contains the wrong version despite the upgrade 🤔

@PVince81
Copy link
Member Author

and the diff from this PR updates "core/css/server.css" and injects it with the correct version of CSS from toastify 🤯

@PVince81
Copy link
Member Author

PVince81 commented Jul 25, 2022

@nickvergessen our assumption that npm ci would clean up / upgrade node_modules correctly seems to be wrong.

on the local workspace I found that @nextcloud/dialogs/CHANGELOG.md was still on the old version.
deleting "node_modules" and re-running "npm ci" fixed that.

I wonder why we don't delete "node_modules" on make clean or at least make dev-setup ?

I'm a tiny bit worried that now having different version of the lib still seem to load the SCSS from all libs instead of leaving it aside and keeping only core/css/server.css

maybe @skjnldsv knows more

anyway, we now should move forward with the lib upgrade to reduce the number of a11y warnings

now recompiling...

@PVince81
Copy link
Member Author

PVince81 commented Jul 25, 2022

recompiling didn't make a difference...

there's still a sneaky thing serving an old version of nextcloud-dialogs despite the fact that the new one is present in "node_modules/@nextcloud/dialogs"

@PVince81
Copy link
Member Author

% find . -iname \*"dialogs"
./apps-extra/spreed/.git/logs/refs/heads/bugfix/5192/force-leave-on-lock-warnings-dialogs
./apps-extra/spreed/node_modules/@nextcloud/dialogs
./apps-extra/viewer/node_modules/@nextcloud/dialogs
./apps-extra/guests/node_modules/@nextcloud/dialogs
./apps-extra/mail/node_modules/@nextcloud/dialogs
./apps-extra/contacts/node_modules/@nextcloud/dialogs
./apps-extra/groupfolders/node_modules/@nextcloud/dialogs
./apps-extra/files_downloadlimit/node_modules/@nextcloud/dialogs
./apps-extra/files_automatedtagging/node_modules/@nextcloud/dialogs
./apps-extra/recommendations/node_modules/@nextcloud/dialogs
./apps-extra/photos/node_modules/@nextcloud/dialogs
./apps-extra/calendar/node_modules/@nextcloud/dialogs
./apps-extra/user_migration/node_modules/@nextcloud/dialogs
./apps-extra/notifications/node_modules/@nextcloud/dialogs
./apps-extra/tasks/node_modules/@nextcloud/dialogs
./apps-extra/deck/node_modules/@nextcloud/dialogs
./apps-extra/text/node_modules/@nextcloud/dialogs
./node_modules/@nextcloud/dialogs

next up: disable all these apps

non-fun thing: after moving out "viewer" the cross icon disappears completely...
image

@PVince81
Copy link
Member Author

I've tested locally with nextcloud/viewer#1301 (the lib update for the viewer app that one cannot disable) and after compiling that PR's assets, the cross icon is finally positioned properly 😮‍💨

@nickvergessen nickvergessen requested review from a team and removed request for a team July 26, 2022 07:21
@nickvergessen nickvergessen added this to the Nextcloud 25 milestone Jul 26, 2022
@PVince81 PVince81 requested a review from Pytal July 26, 2022 10:38
@PVince81
Copy link
Member Author

the viewer update went through and now everything is fine, so we can merge this PR!

@PVince81
Copy link
Member Author

/compile amend /

@PVince81 PVince81 added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Jul 26, 2022
@nextcloud-command nextcloud-command force-pushed the bump/nextcloud-dialogs-3.1.2-to-3.1.4 branch from 3fc2575 to 236e921 Compare July 26, 2022 16:20
@PVince81
Copy link
Member Author

/compile amend /

@nextcloud-command nextcloud-command force-pushed the bump/nextcloud-dialogs-3.1.2-to-3.1.4 branch from 236e921 to b1f8ebd Compare July 26, 2022 20:54
Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@PVince81 PVince81 force-pushed the bump/nextcloud-dialogs-3.1.2-to-3.1.4 branch from b1f8ebd to 8e1240a Compare July 26, 2022 21:32
@PVince81 PVince81 merged commit 5a23676 into master Jul 27, 2022
@PVince81 PVince81 deleted the bump/nextcloud-dialogs-3.1.2-to-3.1.4 branch July 27, 2022 07:27
@skjnldsv skjnldsv mentioned this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish accessibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants