Commit graph

190 commits

Author SHA1 Message Date
Ben Gotow
a46bad4eb7 refactor(menus): Major prune of keymaps/commands, real conditional menus
Summary:
Keymaps & menus CSON => JSON, remove AtomKeymaps, CommandRegistry use of CSS selectors, use Mousetrap instead

Important Notes:

- The `application:` prefix is reserved for commands which are handled in the application process. Don't use it for other things. You will not receive the events in the window.

- Maintaining dynamic menus seems to come with quite an overhead, because Electron updates the entire menu every time. In the future, we'll need https://github.com/electron/electron/issues/528 to really make things nice. I will be tracking this upstream.

- The format for keyboard shortcuts has changed. `cmd-X` is now `command+shift+x`

Test Plan: Run tests

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2917
2016-04-24 12:16:25 -05:00
Ben Gotow
f951d85f45 fix(sheets): Attach sheets to the toolbar at correct offset 2016-04-22 13:21:23 -07:00
Ben Gotow
643423f2b0 bump(electron): 0.37.6, with fix for inverted tray icon 2016-04-19 17:46:31 -07:00
Ben Gotow
217af8d77c bump(electron): 0.36.7 => 0.37.5 2016-04-12 18:42:57 -07:00
Koen Punt
edc4f52da8 Open links in background when ⌘ key is pressed (#1637)
When you hold down the meta key (⌘), and click on a link in a message,
the target application will not activate, so N1 will stay in the
foreground.
Electron only supports this for OS X
2016-04-12 18:11:27 -07:00
Ben Gotow
f396d9eddb bump(react) 0.14.7 => 15.0.1 2016-04-12 16:58:45 -07:00
Jackie Luo
1039ad2c34 fix(composer-emoji): Switch to characters to PNGs (#1898)
* Add PNGs and JSON file

* Add Apple and Twitter emoji

* Fix linter issues and tests

* Get correct path from EmojiStore

* Add emoji regex and update extensions

* Remove the scary regex
2016-04-12 10:27:24 -07:00
Ben Gotow
f53ba0fbbe bump(version): 0.4.25 2016-04-12 09:50:32 -07:00
Juan Tejada
0ada532336 fix(build): Lock spellchecker to 3.2.3 2016-04-11 15:51:17 -07:00
Ben Gotow
5e4eea2fa2 bump(version): 0.4.24 2016-04-11 12:01:47 -07:00
Ben Gotow
ca9162a2d5 bump(version): 0.4.23 2016-04-10 17:31:54 -07:00
Juan Tejada
e160d05d36 fix(deps): Add moment-round 2016-04-10 16:37:33 -07:00
Ben Gotow
37add7741e bump(version): 0.4.22 2016-04-07 14:14:20 -07:00
Ben Gotow
0086142a88 bump(version): 0.4.21 beta 2016-04-05 19:17:13 -07:00
Ben Gotow
17a629cf6a bump(version): 0.4.20 beta 2016-04-04 17:26:48 -07:00
Evan Morikawa
39c37e10b9 feat(calendar): add week view for quick scheduler
Summary: New Calendar

Test Plan: TODO

Reviewers: drew, juan, bengotow

Reviewed By: bengotow

Subscribers: jackie

Differential Revision: https://phab.nylas.com/D2767
2016-04-04 15:05:48 -07:00
Ben Gotow
886328ff7a bump(react): 0.13.2 => 0.14.7
Great breakdown of React changes here:
https://github.com/facebook/react/blob/master/CHANGELOG.md#0140-october-7-2015

Due to deprecation warnings, I don't think this will break third-party extensions unless they were doing really bad things.
2016-03-29 01:43:12 -07:00
Ben Gotow
52ed1119a0 bump(version): 0.4.19 and changelog 2016-03-25 12:16:43 -07:00
Ben Gotow
8df402e26f bump(version): 0.4.18 2016-03-24 16:53:01 -07:00
Ben Gotow
8626b006eb bump(version): Notes for 0.4.16 patch, master to 0.4.17 2016-03-18 17:03:27 -07:00
Ben Gotow
868445504f bump(version): 0.4.16 beta 2016-03-17 18:25:00 -07:00
Ben Gotow
24933906a7 bump(version): 0.4.15 2016-03-16 19:29:00 -07:00
Ben Gotow
552b66fbaf fix(syncback): Bidirectional transforms, ready-to-send saved state
Summary:
This diff replaces "finalizeSessionBeforeSending" with a
plugin hook that is bidirectional and allows us to put the draft in
the "ready to send" state every time we save it, and restore it to
the "ready to edit" state every time a draft session is created to
edit it.

This diff also significantly restructures the draft tasks:

1. SyncbackDraftUploadsTask:
   - ensures that `uploads` are converted to `files` and that any
     existing files on the draft are part of the correct account.

1. SyncbackDraftTask:
   - saves the draft, nothing else.

3. SendDraftTask
   - sends the draft, nothing else.
   - deletes the entire uploads directory for the draft

Test Plan: WIP

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2753
2016-03-16 19:27:12 -07:00
Ben Gotow
734a52aa6a fix(config): Move account tokens to system keychain
Summary:
This diff also adds an account version number to the config so that the AccountStore can tell whether it should reload accounts (depending on whether it was the instance making tthe changes.)

This diff also fixes a tiny issue where un-opened composers threw an exception if you changed accounts.

Test Plan: New tests

Reviewers: evan, drew, juan

Reviewed By: juan

Subscribers: juan

Differential Revision: https://phab.nylas.com/D2726
2016-03-14 15:14:08 -07:00
Ben Gotow
d57ef5a060 bump(version): 0.4.14 and changelog 2016-03-10 19:09:00 -08:00
Ben Gotow
703bc2efd2 bump(version): 0.4.13 beta 2016-03-10 12:08:05 -08:00
Ben Gotow
f0fbd10838 bump(version): 0.4.12 beta 2016-03-08 18:33:24 -08:00
Ben Gotow
1dcb7ace96 bump(version): 0.4.11 beta 2016-03-05 12:13:15 -08:00
Ben Gotow
3508e7b9d7 Revert "bump(electron): 0.36.9. Fixes #911"
This reverts commit 3f211a023c.
2016-02-29 10:57:09 -08:00
Ben Gotow
3f211a023c bump(electron): 0.36.9. Fixes #911 2016-02-29 10:36:30 -08:00
Ben Gotow
3a1fcc513b bump(version): 0.4.10 and changelog 2016-02-26 16:45:21 -08:00
Ben Gotow
91a589bd32 bump(version): 0.4.9 and changelog 2016-02-25 14:10:21 -08:00
Ben Gotow
625c419b72 bump(verison): 0.4.8 beta 2016-02-22 17:41:38 -08:00
Ben Gotow
55e1c85964 bump(version): 0.4.7 beta 2016-02-19 18:22:45 -08:00
Juan Tejada
a841417011 feat(snooze/send-later): Add snooze and send later plugins
Summary:
- Add initial version of snooze and send later plugins
- Tests are missing since this will probably heavily change before we are done with them

Test Plan: - TODO

Reviewers: drew, bengotow, evan

Reviewed By: bengotow, evan

Differential Revision: https://phab.nylas.com/D2578
2016-02-18 10:06:21 -08:00
Evan Morikawa
9021b02a6c fix(win): bump windows-shortcuts 2016-02-11 17:15:15 -08:00
Evan Morikawa
6fbb7f73d3 fix(win): bump windows-shortcuts fork 2016-02-11 16:53:59 -08:00
Ben Gotow
6e49dbd2c3 bump(*): Electron 0.36.7, version to 0.4.6 2016-02-08 18:35:23 -08:00
Ben Gotow
3024d05564 bump(version): 0.4.2 2016-02-03 14:55:48 -08:00
Ben Gotow
c0142a6c41 bump(version): 0.4.1 Beta 2016-02-01 18:31:04 -08:00
Ben Gotow
5ac5b55f53 bump(spellcheck): Fixes #1168, #895, #855, #1158
https://github.com/atom/node-spellchecker/issues/30
2016-02-01 10:01:17 -08:00
Ben Gotow
eb3b308dc8 bump(version): 0.4.0 beta 2016-01-28 15:48:08 -08:00
Evan Morikawa
67edcc836f feat(startup): new option to launch on system start
Summary:
adds new option to launch on system start

Also adds the `--background` flag to launch N1 in the background (aka not
show the main window).

Test Plan: Manual

Reviewers: bengotow, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D2474
2016-01-28 12:02:08 -08:00
Ben Gotow
0ef4911b22 Merge branch 'master' into unified-inbox
# Conflicts:
#	internal_packages/feedback/lib/feedback-button.cjsx
#	internal_packages/thread-list/lib/thread-list.cjsx
#	src/flux/stores/draft-store.coffee
2016-01-25 17:28:29 -08:00
Evan Morikawa
d667efea2b bump(version): 0.3.46 2016-01-20 21:00:01 -08:00
Ben Gotow
2f444db8c1 bump(version): 0.3.45 2016-01-20 18:55:51 -08:00
Ben Gotow
f0dec2d543 bump(version): 0.3.44 beta 2016-01-20 10:56:00 -08:00
Ben Gotow
cb5f2985ef Merge branch 'master' into unified-inbox
# Conflicts:
#	spec/stores/file-download-store-spec.coffee
2016-01-13 17:20:34 -08:00
Ben Gotow
b95f1f7cb4 bump(version): 0.3.43 and changelog 2016-01-12 19:19:16 -08:00
Ben Gotow
e87766ebd5 bump(version): 0.3.42 (testing Windows autorestart) 2016-01-12 15:58:37 -08:00