Commit graph

357 commits

Author SHA1 Message Date
Evan Morikawa
b0e66519fc fix(spec): fix config setting spy 2016-05-19 11:50:19 -07:00
Ben Gotow
c6f6c7c3a0 fix(tasks): Check Task is in registry, remove any non-tasks when loading 2016-05-19 11:35:48 -07:00
Evan Morikawa
18c8a4a10f fix(undo): can redo more than one undo item 2016-05-18 16:43:48 -07:00
Juan Tejada
3bfc452f5e fix(build): Fix lint errors 2016-05-16 19:53:26 -07:00
Ben Gotow
3559f5e419 fix(config): Move all reads / writes to the main process
Summary:
Moves all reading / writing of config file to the main process,
to avoid needing to write code to lock across processes. This should also
be more efficient than re-loading the file in all processes when it's
saved.

Test Plan: Run tests

Reviewers: evan, jackie

Reviewed By: evan, jackie

Differential Revision: https://phab.nylas.com/D2963
2016-05-16 16:38:46 -05:00
Ben Gotow
eb4aa0e208 fix(retry): When tasks fail, try fewer times: 2s, 4s, 8s, 16s, 30s 2016-05-16 15:44:41 -05:00
Evan Morikawa
61caf7b363 fix(spec): update NylasEnv specs 2016-05-16 13:26:33 -07:00
Evan Morikawa
7d70177720 fix(spec): Convert NylasEnvSpec from coffee to es6 2016-05-16 11:43:48 -07:00
Ben Gotow
8f29e1cfbe fix(401/403): Unify error bars, query /account, improve reconnect flow
Summary: See https://paper.dropbox.com/doc/Sync-disabling-for-N1-URZmjVpSSxWFvjC62TiFI

Test Plan: Tests incoming

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2959
2016-05-13 14:16:54 -07:00
Ben Gotow
0441acf94a fix(fastmail): Strip "INBOX." prefix from displayNames
This can't be done on the API side because the API serves other customers.

The API will properly handle renames, crates and prepend `INBOX.`
2016-05-12 16:14:30 -07:00
Juan Tejada
2bcd5032a8 fix(specs): Remove fdescribe 2016-05-12 15:23:06 -07:00
Juan Tejada
150ac1e887 fix(specs): Fix spec for DraftEditingSession 2016-05-12 15:21:28 -07:00
Juan Tejada
3ef9da941f fix(build): Fix linter errors 2016-05-11 16:38:30 -07:00
Juan Tejada
eacf54b4eb fix(build): Fix lint issues and specs 2016-05-11 15:33:52 -07:00
Juan Tejada
72e86dde36 specs(table): Add specs for table components
Summary:
- Add some docs to Table components
- Updates Table components to use a TableDataSource instead of accessing arrays, cleans up code a bit
- Add enzyme lib to have a cleaner and simpler api to write tests for React Components
- Updates decorators to extend from the BaseComponent instead of vanilla Component, this way instance methods are still available on composed components

