Skip to content

refactor(frontend): own InfiniteScroll natively, detach from gix#13170

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

refactor(frontend): own InfiniteScroll natively, detach from gix#13170
AntonioVentilii wants to merge 1 commit into
av/gix-vendor-shared-mixinsfrom
av/gix-own-infinite-scroll

Conversation

@AntonioVentilii

Copy link
Copy Markdown
Collaborator

Motivation

Part of detaching OISY from @dfinity/gix-components (now maintenance-mode). InfiniteScroll in-housed as a native OISY component. Stacked on #13163.

Changes

  • New $lib/components/ui/InfiniteScroll.svelte — gix's source is already Svelte 5 (runes + onIntersect callback, no events, no gix.scss overrides), copied verbatim into OISY conventions.
  • Rewire the 3 transaction-scroll consumers (ICP / SOL / All) off gix.
  • svelte-ignore state_referenced_locally on the one-time IntersectionObserver creation, matching OISY's existing pattern (--fail-on-warnings).
  • No new deps, no behavioral change.

Tests

  • lint --max-warnings 0 clean; check clean (only the pre-existing unrelated sol-instructions-system error)
  • Transaction-scroll consumer specs pass

gix's InfiniteScroll is already a Svelte 5 component (runes + onIntersect
callback, no events, no gix.scss overrides), so this is a clean in-housing:
- New $lib/components/ui/InfiniteScroll.svelte (copied verbatim, OISY conventions)
- Rewire the 3 transaction-scroll consumers off @dfinity/gix-components
- svelte-ignore state_referenced_locally on the one-time observer creation
  (matches OISY's existing pattern for snapshotting an initial prop)
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