Skip to content

Conversation

@tammi-23
Copy link
Contributor

@tammi-23 tammi-23 commented Feb 9, 2026

implement #1480

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

Implements draft state handling for the mail compose flow, including save/discard behaviors and draft mailbox discovery.

Changes:

  • Added a draft API connector + composable to create/replace/delete drafts and to manage dirty/saving state.
  • Refactored Pinia stores to sync selected IDs with route query parameters via a shared helper.
  • Updated UI to prompt on close, auto-save drafts periodically, and show a “Saved” hint.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
packages/web-app-mail/src/helpers/mailDraftConnector.ts Adds an HTTP-backed connector implementing the draft API.
packages/web-app-mail/src/composables/useSaveAsDraft.ts Introduces draft-saving/discarding composable with dirty/saving state.
packages/web-app-mail/src/composables/piniaStores/mails.ts Refactors selected mail handling to use route query binding helper.
packages/web-app-mail/src/composables/piniaStores/mailboxes.ts Refactors mailboxes store and adds computed drafts mailbox selection.
packages/web-app-mail/src/composables/piniaStores/accounts.ts Refactors accounts store and binds current account to route query.
packages/web-app-mail/src/composables/piniaStores/helpers.ts Adds helper to normalize route query values into a single string.
packages/web-app-mail/src/components/MailboxTree.vue Fixes mailbox selection flow to avoid deref’ing missing account.
packages/web-app-mail/src/components/MailWidget.vue Adds leave-confirm modal, auto-save, and draft integration to compose modal.
packages/web-app-mail/src/components/MailList.vue Mounts compose widget only when open; fixes seen-flag update source.
packages/web-app-mail/src/components/MailListItem.vue Sanitizes HTML-like preview content before rendering preview text.
packages/web-app-mail/src/components/MailComposeForm.vue Stabilizes props defaults + fixes modelValue usage after toRefs().

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

tammi-23 and others added 3 commits February 10, 2026 08:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tammi-23 tammi-23 requested a review from Copilot February 10, 2026 13:14
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 15 out of 15 changed files in this pull request and generated 6 comments.


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

@tammi-23 tammi-23 requested a review from AlexAndBear February 10, 2026 15:37
@tammi-23 tammi-23 marked this pull request as ready for review February 10, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant