Mailspring/internal_packages/thread-list/lib
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
..
category-removal-target-rulesets.es6 fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
draft-buttons.cjsx feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
draft-list-columns.cjsx fix(draft-list): Display , separated participants list 2016-02-18 12:14:18 -08:00
draft-list-send-status.jsx feat(snooze/send-later): Add snooze and send later plugins 2016-02-18 10:06:21 -08:00
draft-list-store.coffee feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
draft-list.cjsx fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
draft-selection-bar.cjsx fix(linter): Switching between Coffee + ES6 is hard... 2016-01-28 14:59:17 -08:00
empty-state.cjsx fix(inbox-zero): don't show inbox zero when syncing 2016-02-23 14:17:11 -08:00
focus-container.cjsx Clean up the MultiselectList implementation a bit 2016-01-15 14:26:07 -08:00
formatting-utils.cjsx
main.cjsx feat(snooze/send-later): Add snooze and send later plugins 2016-02-18 10:06:21 -08:00
sending-cancel-button.cjsx feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
sending-progress-bar.cjsx feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
thread-buttons.cjsx fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
thread-list-columns.cjsx feat(hidden-messages): Filter trash/spam messages. Fixes #1135 2016-03-02 10:05:17 -08:00
thread-list-context-menu.es6 fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
thread-list-data-source.coffee feat(outbox): Sending status now appears beside drafts 2016-02-04 14:14:24 -08:00
thread-list-icon.cjsx feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
thread-list-participants.cjsx fix(contact): Converge on displayName(), don't show account label in ThreadList. Fixes #1157 2016-02-01 19:12:06 -08:00
thread-list-quick-actions.cjsx fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
thread-list-scroll-tooltip.cjsx More renaming of view => data source 2016-01-14 15:04:17 -08:00
thread-list-store.coffee fix(focus): Don't clear when item is scrolled out of retained range 2016-01-29 12:34:58 -08:00
thread-list.cjsx fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
thread-selection-bar.cjsx fix(linter): Switching between Coffee + ES6 is hard... 2016-01-28 14:59:17 -08:00