Commit graph

2105 commits

Author SHA1 Message Date
Ben Gotow
2bb9ce3591 More database-related spec fixes 2016-01-25 11:35:23 -08:00
Ben Gotow
a2c901559e DatabaseTransaction / QueryBuilder spec fixes 2016-01-25 11:11:57 -08:00
Ben Gotow
9fc11512ad CategoryPicker / PerspectiveStore spec fixes 2016-01-25 11:07:40 -08:00
Juan Tejada
ac34f4410b add(exports): Add Rx to nylas-exports 2016-01-25 10:40:41 -08:00
Michael Grinich
b56daf030f Add Berend theme 2016-01-24 17:38:50 -08:00
Juan Tejada
84ef0e97bf Fix more task specs 2016-01-22 16:55:29 -08:00
Evan Morikawa
cc0d636381 fix(link): auto populate urls. Fix links across nodes
Fixes #1116
Also fixes an issue where links wouldn't create properly across multiple
nodes

This was due to a bug in the `select` method. We use the DOM Range API to
more robustly select a node.
2016-01-22 16:30:28 -08:00
Evan Morikawa
d15d39abdf fix(keymap): the remove and go to prev/next keys were reversed
Fixes #924
2016-01-22 15:33:49 -08:00
Juan Tejada
877dd6ebde Fix specs for destroy and syncback category tasks 2016-01-22 14:52:19 -08:00
Juan Tejada
1aef74ce4a Fix MutliSelectSplitInteractionHandler specs 2016-01-22 13:47:54 -08:00
Juan Tejada
901ce1bcbd Show window when switching accounts if it isnt visible 2016-01-22 11:58:24 -08:00
Ben Gotow
50eac609fb Rename formatResult, don't assume it's an array 2016-01-22 11:45:36 -08:00
Evan Morikawa
ede5d49280 fix(composer): list creation edge case fixes and tests
Fixes #1064
2016-01-22 10:36:15 -08:00
Ben Gotow
948202af2d update(readme): Add Todoist for N1 2016-01-22 10:16:46 -08:00
Jackie Luo
dab9dc5b80 Add weather plugin to README 2016-01-21 18:08:50 -08:00
Jackie Luo
d4f9c5d43c Merge branch 'master' of github.com:nylas/N1 2016-01-21 18:03:30 -08:00
Jackie Luo
4aab47ec98 Add Reflux 2016-01-21 18:03:18 -08:00
Juan Tejada
abe363db19 Fix MultiSelectListInteractionHandlers specs 2016-01-21 17:07:57 -08:00
Ben Gotow
e887722e4a Rebuild SearchSuggestionStore to fix errors, appearing after search committed 2016-01-21 16:00:18 -08:00
Ben Gotow
1af9a05075 ContactStore always searches all contacts 2016-01-21 16:00:18 -08:00
Ben Gotow
c2ebc4cb32 _version was conflicting with superclass property 2016-01-21 16:00:18 -08:00
Ben Gotow
1b10366740 Update CHANGELOG.md 2016-01-21 14:31:27 -08:00
Juan Tejada
2380e1eefa Update sidebar to hold state for selected account
- Ensures that it displays the correct set of sidebar items even when
  the perspective changes
- Also sets up hotkeys to switch currently focused accounts
2016-01-21 14:13:48 -08:00
Ben Gotow
8f7f63af3a TaskFactory now returns N tasks for performing standard actions, undo uses arrays 2016-01-21 13:46:04 -08:00
Michael Grinich
156581bc39 Add Solarized Dark 2016-01-21 10:57:27 -08:00
Ben Gotow
91efdd5a8b fix(contributing): Mention syncEngine.APIRoot 2016-01-21 10:42:31 -08:00
Ben Gotow
42f8d29a89 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
88ccbf97d3 fix(link): allow links with no closest method to open 2016-01-21 10:15:22 -08:00
mbilker
a424fd52d1 fix(nylas-api): namespace the custom sync engine to syncEngine 2016-01-21 00:16:43 -05:00
Evan Morikawa
ecea0feb5f fix(console): rm console trace 2016-01-20 21:09:50 -08:00
Evan Morikawa
acb0eb77cf bump(version): 0.3.46 2016-01-20 21:00:01 -08:00
Evan Morikawa
3195ba5d51 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
Juan Tejada
0fce8a059f Decrease OutlineView children indentation 2016-01-20 19:30:12 -08:00
Juan Tejada
e8583abb01 Update default collapsed value for sidebar items in unified inbox view 2016-01-20 19:22:33 -08:00
Ben Gotow
36012f84f2 bump(version): 0.3.45 2016-01-20 18:55:51 -08:00
Juan Tejada
99f997d953 Fix styles for outline view heading 2016-01-20 17:47:59 -08:00
Ben Gotow
a3b1f77d45 Disable SELECT DISTINCT unless we know we need it 2016-01-20 17:40:18 -08:00
Ben Gotow
ffb5e0dfda Optimize offsetOfId, shouldn't throw if models contains undefined 2016-01-20 17:27:06 -08:00
Ben Gotow
8b8a505b20 fix(onboarding): Minor style changes, headers for EAS 2016-01-20 17:09:15 -08:00
Ben Gotow
ba606fff21 fix(newsletter): Don't make API request if email is the same 2016-01-20 17:09:15 -08:00
Ben Gotow
2ce24bd4af fix(onboarding): Loosen RegExp so a.com and a.b.c.d.com are valid 2016-01-20 17:09:15 -08:00
Juan Tejada
6c559ddb7e Add collapse capabilities to OutlineView
- Make user category sections collapsible when in unified view
- Get rid of dumb CategoryHelpers class
2016-01-20 17:09:05 -08:00
Drew Regitsky
2d51f92f17 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
c7a685630d 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
Juan Tejada
5dd334bffc Fix Category require 2016-01-20 13:14:34 -08:00
Ben Gotow
1d55f1ac11 Change the sidebar to use Flexbox for container 2016-01-20 13:04:06 -08:00
Ben Gotow
5263c23b02 fix(readme): Broken link to Message View on Github 2016-01-20 12:22:47 -08:00
Ben Gotow
353be64e10 rm(tooltip): Tooltip package no longer in use 2016-01-20 11:30:57 -08:00
Ben Gotow
45403131f1 rm(intercom): Point feedback to support.nylas, shrink button 2016-01-20 11:26:14 -08:00
Ben Gotow
29f4c9d279 bump(version): 0.3.44 beta 2016-01-20 10:56:00 -08:00