Page MenuHomePhabricator

[SPIKE] ScopedTypeaheadSearch: child components emit events correctly when interacting with each other
Closed, ResolvedPublic

Description

The child Codex components Select and TypeaheadSearch emit events when interacted with.

  • TypeaheadSearch emits input when the user types in the text field, and load-more when scrolling down to the bottom of the list
  • Select emits update:selected when the selection value changes

In attempting to cover the component with tests, it appears that update:selected does not get emitted when the selection changes via prefix-searching. It is unclear whether this is broken in the normal state, or if this is an artifact of the way the test is written.

Timebox: 4 hours

Acceptance criteria

Investigate which events are being emitted under what circumstances and add tests to validate event behaviours where appropriate

Event Timeline

Arian_Bozorg renamed this task from ScopedTypeaheadSearch: child components emit events correctly when interacting with each other to [SPIKE] ScopedTypeaheadSearch: child components emit events correctly when interacting with each other.Apr 16 2025, 9:01 AM
Arian_Bozorg updated the task description. (Show Details)

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

[mediawiki/extensions/Wikibase@master] Remove skipped test of event behaviour in scoped typeahead search

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

Change #1138075 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Remove skipped test of event behaviour in scoped typeahead search

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