PR diffs 7: handle load-more, folding, Turbo, and viewport repaint #30

Closed
opened 2026-05-09 03:28:03 +00:00 by barrettruth · 0 comments
Owner

Make the bridge robust across dynamic PR page changes.

Scope:

  • Handle Load more files, file folding/unfolding, code expanders, Turbo navigation, split/unified changes, whitespace mode changes, and outdated-comment toggles.
  • Repaint newly inserted diff rows or file boxes without double-rendering existing ones.
  • Keep viewport-first behavior so large PRs remain usable.

Acceptance:

  • Loading more files and expanding hunks produces correctly painted code without losing controls.
  • Switching split/unified or whitespace mode yields the expected native navigation plus repaint.
  • MutationObserver/IntersectionObserver logic is simple and bounded.

Depends on: PR diffs 5.

Make the bridge robust across dynamic PR page changes. Scope: - Handle `Load more files`, file folding/unfolding, code expanders, Turbo navigation, split/unified changes, whitespace mode changes, and outdated-comment toggles. - Repaint newly inserted diff rows or file boxes without double-rendering existing ones. - Keep viewport-first behavior so large PRs remain usable. Acceptance: - Loading more files and expanding hunks produces correctly painted code without losing controls. - Switching split/unified or whitespace mode yields the expected native navigation plus repaint. - MutationObserver/IntersectionObserver logic is simple and bounded. Depends on: PR diffs 5.
Sign in to join this conversation.
No description provided.