Skip to content

refactor(frontend): own Collapsible + IconExpandMore natively, detach from gix#13172

Draft
AntonioVentilii wants to merge 1 commit into
av/gix-vendor-shared-mixinsfrom
av/gix-own-collapsible
Draft

refactor(frontend): own Collapsible + IconExpandMore natively, detach from gix#13172
AntonioVentilii wants to merge 1 commit into
av/gix-vendor-shared-mixinsfrom
av/gix-own-collapsible

Conversation

@AntonioVentilii

Copy link
Copy Markdown
Collaborator

Motivation

Detaching OISY from @dfinity/gix-components (now maintenance-mode). Brings Collapsible and its IconExpandMore icon in-house. Stacked on #13163.

Changes

  • New $lib/components/ui/Collapsible.svelte — gix's source is already Svelte 5; swapped to OISY i18n (core.text.collapse/expand) and a native collapsible test id.
  • Vendor its deps natively: $lib/components/icons/IconExpandMore.svelte, $lib/components/ui/TestIdWrapper.svelte, $lib/types/collapsible.ts.
  • Add core.text.collapse/expand labels (regenerated i18n types).
  • Rewire the 3 Collapsible consumers and all 7 direct IconExpandMore consumers (incl OISY's own IconExpand wrapper) off gix.
  • No new deps, no behavioral change.

Tests

  • lint --max-warnings 0 clean; check clean (only the pre-existing unrelated sol-instructions-system error)
  • MultiSelectDropdown + SendNftsList specs pass (19)

Note: CollapsibleBottomSheet.svelte is also touched by the Backdrop PR (#13171); a trivial import-line merge.

… from gix

- New $lib/components/ui/Collapsible.svelte (gix source is already Svelte 5;
  swapped to OISY i18n core.text.collapse/expand, native testId 'collapsible')
- Vendor its deps natively: $lib/components/icons/IconExpandMore.svelte,
  $lib/components/ui/TestIdWrapper.svelte, $lib/types/collapsible.ts
- Add core.text.collapse/expand i18n labels (regenerated i18n types)
- Rewire Collapsible consumers (3) and ALL direct IconExpandMore consumers (7,
  incl OISY's IconExpand wrapper) off @dfinity/gix-components
No new deps, no behavior change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant