Mailspring/internal_packages/notifications/lib
Evan Morikawa 7210c80c5a fix(subscription): show Nylas Basic subscription with CTA to upgrade
Summary:
Removes references to the N1 ID expring.

Luckily, local-sync Nylas Mail Basic doesn't need the nylas ID to do
pretty much anything, which means we don't need to worry about the "trial"
status of the Nylas ID. The existing trial infrastructure will only kick
into place when someone connects an email account with the Nylas Cloud
Sync servers for the first time.

The one place we do check for the Nylas ID is in the
cloud-api/src/authentication route. Here we hit
https://billing.nylas.com/n1/user and simply expect to get back a Nylas
ID. As long as we return the existence of a Nylas ID (which should ignore
whether or not the old subscription system is "valid"), the API calls will
succeed.

This makes the "Upgrade Now" button go to
billing.nylas.com/dashboard?upgrade_to_pro=true with the auto-sign in
features enabled. This will automatically log the user into the Nylas
billing site with the upgrade_to_pro=true flag set.

There is also a new "Learn More" button which goes to
https://nylas.com/nylas-pro.

@mike, will these urls work?

Test Plan: manual

Reviewers: khamidou, mike, juan

Reviewed By: juan

Subscribers: mike

Differential Revision: https://phab.nylas.com/D3680
2017-01-14 17:40:54 -08:00
..
items 🎨(rename): Update Nylas N1 to Nylas Mail 2017-01-12 12:05:44 -08:00
sidebar fix(subscription): show Nylas Basic subscription with CTA to upgrade 2017-01-14 17:40:54 -08:00
main.es6 fix(subscription): show Nylas Basic subscription with CTA to upgrade 2017-01-14 17:40:54 -08:00
notif-wrapper.jsx fix(sidebar-notifs): Set containersRequired on the notifs-wrapper 2016-11-01 11:46:47 -07:00