Mailspring/internal_packages
Ben Gotow e09d3e3e75 feat(trash): Trash for Gmail, and architectural changes for common tasks
Summary:
This diff centralizes logic for creating common tasks for things like moving to trash, archive, etc. TaskFactory exposes a set of convenience methods and hides the whole "and also remove the current label" business from the user.

This diff also formally separates the concept of "moving to trash" and "archiving" so that "remove" isn't used in an unclear way.

I also refactored where selection is managed. Previously you'd fire some action like archiveSelection and it'd clear the selection, but if you selected some items and used another method to archive a few, they were still selected. The selection is now bound to the ModelView as intended, so if items are removed from the modelView, they are removed from it's attached selection. This means that it shouldn't /technically/ be possible to have selected items which are not in view.

I haven't refactored the tests yet. They are likely broken...

Fix next/prev logic

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2157
2015-10-21 10:38:00 -07:00
..
account-sidebar Fix scrollability in expanded activity sidebar 2015-10-09 09:31:37 -07:00
attachments fix(window-serialization): Restore window size, remove cruft from atom.coffee 2015-09-24 10:40:38 -07:00
category-picker feat(trash): Trash for Gmail, and architectural changes for common tasks 2015-10-21 10:38:00 -07:00
composer fix(tasks): don't continue if dependent task fails 2015-10-21 10:33:43 -07:00
composer-signature feat(work): Create the "Work" window, move TaskQueue, Nylas sync workers 2015-08-27 16:39:40 -07:00
composer-spellcheck fix(spellcheck): Remove premature optimizations and avoid spellcheck on word being typed 2015-09-11 11:12:25 -07:00
events disable(events): Turn off the events package until it can be polished 2015-10-04 16:57:43 -07:00
feedback fix(feedback): Make button slightly smaller, less obtrusive 2015-10-12 11:04:27 -07:00
inbox-contact-elements fix(drafts): fix illegal ID set 2015-08-31 15:21:41 -07:00
message-list feat(trash): Trash for Gmail, and architectural changes for common tasks 2015-10-21 10:38:00 -07:00
mode-switch fix(mode-toggle): mode toggler now toggles the sidebar rather than the list/split view. fixes T3462. 2015-09-04 12:32:19 -07:00
notification-mailto fix(docs): Replace docs references to Edgehill with N1 2015-09-29 09:45:02 -07:00
notification-update-available rename(Nylas Mail): Replace Nylas Mail > N1 2015-09-29 09:44:30 -07:00
notifications fix(sidebar): Prevent white top border in all scenarios 2015-10-12 11:14:44 -07:00
onboarding fix(toolbars): Cross disolve toolbar items on a one-off basis 2015-10-21 10:34:14 -07:00
plugins actually no more gh-pages 2015-10-05 05:08:53 -07:00
preferences fix(config): new mail sounds on by default, change config keypath 2015-10-14 17:11:36 -07:00
search-bar fix(specs): fix contenteditable and contact search specs 2015-09-22 16:40:33 -07:00
sidebar-fullcontact fix(message-sidebar): New ContactCard injectable role, updated FocusedContactStore 2015-09-24 18:58:53 -07:00
thread-list feat(trash): Trash for Gmail, and architectural changes for common tasks 2015-10-21 10:38:00 -07:00
tooltip tweak(tooltip): Fix Sentry 2938 2015-09-10 18:37:15 -07:00
ui-dark fix(theme): more consistent styles for dark-mode theme 2015-10-09 16:05:26 -07:00
ui-light fix(fonts): update fonts and styles 2015-10-01 17:55:11 -07:00
undo-redo fix(window-serialization): Restore window size, remove cruft from atom.coffee 2015-09-24 10:40:38 -07:00
unread-notifications fix(config): new mail sounds on by default, change config keypath 2015-10-14 17:11:36 -07:00
worker-sync fix(specs): ContactStore spec fixes for new contact ranking support 2015-10-09 13:42:24 -07:00
worker-ui fix(tasks): don't continue if dependent task fails 2015-10-21 10:33:43 -07:00