Repository navigation
feat: add tiny legend list - #4
Merged
Merged
Conversation
mdjastrzebski
force-pushed
the
claude/minimal-legend-list
branch
from
October 6, 2026 11:16
6529ac0 to
7e2f5ff
Compare
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
force-pushed
the
claude/minimal-legend-list
branch
from
October 6, 2026 13:40
7e2f5ff to
d284c06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.