Page MenuHomePhabricator

[MEX] M3.1.2 - successful/unsuccessful message components
Closed, ResolvedPublic

Description

Create the components to notify the user of successful / failed edits (or more generally of any user-interface messages).

Acceptance Criteria

  • A wbui2025 vue component exists that uses the Codex component to display messages in the user interface.

Note
The integration of the messages into the user journey will be implemented in T404696

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

karapayneWMDE renamed this task from [MEX] M3.1.2 - form can be published to [MEX] M3.1.2 - successful/unsuccessful message components.

Change #1184722 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Add Success / Error message component

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

Change #1184723 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Show message whenever the edit form exits

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

I've added two patches here. The first is an implementation of the StatusMessage component. Messages can be displayed by adding them to the messageStore pinia. The second patch shows what it could look like to display a message every time we exit the edit form - not intended to be merged, but can be used for testing.

Change #1184722 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add Success / Error message component

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

moving this into done as I've seen it in the review (current the successful publish is not working)