refactor: centralize shared render constants#135
Conversation
Greptile SummaryThis PR is a clean refactoring that introduces Key changes:
Confidence Score: 5/5Safe to merge — purely mechanical constant extraction with no behavior changes Every replacement is a 1-to-1 substitution of an identical value; TypeScript types are preserved (including No files require special attention Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
C[src/core/constants.ts]
C -->|DIFF_CONTEXT_LINES| L[src/core/loaders.ts]
C -->|UI_LAYOUT_CONSTANTS\nWATCH_POLL_INTERVAL_MS| A[src/ui/App.tsx]
C -->|UI_SCROLL_CONSTANTS| D[src/ui/components/panes/DiffPane.tsx]
C -->|UI_SCROLL_CONSTANTS| V[src/ui/components/scrollbar/VerticalScrollbar.tsx]
C -->|DEFAULT_TAB_SIZE\nHIGHLIGHTER_PREFERRED\nTHEME_CONSTANTS\nTOKENIZE_MAX_LINE_LENGTH| P[src/ui/diff/pierre.ts]
Reviews (1): Last reviewed commit: "refactor: centralize shared render const..." | Re-trigger Greptile |
|
Closing for backlog cleanup. This refactor is now substantially out of date and in conflict with current main, so it is better reopened fresh if the constant extraction is still worth doing. |
Summary
src/core/constants.tsfor shared diff, layout, scroll, watch, and theme constantsTesting
bun run typecheckbun testThis PR description was generated by Pi using OpenAI GPT-5