Skip to content

Save success dialog and unsaved changes exit confirmation - #20

Merged
mowi12 merged 3 commits into
mainfrom
feat/19-feature-save-success-dialog-and-unsaved-changes-exit-confirmation
Mar 24, 2026
Merged

Save success dialog and unsaved changes exit confirmation#20
mowi12 merged 3 commits into
mainfrom
feat/19-feature-save-success-dialog-and-unsaved-changes-exit-confirmation

Conversation

@mowi12

@mowi12 mowi12 commented Mar 24, 2026

Copy link
Copy Markdown
Owner

Related Issue

Closes #19

Changes

  • Added quit without save confirmation screen
  • Added save confirmation prompt instead of directly quitting application

Checklist

Either tick the items or cross out those that do not apply (using example text) and provide a brief explanation why they do not apply.

Author

  • I linked the issue that this PR closes.
  • I tested the changes locally.
  • I updated the documentation (if needed).
  • I added/updated tests (if needed).

@mowi12
mowi12 requested a review from Copilot March 24, 2026 21:08
@mowi12 mowi12 self-assigned this Mar 24, 2026
@mowi12 mowi12 added the enhancement New feature or request label Mar 24, 2026
@mowi12 mowi12 linked an issue Mar 24, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown

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 improves the Textual UI flow around saving and exiting by adding modal dialogs for (1) confirming exit when there are unsaved changes and (2) presenting options after a save completes, aligning the app’s UX with issue #19.

Changes:

  • Added UnsavedChangesModal and SaveSuccessModal modal screens to confirm risky exits and to present post-save actions.
  • Updated action_save to show a post-save modal instead of immediately exiting, and added state refresh after save.
  • Refactored add/remove computation into _repos_to_add(), _repos_to_remove(), and _has_unsaved_changes() helpers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/mr_manager/ui.py Introduces modal screens and updates save/quit flows to provide confirmation dialogs and post-save choices.
src/mr_manager/ui.tcss Adds styling for the new modal screens and their dialog layouts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/mr_manager/ui.py Outdated
Comment thread src/mr_manager/ui.py
Comment thread src/mr_manager/ui.py
@mowi12
mowi12 force-pushed the feat/19-feature-save-success-dialog-and-unsaved-changes-exit-confirmation branch from 070fa08 to aae17d5 Compare March 24, 2026 21:25
@mowi12
mowi12 merged commit 622bd53 into main Mar 24, 2026
4 checks passed
@mowi12
mowi12 deleted the feat/19-feature-save-success-dialog-and-unsaved-changes-exit-confirmation branch March 24, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Save Success Dialog and Unsaved-Changes Exit Confirmation

2 participants