refactor(ui): extract planned row text projection - #874
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
759f5bc to
726ffbc
Compare
Greptile SummaryThis PR separates canonical diff-row geometry, styled-span wrapping, and plain-text projection from the React renderer while preserving focused imports for clipboard, OpenTUI, annotations, geometry, and conformance consumers.
Confidence Score: 5/5The PR appears safe to merge because the extraction preserves the existing rendering, geometry, clipboard, and annotation behavior without an identified actionable regression. The new layout, projection, and span modules retain the prior algorithms, form an acyclic dependency graph, and keep measurement, React painting, and clipboard projection connected through shared geometry and wrapping helpers. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
Plan[Planned review row] --> Geometry[codeRowLayout]
Spans[Styled code spans] --> Wrapping[styledSpanLayout]
Wrapping --> Geometry
Geometry --> Renderer[renderRows React paint]
Geometry --> Projection[plannedRowText]
Wrapping --> Renderer
Wrapping --> Projection
Projection --> Clipboard[Copy selection]
Projection --> OpenTUI[OpenTUI labels and empty-diff messages]
Projection --> Conformance[Conformance consumer]
Annotations[agentAnnotations title helper] --> Renderer
Annotations --> Projection
Reviews (1): Last reviewed commit: 759f5bc | Re-trigger Greptile |
Summary
plannedRowText.tsStack
Validation
bun run typecheckbun run lintbun run deps:checkbun run build:npmThe unchanged local runtime-module resolver assertion remains the only full-suite issue.
This PR description was generated by Pi using gpt-5.6-sol