Test Plan: - Unit tests

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2941
2016-05-11 14:36:59 -07:00
Ben Gotow
eab8cb9085 fix(draft-factory): ReplyTo takes precedence over "from me" #2175 2016-05-10 10:33:46 -07:00
Evan Morikawa
5c01292e8b fix(spec): fix injected component spec 2016-05-06 16:42:55 -07:00
Ben Gotow
2ff92946b7 fix(lint): Various linter fixes 2016-05-06 16:23:48 -07:00
Ben Gotow
7533dc0ac6 fix(lint): Various linter issues 2016-05-06 16:06:16 -07:00
Ben Gotow
0e2b5501e3 fix(lint): Correct more linter errors 2016-05-06 14:10:28 -07:00
Evan Morikawa
d9be81b7f5 feat(babel6): fix es6 importing from coffee 2016-05-06 12:00:45 -07:00
Evan Morikawa
2e2f877ddb feat(babel6): 1,774 linter errors 2016-05-06 11:55:46 -07:00
Evan Morikawa
57a3e140f4 feat(babel6): Fix autlinker spec 2016-05-06 11:55:32 -07:00
Evan Morikawa
92d5369f21 feat(babel6): Fix errors in es6 compilation and extending from coffeescript 2016-05-06 11:55:31 -07:00
Evan Morikawa
92199587b3 feat(babel6): Convert message.coffee to message.es6 2016-05-06 11:55:27 -07:00
Evan Morikawa
409704fe8f feat(babel6): Convert account.coffee to account.es6 2016-05-06 11:55:25 -07:00
Evan Morikawa
390007cac9 feat(babel6): fix es6 describe function syntax 2016-05-06 11:55:20 -07:00
Evan Morikawa
18df77c3c0 feat(babel6): fix participant field spec 2016-05-06 11:55:16 -07:00
Evan Morikawa
2692fce522 feat(babel6): Fix destructuring default from exports and update linter 2016-05-06 11:55:14 -07:00
Evan Morikawa
50c1fded14 feat(babel6): Fix FixedPopover spec 2016-05-06 11:55:12 -07:00
Evan Morikawa
4e754c660c feat(babel6): Fix ModelWithMetadata spec 2016-05-06 11:55:10 -07:00
Evan Morikawa
2d55322705 feat(babel6): Detect when packages don't have a default export 2016-05-06 11:54:57 -07:00
Evan Morikawa
21419b9df0 feat(babel6): Convert to use new es6 require syntax 2016-05-06 11:54:55 -07:00
Ben Gotow
bbdfa85547 feat(keymaps): Edit your keymaps from preferences 2016-05-05 17:05:51 -07:00
Ben Gotow
cb2913871e es6(*): AutoUpdateManager, ProtocolHandler, more. 2016-05-04 19:34:41 -07:00
Ben Gotow
66cb0a6a77 rm(*): deprecated/unused Atom code, user stylesheet support 2016-05-04 14:27:46 -07:00
Ben Gotow
cde329168d fix(specs) 2016-05-04 11:50:54 -07:00
Ben Gotow
7a15e369a7 Revert "feat(mailto): Allow N1 to be default client on windows"
This reverts commit a08eb3e175.
2016-05-03 19:04:04 -07:00
Ben Gotow
c811cc5ce6 fix(model): add specs around serializing bad API data 2016-05-03 15:58:14 -07:00
Ben Gotow
a08eb3e175 feat(mailto): Allow N1 to be default client on windows 2016-05-03 14:47:21 -07:00
Evan Morikawa
7024dadb66 fix(spec): fix cache in spec 2016-05-02 18:58:31 -07:00
Juan Tejada
71353cdaf1 feat(mail-merge): Add CSV imports, styling, and several fixes
Summary: Adds CSV imports, proper styles to mail merge plugin and fixes a handful of bugs

Test Plan: TODO

Reviewers: bengotow, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2925
2016-04-27 18:22:32 -07:00
John McNair
f818a134dd Parse Office 365 names (#2016)
Office 365 likes to format email addresses as follows:
Last Name, First Name (Some Description) <email@address.org>

This causes Contact.firstName() (and hence sometimes displayName()) to return
"Last Name," which looks a bit odd in the message/thread views.

The intent of the commit is to correctly parse these names so that (using the
above example):
- firstName = "First Name"
- lastName = "Last Name (Some Description)"
- fullName = "First Name Last Name (Some Description)"

These behavioral changes only impact names containing a ','.

I don't know that this really provides exhaustive coverage of Office 365, and
keeping the description as part of the last name is not completely guilt free,
but it's not any worse than the previous state of affairs which also has
the description in the same field but combined instead with (misplaced)
first name data.
2016-04-27 10:26:23 -07:00
Ben Gotow
b23af144e1 fix(accounts): show messages and coerce config when invalid 2016-04-26 15:34:17 -07:00
Ben Gotow
c543de9e81 cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
Ben Gotow
6b12f833d7 fix(compose): "compose in trash", additional specs #2026 2016-04-26 13:14:06 -07:00
Evan Morikawa
e42f501780 fix(frame): fix link clicking in iframes 2016-04-25 17:30:30 -07:00
Ben Gotow
4d38ac6310 cson(cleanup): Remove imports, only used for config.cson now 2016-04-24 20:33:34 -05:00
Ben Gotow
b7da2c7b86 cson(packages): Remove from specs, deprecate use for for menus, package.json files 2016-04-24 20:31:53 -05:00
Ben Gotow
3bfad0c9e1 fix(*): spec failures related to moment-round again 2016-04-24 15:21:29 -05:00