Observed:
Expected:
The notification is closer to the content area, for example it is within the white part of mw-page-container:
Esanders | |
Oct 24 2023, 1:47 PM |
F41698527: screenshot 217.mov.gif | |
Jan 19 2024, 12:01 AM |
F41698526: screenshot 216.mov.gif | |
Jan 19 2024, 12:01 AM |
F41512718: screenshot 117.mov.gif | |
Nov 17 2023, 1:21 AM |
F41512695: screenshot 115.mov.gif | |
Nov 17 2023, 1:21 AM |
F41512694: screenshot 114.mov.gif | |
Nov 17 2023, 1:21 AM |
F41512693: screenshot 116.mov.gif | |
Nov 17 2023, 1:21 AM |
F41485545: Screenshot_20231111_011541.png | |
Nov 11 2023, 12:18 AM |
F41449901: image.png | |
Nov 5 2023, 1:34 PM |
Observed:
Expected:
The notification is closer to the content area, for example it is within the white part of mw-page-container:
Change 968650 had a related patch set uploaded (by Esanders; author: Esanders):
[mediawiki/skins/Vector@master] mw.notify: Limit width of overlay to max-width-page-container
(If you have arrived here from an on-wiki comment about AddThis gadget, the link should've pointed here: T230124)
@JScherer-WMF does the proposal in the task description (see also demo link) look good to you?
Change 968650 merged by jenkins-bot:
[mediawiki/skins/Vector@master] mw.notify: Limit width of overlay to max-width-page-container
I like this change, it makes sense and looks good. But: The placement is a bit awkward when you use Vector-2022 in full-screen mode . Could that be taken into account?
Status: ❓Need More Info
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA
Test Artifact(s):
❓ AC1: Notifications should appear in the content area when on wide screens. See demo and Expected image in task description.
I couldn't get the same notification as the example in the description. I was able to get some notifications however. On limited width they work as expected. On full width they do not work as expected. If the functionality of limited width is the only scope of this task then it's a pass, otherwise a fail. See below:
❌ | |
✅ | |
✅ | |
❌ |
@Esanders it looks like your patch to https://gerrit.wikimedia.org/r/c/968650 didn't work as expected (see comment from @jhsoby and @Edtadros )
@ovasileva not sure if this constitutes a regression in your perspective. Should we revert the patch or do you see this as an overall improvement?
If possible, I'd say let's revert until we can get it to look slightly better. I agree that the current positioning feels a bit awkward. @JScherer-WMF - wondering what you think as well.
I agree. Sorry I didn't have a closer look at various viewport widths with the initial query. Thanks for flagging it @jhsoby !
Somewhere above the title probably makes more sense, but just for due diligence, could someone outline the steps a user has to complete to get this notification?
No worries, these things happen. :-)
The easiest way to trigger a notification via the normal UI is probably to make an edit, and it should notify you that the edit was saved successfully. But if you're testing its appearance, it would probably be even easier to just enter mw.notify( 'Random text here' ); in the browser console. :-)
Change 975042 had a related patch set uploaded (by Jforrester; author: Jdlrobson):
[mediawiki/skins/Vector@master] Revert "mw.notify: Limit width of overlay to max-width-page-container"
Change 975042 merged by jenkins-bot:
[mediawiki/skins/Vector@master] Revert "mw.notify: Limit width of overlay to max-width-page-container"
Change 975366 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):
[mediawiki/skins/Vector@wmf/1.42.0-wmf.5] Revert "mw.notify: Limit width of overlay to max-width-page-container"
@Jdrewniak When you're finished reverting this, please assign to me, and I'll work out a design that doesn't break at smaller viewports.
Change 975366 merged by jenkins-bot:
[mediawiki/skins/Vector@wmf/1.42.0-wmf.5] Revert "mw.notify: Limit width of overlay to max-width-page-container"
Mentioned in SAL (#wikimedia-operations) [2023-11-20T21:58:00Z] <catrope@deploy2002> Started scap: Backport for [[gerrit:975366|Revert "mw.notify: Limit width of overlay to max-width-page-container" (T349622)]]
Mentioned in SAL (#wikimedia-operations) [2023-11-20T21:59:22Z] <catrope@deploy2002> jdlrobson and catrope: Backport for [[gerrit:975366|Revert "mw.notify: Limit width of overlay to max-width-page-container" (T349622)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)
Mentioned in SAL (#wikimedia-operations) [2023-11-20T22:15:41Z] <catrope@deploy2002> Finished scap: Backport for [[gerrit:975366|Revert "mw.notify: Limit width of overlay to max-width-page-container" (T349622)]] (duration: 17m 40s)
Presumably just limiting the patch to fixed width Vector 2022, and leaving as-is in other situations, would be fine (an improvement on the status quo)?
Change 977617 had a related patch set uploaded (by Esanders; author: Esanders):
[mediawiki/skins/Vector@master] Reapply "mw.notify: Limit width of overlay to max-width-page-container"
Test wiki created on Patch demo by ESanders (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/51c3e7d64a/wiki/Talk:DiscussionTools#c-notfound
@JScherer-WMF what do you think of the behaviour in https://patchdemo.wmflabs.org/wikis/51c3e7d64a/wiki/Talk:DiscussionTools#c-notfound ?
@JScherer-WMF will comment on the ticket today and create a new ticket around usability problems with the notification widget.
I think the patch solves the initial bug, even though it's not ideal for the notification to overlap the content below it.
Change 977617 merged by jenkins-bot:
[mediawiki/skins/Vector@master] Reapply "mw.notify: Limit width of overlay to max-width-page-container"
Status: ❓Need More Info
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA
Test Artifact(s):
❓ AC1: Notifications should appear in the content area when on wide screens. See demo and Expected image in task description.
I couldn't get the same notification as the example in the description. I was able to get some notifications however. Is this the expected behavior. I would expect any notifications wouldn't start on the gray bands.
This looks like the correct behaviour. I needed to zoom out on my MBP to make my screen "wide enough" to demo this. Thanks for checking @Edtadros .
Test wiki on Patch demo by ESanders (WMF) using patch(es) linked to this task was deleted: