Commit graph

1522 commits

Author SHA1 Message Date
Evan Morikawa 35f6273d52 fix(hot-api): remove react-hot-api 2015-12-11 11:22:22 -05:00
Juan Tejada 14f0086a02 fix(warning): Remove implicit return from event handler to remove react
warning
2015-12-10 18:19:13 -08:00
Juan Tejada 0073f21982 add(docs):Add documentation to EditableList and PreferencesAccountDetails 2015-12-10 17:59:16 -08:00
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
Ben Gotow d2db9e1a5d fix(*): Fix for "apply is not a function" lost in revert of e275f35 2015-12-10 14:12:16 -08:00
Evan Morikawa 35e45032ec fix(composer): focus on text box when clicking in margins 2015-12-10 16:52:18 -05:00
Ben Gotow 03908fbd84 fix(drafts): Refresh view when draft becomes message 2015-12-10 13:43:27 -08:00
Evan Morikawa 49925ee404 feat(ci): add build/node_modules to cache 2015-12-10 14:22:05 -05:00
Evan Morikawa e90708aceb fix(ci): add caching and fix ssh issue 2015-12-10 14:16:55 -05:00
Evan Morikawa e4ca1b49c2 fix(win): remove winattr 2015-12-10 14:04:16 -05:00
Evan Morikawa d1d34963e2 fix(win): repalce fswin with winattr 2015-12-10 12:44:44 -05:00
mbilker a3686e3f83 fix(travis): include GitHub OAuth token to preven Electron download error 2015-12-10 11:59:32 -05:00
mbilker 644c118d08 fix(travis): use the private assets only when building branches from main repository 2015-12-10 11:59:32 -05:00
mbilker 4f6f25044e fix(travis): use the ssh_known_hosts addon to run ssh-keyscan
Travis provides a wonderful helper addon documented at
https://docs.travis-ci.com/user/ssh-known-hosts/.

The behavior changed moves the ssh-keyscan from the before_install
stage to the addons stage.
2015-12-10 11:59:32 -05:00
mbilker fbcab54642 fix(travis): readd whitespace, reorder according to build Travis build process
Found the order at https://docs.travis-ci.com/user/customizing-the-build/.

In nylas/N1@989f38ca77 the entire build script
was merged from Evan Morikawa, which reordered the whole Travis build script.
athis commit reorders the to have the Travis build environment config at the
beginning of the script and the build process at the end and the Travis
secure variables at the end of the script.
2015-12-10 11:59:32 -05:00
Evan Morikawa 4014b4e187 feat(spec): add config dir to integration specs
Summary:
- You can now pass `--config-dir-path=/some/custom/path` to `./N1.sh`
- `main.coffee` cleaned up a bit. A lot of unused params from legacy Atom
  stuff were still being used
- Integration specs now set the config dir before booting.
- New spec to check for the autoupdater in the app and make sure it's
  pointing at the right place.

Test Plan: script/grunt run-integration-tests

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2331
2015-12-10 10:52:20 -05:00
Michael Grinich 7000a1c71b Merge pull request #652 from sriraman/patch-1
Update README.md
2015-12-09 23:53:21 -08:00
sriraman 74a7e09066 Update README.md
Fix typo
2015-12-10 12:33:10 +05:30
Ben Gotow 1904c6f80b perf(travis): Fewer mac builds—Travis has fixed OS X bandwidth 2015-12-09 19:38:44 -08:00
Ben Gotow fe5d78cc51 fix(downloads): Download.run must resolve with self 2015-12-09 17:02:53 -08:00
Drew Regitsky a3e986d94a fix(quickschedule): Several UI fixes
Summary:
Fixes a number of smaller UI issues. Fixes T6173, T6207
Full list of changes:
 - Ensure time slots / days display in order
 - Allow time blocks of any size to be set on half hour intervals
 - Don't reset calendar when changing event length
 - Expand calendar on window resize
 - Change window title from "Electron"
 - Add delete button to cancel individual calendar events
 - Move event details box to the left side
 - Prevent addition of duplicate time slots

Test Plan: manual

Reviewers: bengotow

Reviewed By: bengotow

Maniphest Tasks: T6173, T6207

