Sarai-WMDE created this task. Sarai-WMDE added projects: Wikidata, Wikidata Lexicographical data, Wikidata Dev Team. Restricted Application added a subscriber: Masumrezarock100.
TASK DESCRIPTION User stories ------------ As a Wikidata user, I want to be able to easily find other entity types (aside from items) using the platform's main search. Background ---------- - **Description:** The scoped search allows users to select an entity type from a dropdown attached to a search input. The users' selection will restrict the scope of their search. - **Previous implementations:** No previous implementations of a similar solution have been found in our ecosystem. Nevertheless, this element is composed by two existing components that are available in the Codex library: Select <https://doc.wikimedia.org/codex/main/components/demos/select.html> and TypeaheadSearch <https://doc.wikimedia.org/codex/main/components/demos/typeahead-search.html>. The latter being the component currently in use by Vector 2022 to provide a main search in all projects. Design specifications --------------------- F37098256: Screenshot 2023-06-08 at 18.37.20.png <https://phabricator.wikimedia.org/F37098256> | Component spec sheet <https://www.figma.com/file/1RiCkqbWsz2Ul8z2dUK3GW/Wikidata-Search?type=design&node-id=611-49403&t=sAUMCku9aOKUyBL2-0> | Prototype <https://www.figma.com/proto/1RiCkqbWsz2Ul8z2dUK3GW/Wikidata-Search?type=design&node-id=109-7770&scaling=min-zoom&page-id=77%3A7609&starting-point-node-id=109%3A7770> | | Acceptance criteria ------------------- The new scoped TypeaheadSearch component is implemented following the design specifications: [ ] The component's visual properties match the design guidelines (see design specs) [ ] The component's interactive properties match the design guidelines (see prototype) [ ] The component adjusts to different reading directions (LTR, RTL) [ ] The component is fully usable via keyboard Open questions and considerations --------------------------------- - Ownership/maintenance: The scoped TypeaheadSearch pattern will be built using the combination of the Codex components Select and TypeaheadSearch. Nevertheless, it is yet to be determined if this new pattern should be introduced in the Codex library, or maintained by WMDE. In case we opt for the latter (most probable) option, this could be the first element to be documented as part of a potential library of "LOD components". A new task should be created to document this effort. Alignment with our Platform team would be crucial to define responsibilities. - Select menu width: We might need to customize the Menu component (used by Select). The current width of the Codex's menu is 100% (of its parent). We’d need to adjust that to make it wrap (fit) its content by default and take a max-width (see linked specs for more details). - Select menu header: The current implementation of the Codex Menu doesn't include a menu heading slot. We'll need to decide which team will implement that missing element. It's also unclear if menu headers should take descriptions (to be discussed with the Design Systems team). Notes ----- - Skins: The new search solution will be implemented in Vector 2022 only. We’ll investigate and evaluate making the new solution available in other skins (Vector legacy, Minerva) if we get specific requests. TASK DETAIL https://phabricator.wikimedia.org/T338483 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Sarai-WMDE Cc: Lydia_Pintscher, Aklapper, Lectrician1, Epidosis, Arian_Bozorg, Masumrezarock100, Sarai-WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org