Commit graph

1949 commits

Author SHA1 Message Date
Juan Tejada
ad05cc05cc Fix MutliSelectSplitInteractionHandler specs 2016-01-22 13:47:54 -08:00
Juan Tejada
27ff4d2de2 Show window when switching accounts if it isnt visible 2016-01-22 11:58:24 -08:00
Ben Gotow
d842428880 Rename formatResult, don't assume it's an array 2016-01-22 11:45:36 -08:00
Evan Morikawa
eb3223580b fix(composer): list creation edge case fixes and tests
Fixes #1064
2016-01-22 10:36:15 -08:00
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
Juan Tejada
6b144b867d Fix MultiSelectListInteractionHandlers specs 2016-01-21 17:07:57 -08:00
Ben Gotow
946d81bf20 Rebuild SearchSuggestionStore to fix errors, appearing after search committed 2016-01-21 16:00:18 -08:00
Ben Gotow
53c258b9d1 ContactStore always searches all contacts 2016-01-21 16:00:18 -08:00
Ben Gotow
4e9bf5cc23 _version was conflicting with superclass property 2016-01-21 16:00:18 -08:00
Ben Gotow
8d8ed03e0c Update CHANGELOG.md 2016-01-21 14:31:27 -08:00
Juan Tejada
e3b8803250 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
7458fdd4db TaskFactory now returns N tasks for performing standard actions, undo uses arrays 2016-01-21 13:46:04 -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
Juan Tejada
979c29e24f Decrease OutlineView children indentation 2016-01-20 19:30:12 -08:00
Juan Tejada
f38e9da828 Update default collapsed value for sidebar items in unified inbox view 2016-01-20 19:22:33 -08:00
Ben Gotow
2f444db8c1 bump(version): 0.3.45 2016-01-20 18:55:51 -08:00
Juan Tejada
1510413752 Fix styles for outline view heading 2016-01-20 17:47:59 -08:00
Ben Gotow
7705317576 Disable SELECT DISTINCT unless we know we need it 2016-01-20 17:40:18 -08:00
Ben Gotow
7ff836d009 Optimize offsetOfId, shouldn't throw if models contains undefined 2016-01-20 17:27:06 -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
Juan Tejada
86cbd3aae9 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
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
Juan Tejada
4ef95212ad Fix Category require 2016-01-20 13:14:34 -08:00
Ben Gotow
e5aaefc45a Change the sidebar to use Flexbox for container 2016-01-20 13:04:06 -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
Juan Tejada
f2acba48ee Add account switcher back to sidebar:
- Account switcher can now switch between all accounts and each account
- Updates FocusedPerspectiveStore and Actions.focusDefaultMailboxPerspectiveForAccounts
  to focus a perspective for accountIds instead of for a single account,
  and updates methods
  - Adds helpers to CategoryStore and MailboxPerspective
  - Updates key commands to allow switch to unified inbox
2016-01-19 23:42:50 -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