Commit graph

1775 commits

Author SHA1 Message Date
Ben Gotow c8df59f196 update(readme): Add Todoist for N1 2016-01-22 10:16:46 -08:00
Jackie Luo 313c42185c Add weather plugin to README 2016-01-21 18:08:50 -08:00
Jackie Luo 96739cb400 Merge branch 'master' of github.com:nylas/N1 2016-01-21 18:03:30 -08:00
Jackie Luo 3692c03cb2 Add Reflux 2016-01-21 18:03:18 -08:00
Ben Gotow 8d8ed03e0c Update CHANGELOG.md 2016-01-21 14:31:27 -08:00
Michael Grinich 0fe308f75e Add Solarized Dark 2016-01-21 10:57:27 -08:00
Ben Gotow f772f9ce0e fix(contributing): Mention syncEngine.APIRoot 2016-01-21 10:42:31 -08:00
Ben Gotow 03c76cf255 Merge pull request #988 from mbilker/allow-custom-sync-engines
Allow custom Sync Engine specified in `config.cson`
2016-01-21 10:31:05 -08:00
Evan Morikawa c8305cc04d fix(link): allow links with no closest method to open 2016-01-21 10:15:22 -08:00
mbilker b12ed2f464 fix(nylas-api): namespace the custom sync engine to syncEngine 2016-01-21 00:16:43 -05:00
Evan Morikawa d91966c5fb fix(console): rm console trace 2016-01-20 21:09:50 -08:00
Evan Morikawa d667efea2b bump(version): 0.3.46 2016-01-20 21:00:01 -08:00
Evan Morikawa 11c0af653d fix(link): fix link focus and UX issues
Fix FloatingToolbar position

Fix link-editor to refresh on new props

Fix link content changed

Fix link width
2016-01-20 20:56:56 -08:00
Ben Gotow 2f444db8c1 bump(version): 0.3.45 2016-01-20 18:55:51 -08:00
Ben Gotow 015a985032 fix(onboarding): Minor style changes, headers for EAS 2016-01-20 17:09:15 -08:00
Ben Gotow 1756abab85 fix(newsletter): Don't make API request if email is the same 2016-01-20 17:09:15 -08:00
Ben Gotow af50e23ea4 fix(onboarding): Loosen RegExp so a.com and a.b.c.d.com are valid 2016-01-20 17:09:15 -08:00
Drew Regitsky 1c0ed5c113 feat(plugin-auth): add plugin auth function in NylasAPI
Summary:
Adds two new functions in NylasAPI to allow auth and unauth of
plugin backends. The `authPlugin` function should be called within
plugins before taking any action that requires offline account access
from the plugin's backend server. The `unauthPlugin` function will be
used by N1 internally to revoke offline account access for plugins.

Test Plan: manual for now

Reviewers: bengotow, evan, juan

Reviewed By: evan, juan

Differential Revision: https://phab.nylas.com/D2440
2016-01-20 16:43:11 -08:00
Evan Morikawa c2ceb6fd6c refactor(toolbar): allow toolbar extensions in contenteditable
Summary:
This is a refactor of the toolbar in the contenteditable. Goals of this
are:

1. Allow developers to add new buttons to the toolbar
2. Allow developers to add other component types to the floating toolbar (like the LinkEditor)
3. Make the toolbar declaratively defined instead of imperatively set
4. Separate out logical units of the toolbar into individual sections
5. Clean up `innerState` of the Contenteditable

The Floating Toolbar used to be an imperative mess. Doing simple
functionality additions required re-understanding a very complex set of
logic to hide and show the toolbar and delecately manage focus states.
There also was no real capacity for any developer to extend the toolbar.

It also used to be completely outside of our `atomicEdit` system and was a
legacy of having raw access to contenteditable controls (since it all used
to be directly inside of the contenteditable)

Finally it was difficult to declaratively define things because the
`innerState` of the Contenteditable was inconsistently used and its
lifecycle not properly thought through. This fixed several lifecycle bugs
with that.

