Mailspring/internal_packages
Juan Tejada 37af2ba42c fix(remove-from-view): Fix logic for delete/remove-from-view behavior:
Summary:
- Separate gmail's remove-from-view and delete behaviors and write logic
  for each of those
  - Remove MailboxPerspective::{canArchiveThreads, canTrashThreads,
    removeThreads} and some unecessary code in TaskFactory
  - Instead, add MailboxPerspective::tasksForRemovingFromPerspective (I
    know its a bit of a mouthful)
  - I initially tried to put all of the logic for each execution path
    inside the TaskFactory by checking perspective types, but it made
    more sense to use the polymorphism already in place for the different
    perspective types.
  - There is a default delete/remove-from-view behavior which is
    configurable via simple ruleset objects. The gmail behavior is
    configured in this way.
- Update swipe css classes based on destination of threads
- Fixes #1460:
  - Update logic to display archive/trash buttons and context menu options correctly
    when selected threads can be archived/trashed (not based on
    perspective)
  - Same for swiping
- Add a bunch of specs
- Convert some code to ES6
- TODO write some docs for new functions

Test Plan: Unit tests

Reviewers: drew, evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2682
2016-03-07 18:16:37 -08:00
..
account-sidebar fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
attachments 🎨: Smaller buttons, smaller toolbar, smaller text 2016-02-09 19:45:24 -08:00
category-picker fix(snooze): Hide N1-Snoozed from the category picker 2016-02-25 13:32:58 -08:00
composer fix(composer): fix minor spacing issue on popout composer 2016-03-02 16:06:40 -08:00
composer-emojis Bump version for node-emoji 2016-03-02 18:58:07 -08:00
composer-signature es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
composer-spellcheck lint(*): correct eslint errors, warnings still exist 2016-03-01 10:58:29 -05:00
composer-templates es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
composer-translate es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
events Merge branch 'master' into unified-inbox 2016-01-12 08:20:55 -08:00
github-contact-card es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
link-tracking Match only valid URLs for link tracking 2016-03-03 13:46:41 -08:00
message-autoload-images 💄(bars): No email address overflowing phising / autoload images bars 2016-03-03 14:16:54 -08:00
message-list fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
message-view-on-github es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
mode-switch 💄: White buttons, dropdown / popover cleanup, hairline dividers 2016-02-18 15:21:42 -08:00
notification-mailto fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notification-update-available fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notifications Merge branch 'master' into unified-inbox 2016-01-12 08:20:55 -08:00
onboarding feat(onboarding): update account-choose page 2016-03-04 16:53:26 -05:00
open-tracking fix(link/open tracking): Update error messages 2016-02-25 13:32:59 -08:00
personal-level-indicators es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
phishing-detection fix(phishing): Tie to MessageStore so it works when msgs aren't ready 2016-03-03 14:39:15 -08:00
plugins fix(plugin): better errors if plugins are malformed 2016-02-25 11:55:11 -08:00
preferences fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
print 💄(print): Fix #1425 2016-02-26 14:40:16 -08:00
quick-schedule fix(error-handling): handle offline for link tracking & read-receipts 2016-02-24 16:06:08 -08:00
screenshot-mode feat(screenshot-mode): Minor fix to unmount method 2016-01-29 16:59:51 -08:00
search-bar 💄(search): Fix clear button positioning 2016-02-22 10:14:34 -08:00
send-and-archive fix(send-and-archive): Was disabling signatures due to name collision 2016-02-01 17:33:18 -08:00
send-later fix(date-utils): Add localization to date formats 2016-03-07 16:44:54 -08:00
sidebar-fullcontact feat(transactions): Explicit (and faster) database transactions 2015-12-17 11:46:05 -08:00
system-tray lint(system-tray): code style consistent with rest of file 2016-02-26 11:37:20 -05:00
theme-picker spec(theme-picker): Remove filter for theme picker spec 2016-03-06 16:37:36 -08:00
thread-list fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
thread-snooze fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
ui-dark 💄 Minor visual tweaks to win32 + dark mode 2016-02-22 13:30:12 -08:00
ui-light feat(theme-selector): Add theme selector to preferences page 2015-12-15 10:29:58 -08:00
undo-redo fix(undo): Ensure undo bar dismisses after re-appearing 2016-02-05 19:11:27 -08:00
unread-notifications Revert "fix(sidebar): Correctly update sidebar when a notif is selected" 2016-02-02 10:58:24 -08:00
worker-sync fix(config): Store cursors with sync state, avoid constant config.cson writes 2016-02-26 13:52:19 -08:00
worker-ui fix(feedback): Remove feedback btn, update "N1 Help" in menu bar 2016-02-24 13:49:15 -08:00