Mailspring/internal_packages/composer/lib
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
..
account-contact-field.cjsx feat(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08:00
collapsed-participants.cjsx feat(keymap): add new <KeymapHandlers /> 2015-11-06 11:47:06 -08:00
compose-button.cjsx feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
composer-view.cjsx feat(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08:00
expanded-participants.cjsx feat(account-prefs): Adds new page for Account in preferences 2015-12-10 15:27:29 -08:00
fields.cjsx feat(composer): participants collapse 2015-09-14 10:37:00 -04:00
file-upload.cjsx bump(electron): 0.34.3 => 0.35.1 2015-11-23 22:09:17 -08:00
image-file-upload.cjsx feat(attachments): Tons of tiny fixes to attachments, drag-and-drop attachments to other apps 2015-07-15 13:15:05 -07:00
main.cjsx refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
participants-text-field.cjsx fix(composer): Change state.focusedField when clicking fields—see details 2015-12-08 17:44:20 -08:00