Along the way several of the DOMUtils methods were also subtly not
functional and fixed.

The Toolbar is now broken apart into separate logical units.

There are now `ContentedtiableExtension`s that declare what should be
displayed in the toolbar at any given moment.

They define a method called `toolbarComponentData`. This is a pure
function of the state of the `Contenteditable`. If selection and content
conditions look correct, then that method will return a component to
render. This is how we declaratively define whether a toolbar should be
visible or not instead of manually setting `hide` & `show` bits.

There is also a `toolbarButtons` method that declaratively defines buttons
that can go in the new `<ToolbarButtons>` component.

The `ToolbarButtonManager` takes care of extracting these and binding the
correct editorAPI context.

Now the `<LinkEditor>` is a separate component from the `<ToolbarButtons>`
instead of being smashed together.

The `LinkManager` takes care of declaring when the `LinkEditor` should be
displayed and has properly bound methods to update the `contenteditable`
through the standard `atomicEdit` interface.

If users have additional contenteditable popup plugins (like displaying
extra info on a name or some content in the composer), they can now
implement the `toolbarComponentData` api and declaratively define that
information based on the state of the contenteditable.

Test Plan: TODO

Reviewers: bengotow, juan

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2442
2016-01-20 14:35:20 -08:00
Ben Gotow f99edda250 fix(readme): Broken link to Message View on Github 2016-01-20 12:22:47 -08:00
Ben Gotow 8b9b6a0467 rm(tooltip): Tooltip package no longer in use 2016-01-20 11:30:57 -08:00
Ben Gotow 08e93b287f rm(intercom): Point feedback to support.nylas, shrink button 2016-01-20 11:26:14 -08:00
Ben Gotow f0dec2d543 bump(version): 0.3.44 beta 2016-01-20 10:56:00 -08:00
Ben Gotow d561fe5b71 fix(auth): Increase timeout to 60s for Exchange auth 2016-01-20 10:49:27 -08:00
Drew Regitsky 6ae7fb7aef fix(templates): fix when the "no templates" message is displayed 2016-01-20 10:24:45 -08:00
Jackie Luo 955e8b899f Merge branch 'master' of github.com:nylas/N1 2016-01-19 16:56:25 -08:00
Jackie Luo a5e20f19c2 fix(message): Message time no longer selectable
Summary: Closes #910.

Test Plan: Manual. Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2453
2016-01-19 16:55:52 -08:00
Ben Gotow 67a194f5fa Merge pull request #966 from cllns/standardize-am-and-pm-capitalization
Standardize capitalization to am/pm, for message-list
2016-01-19 16:45:02 -08:00
Ben Gotow ec22f7bebf Merge pull request #1041 from mbilker/script-fix
Allow additional parameters specified on command line
2016-01-19 16:42:31 -08:00
Jackie Luo f8e98f2112 fix(message): Message time no longer selectable
Summary: Closes #910.

Test Plan: Manual. Tested locally.

Reviewers: evan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2453
2016-01-19 16:32:03 -08:00
Sean Collins f14087a721 Standardize message-list capitalization to AM/PM, 2016-01-19 15:54:44 -07:00
Ben Gotow 4e795e79d3 Merge pull request #1029 from mbilker/phishing-detection
Set Phishing Detection package name to the correct value
2016-01-19 13:51:57 -08:00
Michael Grinich a8a26a86fc Update README.md 2016-01-19 01:34:22 -08:00
Michael Grinich 64a1040ba5 Update README.md 2016-01-18 19:28:23 -08:00
Michael Grinich 3ee00ac367 Update README.md 2016-01-18 10:32:43 -08:00
Evan Morikawa 74e21bce16 feat(tasks): add Create, Update, Destroy tasks plus spec & lint fixes
Summary:
1. **Generic CUD Tasks**: There is now a generic `CreateModelTask`,
`UpdateModelTask`, and `DestroyModelTask`. These can either be used as-is
or trivially overridden to easily update simple objects. Hopefully all of
the boilerplate rollback, error handling, and undo logic won't have to be
re-duplicated on every task. There are also tests for these tasks. We use
them to perform mutating actions on `Metadata` objects.

