Page MenuHomePhabricator

[MEX] M5 - create possibility for users to add a statement without the need to scroll down too much
Closed, ResolvedPublic

Description

As a user, i want to add a statement without first scrolling all the way down on my phone

Solution: Floating (+) button that appears after the user scrolled past the end of the first statement. Once the user clicks the button, the button is replaced by an "add statement" button that can be closed again. This is to make the feature clear to the user immediatly and also so that users that tap the button by accident dont jump in immediately to a new screen.

Screenshot 2026-06-12 at 16.36.09.png (1,302×762 px, 211 KB)

AC

  • The floating button follows the figma design
  • the floating button appears when the user scrolls down past the first statement, and disappears when the user scrolls up the same point
  • when clicked, the floating button changes to a "add statement "button following the[[ https://www.figma.com/design/9RwXYJxIYnuglDCwfBWi9H/MEX-Milestone-4---5?node-id=1374-11345&m=dev | figma design ]]
  • when the user clicks the X on the add statement button, the button changes back to the floating button
  • when the user clicks the add statement button, the "add statement" modal appears
  • the solution to keeping users from adding duplicate statements is on ticket https://phabricator.wikimedia.org/T424009
  • when the add statement button appears on screen, the floating button no longer does
  • if the user clicks back, they should go back to the same location they clicked the button

Prototype (note that because of figma constrains, the button is not appearing after a specific scroll point - like it should - but rather after 2000ms)

Floating button

Event Timeline

Arian_Bozorg renamed this task from [MEX] M4 - create possibility for users to add a statement without the need to scroll down too much to [MEX] M5 - create possibility for users to add a statement without the need to scroll down too much.Mar 9 2026, 3:20 PM

Also relevant in this ticket is this ticket here T142082

Potentially feature creep. We should consider what is essential to the original scope of the project and what we can conscious bring into a v2 (or v1.5) to ensure that the original project does have an end

Arian_Bozorg renamed this task from [MEX] M5 - create possibility for users to add a statement without the need to scroll down too much to [MEX2] create possibility for users to add a statement without the need to scroll down too much.May 18 2026, 3:11 PM
Arian_Bozorg renamed this task from [MEX2] create possibility for users to add a statement without the need to scroll down too much to [MEX] M5 - create possibility for users to add a statement without the need to scroll down too much.Jun 10 2026, 4:52 PM

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

[mediawiki/extensions/Wikibase@master] [WIP] AddStatement floating button

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

Change #1303409 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] AddStatement floating button

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

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

[mediawiki/extensions/Wikibase@master] Tests for wbui2025 add statement floating button

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

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

[mediawiki/extensions/Wikibase@master] Styling fixes for floating add statement button

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

ArthurTaylor updated Other Assignee, added: ArthurTaylor.

Change #1304544 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Styling fixes for floating add statement button

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

Change #1304521 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Tests for wbui2025 add statement floating button

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

A bug reported by @Alice.moutinho that when scrolling to the top of the page, the button is flickering and should not be visible, it should appear only after scrolling the first statement.

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

[mediawiki/extensions/Wikibase@master] Fixing the floating add statement button flickering

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

Change #1305590 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Fixing the floating add statement button flickering

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

the button now doesn't show up anymore for me

@Alice.moutinho Could you please provide a URL or the testing environment you have this issue?
I tried on Beta and it shows as expected.

must have to do with my browser, on my phone it works fine!