Mailspring/static/components
Juan Tejada 415d612458 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
..
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(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08: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