Skip to content

feat: add tiny legend list - #4

Merged
mdjastrzebski merged 5 commits into
mainfrom
claude/minimal-legend-list
Oct 6, 2026
Merged

mdjastrzebski merged 5 commits into
mainfrom
claude/minimal-legend-list

Conversation

@mdjastrzebski

Copy link
Copy Markdown
Owner

No description provided.

@mdjastrzebski
mdjastrzebski force-pushed the claude/minimal-legend-list branch from 6529ac0 to 7e2f5ff Compare October 6, 2026 11:16
TinyLegendList keeps Legend List's core calculateItemsInView pass in small,
readable files:

- item-layout: estimate-first sizes (running average of measured items),
  cached positions recomputed only below a measured item.
- buffered-range: viewport plus a direction-biased buffer, found by walking
  from the previous window; the pass is skipped while the rendered items
  still cover the buffered area.
- findAvailableContainers: a pool of absolutely positioned containers;
  unused ones first, then the farthest out of range, then new ones.
- signals: per-container item index and position, so the list never
  re-renders while scrolling and moved items keep their memoized content.

The README explains the algorithm step by step and lists what is and is not
implemented from Legend List. The example app gains a TinyLegendList tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7g1A3Lyx7aaGcqw4kXRFB

^ Conflicts:
^	README.md
^	example/src/App.tsx
^	src/index.tsx
@mdjastrzebski
mdjastrzebski force-pushed the claude/minimal-legend-list branch from 7e2f5ff to d284c06 Compare October 6, 2026 13:40
@mdjastrzebski
mdjastrzebski merged commit 054e6bd into main Oct 6, 2026
6 checks passed
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.

2 participants