Mailspring/internal_packages/message-list/spec
Ben Gotow 92bff6ca5a fix(drafts): Formalize draft factory, add reply "behaviors" #1722
Summary:
This diff implements a behavior change described in https://github.com/nylas/N1/issues/1722.

Reply buttons should prefer to focus an existing draft in reply to the same message, if one is pristine, altering it as necessary to switch between reply / reply-all. If no pristine reply is already there, it creates one.

Reply keyboard shortcuts should do the same, but more strictly - the shortcuts should switch between reply / reply-all for an existing draft regardless of whether it's pristine.

This diff also cleans up the DraftStore and moves all the draft creation itself to a new DraftFactory object. This makes it much easier to see what's going on in the DraftStore, and I also refactored away the "newMessageWithContext" method, which was breaking the logic for Reply vs Forward between a bunch of different helper methods and was hard to follow.

Test Plan: They're all wrecked. Will fix after concept is greenlighted

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2776
2016-03-22 15:47:51 -07:00
..
autolinker-fixtures fix(autolinker): Additional phone number parsing specs 2016-03-15 11:04:00 -07:00
autolinker-spec.es6 rm(autolinker): Use our own very simple autolinker 2016-03-14 12:30:54 -07:00
message-item-body-spec.cjsx feat(download-all): Adds download-all button + style updates, more ES6 2016-03-21 18:23:26 -07:00
message-item-container-spec.cjsx fix(message-list): Spec fixes, all stubs need accountId 2016-01-28 11:14:04 -08:00
message-item-spec.cjsx fix(bodies): MBP should cache "" so that it updates when new body arrives 2016-03-09 19:14:54 -08:00
message-list-spec.cjsx fix(drafts): Formalize draft factory, add reply "behaviors" #1722 2016-03-22 15:47:51 -07:00
message-participants-spec.cjsx fix(participants): Update specs to reflect that spacing is now in CSS 2016-02-19 10:28:02 -08:00
message-timestamp-spec.cjsx Standardize message-list capitalization to AM/PM, 2016-01-19 15:54:44 -07:00
tracking-pixels-extension-spec.coffee fix(extension-adapter): Update adapter to support all versions of extension api we've used 2015-12-30 15:11:37 -05:00