💌 A beautiful, fast and fully open source mail client for Mac, Windows and Linux.
Go to file
Ben Gotow 7452705c31 refactor(composer): Make session, draft available everywhere
Summary:
Up until now, we've been requiring that every plugin control in the composer take the draftClientId, retreive the session, listen to it, build state from the draft, etc. This is a huge pain and is hard to explain to newcomers becaus it frankly makes no sense.

In 0.3.45 we made it so that the ComposerView always has a non-null draft and session. (It isn't rendered until they're available). In this diff, I just pass those through to all the plugins and remove all the session retrieval cruft.

Almost none of the buttons have state of their own, which I think is appropriate.

They do render on every keystroke, but they were already running code (to recompute their state) on each keystroke and profiling suggests this has no impact.

Prepare for immutable

In preparation for Immutable models, make the draft store proxy returns a !== draft if any changes have been made. This means you can safely know that a draft has changed if `props.draft !== nextProps.draft`

Test Plan: Run tests

Reviewers: juan, evan

Reviewed By: juan, evan

Differential Revision: https://phab.nylas.com/D2902
2016-04-19 16:05:15 -07:00
apm refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
build bump(electron): 0.36.7 => 0.37.5 2016-04-12 18:42:57 -07:00
docs fix(db): Remove - from table names, which was a bad idea 2016-04-04 17:44:45 -07:00
dot-nylas feat(keymap): add new <KeymapHandlers /> 2015-11-06 11:47:06 -08:00
examples rm(mispelled): Stranded package.json file 2016-01-07 14:59:10 -08:00
internal_packages refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
keymaps fix(Inbox): Allow shift-J, shift-K to select threads 2016-04-14 17:36:51 -04:00
menus feat(view-mode): Add option in menu to select view mode 2016-03-15 11:20:55 -07:00
script bump(electron): 0.36.7 => 0.37.5 2016-04-12 18:42:57 -07:00
spec refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
spec_integration fix(require): Move more requires to new electron format 2016-04-13 15:35:01 -07:00
src refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
static refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
.eslintrc Update grunt tasks to lint and transpile es6 code using babel 2015-11-06 17:40:42 -08:00
.gitignore feat(spec): add config dir to integration specs 2015-12-10 10:52:20 -05:00
.gitmodules feat(build): add nylas build resources 2015-12-02 13:59:54 -08:00
.travis.yml Revert "fix(build): Actually make verbose" 2016-04-11 16:12:05 -07:00
appveyor.yml fix(appveyor): check if the decryption password env variable is set 2015-12-21 20:51:04 -05:00
CHANGELOG.md changelog: 0.4.25 release notes 2016-04-12 14:43:46 -07:00
CONFIGURATION.md hide(zoom): Remove UI for zoom, move to CONFIG.md 2016-03-14 13:13:32 -07:00
CONTRIBUTING.md fix(readme): Add --enable-logging flag 2016-03-22 12:21:25 -07:00
ISSUE_TEMPLATE.md 🎨 Enhance issue template 2016-03-17 19:25:38 -07:00
LICENSE.md
N1.sh fix(launch): convert Atom's launch script for N1 2016-03-02 17:47:47 -08:00
package.json bump(electron): 0.36.7 => 0.37.5 2016-04-12 18:42:57 -07:00
README.md refactor(scheduler): move all event data into metadata 2016-04-09 21:19:01 -04:00

N1 Logo

N1 Screenshot

N1 is an open-source mail client built on the modern web with Electron, React, and Flux. It is designed to be extensible, so it's easy to create new experiences and workflows around email. N1 is built on the Nylas Sync Engine which is also open source free software.

Build Status Slack Invite Button ![GitHub issues On Deck](https://badge.waffle.io/nylas/N1.png?label=on deck&title=On Deck)

Want help build the future of email? Nylas is hiring!

Download N1

You can download compiled versions of N1 for Windows, Mac OS X, and Linux (.deb) from https://nylas.com/N1. You can also build and run N1 on Fedora. A Fedora distribution is coming soon!

Build A Plugin

Plugins lie at the heart of N1 and give it its powerful features. Building your own plugins allows you to integrate the app with other tools, experiment with new workflows, and more. Follow the Getting Started guide to write your first plugin in 5 minutes. To create your own theme, go to our Theme Starter guide.

If you would like to run the N1 source and contribute, check out our contributing guide.

Plugin List

We're working on building a plugin index that makes it super easy to add them to N1. For now, check out the list below! (Feel free to submit a PR if you build a plugin and want it featured here.)

Bundled Themes

Community Themes

Create your own theme!

Bundled Plugins

Great starting points for creating your own plugins!

Community Plugins

Running Locally

By default the N1 source points to our hosted version of the Nylas Sync Engine; however, the Sync Engine is open source and you can run it yourself.

Feature Requests / Plugin Ideas

Have an idea for a package, or a feature you'd love to see in N1? Check out our public Trello board to contribute your thoughts and vote on existing ideas.