Differential Revision: https://phab.nylas.com/D2333
2015-12-09 16:41:30 -08:00
Ben Gotow 2dc43d141b fix(menu): Toggle Menu Bar doesn't do anything #606 2015-12-09 16:27:47 -08:00
Ben Gotow 193bd0c06e Merge pull request #628 from mbilker/task-helper-undefined-process-env
Replace function accessor with property accessor in Grunt's task-helper script
2015-12-09 16:02:09 -08:00
Ben Gotow 9ba157aadf Merge pull request #629 from mbilker/classnames-require-case-sensitive
Require `classNames` throws error under Linux
2015-12-09 15:57:40 -08:00
Ben Gotow 1a62cd8c59 bump(changelog): Update for 0.3.29 2015-12-09 15:47:51 -08:00
Ben Gotow 838646b7e4 fix(spinner): Improve loading indicator style / tweening 2015-12-09 15:47:51 -08:00
Evan Morikawa 7d56b6828a fix(spellcheck): add test for null navigator.language 2015-12-09 18:32:54 -05:00
Evan Morikawa cbd4060edf bump(internal): update submodule reference 2015-12-09 18:14:01 -05:00
Evan Morikawa 9af40833ac fix(spellcheck): check for existing languages and add tests 2015-12-09 18:10:55 -05:00
Evan Morikawa e18a272803 fix(language): default to english if language doesn't exist 2015-12-09 16:47:49 -05:00
Ben Gotow bdbeb31049 bump(electron): 0.35.4 2015-12-09 12:29:42 -08:00
Ben Gotow e19a69c4a8 polish(quick-schedule): Use calendar icon in the composer 2015-12-09 10:55:08 -08:00
Ben Gotow c993a1f51a bump(version): 0.3.29 2015-12-08 17:56:58 -08:00
Ben Gotow af75a5170c fix(translate): Use an icon for the translate button 2015-12-08 17:56:42 -08:00
Ben Gotow ee78090ce0 fix(composer): Change state.focusedField when clicking fields—see details
Clicking participant fields to type in them did not cause state.focusedField to change, because no onFocus events were bound to the ParticipantTextFields. Since setState was not called, the focus would appear to change but revert as soon as you touched state.

This diff also renames `onChangeEnabledFields` to `onAdjustEnabledFields` making it more clear that unlike the other handlers, it does not take a new value, it takes a set of changes. I also noticed that we /always/ focus fields when showing them, so I removed the separate focus param from it and made it adjust focus at the composer-view level only.

I also consolidated everywhere that touches `state.focusedField` so that we can keep the `_lastFocusedParticipantField` value in sync with it more easily.
2015-12-08 17:44:20 -08:00
Ben Gotow 1bc10cfbbb fix(auth): Log first account creation 2015-12-08 17:05:59 -08:00
mbilker a022718684 fix(require): require classNames throws error under Linux
The issue stems that Mac OS X uses a case-insensitive filesystem by
default, while most Linux filesystems are case-sensitive. The classNames
package will require successfully on Mac OS X during Travis tests, but
since the spec test suite isn't normally run under Linux this bug is
more unlikely to appear.
2015-12-08 19:42:36 -05:00
Ben Gotow 5ca28a340d fix(auth): Track authentication success / failure rates by provider 2015-12-08 16:39:38 -08:00
Ben Gotow b53dac178d fix(serialization): Inflate / deflate JSON from database with registered object system 2015-12-08 15:14:43 -08:00
Ben Gotow d3fcc6cde6 Revert "fix(json): serialize blob data"
This reverts commit e275f353c1.
2015-12-08 15:14:35 -08:00
mbilker 7b037ae8f2 fix(tests): replace () with [] for properties of process.env
This bug appeared during a Travis test run, and only appeared on
the Linux hosts running the tests. The function appears to treat
the `process.env` as a set of functions, not properties. This
commit correctly interprets them as properties.
2015-12-08 18:06:41 -05:00
Evan Morikawa e275f353c1 fix(json): serialize blob data
Summary:
A fix to reserialize JSON blob data properly for complex object types.
We should investigate overriding all of JSON.parse and JSON.stringify.
This coming in a future diff.

Also we were using old Electron APIs that were throwing backend errors

Test Plan: todo

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2326
2015-12-08 16:11:22 -05:00
Juan Tejada 17e9cc8921 fix(composer): Pass in onFocus handler correctly to contenteditable
- Fixes issue where body lost focus when typing and focus switched to to
field
- Now passes the onFocus handler as part of a `ContenteditableExtension`
2015-12-08 11:00:33 -08:00
Evan Morikawa 7d43622471 fix(composer): fix bold, italic, underline keybinding 2015-12-08 10:20:49 -05:00
Ben Gotow 0af5fea3dc fix(expand-all): Fixes for dark theme, don't show expand when one message 2015-12-07 18:01:06 -08:00
Ben Gotow b12d23a33d fix(templates): Example now depends on underscore 2015-12-07 17:33:51 -08:00
Ben Gotow 013d50a26b fix(templates): Unregister preferences tab when disabled 2015-12-07 17:23:59 -08:00
Ben Gotow 30c58e90a6 feat(observables): Implementation of observables to replace some stores
Summary:
Add concept of "final" to Query, clean up internals

Tiny bug fixes

RxJs Observables!

WIP

Test Plan: Run tests

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2319
2015-12-07 16:52:46 -08:00
Evan Morikawa 58c853ef76 fix(composer): detect system language for spellchecking 2015-12-07 19:33:18 -05:00
Juan Tejada c261488ba1 fix(specs): Update specs for EditableList 2015-12-07 15:59:24 -08:00