Skip to content

refactor(Dialogs): Modernize with VModel and consolidate buttons#2372

Merged
meteyou merged 57 commits intomainsail-crew:developfrom
meteyou:refactor/dialog-to-vmodel
Jan 7, 2026
Merged

refactor(Dialogs): Modernize with VModel and consolidate buttons#2372
meteyou merged 57 commits intomainsail-crew:developfrom
meteyou:refactor/dialog-to-vmodel

Conversation

@meteyou
Copy link
Member

@meteyou meteyou commented Jan 4, 2026

Description

This PR modernizes the dialog system across the codebase by standardizing patterns and consolidating duplicate code.

1. Dialog VModel Migration

  • Converted ~30 dialogs from @Prop + @Emit pattern to @VModel for cleaner two-way binding
  • Provides simpler parent-child communication

2. ConfirmationDialog Consolidation

  • Extended ConfirmationDialog with optional icon and actionButtonColor props
  • Replaced 10 single-purpose confirmation dialogs with the reusable ConfirmationDialog:
    • CancelJobDialog
    • CoolDownDialog
    • HeightmapRemoveProfileDialog
    • GcodefilesDeleteFileDialog
    • GcodefilesDeleteDirectoryDialog
    • GcodefilesDeleteSelectedFilesDialog
    • HistoryDeleteJobDialog
    • HistoryDeleteSelectedJobsDialog
    • HistoryListPanelDeleteSelectedJobsDialog
    • HistoryDetailsDialogEntry
    • SpoolmanEjectSpoolDialog

3. Button Label Consolidation

  • Introduced Buttons.Close, Buttons.Save, Buttons.Cancel namespace
  • Migrated all button labels to use centralized Buttons.* keys
  • Standardized "Abort" → "Cancel" across all dialogs

Related Tickets & Documents

none

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none

meteyou added 30 commits January 4, 2026 16:50
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
… VModel

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
…el and refactor onShowDialogChanged

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…odel

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
…nfirmationDialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…l and focus into the input after opening

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…us into the input after opening

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
…p confirmation

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
…firmationDialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
…way binding

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…g using v-model

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…dialog using v-model

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…tion dialog using v-model

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…el for showDialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…nfirmation dialog using v-model

Signed-off-by: Stefan Dej <meteyou@gmail.com>
meteyou added 14 commits January 4, 2026 23:05
…sibility

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…r device change

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…te actions in ConfigFilesPanel.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…deObject.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…r.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…apseFilesPanel.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…ce across dialog components

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…og components

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…espace across dialog components

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…ther locations

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…ther locations

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…ross various components

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…nent

Signed-off-by: Stefan Dej <meteyou@gmail.com>
…mationDialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
@meteyou meteyou marked this pull request as ready for review January 5, 2026 22:02
@meteyou meteyou changed the title refactor(Dialogs): change all dialogs from Prop to VModel refactor(Dialogs): Modernize with VModel and consolidate buttons Jan 5, 2026
@meteyou meteyou added this to the v2.17.0 milestone Jan 5, 2026
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…rmation dialog

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

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

@meteyou meteyou merged commit 7b06f8a into mainsail-crew:develop Jan 7, 2026
12 checks passed
@meteyou meteyou deleted the refactor/dialog-to-vmodel branch January 7, 2026 21:44
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