Mailspring/spec/tasks
Ben Gotow 8b3f7f0578 feat(outbox): Sending status now appears beside drafts
Summary:
This diff adds an "OutboxStore" which reflects the TaskQueue and
adds a progress bar / cancel button to drafts which are currently sending.

- Sending state is different from things like Send later because drafts
  which are sending shouldn't be editable. You should have to stop them
  from sending before editing. I think we can implement "Send Later"
  indicators, etc. with a simple InjectedComponentSet on the draft list
  rows, but the OutboxStore is woven into the DraftList query subscription
  so every draft has a `uploadTaskId`.

- The TaskQueue now saves periodically (every one second) when there are
  "Processing" tasks. This is not really necessary, but makes it super
  easy for tasks to expose "progress", because they're essentially
  serialized and propagated to all windows every one second with the
  current progress value. Kind of questionable, but super convenient.

- I also cleaned up ListTabular and MultiselectList a bit because they
  applied the className prop to an inner element and not the top one.

- If a DestroyDraft task is created for a draft without a server id, it
  ends with Task.Status.Continue and not Failed.

- The SendDraftTask doesn't delete uploads until the send actually goes
  through, in case the app crashes and it forgets the file IDs it created.

Test Plan: Tests coming soon

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2524
2016-02-04 14:14:24 -08:00
..
change-folder-task-spec.coffee Fix more task specs 2016-01-22 16:55:29 -08:00
change-labels-task-spec.coffee Fix more task specs 2016-01-22 16:55:29 -08:00
change-mail-task-spec.coffee feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00
change-starred-task-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
change-unread-task-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
create-model-task-spec.es6 feat(metadata): add cloudState that sync with Metadata service 2016-02-02 15:28:06 -05:00
destroy-category-task-spec.coffee feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00
destroy-model-task-spec.es6 feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00
event-rsvp-spec.coffee feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00
send-draft-spec.coffee feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
syncback-category-task-spec.coffee Merge branch 'master' into unified-inbox 2016-01-25 17:28:29 -08:00
syncback-draft-spec.coffee More spec fixes 2016-01-27 10:31:54 -08:00
syncback-model-task-spec.es6 feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00
task-factory-spec.coffee fix(remove-from-view): Update remove from view (shortcut) behavior 2016-02-01 17:40:42 -08:00
task-spec.coffee feat(error): improve error reporting. Now NylasEnv.reportError 2016-02-03 18:06:52 -05:00
update-model-task-spec.es6 feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes 2016-01-15 15:16:21 -05:00