Mailspring/internal_packages/composer/lib
Ben Gotow bf955891d9 fix(undo): Move undo/redo to session, properly undo all changes
Summary:
- Simplify undoManager to just maintain the undo/redo history items
- DraftEditingSession manages snapshotting state of draft, hack allows it to also save selection (still hoping to eventually put selection in body HTML as markers)
- Switch from `debounce` to `throttle` style behavior so typing for along time followed by undo doesn't undo away your entire block.

This resolves two issues:
+ Changes to participant fields are no longer undoable because they go straight to the session.
+ Changes to metadata weren't undoable.

Test Plan: Tests WIP

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2956
2016-05-24 11:48:33 -07:00
..
decorators fix(composer): reduction in composer bootup time 2016-05-17 15:03:49 -07:00
account-contact-field.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
action-bar-plugins.jsx fix(send-later): Check if draft is valid before scheduling send later 2016-05-19 13:28:28 -07:00
collapsed-participants.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
compose-button.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
composer-editor.jsx fix(undo): Move undo/redo to session, properly undo all changes 2016-05-24 11:48:33 -07:00
composer-header-actions.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
composer-header.jsx fix(mail-merge): Pass session to injected subject 2016-05-13 16:01:12 -07:00
composer-view.jsx fix(undo): Move undo/redo to session, properly undo all changes 2016-05-24 11:48:33 -07:00
fields.es6 fix(lint): Various linter fixes 2016-05-06 16:23:48 -07:00
file-upload.jsx fix(focus): Remove focusedField in favor of imperative focus, break apart ComposerView 2016-04-04 15:22:01 -07:00
image-file-upload.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
main.es6 feat(perf): add perf monitoring to composer open time 2016-05-17 14:23:14 -07:00
send-action-button.jsx fix(lint): final linter fixes 2016-05-06 16:32:34 -07:00
subject-text-field.jsx feat(mail-merge): Add ability to drop tokens in subject 2016-05-12 10:47:41 -07:00