Mailspring/static/components
Ben Gotow 606909e256 feat(mail-rules): Per-account mail rules filter incoming, existing mail
Summary:
Originally, this was going to be a totally independent package, but
I wasn't able to isolate the functionality and get it tied in to
the delta-stream consumption. Here's how it currently works:

- The preferences package has a new tab which allows you to edit
  mail filters. Filters are saved in a new core store, and a new
  stock component (ScenarioEditor) renders the editor. The editor
  takes a set of templates that define a value space, and outputs
  a valid set of values.

- A new MailFilterProcessor takes messages and creates tasks to
  apply the actions from the MailFiltersStore.

- The worker-sync package now uses the MailFilterProcessor to
  apply filters /before/ it calls didPassivelyReceiveNewModels,
  so filtrs are applied before any notifications are created.

- A new task, ReprocessMailFiltersTask allows you to run filters
  on all of your existing mail. It leverages the existing TaskQueue
  architecture to: a) resume where it left off if you quit midway,
  b) be queryable (for status) from all windows and c) cancelable.
  The TaskQueue is a bit strange because it runs performLocal and
  performRemote very differently, and I had to use `performRemote`.
  (todo refactor soon.)

This diff also changes the EditableList a bit to behave like a
controlled component and render focused / unfocused states.

Test Plan: Run tests, only for actual filter processing atm.

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2379
2015-12-23 02:19:32 -05:00
..
button-dropdown.less feat(windows): improve UI for Windows 2015-10-21 20:32:33 -07:00
contenteditable.less feat(signatures): add raw signature support 2015-11-30 14:02:58 -08:00
disclosure-triangle.less feat(prefs): Allow tabs with an accounts submenu 2015-11-30 11:43:49 -08:00
editable-list.less feat(mail-rules): Per-account mail rules filter incoming, existing mail 2015-12-23 02:19:32 -05:00
extra.less feat(windows): improve UI for Windows 2015-10-21 20:32:33 -07:00
generated-form.less feat(salesforce): load current user 2015-05-07 15:28:44 -07:00
key-commands-region.less feat(keymap): add new <KeymapHandlers /> 2015-11-06 11:47:06 -08:00
list-tabular.less fix(thread-list): Focused / selected threads appear gray when window is blurred 2015-09-28 02:43:46 -07:00
menu.less fix(dropdowns): 3% darken on hover, not full blue 2015-11-13 16:58:55 -08:00
popover.less bump(️): Electron 0.29.2 > 0.34.3, Sqlite 3.0.11 > 3.1.1 2015-11-17 15:36:32 -08:00
scroll-region.less feat(sidebar): Hierarchical folders/labels in the sidebar, rendering perf 2015-10-22 10:53:57 -07:00
spinner.less fix(spinner): Improve loading indicator style / tweening 2015-12-09 15:47:51 -08:00
switch.less feat(post-auth): Initial prefs + packages screens, welcome copy changes 2015-09-29 23:58:30 -07:00
tokenizing-text-field.less fix(ui-dark): Small color adjustments, resolves #299, #148 2015-11-09 18:52:24 -08:00
unsafe.less fix(lint): fix linter errors with latest land 2015-04-30 18:27:39 -07:00