Mailspring/internal_packages/composer-templates/lib
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
..
main.es6 es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
preferences-templates.cjsx fix(templates): fix when the "no templates" message is displayed 2016-01-20 10:24:45 -08:00
template-composer-extension.es6 fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
template-editor.es6 fix(templates): fix a null check bug in template contentedtable ext 2016-03-10 19:06:15 -08:00
template-picker.jsx remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
template-status-bar.jsx fix(lint): Fix new eslint rule introduced with babel-eslint upgrade. 2016-02-01 20:07:36 -08:00
template-store.es6 fix(templates): rewritten "welcome" file / example template 2016-01-13 12:08:41 -08:00