Skip to content

refactor(store): rename terminal store and types to panel#5016

Merged
gregpriday merged 3 commits intodevelopfrom
feature/issue-5005-rename-terminal-store-types
Apr 7, 2026
Merged

refactor(store): rename terminal store and types to panel#5016
gregpriday merged 3 commits intodevelopfrom
feature/issue-5005-rename-terminal-store-types

Conversation

@gregpriday
Copy link
Copy Markdown
Collaborator

Summary

  • Renames the terminalStore and all associated types from "terminal" to "panel" naming throughout the store layer, aligning the codebase terminology with the actual panel architecture introduced in recent refactors.
  • Covers ~178 files across src/store/, src/components/, src/hooks/, shared/types/, and tests. Purely mechanical rename with no behaviour changes.
  • All typechecks, lint, and format checks pass cleanly.

Resolves #5005

Changes

  • terminalStore renamed to panelStore with all slice types updated accordingly
  • TerminalInstance, TerminalState, and related types renamed to PanelInstance, PanelState, etc.
  • All consumer imports updated across components, hooks, controllers, and tests

Testing

Full typecheck passes with no errors. Lint and format clean. Unit test suite passes.

- Rename terminalStore.ts → panelStore.ts, useTerminalStore → usePanelStore
- Rename terminalRegistry/ → panelRegistry/, TerminalRegistrySlice → PanelRegistrySlice
- Rename terminalPersistence.ts → panelPersistence.ts, terminalToSnapshot → panelToSnapshot
- Rename terminalStoreListeners.ts → panelStoreListeners.ts
- Rename state keys: terminalsById → panelsById, terminalIds → panelIds
- Rename methods: addTerminal → addPanel, removeTerminal → removePanel, trashTerminal → trashPanel
- Make PanelSnapshot canonical in shared/types/project.ts (TerminalSnapshot kept as alias)
- Update ~140 consumer files with new imports and identifiers
- Keep IPC channels, terminalInstanceService, terminal-specific stores unchanged

Closes #5005
- Fix self-referencing type alias AddPanelOptions in panelRegistry/types.ts
- Rename useTerminalStoreBootstrap.ts → usePanelStoreBootstrap.ts
- Revert IPC callback property names (terminalIds) in scrollback handlers
@gregpriday gregpriday force-pushed the feature/issue-5005-rename-terminal-store-types branch from 35b2f1d to 6d28814 Compare April 7, 2026 14:55
@gregpriday gregpriday merged commit fbf44d7 into develop Apr 7, 2026
@gregpriday gregpriday deleted the feature/issue-5005-rename-terminal-store-types branch April 7, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename terminal store and types to panel

1 participant