Skip to content

feat: virtualize timeline rendering - #16

Merged
yahorbarkouski merged 1 commit into
mainfrom
codex/issue-7-virtual-timeline
Mar 29, 2026
Merged

feat: virtualize timeline rendering#16
yahorbarkouski merged 1 commit into
mainfrom
codex/issue-7-virtual-timeline

Conversation

@yahorbarkouski

Copy link
Copy Markdown
Owner

Summary

  • flatten date-grouped timeline data into virtual header/row items and render only visible rows with @tanstack/react-virtual
  • keep the existing pagination controls while making grid columns responsive via ResizeObserver
  • add a focused test for the virtual timeline item builder and expose the scroll viewport ref for virtualization

Closes #7

Verification

  • ./node_modules/.bin/biome check src/components/ui/scroll-area.tsx src/components/timeline/Timeline.tsx src/components/timeline/TimelineGroup.tsx src/components/timeline/useResponsiveColumns.ts src/components/timeline/virtualTimeline.ts electron/main/features/__tests__/virtualTimeline.test.ts
  • npm run typecheck
  • ./node_modules/.bin/vitest run electron/main/features/__tests__/virtualTimeline.test.ts

Notes

  • npm run lint still fails on a pre-existing unrelated file: electron/main/features/mobileActivity/LocalMobileBridgeService.ts

@yahorbarkouski
yahorbarkouski merged commit e530f45 into main Mar 29, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.30.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Virtual Scrolling for Timeline Performance

1 participant