Skip to content

refactor(tool): draw patch hunks without DiffView - #108

Draft
leoafarias wants to merge 1 commit into
mainfrom
cursor/patch-manager-diff-cleanup-9d87
Draft

leoafarias wants to merge 1 commit into
mainfrom
cursor/patch-manager-diff-cleanup-9d87

Conversation

@leoafarias

Copy link
Copy Markdown
Collaborator

Hunk cards now scroll on the same ScrollBox as whole-file cards. Removed the DiffView adapter, DiffViewController, and the noir_diff import. The git parser, GitPath, and PatchGenerator stay.

Also removed the unreachable preview-only and no-reviewable branches, the disabled failed chip's refresh wiring (PatchActionKind.refresh; r still refreshes), the stale status-legend comment, and the unread MCP inspector instructions field.

48 insertions, 177 deletions.

Proof:

  • Dart 3.10.0: dart format --output=none --set-exit-if-changed lib/ test/ example/ bin/ hook/ tool/ from packages/noir — 539 files, 0 changed
  • Dart 3.13.6: dart analyze --fatal-infos in packages/noir and tool/mcp_inspector — no issues
  • patch manager view, display, controller, diff, load, cli, git path, and git tests — passed, including the long-diff jump that keeps the selected section on screen
  • dart test --concurrency=1 in tool/mcp_inspector — passed
  • dart test test/architecture --concurrency=1 — 264 passed
Open in Web Open in Cursor 

Hunk cards now use the same ScrollBox as whole-file cards, so the
DiffView adapter and its controller are gone. Also drop the unreachable
preview-only branches, the disabled failed-chip refresh action, and the
unread MCP inspector instructions field.

Co-authored-by: Leo Farias <[email protected]>

This branch has not been deployed

No deployments
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