1. **Failing on Promise Rejects**: Turns out that if a Promise rejected
due to an error or `Promise.reject` we were ignoring it and letting tests
pass. Now, tests will Fail if any unhandled promise rejects. This
uncovered a variety of errors throughout the test suite that had to be
fixed. The most significant one was during the `theme-manager` tests when
all packages (and their stores with async DB requests) was loaded. Long
after the `theme-manager` specs finished, those DB requests were
(somtimes) silently failing.

1. **Globally stub `DatabaseStore._query`**: All tests shouldn't actually
make queries on the database. Furthremore, the `inTransaction` block
doesn't resolve at all unless `_query` is stubbed. Instead of manually
remembering to do this in every test that touches the DB, it's now mocked
in `spec_helper`. This broke a handful of tests that needed to be manually
fixed.

1. **ESLint Fixes**: Some minor fixes to the linter config to prevent
yelling about minor ES6 things and ensuring we have the correct parser.

Test Plan: new tests

Reviewers: bengotow, juan, drew

Differential Revision: https://phab.nylas.com/D2419

Remove cloudState and N1-Send-Later
2016-01-15 15:16:21 -05:00
Karim Hamidou 268757c259 [N1] Validate input in the signup dialog
Summary:
This diff bundles a number of small usability fixes to the "Create account" window. It notably:
- forces users to enter required fields before moving on to the next step
- validates email addresses and domain names

Test Plan: Tested manually by going through all the possible auth flows.

Reviewers: evan, juan, bengotow

Reviewed By: bengotow

Subscribers: bengotow

Projects: #edgehill

Differential Revision: https://phab.nylas.com/D2377
2016-01-15 11:27:14 -08:00
Drew Regitsky ea934939a1 fix(mail-rules): tiny CSS fix to "+" button in mail rules 2016-01-15 11:01:59 -08:00
mbilker 560f659643 fix(N1.sh): allow additional parameters specified on command line
This prevents Electron saying it cannot find the main entrypoint, when
using the `--test -s` parameters on the command line to spec test plugins.
2016-01-15 12:14:07 -05:00
mbilker dbb996fd79 fix(phishing): set the package name to the correct value 2016-01-14 22:43:40 -05:00
Ben Gotow c8dcab5e6a build(linux): Ensure that target files are not group writable
Should fix #710. Will move all 0775 => 0755 and 0664 => 0644
2016-01-13 16:09:53 -08:00
Drew Regitsky 4f5aea03dd fix(templates): rewritten "welcome" file / example template 2016-01-13 12:08:41 -08:00
Ben Gotow 5bdb097bb8 fix(newsletter): Checkbox refreshes properly when switching accounts 2016-01-13 11:45:48 -08:00
Ben Gotow 5bae17600e Merge pull request #998 from nylas/set_s3_content_type
set the ContentType when uploading packages to S3.
2016-01-13 11:39:35 -08:00
Karim Hamidou 59964b04c8 set the ContentType when uploading packages to S3. 2016-01-13 11:12:39 -08:00
mbilker bdf545a519 fix(nylas-api): allow custom Sync Engine specified in config.cson 2016-01-13 10:46:54 -05:00
Ben Gotow b95f1f7cb4 bump(version): 0.3.43 and changelog 2016-01-12 19:19:16 -08:00
Ben Gotow c64f9440d2 fix(specs): Spec fixes for 37e1f6bb 2016-01-12 19:11:47 -08:00
Ben Gotow e49a761044 fix(contenteditable): exportedSelection isn't always an inst of ExportedSelection
This is a temporary fix that makes this function more robust to @innerState.exportedSelection not being an ExportedSelection instance.
2016-01-12 19:09:57 -08:00
Ben Gotow 37e1f6bb0b fix(spellcheck): Unwrap nodes with simpler code with less side effects 2016-01-12 19:03:04 -08:00