Skip to content

refactor: move HistoryListPanelCol interface to centralized type#2379

Merged
meteyou merged 2 commits intomainsail-crew:developfrom
meteyou:refactor/history-list-entry-maintenance
Jan 7, 2026
Merged

refactor: move HistoryListPanelCol interface to centralized type#2379
meteyou merged 2 commits intomainsail-crew:developfrom
meteyou:refactor/history-list-entry-maintenance

Conversation

@meteyou
Copy link
Member

@meteyou meteyou commented Jan 6, 2026

Description

This PR moves the HistoryListPanelCol interface from HistoryListPanel.vue to @/store/server/history/types.ts to fix TypeScript import errors (TS2614). Additionally, it removes an unnecessary computed property in HistoryListEntryMaintenance.vue.

Related Tickets & Documents

n/a

Mobile & Desktop Screenshots/Recordings

n/a (no visual changes)

…ving computed property

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…ol to use centralized types

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the TypeScript codebase by moving the HistoryListPanelCol interface from a component file to a centralized types file, fixing TypeScript import errors (TS2614). It also simplifies the HistoryListEntryMaintenance.vue component by removing an unnecessary computed property.

  • Moved HistoryListPanelCol interface from HistoryListPanel.vue to @/store/server/history/types.ts
  • Updated all imports across 4 files to reference the new centralized location
  • Removed unnecessary cssClasses computed property in HistoryListEntryMaintenance.vue, replacing it with a direct class binding

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/store/server/history/types.ts Added HistoryListPanelCol interface definition to centralized types file
src/components/panels/HistoryListPanel.vue Removed local interface definition and updated import to use centralized type
src/components/panels/History/HistoryListPanelExportCsv.vue Updated import statement to reference centralized type location
src/components/panels/History/HistoryListEntryMaintenance.vue Updated import and removed unnecessary cssClasses computed property, replacing with direct class binding
src/components/panels/History/HistoryListEntryJob.vue Updated import statement to reference centralized type location

@meteyou meteyou merged commit 270481c into mainsail-crew:develop Jan 7, 2026
12 checks passed
@meteyou meteyou deleted the refactor/history-list-entry-maintenance branch January 7, 2026 09:57
@meteyou meteyou added this to the v2.17.0 milestone Jan 7, 2026
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.

3 participants