Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThe PR adds the total changed-file count, with singular/plural labeling, to the existing menu-bar addition and deletion summary.
Confidence Score: 4/5The 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
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 |
| const changedFileCount = bootstrap.changeset.files.length; | ||
| const changedFileLabel = changedFileCount === 1 ? "file" : "files"; |
There was a problem hiding this 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)
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!
There was a problem hiding this comment.
Nah it believes a rule for general text formatting should also affect the title - over generalizing the rule, not exercising taste
There was a problem hiding this comment.
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!
Summary
Fixes #561.
Validation
bun test src/ui/AppHost.interactions.test.tsx --test-name-pattern "menu bar summarizes"bun run typecheckbun run format:checkbun run lintbun run test:integration— 97 passedbun run test:tty-smoke— 9 passed1 filesummaryNotes
bun testreached 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