mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
4f41845a22
Summary: This diff attempts to improve the responsiveness of the app when you hit "Reply". This is achieved by being smarter about creating the draft and loading it into the draft store, and also by allowing the compose* actions to take objects instead of just IDs (resulting in a fetch of the object). Allow Actions.composeReply,etc. to optionally be called with thread and message objects instead of IDs. This prevents a database lookup and the data is "right there." Create DraftStoreProxy for new drafts optimistically—this allows us to hand it the draft model we just created and it doesn't have to go query for it When we create a new Draft, immediately bind it to a LocalId. This means that when the MessageStore receives the trigger() event from the Database, it doesn't have to wait while a localId is created When MessageStore sees a new Message come in which is on the current thread, a draft, and not in the localIds map, assume it's a new draft and shortcut fetchFromCaceh to manually add it to the items array and display. This means the user sees the... ...draft instantly. Remove delays from focusing draft, scrolling to draft after content is ready. I actually removed these thinking it would break something, and it didn't break anything.... Maybe new Chromium handles better? Fix specs Test Plan: Run specs - more in progress right now Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1598 |
||
---|---|---|
.. | ||
components | ||
fixtures | ||
models | ||
stores | ||
tasks | ||
action-bridge-spec.coffee | ||
buffered-process-spec.coffee | ||
clipboard-spec.coffee | ||
component-registry-spec.coffee | ||
database-view-spec.coffee | ||
menu-manager-spec.coffee | ||
model-view-selection-spec.coffee | ||
model-view-spec.coffee | ||
module-cache-spec.coffee | ||
nylas-protocol-handler-spec.coffee | ||
nylas-sync-worker-spec.coffee | ||
package-manager-spec.coffee | ||
package-spec.coffee | ||
style-manager-spec.coffee | ||
styles-element-spec.coffee | ||
task-spec.coffee | ||
test_utils.coffee | ||
theme-manager-spec.coffee | ||
undo-manager-spec.coffee | ||
utils-spec.coffee |