Commit graph

3796 commits

Author SHA1 Message Date
Ben Gotow c8a656059a fix(builds): Stop when tests fail, use Appveyor build phases 2016-11-09 14:40:27 -08:00
Ben Gotow feca9f82a7 deps(pro): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:28:42 -08:00
Ben Gotow 80b315d708 deps(*): Lift deps out of packages for simpler install / better deduping 2016-11-09 14:24:10 -08:00
Ben Gotow 347238990b ci(*): Travis and AppVeyor changes, script cleanup
Also removed 32-bit build files which have been made obsolete. You can build 32-bit builds by altering script/bootstrap to specify a different arch
2016-11-09 14:13:09 -08:00
Evan Morikawa 0b6707629e fix(contact): Have Focused contacts immediately available 2016-11-09 16:52:37 -05:00
Ben Gotow 1157fdc450 build(*): electron-compile, electron-packager instead of custom tooling
Summary:
This diff removes significant cruft from N1's compilation and build tooling:

- Electron-Packager replaces most of the code in build/tasks/* used to copy things,
  bundle things, download electron, etc.

- script/bootstrap has been replaced with a much simpler script that does not use
  APM, does not download Electron (we just use electron as an NPM dep) and does
  not manully compile sqlite. It requires NPMv3, but I think that's safe.

- babel and eslint are now devDependencies of the main project. The main project
  also supports optionalDependencies now.

- npm test and npm start replace ./N1.sh

- APM is still around, and is only put into N1 so it can install plugins at runtime.
  It should be removed as soon as we notify package maintainers and have them provide zips.

- N1 no longer has it's own compile-cache or babel/typescript/coffeescript compilers.
  It delegates to electron-compile and electron-compilers. Both of these packages had
  to be forked and modified slightly, but I'm hopeful the modifications will make it back
  in to the projects and you can still consult their documentation for more info.

  + In the near future, I think we should stop shipping electron-compilers with N1. This
    would mean that all plugins would need to be compiled on pre-publish, just like NPM
    packages, and would complicate the local development story a bit, but would make the
    app smaller. electron-compile is not supposed to compile at runtime in the prod app,
    just pull from the compile cache.

- I've re-organized Grunt according to Grunt best practices, where each tasks/* file
  specifies it's own config and imports grunt tasks.

- Unfortunately, I was not able to use any open source projects for the deb and rpm builds,
  because we have things like postinst hooks and start menu items which are not supported
  by the electron installer-generators.

WIP

Turn off all LESS compilation, because themes. Doh.

Use Grunt for new build process too, just remove tasks

More changes

Add babel-eslint

Remove unused react-devtools

WIP

Add name

Ignore nonexistent

Switch to more modern approach to config for grunt

Move zipping to mac installer task

Restructure publish task so it aggregates first, can log useful info if publishing is disabled

Fix build dirs

Fix win installer

Fix linux installer

Fix linux installer

Try making linux

A few more

Updates

Upadtes

fixes

fixes

Get rid of non-meaningful variables

Resolve assets path

Insert nylas.sh

Clean up args more

Actually use description

Fix display name ugh

More tweaks

Expliclty write /usr/bin/nylas

Improve vars

Use old nylas.sh

Reinstate APM to better scope this diff

Test Plan: Test on Mac, Windows, Linux

Reviewers: evan, jackie, juan

Reviewed By: jackie, juan

Differential Revision: https://phab.nylas.com/D3411
2016-11-09 13:52:10 -08:00
Karim Hamidou 405ba0ae1a [fix] Don't make undo-send so ridiculously fast
Summary: I almost need at least 30s to proof-read an email.

Test Plan: Looked at the code.

Reviewers: bengotow, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3412
2016-11-09 13:47:38 -08:00
Juan Tejada 628a4b8617 fix(send-and-archive): Don't validate defaultSendAction key in config (#3031)
Before this commit, opening a new composer window would reset the
default send action to just `send`, even if you had selected it to be
`send-and-archive` via preferences.

This happened because on window initialization we run a config schema
validation, and coerce any values that are not valid under the schema
(e.g. make sure that the value for a setting is one of possible values specified
in the enum). Given that the schema is static, but the values for the enum for
this particular setting are dynamically calculated when we render the selector,
it doesn't make sense to validate the values for this setting.

To prevent validation, we just need to remove the `enum`, and `enumLabels`
from the static config-schema.
2016-11-09 11:36:13 -08:00
Evan Morikawa 5221a87947 fix(form): say "Create" instead of "Submit" 2016-11-09 12:22:46 -05:00
Evan Morikawa de9bb6f91d feat(thread): add method to return unique participants by email 2016-11-09 12:12:58 -05:00
Juan Tejada 2bca307f34 fix(menu-icon): Make sure to only show unread state when unread counts have actually changed 2016-11-08 14:12:28 -08:00
Ben Gotow f558f05d69 fix(image-editing): Fix selector for finding <img> 2016-11-08 11:54:19 -08:00
Ben Gotow fc7016fbaa fix(notifs): Re-display notifs with the same tag on macOS 2016-11-08 11:06:23 -08:00
Evan Morikawa b16ab73875 bump(SFDC): show related sub objects above thread 2016-11-08 12:40:35 -05:00
Juan Tejada 35343ac963 fix(send-and-archive) Make sure package is registered in work window so PerformSendActionTask can find it (#3023) 2016-11-07 14:35:38 -08:00
Juan Tejada 17e5087888 bump(version): 0.4.204 2016-11-07 14:16:50 -08:00
Juan Tejada 3c5134f0fb fix(attch-preview) Properly escape paths for qlmanage 2016-11-07 14:14:45 -08:00
Ben Gotow 34b02018ff fix(local-sync): Display relevant error so users can debug 2016-11-07 14:12:53 -08:00
Ben Gotow 37bd069766 fix(newsletter): Use bound functions for callbacks, always. 2016-11-07 14:09:47 -08:00
Ben Gotow b3ec6048e9 fix(*): Resolve Sentry #42679 with nylas-observables 2016-11-07 14:09:47 -08:00
Ben Gotow d819479613 fix(mailto): Improve handling of invalid urls 2016-11-07 14:09:47 -08:00
Juan Tejada 0f8407bffb fix(attachments-preview): Account for pound sign 2016-11-07 14:07:15 -08:00
Evan Morikawa 1d510e266d fix(package): bump package migration version to match release version 2016-11-07 16:44:25 -05:00
Juan Tejada 69161e8f04 fix(specs) Fix date-utils specs 2016-11-07 12:15:47 -08:00
Juan Tejada 2418c0ef30 update(changelog) 2016-11-07 10:42:18 -08:00
Juan Tejada b6527a14df fix(build): Remove node-mac-notifier temporarily
node-mac-notifier build process is currently breaking. This will be
fixed when we revamp the build process, so for now we are punting the
node-mac-notifier feature
2016-11-07 10:40:41 -08:00
Jamie Wilson d366957829 (darkside) fixing composer fields spacing (#3020)
* fixing composer fields spacing

* updating attachement selector names
2016-11-07 09:49:25 -08:00
Ben Gotow be1be00d88 fix(build): Don’t dedupe when installing mac-notififer 2016-11-07 09:40:53 -08:00
Evan Morikawa b102b39037 fix(spec): fix DST related spec failure & linter error 2016-11-05 11:56:23 -07:00
Evan Morikawa 02cfbd7878 fix(plugin): use config since activatePackage doesn't persist 2016-11-05 11:44:19 -07:00
Evan Morikawa ce05e94aeb fix(unload): safely unload the task queue on quit 2016-11-05 11:37:11 -07:00
Evan Morikawa 9ec3daff0a feat(plugin): activate & deactivate plugins via a nylas: url 2016-11-05 11:23:14 -07:00
Evan Morikawa dbc81a87a4 feat(quote): improved quoted text detection for trailing signatures 2016-11-04 20:45:25 -07:00
Evan Morikawa c0b28456a9 fix(quote): properly detect "wrote: " strings with trailing space 2016-11-04 18:39:37 -07:00
Evan Morikawa 4a40074cd1 convert(es6): quoted-html-transformer to es6 2016-11-04 18:28:11 -07:00
Juan Tejada 5a20dfce76 bump(version): 0.4.203 2016-11-04 16:49:20 -07:00
Jackie Luo 3dbd9b7278 feat(notifications): Allow notifications to be dismissable 2016-11-04 16:30:28 -07:00
Juan Tejada db84da1eba feat(requests/send): Add mechanism to ensure that a req be sent and succeeds only once
Summary:
This commit adds a new option to NylasAPIRequest api to allow users to
specify requests that should only ever be executed once, once they
succeed. This is done via saving a hash of some of the requests
properties to the filesystem.

Specifically regarding send, this ensures that a draft never be sent
twice from N1. We ran into this case once when the final state of the TaskQueue
wasn't saved to the database before the N1 app closed. In this case, a
PerformSendActionTask that was supposed to be dequeued, was restored to
the task queue again when N1 restarted, causing the draft to be sent
twice.

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3407
2016-11-04 15:44:30 -07:00
Juan Tejada 7ac7fa58ec fix(task-queue): Save the task queue before closing the window
Summary:
Save the final state of the TaskQueue to the database before window
gets unloaded

Test Plan: Manual

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3408
2016-11-04 15:30:49 -07:00
Evan Morikawa 5b1ee293dc fix(lint): fix linter errors 2016-11-04 15:07:14 -07:00
Evan Morikawa 502e995e60 bump(submodule): update UI & SFDC 2016-11-04 15:00:28 -07:00
Juan Tejada 605c9d9a4e 💄(reminders) Add title to reminders header 2016-11-04 14:45:45 -07:00
Ben Gotow 4cd60e1042 fix(darkside): remove notifications shadow 2016-11-04 11:32:14 -07:00
Ben Gotow d214a52192 fix(prefs): Only scroll to top when switching tabs 2016-11-04 11:32:14 -07:00
Evan Morikawa 596777a427 bump(submodule): update SFDC 2016-11-04 11:22:51 -07:00
Evan Morikawa c3cd67257a fix(form): support cmd+enter and not optimistic submission on all enter 2016-11-04 11:12:51 -07:00
Ben Gotow 5a2ec1c3f6 Revert "💄(messages): Remove email-frame max-width styles"
This reverts commit 9637c9547f.
2016-11-04 11:05:14 -07:00
Halla Moore a269a103e1 Revert "💄(messages): Remove max-width styles"
This reverts commit 45dc4a08be.
2016-11-04 11:03:22 -07:00
Ben Gotow 9637c9547f 💄(messages): Remove email-frame max-width styles 2016-11-04 11:01:16 -07:00
Ben Gotow b1faf6ef22 fix(composer): Check for empty as well as original body 2016-11-04 10:58:34 -07:00