Page MenuHomePhabricator

[MEX] M5 - Statement awareness to avoid duplicates
Closed, ResolvedPublic

Description

User story: When i create a statement, i want to know if that same statement already exists - without scrolling and reading a lot especially on mobile - so that i don't waste my time creating a duplicate
Prototype

Screenshot 2026-06-15 at 10.15.55.png (1,370×990 px, 134 KB)

AC

  • when the user tries to add a duplicate, a warning message appears. More specifically, when the user selects the property from the dropdown
  • below the warning message, there is a button to go directly to edit the chosen already existing property
  • if the user tries for a new property, as soon as he enters the property field again, the message and button disappear
  • while the message and button are there, he cannot publish
  • message is translated
  • RTL formatting applied
  • the tests are updated accordingly

Figma design

Event Timeline

Change #1305038 had a related patch set uploaded (by Mahmoud-abdelsattar; author: Mahmoud-abdelsattar):

[mediawiki/extensions/Wikibase@master] Statement awareness to avoid duplicates

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

Change #1305038 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Statement awareness to avoid duplicates

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

hello! It works great! i am just wondering why the icon* in the button is blue and has these proportions,

Screenshot 2026-06-25 at 09.01.35.png (1,046×672 px, 67 KB)
the codex component should not be doing that, here are the options that should be selected for the button:
Screenshot 2026-06-25 at 10.01.47.png (1,424×982 px, 166 KB)

*.i will not redact this comment for transparency but please read the next comment before taking action :)

actually i just checked codex and eventhough the icon stays black on the component on figma, i cannot tell for sure that this is how it actually behaves by default when coded and most of our buttons have blue icons so i am thinking it is not?

So nevermind the icon, just use the large option for mobile button, i think currently it is a medium :) Thank you!

Change #1305608 had a related patch set uploaded (by Mahmoud-abdelsattar; author: Mahmoud-abdelsattar):

[mediawiki/extensions/Wikibase@master] Fixing the duplicated statement Edit {$1} button size

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

Change #1305608 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fixing the duplicated statement Edit {$1} button size

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