Skip to content

Fix diff line counts and GitHub-style stats#243

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/ENG-518-linear-issue-triage-automation-60cf
Draft

Fix diff line counts and GitHub-style stats#243
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/ENG-518-linear-issue-triage-automation-60cf

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 29, 2026

Summary

  • Add shared diff line-stat parsing that counts additions/deletions from hunk bodies, including new and removed files.
  • Render GitHub-style green/red per-file stats in diff headers while preserving hunk pills for summaries and multi-hunk navigation.
  • Update affected diff Storybook snapshots.

Resolves ENG-518

Test Plan

  • bun -F native test:unit -- diff-line-stats.test.tsx
  • bun -F native lint
  • bun -F native build
  • bun -F native test:storybook -- src/components/widget/summaries/hunk-pill.stories.tsx src/components/widget/summaries/full-file-diff-editor.stories.tsx src/components/widget/summaries/diff-section.stories.tsx

Note: full bun -F native test:storybook still has unrelated pre-existing snapshot flakes in animated rebuild/file-view stories after installing Playwright Chromium.

Docs

  • Docs updated (companion PR in darkmatter/nixmac-web: #___)
  • No docs update needed
Open in Web View Automation 

Co-authored-by: cooper <czxtm@users.noreply.github.com>
Co-authored-by: cooper <czxtm@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Fails
🚫

New UI components were added without a Storybook story. Add a sibling *.stories.tsx file:

  • apps/native/src/components/widget/summaries/diff-line-stats.tsx
Warnings
⚠️ PR is marked WIP / draft — do not merge until ready for review.
⚠️ Please assign this PR to someone (usually yourself).

📋 PR Overview

Lines changed 198 (+161 / -37)
Files 2 added, 5 modified, 0 deleted
Draft / WIP yes
Has Test Plan yes
New UI components yes (1)
New Storybook stories no
New Rust modules no
New TS source files yes (1)
New tests yes (1)
package.json touched no
Cargo.toml touched no
Infra / CI touched no

🔬 Coverage

Report Lines Statements Functions Branches
apps/native/coverage/coverage-summary.json 18.1% 18.1% 31.3% 54.9%

Generated by 🚫 dangerJS against d32f60b

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.

1 participant