refactor(ui): isolate current review refresh - #873
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThe PR extracts current-review descriptor derivation, refresh operations, and watch coordination from
Confidence Score: 4/5The PR appears safe to merge after the non-blocking new-file naming convention issue is addressed. The extracted refresh controller preserves watcher teardown, current-descriptor targeting, and host reload serialization; the only accepted concern is that newly added TypeScript files do not follow the required dash-case naming convention. Files Needing Attention: src/ui/hooks/useCurrentReviewRefreshController.ts, src/ui/hooks/useCurrentReviewRefreshController.test.tsx, src/ui/currentReviewRefresh.ts Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
App[App view state] --> Controller[Current review refresh controller]
Controller --> Descriptor[Refresh descriptor]
Controller --> Watch[Watched input]
Descriptor --> Host[AppHost reload queue]
Watch --> Host
Write[Workspace write completion] --> Host
Host --> Reload[Soft review reload]
Prompt To Fix All With AI### Issue 1
src/ui/hooks/useCurrentReviewRefreshController.ts:1
**Use dash-case module filenames**
The new hook, its colocated test, and `currentReviewRefresh.ts` use camelCase filenames instead of the repository-required dash-case convention, conflicting with the filename linting policy and establishing an inconsistent module pattern.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "refactor(ui): isolate current review ref..." | Re-trigger Greptile |
| @@ -0,0 +1,114 @@ | |||
| /** | |||
There was a problem hiding this comment.
Use dash-case module filenames
The new hook, its colocated test, and currentReviewRefresh.ts use camelCase filenames instead of the repository-required dash-case convention, conflicting with the filename linting policy and establishing an inconsistent module pattern.
Context Used: guidelines.mdc Cursor rule (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/ui/hooks/useCurrentReviewRefreshController.ts
Line: 1
Comment:
**Use dash-case module filenames**
The new hook, its colocated test, and `currentReviewRefresh.ts` use camelCase filenames instead of the repository-required dash-case convention, conflicting with the filename linting policy and establishing an inconsistent module pattern.
**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!
5fe7c6d to
946f005
Compare
Summary
useCurrentReviewRefreshControllerTesting
bun run typecheckbun run deps:checkbun run lintbun run format:checkbun test test/pty/watch.test.tsThis PR description was generated by Pi using GPT-5.6 Sol