Clarify diff layout, geometry, and bounds naming#152
Conversation
Greptile SummaryThis is a pure rename/refactor PR that clarifies the naming vocabulary across the diff layout and geometry subsystems. It renames Key changes:
Confidence Score: 5/5Safe to merge — purely a rename/refactor with no logic changes; all old identifiers have been consistently replaced across source and tests. No P0 or P1 issues found. Every renamed export was verified to have zero remaining callers using the old name. The sole finding is a single unconverted local variable name (previousSectionMetrics → previousSectionGeometry) in DiffPane.tsx, which is a P2 style inconsistency with no runtime impact. All tests were updated, type-check is expected to pass, and no breakage was found in imports or logic. src/ui/components/panes/DiffPane.tsx — one local variable (previousSectionMetrics, lines 503–515) was not renamed to previousSectionGeometry. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
DP["DiffPane.tsx"]
DSG["diffSectionGeometry.ts\nmeasureDiffSectionGeometry\nDiffSectionGeometry\nDiffSectionRowBounds"]
FSL["fileSectionLayout.ts\nbuildFileSectionLayouts\nFileSectionLayout\ngetFileSectionHeaderTop"]
PRR["plannedReviewRows.ts\nmeasurePlannedSectionGeometry\nPlannedSectionGeometry\nPlannedHunkBounds"]
DP -->|"imports measureDiffSectionGeometry\nDiffSectionGeometry, DiffSectionRowBounds"| DSG
DP -->|"imports buildFileSectionLayouts\nfindHeaderOwningFileSection\ngetFileSectionHeaderTop"| FSL
DSG -->|"imports PlannedHunkBounds"| PRR
subgraph "Renamed symbols (old → new)"
A["sectionHeights.ts → diffSectionGeometry.ts"]
B["DiffSectionMetrics → DiffSectionGeometry"]
C["DiffSectionRowMetric.offset → DiffSectionRowBounds.top"]
D["FileSectionLayoutMetric → FileSectionLayout"]
E["resolveFileSectionHeaderTop → getFileSectionHeaderTop"]
F["measurePlannedHunkBounds → measurePlannedSectionGeometry"]
end
|
a85b11d to
89a6db6
Compare
Summary
metricstogeometryandboundswhere they describe measured spatial data*Metric(s)to*Layout(s)and simplify the header-top lookup naminglayout,geometry, andboundsconsistentlyTesting
This PR description was generated by Pi using OpenAI o3