feat(desktop): improve AttentionRail and chat UX#3
Merged
Conversation
- ChangesRail: flatten tree + useVirtualizer (28px rows, overscan 20) - Unified diff: virtualize FileDiffView list with dynamic height measurement - Split diff: virtualize + lazy-fetch file contents (only visible items queried) - ProjectFilesPanel: flatten tree + useVirtualizer for project file browser - AttentionRail: pre-compute coalesceUpdates in useMemo cache, pinned→Set, memoize all derived data; move to fixed overlay with slide animation - Stream virtualizer: increase estimateSize 72→100, overscan 12→30 - ChangesRail: collapse folders by default when >50 files
- SessionRailCard: memo with React.memo, coalesceUpdates moved inside (computes per-card only when its own updates change, not all tasks) - Remove previewCache that ran coalesceUpdates for ALL tasks on every render - Pass raw updates array to card, let memo handle staleness - App.tsx: useCallback for handleOpenTask passed to AttentionRail - Inline pin/open callbacks → stable useCallback curried per task id
- Board: useMemo for 8 derived arrays (done, running, review, laneTrees*), memoize match fn and byStatus with cache - TaskDetail: useCallback for openFileTab, openDiffFile, openChangesTab - MissionControl: useMemo for live/pinnedTasks, memoize all FocusPane derived computations (coalesceUpdates, resolvedPermissions, etc.), stable callbacks for pinned task map - ChangesRail: useCallback for toggle - Projects: useMemo for services/pfs/projectTasks/running, pre-compute runningByProject map to eliminate O(projects × services) filter-in-map
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.
Summary
Validation
Notes