Page MenuHomePhabricator

[MEX] M3.1.2 display error / success messages after 'publish' button is clicked
Closed, ResolvedPublic

Description

T401405 introduces save functionality to the edit statement form and T403595 introduced a message component to display informational messages to the user.

Use the message component to display information about successful / failed edits:

Acceptance Criteria

  • The codex component Message will appear when the publishing is successful or unsuccessful (component provides both actions).
  • if successful
    • the user is redirected to the same location they were at previously (use the same functionality as in T401403)
    • the confirmation popup is displayed at the bottom of the page
    • the popup uses the fade in (codex component option) transition
  • if the save is unsuccessful
    • the user remains on the edit statement dialog page
    • a placeholder generic error message is used (detailed error handling will be in T403011)
    • placeholder error message is localized only in English
    • the pop up appears at the bottom of the page
    • the message component's option called auto-dismiss that allows the component to disappear is used
  • test are updated/created as needed

Successfull edit:

Screenshot 2025-09-12 at 11.04.24.png (1×1 px, 110 KB)

  • question from my side (Alice) : on the prototype from Larissa the message was : "Success: You have edited a statement in occupation" - Is this actually possible? can we name exactly what was edited and where, or do we need a more general message?

Figma File here

Unsuccessful Edit:

Screenshot 2025-09-12 at 11.10.16.png (1×1 px, 105 KB)

Figma file here
"Error: your changes could not be saved."

Event Timeline

Change #1191704 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] T404696: Add status messages to edit statement modal

https://gerrit.wikimedia.org/r/1191704

Change #1191704 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] T404696: Add status messages to edit statement modal

https://gerrit.wikimedia.org/r/1191704

Change #1193854 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] Merge branch 'T404696-publishButtonClicked' into ReduceHeaderFooter

https://gerrit.wikimedia.org/r/1193854

Change #1193854 abandoned by Sadiya.mohammed13:

[mediawiki/extensions/Wikibase@master] Merge branch 'T404696-publishButtonClicked' into ReduceHeaderFooter

Reason:

created by mistake

https://gerrit.wikimedia.org/r/1193854

Change #1191704 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] T404696: Add status messages to edit statement modal

https://gerrit.wikimedia.org/r/1191704

Change #1195163 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] T404696: Add status messages to edit statement modal

https://gerrit.wikimedia.org/r/1195163

Change #1195163 abandoned by Sadiya.mohammed13:

[mediawiki/extensions/Wikibase@master] T404696: Add status messages to edit statement modal

Reason:

created by mistake

https://gerrit.wikimedia.org/r/1195163