Mailspring/spec/stores
Juan Tejada 281e458d39 feat(account-prefs): Adds new page for Account in preferences
Summary:
Adds the new Account preferences page. This consists of two major React components,
PreferencesAccountList and PreferencesAccountDetails, both of which use EditableList.

I added a bunch of fixes and updated the API for EditableList, plus a bit of
refactoring for PreferencesAccount component, and a bunch of CSS so its a big diff.

The detailed changelog:

Updates to EditableList:
  - Fix bug updating selection state when arrows pressed to move selection
  - Add new props:
    - allowEmptySelection to allow the list to have no selection
    - createInputProps to pass aditional props to the createInput
  - Add scroll region for list items
  - Update styles and refactor render methods

Other Updates:
- Updates Account model to hold aliases and a label
  - Adds getter for label to default to email
- Update accountswitcher to display label, update styles and spec

- Refactor PreferencesAccounts component:
  - Splits it into smaller components,
  - Removes unused code
- Splits preferences styelsheets into smaller separate stylesheet for
  account page. Adds some updates and fixes (scroll-region padding)
- Update AccountStore to be able to perform updates on an account.
- Adds new Action to update account, and an action to remove account to
  be consistent with Action usage
- Adds components for Account list and Aliases list using EditableList

Test Plan: - All specs pass, but need to write new tests!

Reviewers: bengotow, evan

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2332
2015-12-10 15:27:29 -08:00
..
account-store-spec.coffee feat(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08:00
contact-store-spec.coffee refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
database-setup-query-builder-spec.coffee fix(counts): Ensure serial execution of persistModels, unpersistModels 2015-11-25 12:17:00 -08:00
database-store-spec.coffee fix(counts): compute deltas for unpersist events, more specs 2015-12-04 16:29:26 -08:00
draft-store-proxy-spec.coffee fix(drafts): only syncback every 30 seconds instead of 5 seconds 2015-10-28 19:51:46 -04:00
draft-store-spec.coffee feat(paste): Paste accepts more HTML, paste and match style now available 2015-12-07 15:34:03 -08:00
file-download-store-spec.coffee fix(downloads): Improve inline attachment handling 2015-12-07 15:00:25 -08:00
file-upload-store-spec.coffee refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
focused-contacts-store-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
focused-content-store-spec.coffee refactor(spec) move spec-nylas to spec 2015-10-01 21:39:44 -07:00
focused-mail-view-store-spec.coffee refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
message-store-spec.coffee feat(observables): Implementation of observables to replace some stores 2015-12-07 16:52:46 -08:00
task-queue-spec.coffee feat(observables): Implementation of observables to replace some stores 2015-12-07 16:52:46 -08:00
thread-counts-store-spec.coffee feat(observables): Implementation of observables to replace some stores 2015-12-07 16:52:46 -08:00
unread-badge-store-spec.coffee fix(badge): Badge respects option in prefs 2015-11-30 19:17:35 -08:00