Page MenuHomePhabricator

[WtC-M2] Create Vue 3 version of the custom LanguageSelector component
Closed, ResolvedPublic5 Estimated Story Points

Description

Problem

The LanguageSelector is not considered a core component by the Design Systems team at the moment, and it will not be included in the Codex library. It's still being decided where this reused component could live in the future.

This means that, most likely, WMDE won't have a standardized Vue 3 component to replace the custom LanguageSelector when conducting the migration of Mismatch Finder and Query Builder to Codex.

Solution

Make our custom LanguageSelector component compatible with Vue 3.

Considerations

In order to unblock WiKit's deprecation, we should replace the apparently only WiKit token used to currently style our custom language selector: $wikit-OptionsMenu-box-shadow;. It's fine if we use the discrete value: 0 2px 2px 0 rgba(0, 0, 0, 0.25).

Acceptance criteria
  • WMDE's custom LanguageSelector is updated to Vue 3 and can be used in the migrated version of Mismatch Finder
  • Any WiKit building blocks or styles are replaced
Related task

T345905: [WtC-M3] [Blocked] LanguageSelector: Adjust styling to meet new Codex design guidelines

Event Timeline

Sarai-WMDE renamed this task from [WtC] Create Vue 3 version of LanguageSelector component to [WtC] Create Vue 3 version of custom LanguageSelector component.Sep 8 2023, 1:16 PM
Sarai-WMDE updated the task description. (Show Details)
Sarai-WMDE renamed this task from [WtC] Create Vue 3 version of custom LanguageSelector component to [WtC-M2] Create Vue 3 version of custom LanguageSelector component.Sep 12 2023, 8:46 AM
Sarai-WMDE updated the task description. (Show Details)
Sarai-WMDE renamed this task from [WtC-M2] Create Vue 3 version of custom LanguageSelector component to [WtC-M2] Create Vue 3 version of the custom LanguageSelector component.Oct 5 2023, 5:01 PM
Sarai-WMDE renamed this task from [WtC-M2] Create Vue 3 version of the custom LanguageSelector component to [SW] [WtC-M2] Create Vue 3 version of the custom LanguageSelector component.Oct 23 2023, 4:04 PM
Sarai-WMDE renamed this task from [SW] [WtC-M2] Create Vue 3 version of the custom LanguageSelector component to [WtC-M2] Create Vue 3 version of the custom LanguageSelector component.Oct 25 2023, 1:41 PM

Task Breakdown Notes:

  • We decided to update our application's syntax to composition API, and this component can be a good testing ground for this.
  • We should make sure not to use any Wikit Components or Tokens for the LanguageSelector.
  • Since the plan of action can be parallelized, if you want to pick up a task just create it ad hoc before you start

Potential Plan of Action:

  • Migrate the Input to composition API
  • Migrate the OptionsMenu...
  • Migrate the Parent component (LanguageSelector.vue) to composition

No (new) visual or interactive issues were detected as a result of the LanguageSelector's adaptation to Vue 3. The changes were reviewed in Chrome 119, Safari 17 and Firefox 119 on MacOS Sonoma. Replacement done 🎉

Sarai-WMDE closed this task as Resolved.
Sarai-WMDE updated the task description. (Show Details)