Registry Mirror
Skip to content

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Summary

  • show the changed-file count beside addition and deletion totals in the menu bar
  • preserve correct singular and plural labels
  • add render-level regression coverage and a patch changeset

Fixes #561.

Validation

  • bun test src/ui/AppHost.interactions.test.tsx --test-name-pattern "menu bar summarizes"
  • bun run typecheck
  • bun run format:check
  • bun run lint
  • bun run test:integration — 97 passed
  • bun run test:tty-smoke — 9 passed
  • real source TTY smoke confirming the 1 file summary

Notes

  • bun test reached 2040 passing tests and 18 skips, but exited nonzero because Bun collected two website Playwright specs outside the Playwright runner.

This PR description was generated by Pi using OpenAI GPT-5.6

@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hunk-web Ready Ready Preview Aug 8, 2026 4:48am

Request Review

@greptile-apps

greptile-apps Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds the total changed-file count, with singular/plural labeling, to the existing menu-bar addition and deletion summary.

  • Derives the count from the complete changeset.
  • Adds render-level regression coverage for the plural two-file case.
  • Adds a patch changeset for hunkdiff.

Confidence Score: 4/5

The PR appears safe to merge, with only a non-blocking source-formatting inconsistency to address.

The changed-file count uses the same complete changeset as the existing addition and deletion totals, preserves responsive title truncation, and has regression coverage; the only accepted concern is inconsistent formatting in the new TypeScript and test code.

Files Needing Attention: src/ui/App.tsx and src/ui/AppHost.interactions.test.tsx

Important Files Changed

Filename Overview
src/ui/App.tsx Adds the changed-file count and singular/plural label to the menu-bar title; behavior is sound, but the added lines conflict with a mounted formatting rule.
src/ui/AppHost.interactions.test.tsx Adds render-level coverage for the two-file menu summary, with formatting that conflicts with the mounted rule.
.changeset/common-carpets-fail.md Correctly records the user-visible menu-bar enhancement as a patch release.
Prompt To Fix All With AI
### Issue 1
src/ui/App.tsx:1841-1842
**Keep new formatting consistent**

The added declarations and related regression test use two-space indentation and double-quoted strings instead of the mounted rule's required four-space indentation and single quotes, leaving the new source inconsistent with that documented convention.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "feat(ui): show changeset file count" | Re-trigger Greptile

Comment thread src/ui/App.tsx
Comment on lines +1841 to +1842
const changedFileCount = bootstrap.changeset.files.length;
const changedFileLabel = changedFileCount === 1 ? "file" : "files";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Keep new formatting consistent

The added declarations and related regression test use two-space indentation and double-quoted strings instead of the mounted rule's required four-space indentation and single quotes, leaving the new source inconsistent with that documented convention.

Context Used: guidelines.mdc Cursor rule (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/ui/App.tsx
Line: 1841-1842

Comment:
**Keep new formatting consistent**

The added declarations and related regression test use two-space indentation and double-quoted strings instead of the mounted rule's required four-space indentation and single quotes, leaving the new source inconsistent with that documented convention.

**Context Used:** guidelines.mdc Cursor rule ([source](https://github.com/modem-dev/modem/blob/main/.cursor/rules/guidelines.mdc))

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nah it believes a rule for general text formatting should also affect the title - over generalizing the rule, not exercising taste

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right — the new lines match the two-space indentation and double-quoted strings already used throughout this file. My comment incorrectly applied a formatting rule from a different context. The code is consistent with the surrounding style. Sorry for the noise!

@benvinegar
benvinegar enabled auto-merge (squash) August 8, 2026 04:52
@benvinegar
benvinegar merged commit 0886985 into main Aug 8, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
Preview — 75cd7036 Deployed Aug 8, 2026 by vercel[bot]
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.

Feature Request: Display diff summary (file count and +/- totals) in the UI

1 participant