chore(stores): remove unused exports and dead code from zustand stores#4014
chore(stores): remove unused exports and dead code from zustand stores#4014waleedlatif1 merged 1 commit intostagingfrom
Conversation
PR SummaryLow Risk Overview Drops the unused Reviewed by Cursor Bugbot for commit cd2cbce. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR is a targeted dead-code cleanup across several Zustand stores, removing unused selectors, dead interfaces, and tightening barrel exports to stop leaking internal-only types to the public API surface.
Confidence Score: 5/5Safe to merge — pure dead-code removal with no logic changes or behavioral impact All removed symbols ( No files require special attention Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Before["Before — leaky barrel exports"]
A1[stores/folders/index.ts] -->|exported| B1[useIsTaskSelected ❌]
A2[stores/notifications/index.ts] -->|exported| B2[AddNotificationParams ❌]
A3[stores/variables/index.ts] -->|exported| B3[getDefaultVariablesDimensions ❌]
A4[stores/terminal/index.ts] -->|missing| B4[safeConsoleStringify ⚠️]
end
subgraph After["After — clean public API"]
C1[stores/folders/index.ts] -->|exports| D1[useFolderStore ✓]
C1 -->|exports| D2[useIsFolderSelected ✓]
C1 -->|exports| D3[useIsWorkflowSelected ✓]
C2[stores/notifications/index.ts] -->|exports| D4[useNotificationStore ✓]
C2 -->|exports| D5[Notification / NotificationAction ✓]
C3[stores/terminal/console/index.ts] -->|exports| D6[safeConsoleStringify ✓]
C4[stores/terminal/index.ts] -->|re-exports| C3
C5[terminal.tsx / output-panel.tsx] -->|import from| C4
end
Reviews (1): Last reviewed commit: "chore(stores): remove unused exports and..." | Re-trigger Greptile |
Summary
Workflowinterface from folders store (never imported anywhere)useIsTaskSelectedselector from folders storegetDefaultVariablesDimensionsfrom variables modal storeAddNotificationParams)Type of Change
Testing
Type check passes, lint passes
Checklist