Mailspring/internal_packages
Ben Gotow 552b66fbaf fix(syncback): Bidirectional transforms, ready-to-send saved state
Summary:
This diff replaces "finalizeSessionBeforeSending" with a
plugin hook that is bidirectional and allows us to put the draft in
the "ready to send" state every time we save it, and restore it to
the "ready to edit" state every time a draft session is created to
edit it.

This diff also significantly restructures the draft tasks:

1. SyncbackDraftUploadsTask:
   - ensures that `uploads` are converted to `files` and that any
     existing files on the draft are part of the correct account.

1. SyncbackDraftTask:
   - saves the draft, nothing else.

3. SendDraftTask
   - sends the draft, nothing else.
   - deletes the entire uploads directory for the draft

Test Plan: WIP

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2753
2016-03-16 19:27:12 -07:00
..
account-error-header fix(sync-errors): Handle account deltas indicating sync issues 2016-03-08 16:06:04 -08:00
account-sidebar fix(acct-menu): Add option to add account from context menu 2016-03-14 11:22:52 -07:00
attachments refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
category-picker fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
composer fix(uploads): Display icon regardless of ext capitalization 2016-03-15 09:31:22 -07:00
composer-emoji sp(composer-emoji): Correct emojis to emoji 2016-03-15 13:37:54 -07:00
composer-signature fix(signatures): Adds default signature, convert to ES6 2016-03-14 17:05:49 -07:00
composer-spellcheck fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
composer-templates fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
composer-translate remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
events refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
github-contact-card fix(sidebar): minor sidebar style and padding tweaks 2016-03-10 15:06:59 -05:00
link-tracking fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
message-autoload-images fix(autoload-images): Bar disappears when you choose to load images 2016-03-07 18:19:17 -08:00
message-list refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
message-view-on-github fix(github): Correct minor issue during ES6 conversion 2016-03-10 14:31:50 -08:00
mode-switch 💄(sidebar): Replace icon with person 2016-03-10 11:15:52 -08:00
notification-mailto
notification-update-available refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
notifications refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
onboarding fix(onboarding): We should accept IPs for servers during auth 2016-03-10 12:08:05 -08:00
open-tracking fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
participant-profile fix(sidebar): keep trying on 202s 2016-03-11 16:27:04 -05:00
personal-level-indicators es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
phishing-detection Fixed text overflow in phishing detection indicator 2016-03-11 20:33:06 +01:00
plugins 🎨(plugins): Add theme-specific icon in plugins tab 2016-03-14 17:55:25 -07:00
preferences feat(view-mode): Add option in menu to select view mode 2016-03-15 11:20:55 -07:00
print 💄(print): Fix #1425 2016-02-26 14:40:16 -08:00
quick-schedule
screenshot-mode
search-bar refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
send-and-archive fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
send-later fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
sidebar-fullcontact feat(sidebar): Add thread list of currently selected participants 2016-03-09 14:33:31 -05:00
system-tray fix(focus): Show drafts in unfocused state when window is blurred 2016-03-15 12:12:30 -07:00
theme-picker fix(themes): Add quick fixes for Ubuntu 2016-03-11 11:02:02 -08:00
thread-list fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
thread-snooze fix(snooze): Correctly query and create snooze categories per account 2016-03-14 15:36:39 -07:00
ui-dark refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
ui-darkside using new toolbar selectors, svgs, etc. 2016-03-14 19:02:00 -05:00
ui-light
ui-taiga 🎨(theme-picker): Order internal themes and update theme names 2016-03-10 16:37:06 -08:00
ui-ubuntu refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
undo-redo
unread-notifications
worker-sync fix(snooze): Correctly query and create snooze categories per account 2016-03-14 15:36:39 -07:00
worker-ui fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00