Page MenuHomePhabricator

Scoped Typeahead Search: animation transition from server-side render to full component
Closed, ResolvedPublic

Description

To address the problem raised in T390760, we will add an animation that will transition from the server-side render search bar to the full scoped typeahead search component.

The transition will happen between the two states when a user clicks into the search box, and the scoped typeahead search will continue to be displayed even if the user clicks out of the search bar.

Notes
The select box will be disabled until the full transition has been completed.

The search bar will reset to the original server-side render when the user navigates to a new page.

The component mounts on user interaction, rather than on page load.

For the transition, we will use transition-timing-function-user transition-timing-function.200 taken from https://doc.wikimedia.org/codex/main/design-tokens/transition.html#transition-timing-function.

Figma prototype displaying transition

Figma file

Acceptance Criteria

  • The scoped typeahead search transitions from the server-side render to the full scoped typeahead search component when a user clicks into the search box

Event Timeline

There's a patch associated with T390760 that will be helpful in mounting the component on user interaction rather than page load.

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

[mediawiki/extensions/Wikibase@master] Activate the scoped typeahead search when the search box is focussed

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

This now seems to be working okay based on the latest patches from @Jdlrobson - https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1133957 and https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/1139875 . But those patches need some polish and need to get merged before we can move forward here.

ArthurTaylor changed the task status from Open to Stalled.Apr 30 2025, 10:40 AM

This will need to wait on the patches currently attached to T390760

ArthurTaylor changed the task status from Stalled to In Progress.May 12 2025, 12:33 PM
ArthurTaylor added a subscriber: Jdlrobson-WMF.

Those patches have now been merged - will refactor my patch according to the feedback from @Jdlrobson-WMF

Change #1139440 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Activate the scoped typeahead search when the search box is focussed

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