Commit graph

77 commits

Author SHA1 Message Date
Evan Morikawa 1fc6dfc38a feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
Ben Gotow 4f34c8403f feat(trash): Trash for Gmail, and architectural changes for common tasks
Summary:
This diff centralizes logic for creating common tasks for things like moving to trash, archive, etc. TaskFactory exposes a set of convenience methods and hides the whole "and also remove the current label" business from the user.

This diff also formally separates the concept of "moving to trash" and "archiving" so that "remove" isn't used in an unclear way.

I also refactored where selection is managed. Previously you'd fire some action like archiveSelection and it'd clear the selection, but if you selected some items and used another method to archive a few, they were still selected. The selection is now bound to the ModelView as intended, so if items are removed from the modelView, they are removed from it's attached selection. This means that it shouldn't /technically/ be possible to have selected items which are not in view.

I haven't refactored the tests yet. They are likely broken...

Fix next/prev logic

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2157
2015-10-21 10:38:00 -07:00
Ben Gotow 7148c70e61 fix(send-availability): Make the package load into popout composers 2015-10-07 11:45:46 -07:00
Malone Hedges 403dbd5d5c Fix little typo 2015-10-06 00:10:08 -07:00
dillon 3e3b5d0230 fix(phishing-detection): undefined messages no longer throws exception
Summary: fixes T4078

Test Plan: manual

Reviewers: bengotow

Maniphest Tasks: T4078

Differential Revision: https://phab.nylas.com/D2111
2015-10-05 14:36:48 -07:00
Michael Grinich 1772a43878 actually no more gh-pages 2015-10-05 05:08:53 -07:00
Ben Gotow 4813464978 fix(readmes): Add "Install this plugin" bits to the plugin READMEs 2015-10-04 00:42:54 -07:00
Ben Gotow 308c70f53d fix(sync): Request all labels / folders to avoid paging and missing inbox 2015-10-03 23:53:59 -07:00
Ben Gotow 84c8e2f99d fix(icons): New artwork for a few initial packages, labels 2015-10-03 23:34:43 -07:00
Ben Gotow 0a1ebd7d30 feat(templates): Final examples package is in - templates! 2015-10-03 14:05:47 -07:00
dillon 48cddbbbe6 add docs for github contact card example package 2015-10-02 18:33:50 -07:00
dillon e63271cfa0 add personal level indicators example package 2015-10-02 17:43:17 -07:00
dillon 0fa581e8bb add filters example 2015-10-02 17:09:06 -07:00
dillon 18a692915c add send availability example package 2015-10-02 16:06:56 -07:00
dillon a8b76f1078 add phishing detection example 2015-10-02 15:38:48 -07:00
Evan Morikawa 7c9e591924 copy(readme): update readmes 2015-10-02 13:24:39 -07:00
Ben Gotow 93e29d01d8 fix(initial-packages): Pull from examples directory, include in ci builds 2015-09-30 11:43:06 -07:00
Ben Gotow 76cb33b3f6 feat(post-auth): Initial prefs + packages screens, welcome copy changes
Summary:
Package names must match directory names

Not going to use new Swithc component, but might as well be part of component kit

Move APMWrapper into core so it can be used from anywhere

Move manual package install coe to package-manager

Gray out window titles when in the background

Do not allow multiple onboarding windows at the same time

Finalize styling f initial-prefs and initial-packages, make it work (only github package atm)

Other nits

Change the welcome copy:

- Call it easy to extend vs easy to use
- Remove the subtitle from the first screen which doesn't really fit
- Make the second page emphasize that its created /for/ developers and easy to extend with Javascript.
- Explain what the sync engine is rather than saying it's "faster and more extensible" (??)

Test Plan: Run tests

Reviewers: evan, dillon

Reviewed By: evan

Maniphest Tasks: T3346

Differential Revision: https://phab.nylas.com/D2079
2015-09-29 23:58:30 -07:00
Ben Gotow 1a0292a37e fix(docs): Replace docs references to Edgehill with N1 2015-09-29 09:45:02 -07:00
Ben Gotow 1d9a34f5ea rename(Nylas Mail): Replace Nylas Mail > N1 2015-09-29 09:44:30 -07:00
Ben Gotow 41b455d33e fix(developer-bar): Critical fixes to curl display
- Do not sort and then reverse the request history every time it's requested
- Do not allow the request history to grow forever (cap at 200)
- Do not stringify tasks until they're clicked
2015-09-27 23:43:59 -07:00
Ben Gotow 42ad243824 fix(message-sidebar): New ContactCard injectable role, updated FocusedContactStore
- The FocusedContactStore was triggering too often, and leaving it up to the FullcontactStore to fetch the full Contact model for the focused contact (pulled from thread.)

The FocusedContactStore triggers more responsibly, and registering for the role "MessageListSidebar:ContactCard" now gives you the focused contact as a full database model. The whole ContactCard region also fades in and out.
2015-09-24 18:58:53 -07:00
Ben Gotow bd973e3869 update(examples): Add github sidebar and translate examples 2015-09-21 11:36:54 -07:00
Ben Gotow fce1ed6303 fix(README): Remove incorrect links, tell people to run apm 2015-09-21 11:13:24 -07:00
Ben Gotow 46000ce571 fix(n1-github): Bad reference to React, missing dependencies 2015-09-21 11:11:04 -07:00
Evan Morikawa ba2afcdcbd docs(github): add documentation to the Github sample 2015-09-20 17:20:08 -04:00
Evan Morikawa 1a5dd2003f refactor(package): remove old, unused, or private package. Adds examples
Moved to git@github.com:nylas/N1-private-packages.git

Also started an "examples" folder at the root level with an example Github
package
2015-09-10 12:57:40 -04:00