Commit Graph

1517 Commits

Author SHA1 Message Date
Rishabh
57773744c4 v1.17.2 2022-03-24 16:40:12 +05:30
Rishabh
920019da47 Fixed layout for prices with custom description
One of the early betas for multiple products allowed adding custom description for prices, which Portal had an extra check for when rendering. The price description is not a valid scenario anymore, and this change allows Portal to ignore description of prices so it shows consistent layout for single tier scenario.
2022-03-24 16:33:19 +05:30
Rishabh
e675a2032d v1.18.0 2022-03-23 21:19:43 +05:30
Peter Zimon
3bec8f784e Updated padding for change plan 2022-03-23 16:06:29 +01:00
Djordje Vlaisavljevic
d9a9f0e90c Added newsletter descriptions
refs https://github.com/TryGhost/Team/issues/1440
2022-03-23 15:52:16 +01:00
Peter Zimon
76158d41af Fixed bottom spacing for offers in Admin preview 2022-03-23 15:07:47 +01:00
Peter Zimon
a034405bc4 Fixed login link under cta on offers screen 2022-03-23 14:28:59 +01:00
Peter Zimon
9529587ef7 Updated current plan visuals 2022-03-23 14:28:59 +01:00
Rishabh
f03ef9538d Added dummy newsletter preferences section for member account
refs https://github.com/TryGhost/Team/issues/1440

- adds static email preferences section in account home page
- adds new account email page for preferences
- adds new fixture for multiple newsletters
- adds basic helper for multiple newsletters
2022-03-23 18:12:00 +05:30
Peter Zimon
2c81e94f74 Fixed discount bug
- fixes bug so that negative discount values won't be showen on tier cards.
2022-03-23 13:36:40 +01:00
Rishabh Garg
afe49de9c2 Refined UI/UX for Portal flows (#234)
On the heels of multiple tiers going GA, this change brings a massive visual overhaul to Portal for almost all pages and flows, along with adding consistency between different multiple tier flows. It also overhauls the tests to match our new UI/UX for Portal.

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2022-03-23 16:31:59 +05:30
Renovate Bot
20f12bc7d1 Update sentry-javascript monorepo to v6.19.1 2022-03-22 22:37:51 +00:00
Rishabh
2403ee4d36 v1.17.1 2022-03-21 10:25:42 +05:30
Rishabh
4ed5e7e0e1 Removed unused console logs 2022-03-21 10:24:40 +05:30
Rishabh
d6217aa99a v1.17.0 2022-03-16 21:10:05 +05:30
Rishabh
d4407b9acd Fixed empty subscription object for comped members
refs https://github.com/TryGhost/Team/issues/1428

Editing a comped member's name doesn't return the dummy subscription object in API response, causing unexpected crash in Portal when setting Plan label as it expect's a subscription for a paid member. This change gracefully handles the crash and instead shows empty information for plan label so member can continue using Portal as expected.
2022-03-16 21:08:47 +05:30
Peter Zimon
6b88631521 Additional fix to avoid double scrollbars
Refs.
9425e5843e
https://github.com/TryGhost/Casper/issues/850

Adding additional margin/padding to wrapper to avoid double scrollbars
in small viewports.
2022-03-16 09:48:02 +01:00
Peter Zimon
9425e5843e Fixed double scrollbar bug
Ref: https://github.com/TryGhost/Casper/issues/850

Portal has a bug that the scrollbars for the popup wrapper are always
visible which results in double scrollbars for certian viewports.
This commit hides the wrapper's scrollbars, so only the site scrollbars
will be visible (if the content requires it).
2022-03-16 09:13:28 +01:00
Rishabh
c5154a43a7 Added paid member with selected tier fixture 2022-03-11 20:10:22 +05:30
Peter Zimon
389163c338 Fixed powered by positioning 2022-03-11 12:16:41 +01:00
Renovate Bot
6414411acd Update sentry-javascript monorepo to v6.18.2 2022-03-10 05:46:43 +00:00
Peter Zimon
3587052487 Updated preview styles 2022-03-08 11:34:55 +01:00
Rishabh
5d251cffe5 v1.16.1 2022-03-08 14:37:38 +05:30
Rishabh
d82d86e600 Handled missing free tier for portal plans
refs https://github.com/TryGhost/Team/issues/1387

Free tier is only passed to portal when tiers flag is enabled.
2022-03-08 14:36:15 +05:30
Rishabh
d9f7e7ba16 v1.16.0 2022-03-08 11:30:45 +05:30
Rishabh
eccad13871 Fixed default first product selection failing
The first product selection failed in case of multiple products when viewing in preview, as the id was not updating correctly. This fixes the selected product for products section to ensure there is always valid product selected.
2022-03-08 10:26:17 +05:30
Rishabh
ca29b5dc65 Moved tier visibility usage from portal settings to tier object
refs https://github.com/TryGhost/Team/issues/1387

We have moved away from the portal_products and portal_plans settings to using the visibility property on tiers to determine whether or not a tier should be visible in Portal. This updates Portal to use new tier visibility property to determine visibility at base API level, and in future we will update to remove all usage of portal settings.
2022-03-08 10:26:17 +05:30
Peter Zimon
30703842b5 Update multiple tiers signup (#230)
* Made signin screen normal size for multiple tiers

* Powered by updates

* Removed innser scrolling of portal modal
2022-03-07 16:55:12 +01:00
Rishabh
8bf5eebdbe v1.15.0 2022-03-04 15:19:50 +05:30
Rishabh
cc994a0ef1 Added tier name on account home page
As a site can have multiple tiers, instead of just showing "Plan" on account home, this change shows name of the tier member is on.
2022-03-04 15:18:08 +05:30
Renovate Bot
fa64b00927 Update sentry-javascript monorepo to v6.18.1 2022-03-01 22:43:28 +00:00
Renovate Bot
3fb938469b Update sentry-javascript monorepo to v6.18.0 2022-02-25 19:39:21 +00:00
Renovate Bot
1c36983a52 Update sentry-javascript monorepo to v6.17.9 2022-02-21 03:26:28 +00:00
Rishabh
c9e88de5bf Fixed lint 2022-02-18 23:17:20 +05:30
Rishabh
4c15ecacd8 Added functional tests for member sign-in flow
closes https://github.com/TryGhost/Team/issues/1347
2022-02-18 22:51:29 +05:30
Rishabh
6be29d900c Added id to plan section tests to avoid key warnings 2022-02-18 21:29:05 +05:30
Rishabh
8481962df8 Extended tests for portal helpers
refs https://github.com/TryGhost/Team/issues/1366

- adds unit tests for helpers used across app for data
2022-02-18 21:24:47 +05:30
Rishabh
13fccc3b9f Added tests for direct portal links
closes https://github.com/TryGhost/Team/issues/1354

- extends test coverage to include direct portal links - `#/portal/*`
2022-02-18 18:48:28 +05:30
Rishabh
98f212c3df Added portal data attributes tests
closes https://github.com/TryGhost/Team/issues/1364

- extends data attributes test to cover `data-portal=*` tests
2022-02-18 18:22:06 +05:30
Rishabh
58f2025038 Fixed offer links signup type for logged in members
- logged in members need a special checkoutType metadata in api payload to avoid sending login link email
2022-02-18 00:27:11 +05:30
Rishabh
c0500c1a40 Added offer link tests with portal button disabled
closes https://github.com/TryGhost/Team/issues/1323
2022-02-18 00:26:05 +05:30
Rishabh
0ffa5830fd Fixed default name/email for logged-in member in offer checkout flow
- for logged in members, offer screen was not using the existing name/email values in stripe checkout request
- this did not have side effects as we still attach member session identity in checkout request,
- updates portal to send the name/email when present to checkout request
2022-02-17 11:32:52 +05:30
Rishabh
70013735cc Added tests for free member upgrade flows
closes https://github.com/TryGhost/Team/issues/1348
closes https://github.com/TryGhost/Team/issues/1352

- also updates dev mode check to use dummy member for offers page
2022-02-17 11:30:10 +05:30
Rishabh
a8448033fd Added tests for signup via data attributes
closes https://github.com/TryGhost/Team/issues/1365
2022-02-17 10:25:51 +05:30
Rishabh
b530672177 Added signup flow tests for paid members and offers
closes https://github.com/TryGhost/Team/issues/1351
closes https://github.com/TryGhost/Team/issues/1346

- adds test for members signing up via offer urls
- adds test for members signing up as paid members on single and multi tier sites
2022-02-16 11:59:25 +05:30
Rishabh
cbae75ce60 Cleaned up event listeners on app unmount 2022-02-16 11:53:18 +05:30
Rishabh
0921217fd8 Added free member signup flow tests for multiple tiers
closes https://github.com/TryGhost/Team/issues/1345

- adds free member signup tests for sites with multiple tiers
- updates test fixtures
2022-02-15 13:13:07 +05:30
Rishabh
83a4a0e62a Added basic functional app flow tests
refs https://github.com/TryGhost/Team/issues/1345

- updates App setup to take custom api prop
- adds new signup flow test to check functional behavior of App for specific site settings
- cleanup
2022-02-14 23:28:20 +05:30
Renovate Bot
58781eb79e Update sentry-javascript monorepo to v6.17.7 2022-02-14 03:49:46 +00:00
Rishabh
0b4c021236 v1.14.3 2022-02-11 10:54:45 +05:30
Rishabh
2377cb630f Fixed paid signup notification message
refs 579b34434f

As part of the work of automatically logging members in after payment, we added a new action type for signup - `signup-paid` - which allows custom message for a member that is already signed up and doesn't need to confirm their subscription. The new action - `signup-paid` - wasn't added to Portal notification handler which then fallbacks to showing just `Success` as the message. This change -

- handles new `signup-paid` action type allowing Portal to show proper success message
2022-02-11 10:33:06 +05:30
Djordje Vlaisavljevic
7e4e1bcfe2 Added static HTML for tier names in account settings
refs https://github.com/TryGhost/Team/issues/1069
2022-02-10 10:43:37 +01:00
Fabien "egg" O'Carroll
de9c0ef99a v1.14.2 2022-02-09 18:22:25 +02:00
Fabien "egg" O'Carroll
0ad09da764 Fixed Offer handling when Portal disabled
no-issue

The checkoutPlan action should only be used for upgrading members as it
does not send an email upon completion.
2022-02-09 18:19:12 +02:00
Renovate Bot
c4681e35ed Update sentry-javascript monorepo to v6.17.6 2022-02-08 23:58:27 +00:00
Peter Zimon
3e8e6341ee Fixed avatar not appearing for text-only setting
- fixes a bug that avatars for logged in members didn't appear on the trigger button (bottom right) when the setting for the button was set to 'Text only'
2022-02-07 16:47:52 +01:00
Renovate Bot
0a55cfa82e Update dependency @testing-library/jest-dom to v5.16.2 2022-02-04 22:49:54 +00:00
Renovate Bot
9ac2b86553 Update sentry-javascript monorepo to v6.17.4 2022-02-03 19:40:01 +00:00
Rishabh
1377b2f2ed v1.14.1 2022-02-02 13:05:54 +05:30
Rishabh
b0139dcc6d 🐛 Fixed offer page showing empty name for logged in member
closes https://github.com/TryGhost/Team/issues/1301

- if a logged in member doesn't a name stored, the offer page for them gets bricked  while trying to redeem as the UI doesn't allow submit.
- removes name field for logged-in member if empty
2022-02-02 13:04:57 +05:30
Renovate Bot
c66bdb86b6 Update sentry-javascript monorepo to v6.17.3 2022-01-31 02:53:21 +00:00
Rishabh
67544a071a Fixed free signup portal link for multiple tiers
no refs

- free signup portal link with multiple tiers enabled was incorrectly showing all tiers instead of just free
2022-01-27 14:57:47 +05:30
Renovate Bot
3c8a3a90c4 Update sentry-javascript monorepo to v6.17.2 2022-01-27 01:14:46 +00:00
Renovate Bot
6bf7392fe4 Update sentry-javascript monorepo to v6.17.1 2022-01-25 19:42:37 +00:00
Renovate Bot
cf69e262c8 Update dependency eslint-plugin-ghost to v2.12.0 2022-01-21 19:19:09 +00:00
Rishabh
a6e9f37b10 Fixed tests
no refs
2022-01-17 23:57:25 +05:30
Rishabh
c302998b20 v1.14.0 2022-01-17 23:25:30 +05:30
Rishabh Garg
7cf843d3c7 Added description and benefits for free tier (#210)
refs https://github.com/TryGhost/Team/issues/1037

Free tier is now setup the same way as other tiers, to allow custom description/benefits. This change - 

- adds custom description and benefits UI for free tier when tiers beta is enabled
- updates fixtures structure
- fixes react overlay error for fast refresh

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2022-01-17 23:24:34 +05:30
Rishabh
542e585f89 v1.13.2 2022-01-14 20:01:40 +05:30
Rishabh
2e02824a85 Refined offer label UI on account home page
closes https://github.com/TryGhost/Team/issues/1195
2022-01-14 19:39:58 +05:30
Rishabh
bd291b71bf v1.13.1 2022-01-14 19:27:32 +05:30
Rishabh
b659996082 Fixed archived offers incorrectly showing offer page
refs https://github.com/TryGhost/Team/issues/1269

- accessing an archived offer url was incorrectly showing the offer page, as we were not checking for the status of offer
- the archived offer redemption was working correctly as it was blocked on API, this change updates the ui to hide offer screen for archived as well
2022-01-06 19:25:14 +05:30
Rishabh
e47a24f362 v1.13.0 2022-01-06 18:41:28 +05:30
John O'Nolan
4206cb0cfb 2022 2022-01-06 11:08:16 +00:00
Peter Zimon
0cc37afc66 Removed separator line hack from signup footer 2022-01-05 16:38:59 +01:00
Rishabh
d6f0cb7010 Fixed tests
no refs

- fixes default value used for member creation fixture
2022-01-05 20:29:29 +05:30
Peter Zimon
cac9cc7ed4 Changed base modal width 2022-01-05 15:07:30 +01:00
Peter Zimon
1a25cac7ad Updated discount in account home page 2022-01-05 15:03:53 +01:00
Rishabh
86a8abdf30 Refined member account details to show any applied discounts
refs https://github.com/TryGhost/Team/issues/1195

- shows any applied discounts on subscription on account profile page
2022-01-04 20:12:06 +05:30
Renovate Bot
cdd1c429df Lock file maintenance 2022-01-03 04:20:55 +00:00
Renovate Bot
d984701d47 Update dependency rewire to v6 2021-12-21 04:10:19 +00:00
Renovate Bot
af05c9ddaf Update sentry-javascript monorepo to v6.16.1 2021-12-13 04:34:21 +00:00
Renovate Bot
5535efb93f Update sentry-javascript monorepo to v6.16.0 2021-12-08 23:19:06 +00:00
Renovate Bot
c3e0e5de28 Update dependency @testing-library/jest-dom to v5.16.1 2021-12-07 15:32:59 +00:00
Renovate Bot
5508409dc7 Update dependency @testing-library/jest-dom to v5.16.0 2021-12-06 04:05:18 +00:00
Renovate Bot
b3158f368d Update dependency eslint-plugin-ghost to v2.11.0 2021-12-02 22:50:13 +00:00
Fabien egg O'Carroll
cf41cdebfb v1.12.9 2021-12-01 20:47:51 +02:00
Fabien egg O'Carroll
709b5b2af6 Removed logic to set default urls for checkout
refs https://github.com/TryGhost/Team/issues/1067

Checkout success/cancel URLs are handled by the server, and should only
be passed if we particularly want a custom one!
2021-12-01 20:11:16 +02:00
Renovate Bot
b26c0aefce Update dependency eslint-plugin-ghost to v2.9.0 2021-11-30 19:52:01 +00:00
Renovate Bot
d53ee46ac9 Update dependency eslint-plugin-ghost to v2.8.0 2021-11-26 22:56:49 +00:00
Renovate Bot
642049c610 Update dependency @testing-library/jest-dom to v5.15.1 2021-11-24 18:07:33 +00:00
Rishabh
dc15417e48 v1.12.8 2021-11-22 18:20:07 +05:30
Rishabh
f4fdda94e5 🐛 Fixed incorrect price shown for offer page with fixed discount
no refs

the fixed discount is only applied to offer if the offer currency matches with original price currency. The bug happened due to case difference between the offer and price currencies which should be compared case insensitive
2021-11-22 18:19:00 +05:30
Renovate Bot
3ad4e9c4c9 Update sentry-javascript monorepo to v6.15.0 2021-11-17 12:53:34 +00:00
Renovate Bot
94a7ee5672 Update sentry-javascript monorepo to v6.14.3 2021-11-12 23:34:29 +00:00
Renovate Bot
4ebc7b5265 Update sentry-javascript monorepo to v6.14.1 2021-11-08 04:10:23 +00:00
Peter Zimon
df411f266f v1.12.7 2021-11-05 09:30:23 +01:00
Peter Zimon
351e34d74c Fixed trigger button opacity bug
Fixed trigger button bug of not being displayed in Portal settings with
certain themes (e.g. Edition) because of setting opacity to 1 with
inline CSS. Added condition to only set this property in preview mode.
2021-11-05 09:27:12 +01:00
Renovate Bot
7aac4fcd4c Update sentry-javascript monorepo to v6.14.0 2021-11-04 21:51:37 +00:00
Renovate Bot
1fab694d14 Update dependency @testing-library/jest-dom to v5.15.0 2021-11-03 17:38:42 +00:00
Rishabh
b2827b3d9f Added loading screen while opening direct Stripe checkout
refs https://github.com/TryGhost/Team/issues/1184

When Portal tries to open Stripe checkout directly without any popup UI, since the time taken by checkout session to open can be few seconds it can cause invisible delay on the screen for user which is confusing. This change adds a loading popup while Stripe checkout session is loaded
2021-11-02 19:35:40 +05:30
Rishabh
399bbc0977 Updated fixtures for site used in tests
no refs
2021-11-02 19:35:40 +05:30
Rishabh
1dab76a274 Cleaned up mode utils 2021-11-02 19:35:40 +05:30
renovate[bot]
0dfd0b6b6b Update dependency chalk to v4.1.2 (#168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-02 11:16:05 +05:30
Heath Raftery
e419c3f868 Updated check for showing upgrade CTA in account welcome page (#182)
Co-authored-by: Heath Raftery <heath@newie.ventures>

- removes upgrade CTA if there are no paid plans available in portal to upgrade

Context:

When first configuring Portal, it is reasonable and straight-forward to connect a Stripe account as instructed, but then disable the paid tiers to delay presenting paid memberships until the site is mature enough to warrant paid memberships.

This results in a very functional Portal, which prompts for, processes and accepts free membership. After logging into a free account however, the Portal displays a call-to-action paragraph encouraging the user to upgrade to a paid account. Obviously this is confusing for the user, given that there are no paid options.

The result is no change for sites that have paid memberships, or do not have Stripe configured. But if the only membership plan is free, then the cta text is not added to the page, just as it would not be if Stripe was not configured or the subscription was complimentary or cancelled.
2021-11-02 11:13:40 +05:30
Rishabh
0e3d918319 Updated readme
no refs

- updates local development section to add new mode
2021-11-02 10:56:10 +05:30
Rishabh
f56269933e Updated default port used in dev mode
refs https://developer.apple.com/forums/thread/682332

Mac OS Monterey by default listens on ports 5000 and 7000 for new AirPlay functionality. Since portal dev mode also runs on port 5000 and gets blocked due to this, the default port is now updated to use 5368 instead.

Note: Its still possible to choose a different port while starting portal in dev mode by running `yarn start:dev --port=xxxx`
2021-11-02 10:15:35 +05:30
Renovate Bot
23700703aa Update dependency eslint-plugin-ghost to v2.7.0 2021-10-25 05:19:54 +00:00
Rishabh
3967656284 v1.12.6 2021-10-22 07:56:01 +05:30
Rishabh
1a2c00d914 Updated duration in months for offer in preview mode
no refs
2021-10-22 01:57:13 +05:30
Rishabh
d818ca5c4b Updated maxlength attribute on field
no refs
2021-10-21 23:08:53 +05:30
Rishabh
52826b2324 Updated fixtures for tests
no refs
2021-10-21 23:05:04 +05:30
Rishabh
909b81e7e4 Updated tier label when multiple tiers is disabled
refs https://github.com/TryGhost/Team/issues/1162
2021-10-21 23:02:04 +05:30
Peter Zimon
dd6c9220af Offer screen refinements 2021-10-21 19:00:39 +02:00
Rishabh
dd90a8fe8b v1.12.5 2021-10-21 00:51:39 +05:30
Rishabh
d85755d91b Handled offer urls redirect to checkout when portal button is hidden
refs https://github.com/TryGhost/Team/issues/1162

- if portal button is hidden/disabled by site owner, portal offer urls redirect straight to checkout instead of opening portal offer detail screen
2021-10-21 00:50:58 +05:30
Rishabh
cc7c812af8 v1.12.4 2021-10-20 20:22:53 +05:30
Rishabh
ac9a631fe3 Updated copy for offer renewal info on offer screen
refs https://github.com/TryGhost/Team/issues/1162

- updates renewal info based on offer duration and cadence
2021-10-20 20:21:57 +05:30
Daniel Lockyer
a83bcf9869 Added codecov.io coverage uploader to CI
refs linear.app/tryghost/issue/CORE-74/improve-the-test-situation

- this commit adds the codecov GitHub Action into CI so we can upload
  coverage reports
- the coverage files need to be in XML for them to work with
  codecov, so this commit also adds cobertura (XML) as a reporter
2021-10-20 14:00:42 +02:00
Renovate Bot
85ffb985fc Update dependency @testing-library/user-event to v13.5.0 2021-10-20 12:00:28 +00:00
Rishabh
aef59ebf2b Ignored offer urls for paid members
refs https://github.com/TryGhost/Team/issues/1138

- paid members shouldn't see the offer detail UI as there is no clear path to upgrade for them from offer detail page at the moment
2021-10-19 13:22:52 +05:30
Rishabh
315cde6c46 v1.12.3 2021-10-19 00:20:55 +05:30
Rishabh
f3a861379a Updated default cadence to yearly for signups
closes https://github.com/TryGhost/Team/issues/1143

The most common pattern for signup pages when monthly and yearly plans are available is to have "yearly" as a default. Portal had default as monthly earlier, and is now changed to yearly
2021-10-18 23:57:26 +05:30
Rishabh
c100e18f05 Fixed lint
no refs
2021-10-18 23:40:05 +05:30
Rishabh
d20be44ba8 Updated checkout behavior for logged-in members
closes https://github.com/TryGhost/Team/issues/1165

- allows Stripe checkout to work for Portal direct checkout urls to monthly/yearly prices of a tier for logged-in members
2021-10-18 23:39:05 +05:30
Rishabh
aa96956320 Pre-filled name and email for free members on offer screen
closes https://github.com/TryGhost/Team/issues/1139

- also removes the signin alternate for logged-in members
2021-10-18 23:35:00 +05:30
Rishabh
6374b32f55 Updated price values to round off to 2 decimal places
refs https://github.com/TryGhost/Team/issues/1162
2021-10-18 23:11:08 +05:30
Rishabh
374ede2e64 v1.12.2 2021-10-18 19:26:12 +05:30
Rishabh
09e9432c20 Added checkout on offer page
refs https://github.com/TryGhost/Team/issues/1138
2021-10-18 19:17:17 +05:30
Rishabh
c13516e7e5 Fixed portal preview for offers
no refs
2021-10-18 16:34:10 +05:30
Peter Zimon
68b7608301 Optimised Offers title and description UI 2021-10-18 12:25:26 +02:00
Peter Zimon
b0027a79ab Fixed long names wrapping for product cards 2021-10-18 12:10:49 +02:00
Rishabh
e821710d80 Fixed lint
no refs
2021-10-18 15:10:29 +05:30
Rishabh
fd273ecdfe Removed unused LinkPage
no refs

Link page was originally added for usage in Admin, but has since been replaced by a Link page directly added via Admin and Portal version for it is no more used anywhere.
2021-10-18 15:05:28 +05:30
Rishabh
e55e52654e v1.12.1 2021-10-18 14:25:50 +05:30
Rishabh
3b734f5c84 Removed uuid usage in favor of local object id generation
no refs
2021-10-18 14:25:06 +05:30
Rishabh
24f087ddf2 Fixed empty benefits UI for offer page
no refs
2021-10-18 14:24:12 +05:30
Rishabh
6e8e5e27bb Added preview handling for offers
refs https://github.com/TryGhost/Team/issues/1137

- Adds portal offers preview url handling on App load
- adds new `offerPreview` mode as a subset of preview mode to allow changes to Portal when offer preview is on
- loads offers screen with params from url for preview mode
- hide trigger button on portal offer preview
2021-10-18 14:22:53 +05:30
Peter Zimon
37e9255550 Fixed powered badge bug in preview 2021-10-18 10:37:58 +02:00
Peter Zimon
e1468b25ac Offers refinements 2021-10-15 16:04:54 +02:00
Peter Zimon
d1d0fa093f Further responsive style improvements 2021-10-15 15:15:37 +02:00
Rishabh
940725d978 Allowed offers page load with fixtures
no refs
2021-10-15 17:57:07 +05:30
Peter Zimon
7f0e55e7cf Responsive style improvements 2021-10-15 14:09:13 +02:00
Peter Zimon
a109538898 Fixed discount label wrapping bug 2021-10-15 13:36:18 +02:00
Rishabh
8bae94dd8d v1.12.0 2021-10-15 11:48:01 +05:30
Rishabh
39441c7268 Updated offer detail page with real offer data
refs https://github.com/TryGhost/Team/issues/1139

- updates offer UI with offer data fetched via API
2021-10-15 11:35:49 +05:30
Rishabh
89ce25488c Wired offer endpoint to offer details page
refs https://github.com/TryGhost/Team/issues/1138

Updates Portal url for offer to fetch offer details from id and show new offer details page for non-paid members
2021-10-15 11:35:13 +05:30
Rishabh
61c387b293 Fixed plan tests
no refs
2021-10-14 23:10:34 +05:30
Rishabh
cd2e30a337 Fixed helper tests
no refs

- updated regex in get price id method to parse id
2021-10-14 22:54:25 +05:30
Rishabh
2076bb2af0 Cleaned up fixtures setup and usage
no refs

- updates fixtures file with fixture functions to easily generate test data
- adds `uuid` as dep to allow for reliably create unique ids for fixtures
2021-10-14 21:49:28 +05:30
Peter Zimon
fabb4ebc16 Added offers static data 2021-10-14 13:19:32 +02:00
Rishabh
e34cf74735 Added WIP offer page shell
refs https://github.com/TryGhost/Team/issues/1139

- adds basic offer page shell for offer screen development
2021-10-13 19:33:41 +05:30
Rishabh
136913e799 v1.11.3 2021-10-13 13:14:24 +05:30
Rishabh
2536204c71 🐛 Fixed broken portal link for yearly tier price signup
closes https://github.com/TryGhost/Team/issues/1142

Portal signup URLs for yearly plans of a tier were broken and resulted in "Failed to signup error", due to incorrect parsing of the yearly query.

- fixes regex for parsing yearly price id for tiers from portal url
- adds unit test to cover parsing of price id from page query
2021-10-13 13:12:35 +05:30
Renovate Bot
2c49e37170 Update dependency @testing-library/user-event to v13.3.0 2021-10-12 02:43:00 +00:00
Rishabh
599364039d v1.11.2 2021-10-08 21:15:54 +05:30
Renovate Bot
4686f9112c Update sentry-javascript monorepo to v6.13.3 2021-10-08 00:01:52 +00:00
Rishabh
bb98d924f3 Updated account page fallback to signin for logged out members
closes https://github.com/TryGhost/Team/issues/1123

- on accessing `/account/*` page by logged-out member, we now fallback to show `signin` page instead of `signup`
2021-10-07 01:46:47 +05:30
Fabien O'Carroll
56d9a5c919 Made offerId & priceId exclusive when creating checkout
refs https://github.com/TryGhost/Team/issues/1090

This is required by the API
2021-10-06 16:56:51 +02:00
Renovate Bot
c54ad77bdc Update dependency @testing-library/react to v12.1.2 2021-10-06 10:30:03 +00:00
Rishabh
e9ed922f37 Added test for canceling member subscription on hidden tier
refs https://github.com/TryGhost/Team/issues/1119
refs ba592e891e

Canceling a member on a subscription which is not in list of portal products was throwing an error earlier, this test -

- covers cancel subscription flow for a member on hidden product subscription
- validates fix for above issue by checking confirmation screen correctly shows for cancellation
2021-10-05 14:00:37 +05:30
Rishabh
ef1a155bc7 v1.11.1 2021-10-05 11:01:20 +05:30
Rishabh
53e463aa4b Fixed subscription cancellation not working for hidden tiers
closes https://github.com/TryGhost/Team/issues/1119

- updates fetching price from all available products and not just those available to show on Portal
- handles missing price/product on Portal UI gracefully
2021-10-05 11:00:20 +05:30
Daniel Lockyer
bcbcf7051d Added CI Slack notifications upon build failure
refs https://linear.app/tryghost/issue/CORE-73

- this helps the team keep on top of failing builds by bringing the visibility forwards
2021-10-04 15:45:14 +01:00
Renovate Bot
7075470af1 Lock file maintenance 2021-10-04 04:27:57 +00:00
Hannah Wolfe
f63de95317 Added command to run tests once with coverage
- this is so we can see coverage reports easily
2021-09-30 12:17:09 +01:00
Renovate Bot
252ddda907 Update dependency @testing-library/react to v12.1.1 2021-09-29 14:43:29 +00:00
Rishabh
ec6302119d v1.11.0 2021-09-28 18:32:06 +05:30
Rishabh
63ca3a00f3 Added first version for offer redirects
refs https://github.com/TryGhost/Team/issues/1086

- fires stripe checkout for new Portal link for offers - `/#/portal/offers/OFFER_ID` as prototype
2021-09-28 16:43:56 +05:30
Rishabh
170e353b91 v1.10.4 2021-09-27 22:32:59 +05:30
Rishabh
e6feb460c0 Fixed hidden products direct checkout via Portal links not working
no refs

- Portal links for direct stripe checkout were incorrectly ignoring products that were not included in portal product UI list
2021-09-27 22:32:24 +05:30
Rishabh
aae086d7cc v1.10.3 2021-09-27 20:04:35 +05:30
Rishabh
19a8f6abb9 Fixed react key warnings
no refs

- fixes key warnings from react by cleaning up key references across products and benefits
2021-09-27 20:03:56 +05:30
Rishabh
b3969fea34 v1.10.2 2021-09-27 19:43:52 +05:30
Rishabh
fc7f3432bd Fixed invalid metadata for ghost analytics
refs https://github.com/TryGhost/Team/issues/1061

- Stripe checkout metadata only accepts value as string for a key, and ghost_analytics was incorrectly attaching object for entry id and source url
2021-09-27 19:43:17 +05:30
Rishabh
600640629f v1.10.1 2021-09-23 19:51:48 +05:30
Rishabh
d3295ccc13 Fixed incorrect event api response handling
no refs
2021-09-23 19:51:13 +05:30
Fabien O'Carroll
a6d38f8c58 v1.10.0 2021-09-22 16:42:33 +02:00
Fabien O'Carroll
d82c15619d Used dedicated email address change endpoint
refs https://github.com/TryGhost/Ghost/security/advisories/GHSA-65p7-pjj8-ggmr

We were originally overloading the signup/signin flow for changing email
addresses, which was a security flaw because this route is
unauthenticated. This functionality has been removed and replaced with a
dedicated flow.
2021-09-22 16:37:32 +02:00
Rishabh
7e7cfb5227 Fixed entry url for view events
refs https://github.com/TryGhost/Team/issues/1062
2021-09-21 17:27:37 +05:30
Rishabh
25cb7dfd4d Added event metadata to member frontend requests
refs https://github.com/TryGhost/Team/issues/1061

Member activity is a labs alpha feature which aims at capturing member events for site owner if switched on. The event metadata captures the site page/post where the event originates from, and the post/page id is included as content of new ghost analytics meta tag.

This change passes the event metadata to member frontend requests which allows server to capture event information for member actions when the analytics is switched on.
2021-09-21 12:42:34 +05:30
Rishabh
5dff014c25 Attached member identity to analytic events
refs https://github.com/TryGhost/Team/issues/1062

- adds member identity to view events to attach member metadata on event
2021-09-21 11:58:57 +05:30
Rishabh
1c40c211f5 Added new alpha analytics script for capturing events
refs https://github.com/TryGhost/Team/issues/1063
refs https://github.com/TryGhost/Team/issues/1062

Member activity is a labs alpha feature which aims at capturing member events for site owner if switched on. The event metadata captures the site page/post where the event originates from, and the post/page id is included as content of new ghost analytics meta tag.

This change sets up new analytics script in portal if analytics is switched on, and fires post/page view event when a valid analytics id is found.
2021-09-20 15:11:54 +05:30
Rishabh
bfa91ee1ea Added alpha analytics api setup
refs https://github.com/TryGhost/Team/issues/1062

Member activity is a labs alpha feature which aims at capturing member events for site owner if switched on. The event metadata captures the site page/post where the event originates from, and the post/page id is included as content of new ghost analytics meta tag.

This change adds a new alpha API endpoint for pushing events to new ingress endpoint, which Portal's new analytics script can use to push events upstream.
2021-09-20 15:03:57 +05:30
Renovate Bot
5893a85359 Lock file maintenance 2021-09-20 02:25:31 +00:00
Renovate Bot
474d443254 Update dependency @testing-library/react to v12.1.0 2021-09-14 11:13:02 +00:00
Rishabh
36f299c3b9 v1.9.3 2021-09-13 13:41:57 +05:30
Rishabh
14ca0e004b Added FirstPromoter referral information to Stripe checkout session when available
closes https://github.com/TryGhost/Team/issues/1038

- FirstPromoter integration needs the referral tracking id information as part of checkout session object to correctly attribute member referrals
- Adds `fp_tid` metadata key for FirstPromoter to correctly attribute paid signups
2021-09-13 13:41:11 +05:30
Renovate Bot
5afc0ac264 Lock file maintenance 2021-09-13 04:51:28 +00:00
Sanne de Vries
94b2f58953 Fixed scrollbar showing up on Portal unnecessarily 2021-09-11 15:38:27 +02:00
Rishabh
22b03a0fc3 v1.9.2 2021-09-09 18:30:16 +05:30
Peter Zimon
de54f7de74 Updated copy for signup magic link popup 2021-09-09 13:56:03 +02:00
Rishabh
624a16ffad Updated last page context for magic link page
no refs

Allows Portal to determine if signup or signin page triggered the magic link flow in the page
2021-09-09 16:16:24 +05:30
Renovate Bot
485c40310b Lock file maintenance 2021-09-06 03:45:36 +00:00
Renovate Bot
271747a1a8 Update sentry-javascript monorepo to v6.12.0 2021-09-03 11:20:31 +00:00
Rishabh
e9802b0fa3 v1.9.1 2021-09-02 15:33:36 +05:30
Rishabh
5427943177 Fixed lint 2021-09-02 15:32:50 +05:30
Rishabh
1642afc25a Cleaned disabling input fields for preview mode
refs 7c3e724874

- extracts disable logic in preview mode to common component
2021-09-02 15:22:18 +05:30
Peter Zimon
7c3e724874 Disabling input fields in preview mode 2021-09-02 11:29:12 +02:00
Rishabh
c9854b014b v1.9.0 2021-09-02 12:29:39 +05:30
Peter Zimon
8f4955e44d Fixed scrolling for Admin preview 2021-09-01 17:56:30 +02:00
Renovate Bot
46db3e64ae Lock file maintenance 2021-08-30 02:50:29 +00:00
Renovate Bot
083ce43fa0 Lock file maintenance 2021-08-23 05:34:22 +00:00
Peter Zimon
0edb619630 Fixed spacing and shadow bug on signup 2021-08-20 14:40:15 +02:00
Peter Zimon
b0e3143d10 Updated breakpoints 2021-08-20 12:29:52 +02:00
Peter Zimon
3f66165bca Minor refinements on upgrade plan UI 2021-08-19 16:59:29 +02:00
Peter Zimon
5b0029b666 We finally found the perfect checkmark icon 2021-08-19 16:37:11 +02:00
Peter Zimon
8065e62856 Updated multi-tier card structure 2021-08-19 13:11:25 +02:00
Peter Zimon
da08cb844d Refined change plan and mobile sizes 2021-08-19 10:39:15 +02:00
Rishabh
66a2fc1e68 Added missing type to new change product section
refs https://github.com/TryGhost/Team/issues/877

- adds missing type to new change product section which caused CSS issues
2021-08-19 12:30:25 +05:30
Peter Zimon
1093436953 Refined multi-tier mobile UI 2021-08-18 17:30:57 +02:00
Peter Zimon
3210f5d346 Fixed change plan bug 2021-08-18 16:28:49 +02:00
Peter Zimon
e4e68f4526 Refined multi-tier discount label 2021-08-18 16:24:59 +02:00
Peter Zimon
ef38ff1132 Added more discoverable discount label 2021-08-18 16:21:11 +02:00
Peter Zimon
aa70a1b7b0 Removed automatic benefits 2021-08-18 14:07:38 +02:00
Rishabh
25971cf9b7 Refactored change plan page to new design
refs https://github.com/TryGhost/Team/issues/877

Refactors the change plan UI when a site has more than one product, using the Monthly/Yearly switch and the plan selection exactly how it's on the signup screen. To show the current plan, the M/Y switch is selected according to the user's subscription which lets us indicate the current price. To make the stacked prices lightweight, we also show benefits only for the price that is currently selected.
2021-08-18 12:37:16 +05:30
Peter Zimon
421654e491 Refined multiple tiers signup desktop UI 2021-08-17 17:56:24 +02:00
Peter Zimon
cf36bffe07 Fixed no-description bug 2021-08-17 15:03:45 +02:00
Peter Zimon
3300378843 Refined single product signup desktop size UI 2021-08-17 11:11:39 +02:00
Peter Zimon
9b5e57480d Refined description UI 2021-08-16 14:04:04 +02:00
Renovate Bot
8542efbdae Lock file maintenance 2021-08-16 02:50:15 +00:00
Renovate Bot
91dd80ecec Lock file maintenance 2021-08-09 05:52:05 +00:00
Renovate Bot
56033ab777 Update sentry monorepo to v6.11.0 2021-08-09 03:32:37 +00:00
Renovate Bot
d569e814db Lock file maintenance 2021-08-02 02:08:46 +00:00
Rishabh
33fe0ea960 v1.8.0 2021-07-30 10:30:45 +05:30
Rishabh
ac33b47e7f Handled 204 API response for logged out member session
refs https://github.com/TryGhost/Team/issues/560

The endpoint `/members/api/session/` is used by Portal for fetching member session while setting up and redirecting to Stripe Checkout flow. The status code returned by API for logged out member is changed from 4xx Unauthorized to 204 No Content, which is consistent with member API response.
2021-07-30 10:29:46 +05:30
Renovate Bot
7578a9cec4 Update dependency @testing-library/user-event to v13.2.1 2021-07-27 08:20:41 +00:00
Renovate Bot
5d86607a3d Lock file maintenance 2021-07-26 03:42:37 +00:00
Renovate Bot
c34cdc3268 Update sentry monorepo to v6.10.0 2021-07-26 02:16:29 +00:00
Rishabh
21e9df1f76 v1.7.7 2021-07-23 13:51:07 +05:30
Renovate Bot
43dad8bd96 Update Test & linting packages 2021-07-20 12:10:27 +00:00
Renovate Bot
4bd28329e0 Lock file maintenance 2021-07-19 02:21:18 +00:00
Renovate Bot
879bec2235 Update dependency eslint-plugin-ghost to v2.5.0 2021-07-16 16:53:12 +00:00
Renovate Bot
6619ec5e45 Update sentry monorepo to v6.9.0 2021-07-13 16:13:48 +00:00
Peter Zimon
8fd452a055 Refined product styles 2021-07-12 15:00:16 +02:00
Peter Zimon
7fb558f00a Cleanup dev vs. preview environment CSS
- Cleaned up `preview` and `dev` environment CSS classes so that they are only added to the corresponding cases.
2021-07-12 14:48:00 +02:00
Renovate Bot
5f31b8ec87 Lock file maintenance 2021-07-12 01:28:38 +00:00
Rishabh
220397c406 v1.7.6 2021-07-09 07:04:31 +05:30
Rishabh
8c4bc2164b Fixed incorrect context member for logged out members
refs 859043e22e

- fixes context member incorrectly picking dev member state in some edge cases due to missing custom site url
- fixes complimentary member check to handle no member logged in
2021-07-09 07:03:53 +05:30
Rishabh
115a39a814 v1.7.5 2021-07-09 06:34:32 +05:30
Rishabh
666fd36845 🐛 Fixed Portal links not working
refs 25389193f6

Fixes Portal link identification logic which was broken with updated regex for handling of new product specific plans
2021-07-09 06:32:08 +05:30
Rishabh
a114654e89 Reverted to bring back changes from 1.7.3
This reverts commit c2707d426a.
The changes for 1.7.3 were reverted as a temporary step due to a major bug in Portal link handling.
This commit brings back the changes followed by a patch for new release
2021-07-09 06:31:14 +05:30
Matt Hanley
f0b39dbe4b v1.7.4 2021-07-08 22:45:29 +01:00
Matt Hanley
c2707d426a Reverted changes from 1.7.3 2021-07-08 22:42:58 +01:00
Rishabh
6b21875f0b v1.7.3 2021-07-08 12:04:39 +05:30
renovate[bot]
2c53bde39d Update actions/setup-node action to v2 (#113)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-05 20:40:52 +05:30
Rishabh
25389193f6 Handled multiple products custom signup links
closes https://github.com/TryGhost/Team/issues/825

With multiple products, it's possible to link to any products from themes. The links area in Portal settings now handles signup links for multiple products. This change -

- updates portal to handle custom product monthly/yearly signup links - `signup/PRODUCT_ID/monthly` OR `signup/PRODUCT_ID/yearly`
2021-07-05 17:50:29 +05:30
Renovate Bot
6b1bf36cca Lock file maintenance 2021-07-05 03:07:17 +00:00
Renovate Bot
64c58cc89f Update sentry monorepo to v6.8.0 2021-07-05 01:43:18 +00:00
Rishabh
6a68039334 Updated handling for complimentary member
no refs

With multiple products, its possible to assign a member complimentary product without active subscription.

- updates complimentary member helper to check for `paid` without subscription
- updates account home page to consider complimentary member without subscription
2021-07-02 15:20:05 +05:30
Rishabh
30491bf27b Fixed plan selection method prop passing on plan page
no refs
2021-07-02 09:15:32 +05:30
Rishabh
5e68ced56f Handled empty email input in data attributes
no refs
2021-07-02 09:13:21 +05:30
Rishabh
6b755cfddf v1.7.2 2021-07-01 23:24:04 +05:30
Rishabh
d2a3542bfb Fixed missing price data on member subscription
no refs

- update missing price data for member using existing plan data
2021-07-01 23:20:08 +05:30
Peter Zimon
38fba7936d Fixed single product benefit for mobile 2021-07-01 10:55:17 +02:00
Rishabh
be39f4c481 v1.7.1 2021-06-30 16:57:49 +05:30
Peter Zimon
63ea290da6 Updated product card width 2021-06-30 13:05:30 +02:00
Peter Zimon
48a52e942f Refined benefits 2021-06-30 12:43:40 +02:00
Rishabh
c0e69ea29b Fixed discount benefit for yearly plans
no refs

- adds missing `site` data for calculating yearly plan benefit with discount
2021-06-30 15:14:59 +05:30
Rishabh
fc6bb509ae v1.7.0 2021-06-29 21:46:58 +05:30
Rishabh
bda6f36a3c Refined multiple product flows
closes https://github.com/TryGhost/Team/issues/835

- updates change flow to consider portal_plans setting
- updates confirm subscription screen to show product name
- removed discount benefit on yearly if only one plan
2021-06-29 21:26:58 +05:30
Peter Zimon
db12a9976f Refined signup footer for multiple products 2021-06-29 16:30:55 +02:00
Peter Zimon
0dd1637bdb Refined single product single price design 2021-06-29 15:53:21 +02:00
Peter Zimon
0d82697542 Refined change plan 2021-06-29 15:17:54 +02:00
Rishabh
e636542aa7 Refined desktop UI for change plan flow with multiple products
refs https://github.com/TryGhost/Team/issues/824

- updates desktop flow to match the mobile flow
2021-06-29 17:24:11 +05:30
Rishabh
d34d9c2489 Refined multiple products change plan flow
refs https://github.com/TryGhost/Team/issues/824

- updates the change plan flow for multiple products flag
- adds new plan components for change plan flow
- updates helpers
- updates fixtures
2021-06-29 17:12:53 +05:30
Peter Zimon
cdfbd18dbb Refined upgrade flow 2021-06-29 12:01:34 +02:00
Peter Zimon
594b951fb6 Refined mobile styles 2021-06-29 11:42:18 +02:00
Rishabh
fcf3dfce6a Refined upgrade flow for multiple products
refs https://github.com/TryGhost/Team/issues/823

- upgrade flow for multiple product reuses the UI from mobile signup page
- cleanup of helpers and components
2021-06-29 14:31:14 +05:30
Peter Zimon
d4f56d96a3 Refined singple product mobile sizes 2021-06-29 10:33:34 +02:00
Peter Zimon
e75a55bbea Single product benefits refinements 2021-06-29 10:22:03 +02:00
Rishabh
96a6f5d993 Updated benefits display for single product behind flag
refs https://github.com/TryGhost/Team/issues/796

- un-hides benefits on the mobile size for single product UI behind flag on signup
2021-06-29 12:30:49 +05:30
Rishabh
c3ead6703f Fixed default portal products in preview
no refs

- `portal_products` is used to determine the feature flag behavior for multiple products, so defaults to null if not passed
2021-06-29 12:18:23 +05:30
Rishabh
112a18bc0b Updated single product with feature flag signup UI
refs https://github.com/TryGhost/Team/issues/796

- adds new helper for explicit feature flag for multiple products
- updated single product signup ui to include benefits
- added new component for single product ui
2021-06-29 12:02:13 +05:30
Renovate Bot
77a8bf4c6f Lock file maintenance 2021-06-28 16:35:34 +00:00
Peter Zimon
8d4035a818 Single product benefits refinements 2021-06-28 16:03:51 +02:00
Rishabh
5d4e5aa4c8 Added hasBenefits helper to manage UI
no refs
2021-06-28 18:43:12 +05:30
Rishabh
d43998eb47 Added benefits to plans section
no refs
2021-06-28 16:22:10 +05:30
Rishabh
f8798952ac Updated benefits text to use name instead of title
no refs

- the benefits text is stored as `name` instead of `title`
2021-06-28 12:53:11 +05:30
Rishabh
43030eb5e3 v1.6.10 2021-06-28 11:08:19 +05:30
Rishabh
cfdd8c93ca Updated portal products check for only multiple products
no refs
2021-06-28 11:07:23 +05:30
Renovate Bot
b60ac8d952 Update dependency eslint-plugin-ghost to v2.4.0 2021-06-28 02:42:17 +00:00
Rishabh
0c8483b8d5 v1.6.9 2021-06-25 13:09:59 +05:30
Rishabh
aabb02fc5f Filtered empty monthly/yearly prices in product
no refs

- in a rare scenario when monthly/yearly price comes as empty object, which happens if the price is missing in DB, this adds a guard to ignore the product than cause an error
2021-06-25 13:08:06 +05:30
Rishabh
d8f121e7b0 v1.6.8 2021-06-25 12:06:26 +05:30
Rishabh
0dcf06da99 Restricted Sentry event capturing to portal events
no refs

- updates Sentry's `beforeSend` method to restrict and send events originated by portal
2021-06-25 12:05:38 +05:30
Rishabh
60c4ba5888 v1.6.7 2021-06-25 09:44:00 +05:30
Rishabh
4ae361f99a Updated Sentry release tag to include full version
no refs

Updates sentry release tag to include full Portal version from env variable
2021-06-25 09:42:06 +05:30
Renovate Bot
f8d6e78de7 Update dependency @testing-library/react to v12 2021-06-24 19:34:18 +00:00
Rishabh
50f69af9d5 Bumped node version for test workflow to 14
no refs
2021-06-24 22:20:29 +05:30
Rishabh
422dd12c14 v1.6.6 2021-06-24 21:48:04 +05:30
Rishabh
38202c1472 Added guard for missing contentDocument
no refs

- in a rare edge case, its possible that `contentDocument` is not available due to component unmount, guards against erroring in such scenarios
2021-06-24 21:47:31 +05:30
Rishabh
87148b789c v1.6.5 2021-06-24 21:08:52 +05:30
Rishabh
447d3571e8 Cleaned up benefits section for products
no refs
2021-06-24 21:08:00 +05:30
Rishabh
05999e0c81 Filtered portal script url for Sentry error reporting
no refs

By default, Sentry will pick up any uncaught error triggered from the site, which adds a lot of noise as we only want to listen to Portal specific errors. This change adds portal's unpkg script as the only allowed url for Sentry error reporting.
2021-06-24 21:01:23 +05:30
Peter Zimon
42eb39df0b Updated benefits for mobile sizes 2021-06-24 14:29:36 +02:00
Peter Zimon
435e9059bc Show benefits only if they exist 2021-06-24 14:16:35 +02:00
Peter Zimon
12599c282a Updated mobile sizes for benefits 2021-06-24 14:10:37 +02:00
Peter Zimon
ab60eed6fe Refined list of available products (upgrade) 2021-06-24 14:10:37 +02:00
Rishabh
f2aab7a5bb v1.6.4 2021-06-24 16:54:00 +05:30
Rishabh
aa9818ed83 Fixed price check for complimentary member
no refs
2021-06-24 16:53:24 +05:30
Rishabh
b2bcad3338 v1.6.3 2021-06-24 13:55:45 +05:30
Rishabh
4fdcd9c4d0 Fixed product filtering for available products
no refs
2021-06-24 13:55:02 +05:30
Rishabh
7fe377d29a Updated plan upgrade UI for multiple products
refs https://github.com/TryGhost/Team/issues/767

- updates plan upgrade page to use multiple products UI if available
- filters products based on active currency if logged in member
2021-06-24 13:23:57 +05:30
Rishabh
21d1c1b9e8 Cleaned site and product helper usage
no refs

- cleans up helpers for site and products to more consistent and predictable usage
2021-06-24 13:21:16 +05:30
Rishabh
c7a3fdc639 Added access control header for start mode
no refs

- since portal script is loaded with `crossorigin:anonymous` now, we need to pass in the access control headers for script to bypass cors check
2021-06-22 17:07:14 +05:30
renovate[bot]
5548cc9ab8 Pin dependencies (#148)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 15:52:53 +05:30
renovate[bot]
e01ab51eeb Update dependency chokidar to v3.5.2 (#150)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-06-22 15:52:00 +05:30
Rishabh
2af648e84f Fixed plan page tests
no refs
2021-06-22 12:40:16 +05:30
Rishabh
8d5f5febaa Added access control headers in dev mode
no refs

- adds `access-control-allow-origin: *` headers for dev mode
- portal script will be loaded with `cross-origin=anonymous`, access control header is needed to allow script to load
- mimics unpkg which already adds `access-control-allow-origin: *`
2021-06-22 12:16:49 +05:30
Rishabh
0535fab865 Added Sentry for error tracking
no refs

- adds sentry setup if Sentry DSN is available via Ghost config for better error tracking
2021-06-22 12:16:49 +05:30
Rishabh
4db821f9ee Fixed lint
no refs
2021-06-21 19:46:12 +05:30
Peter Zimon
75d0b40be8 Added benefit fixtures (alpha) 2021-06-21 15:32:55 +02:00
Rishabh
40e86e0a77 Added default product selection handling
refs https://github.com/TryGhost/Team/issues/767

- updates product selection if first available product's id changes between renders
2021-06-21 18:47:40 +05:30
Rishabh
b7d644cc66 Updated available site prices based on products
refs https://github.com/TryGhost/Team/issues/768

- updates available prices data based on available products
- updates available products to check portal products (which is behind a flag)
2021-06-21 18:47:40 +05:30
Peter Zimon
134d6a756a Refined spacing for desktop product card 2021-06-21 14:39:21 +02:00
Rishabh Garg
a8f6ea6aa9 Added portal products handling (#151)
refs https://github.com/TryGhost/Team/issues/768

- handles new `portal_products` to filter products shown on Portal UI (behind the flag for multiple products)
2021-06-21 14:37:53 +05:30
Rishabh
fda3726b93 Fixed lint
no refs
2021-06-20 13:32:46 +05:30
Joakimk
b80ab90d61 Updated dateString method to use cleaner toLocaleDateString (#144)
no refs

- Updates `getDateString` method to use `toLocaleDateString` which is cleaner and shorter with same result
2021-06-20 13:30:46 +05:30
Renovate Bot
df54d8cf34 Update dependency @testing-library/user-event to v13 2021-06-18 14:47:28 +00:00
Renovate Bot
9963696ef9 Update Test & linting packages 2021-06-18 13:36:11 +00:00
Rishabh
aa5b29ae5a v1.6.2 2021-06-17 17:35:33 +05:30
Rishabh
097dfe4452 Handled available Products based on prices
refs https://github.com/TryGhost/Team/issues/767

- takes into account available prices to decide if multiple products screen needs to be shown
2021-06-17 17:18:34 +05:30
Rishabh
d91cd4240e Handled active interval for Products section
refs https://github.com/TryGhost/Team/issues/767

- handles active interval for product section based on available prices as well as switch
2021-06-17 17:17:39 +05:30
Rishabh
3a8e31f065 Handled portal plans selection in products list
refs https://github.com/TryGhost/Team/issues/767

- Portal products UI updates to the available prices from monthly/yearly in list
2021-06-17 14:08:44 +05:30
Rishabh
762c1c53a3 Removed jsdom fourteen dependency on test
refs aa228a8df2

Removes jsdom fourteen dependency for running tests as the latest version of packages doesn't need the fallback
2021-06-16 20:58:44 +05:30
Rishabh
885fe178dd Updated local start mode script
no issues

- adds new start-combined script which combines all chunks in `yarn start` for local portal development
- allows easier loading of local portal bundle in ghost via load-portal script, which needs to inject single script
- updates `yarn start:dev` to use updated script which uses the combined mode for better local development

refs
https://gist.github.com/simpixelated/90a3c16c3ed268fe24f5e5c9585ced2f
2021-06-16 20:58:44 +05:30
Rishabh
6e2952901a Updated Portal build script to use rewired webpack config
no issues

- updates Portal build script to use rewired react-scripts config
- updated config handles css embed as well as output location/name for portal bundle as part of cra build
- makes extra webpack bundling redundant for now
- updates dev mode to map the portal source map useful for testing build version locally
- updates custom webpack config with copy plugin for future use

refs -
https://github.com/facebook/create-react-app/issues/5306#issuecomment-603772477
https://gist.github.com/phdesign/3fd306db2bc53f6368e6f0f73bbeff19
2021-06-16 20:58:44 +05:30
Rishabh
7c5cb61ee5 Updated Ghost config URL for dev mode script
no refs

- updates portal url for Ghost config to use a dynamic URL to work same as start mode script
2021-06-16 20:58:44 +05:30
Rishabh
596cef4df7 Removed unused prop-types dependency
no refs
2021-06-16 20:58:44 +05:30
Rishabh
90c076fc39 🏗 Bumped major versions for React and CRA
no refs

- bumps React version to 17 - https://github.com/facebook/react/blob/master/CHANGELOG.md#1700-october-20-2020
- bumps CRA to v4  - https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md#403-2021-02-22
2021-06-16 20:58:44 +05:30
Rishabh
9061d40c6e Fixed plan name to monthly/yearly by interval
no refs

- Reverts using hardcoded monthly/yearly plan name on Portal UI instead of using the price nickname
2021-06-16 16:07:39 +05:30
Peter Zimon
9acb194214 Fixed signup grid for mobile 2021-06-15 13:44:05 +02:00
Rishabh
37295e32e9 Updated dynamic styling of product grid
refs https://github.com/TryGhost/Team/issues/767

- adds dynamic calculation of frame styles based on site data
- handles product grid style based on no of products available
2021-06-14 20:31:25 +05:30
Rishabh
47c3367396 Updated free product handling in list
refs https://github.com/TryGhost/Team/issues/767

- free product is shown based on other site settings like `allowSelfSignup` and `portalPlans`
- fixed product/price selection to handle selected interval
- updated default product/price handling
2021-06-14 20:13:15 +05:30
Peter Zimon
5e13f964bc Signup product grid update 2021-06-14 13:33:15 +02:00
Rishabh
c98ab9981a Handled price selection for multiple products
refs https://github.com/TryGhost/Team/issues/767

- updated list of site prices to use all prices from products
- handled price selection in product section
2021-06-14 13:55:11 +05:30
Rishabh
d7c645f71a Removed deprecated NODE_PATH usage in tests
no refs

Using NODE_PATH is deprecated in future versions of Create React App in favor of using jsconfig.json , this change removes files relying on NODE_PATH and uses relative path instead till we update usage to jsconfig in future as needed.
2021-06-14 11:55:09 +05:30
Rishabh
00f9481f11 v1.6.1 2021-06-11 20:15:30 +05:30
Peter Zimon
298ada96a2 Minor mobile refinements 2021-06-11 16:29:57 +02:00
Rishabh
a4afeba183 Updated dev mode script to serve on static URL
no refs

- adds static serve path for portal dev mode script same as start mode
2021-06-11 19:55:43 +05:30
Peter Zimon
06817969bb Mobile footer refinements 2021-06-11 16:10:41 +02:00
Peter Zimon
45147cacb2 Multiple products responsive UI 2021-06-11 16:03:35 +02:00
Peter Zimon
f94435dab5 Multiple products desktop UI
Lots of refinement for the desktop multiple products Portal signup and signin page. Alpha version.
2021-06-11 14:56:44 +02:00
Rishabh
bf62b981bd v1.6.0 2021-06-11 14:06:54 +05:30
Rishabh
fc0ef9d164 Fixed lint errors
no refs
2021-06-11 14:06:16 +05:30
Rishabh
950495c836 Updated product selection to work on full card
refs https://github.com/TryGhost/Team/issues/767

- handles product selection on full product card instead of just small surface area on checkbox
- removes dummy product card method
2021-06-11 14:03:20 +05:30
Rishabh
55298cd999 Sorted products by monthly price amount
refs https://github.com/TryGhost/Team/issues/767

- sorts list of products from site by their monthly price amount
2021-06-11 12:55:50 +05:30
Rishabh
1b1133cd47 Updated default product fixtures
refs https://github.com/TryGhost/Team/issues/767

- cleans up default set of products available in fixtures for easy testing
2021-06-11 12:55:24 +05:30
Rishabh
42c8a481c5 Removed dummy products component
no refs

- comments out the dummy products component till needed again for UI development
2021-06-11 12:46:57 +05:30
Rishabh
33adaedc97 Cleaned fixtures data
no refs

- cleans up the products/prices passed to fixtures
2021-06-11 12:45:06 +05:30
Rishabh
8d7988a334 Wired UI for multiple products with site data
refs https://github.com/TryGhost/Team/issues/767

- wires real products data from site/fixtures to multiple products UI
- adds new helpers to manage price display/UI
- cleans up switch default params to clear type errors
2021-06-11 12:41:36 +05:30
Rishabh
7a65caa806 Updated fixtures for products
refs https://github.com/TryGhost/Team/issues/718

- updates `products` fixture to match API and include monthly/yearly price
2021-06-11 12:39:00 +05:30
Rishabh
5ebfbb79a7 Fixed multiple products check helper method
no refs

- fixes incorrect condition in helper that determines if Portal has multiple products or single from site
2021-06-11 12:38:02 +05:30
Rishabh
8d51bc20f0 Fixed tests
no refs
2021-06-11 12:33:45 +05:30
Peter Zimon
5516e348af Alpha version of multiple products
- added Products grid component to signup page with static data
- separate signup design between single vs. multiple products
- alpha!
2021-06-10 17:26:10 +02:00
Rishabh
859043e22e Updated dev mode check with custom site url
no refs

- takes advantage of new dev script by loading Portal in dev mode on ghost site with full features
- restricts some dev mode features only if no custom site url is passed, which is expected with fixture development
2021-06-10 15:26:32 +05:30
Rishabh
f0ba337659 Cleaned dev mode script
no refs

Cleans up dev mode script for lint errors
2021-06-10 15:05:33 +05:30
Rishabh
47c6509bea Added experimental start mode script for local development
no refs

Adds a new `yarn start:dev` command to start portal in development mode that allows development script to be used directly on Ghost site without needing a build for each change. Allows faster development on Portal locally.
2021-06-10 15:05:08 +05:30
Rishabh
a73a04034b Added logic for introducing multiple products
refs https://github.com/TryGhost/Team/issues/767

- Adds new helper to switch UI for multiple products
- Cleans up fixtures
2021-06-09 20:51:18 +05:30
Rishabh
f59711ab1b v1.5.3 2021-06-09 09:22:44 +05:30
Rishabh
c1df8366fb Filtered empty prices from list
no refs

Handles empty price objects in the API and ignores them from UI
2021-06-09 09:21:52 +05:30
Rishabh
928122a8f7 v1.5.2 2021-06-08 18:11:19 +05:30
Peter Zimon
d4c648d79c Fixed signup page pricing responsive layout bug 2021-06-08 14:39:22 +02:00
Rishabh
c45b1abede Added source map explorer for analyzing builds
no refs

`yarn analyze` now launches source map explorer which analyzes the local bundle, helping in keeping Portal size as small as possible.
2021-06-07 15:32:55 +05:30
Rishabh
0b2af14567 Added dev script for Portal development
no refs

The new dev script allows running `yarn dev` on the Portal code to make Portal development easier as well as integrate more easily with Ghost config. The script runs a local development server that serves portal bundle, which allows for static `portal` config to be used in Ghost for pointing to Portal script. It also watches the files for any changes, and auto re-builds and bundles latest Portal code.
2021-06-07 14:22:31 +05:30
Renovate Bot
3240f2670d Update dependency @testing-library/jest-dom to v5.13.0 2021-06-07 01:53:00 +00:00
Rishabh
cf710eb9c2 v1.5.1 2021-06-04 18:30:45 +05:30
Rishabh
d383723f21 Updated available prices for Portal to use multiple products
refs https://github.com/TryGhost/Team/issues/718

Instead of using default prices, Portal goes through active prices of all available products to use for query in data attributes
2021-06-04 18:23:26 +05:30
Rishabh
f3fd043580 Fixed non-default product prices not working
refs https://github.com/TryGhost/Team/issues/718

We passthrough any unknown price ids directly to checkout session as it currently Portal cannot verify prices across all products
2021-06-04 18:09:58 +05:30
Rishabh
82f7d69d8d v1.5.0 2021-06-04 17:09:54 +05:30
Rishabh
ee136bc918 Fixed lint 2021-06-04 14:12:56 +05:30
Rishabh
0f4be436be Handled named plan values in portal_plans setting
refs https://github.com/TryGhost/Team/issues/753

We reverted back to using named plan values - `monthly`, `yearly` - in `portal_plans` setting to allow us to easily handle active prices for a product. This change handles the updated values in `portal_plans` to use new values.
2021-06-04 13:29:22 +05:30
Rishabh
f790cb47ef v1.4.7 2021-06-01 14:37:31 +05:30
Kevin
701ca69053 🐛 Fixed toggle newsletter subscription (#146)
closes https://github.com/TryGhost/Ghost/issues/12996
2021-06-01 14:27:41 +05:30
Renovate Bot
97dd3a0470 Update dependency @testing-library/react to v11.2.7 2021-05-27 13:55:49 +00:00
Rishabh
28de418d9e v1.4.6 2021-05-27 17:53:42 +05:30
Rishabh
07f1d6d3a5 Fixed tests
no refs
2021-05-27 17:52:32 +05:30
Rishabh
6f88adf4b4 Renamed master to main for test workflow and readme
no refs

The master -> main rename was missed for test workflows as well as Readme badge, which caused the error reporting to incorrectly report passing tests on `master` while they were failing on `main`
2021-05-27 17:52:32 +05:30
Rishabh
0bac70c326 💡 Added resize listener for portal container height change
no refs

We need the Portal preview container on Admin to re-adjust based on height of Portal container. This change adds a resizeObserver for portal container and fires a postMessage with height for Admin to listen and update the iframe height based on height of portal container

Updated resize observer to fire on update

Cleanup
2021-05-27 17:52:32 +05:30
Rishabh
817d6650b2 v1.4.5 2021-05-27 13:40:07 +05:30
Rishabh
0f31838b35 Updated target origin to all for portal ready event
no refs

The purpose of broadcasting portal-ready event is it allows Preview in Admin to have better UX with showing Portal when its ready than show the site while its loading. Having a strict target origin like site url won't work when sites have custom domains as it browser security will block the event due to origin mismatch.

Since `portal-ready` is just an event message and doesn't contain any sensitive data that needs to be restricted to origin, this bumps it to `*` which allows any site listening to be able to read the message.
2021-05-27 13:39:23 +05:30
Rishabh
e4cd0034ad v1.4.4 2021-05-24 19:23:02 +05:30
Rishabh
08d740133f Updated site and member data to load in parallel
This reverts commit 841793e4d3.
2021-05-24 19:22:07 +05:30
Rishabh
674f6f8e1e Added firing of portal-ready post message for preview""
This reverts commit 5650b8d716.
2021-05-24 19:20:32 +05:30
Rishabh
9129fa7cf9 v1.4.3 2021-05-24 19:14:23 +05:30
Rishabh
841793e4d3 Revert "Updated site and member data to load in parallel"
This reverts commit 8ac6364d3a.
2021-05-24 19:13:55 +05:30
Rishabh
5650b8d716 Revert " Added firing of portal-ready post message for preview"
This reverts commit 347805d4d0.
2021-05-24 19:13:37 +05:30
Rishabh
edba56fbfb v1.4.2 2021-05-24 18:32:42 +05:30
Rishabh
347805d4d0 Added firing of portal-ready post message for preview
no refs

This adds a way for top level site/admin to detect when Portal is loaded on the site and is ready to render, which allows dynamic UI handling specially in Preview mode in Admin.
2021-05-24 18:12:08 +05:30
Rishabh
8ac6364d3a Updated site and member data to load in parallel
no refs

Previously, the site and member data needed by Portal were loaded sequentially, which delayed the first load slightly as both the requests can be instead made in parallel. This change updates the API init to load both requests in parallel.
2021-05-24 18:10:48 +05:30
Rishabh
9472a29568 v1.4.1 2021-05-19 00:27:11 +05:30
Peter Zimon
97fdd037ca Design refinements + fixes
- replaced invite only default icon
- removed unused function include
- reseted fixtures
2021-05-18 16:54:39 +02:00
Peter Zimon
afb3e9ad64 UI refinements
- removed cadence indicator from prices
- refined spacings for prices
2021-05-18 16:43:30 +02:00
Peter Zimon
ef10fce723 Setting site title as default title 2021-05-18 16:36:48 +02:00
Rishabh
d4fe243d43 Added signup access setting to preview
no refs

Allows Portal preview to use `members_signup_access` setting from the URL instead of relying on saved setting to change the preview without saving on Admin.
2021-05-18 17:43:18 +05:30
Rishabh
8044dc836a v1.4.0 2021-05-18 14:57:42 +05:30
Rishabh
370f721deb 🐛 Fixed falsy value not used in preview
no refs

For some boolean preview keys like `allowSelfSignup` and `disableBackground`, we ignored setting the falsy value which is incorrect and doesnt' load the expected Portal preview
2021-05-18 14:55:37 +05:30
Rishabh
fd6fee4c9d 🐛 Fixed extra email sent for logged in members on upgrade
refs https://github.com/TryGhost/Team/issues/695
refs 212be5fb02 (Patch)

Currently when we have a successful Stripe checkout session, we will always send the member an email confirming their signup when using data-members-* attributes.

This is considered a bug for members who have signed up as a free member first, meaning they have already received this email. This change passes a `checkoutType` metadata same as Portal to not send the email when member is already logged in.
2021-05-18 09:19:00 +05:30
Rishabh
4e14d811bf 💡 Handled updated API response for logged out member
refs https://github.com/TryGhost/Team/issues/560
refs 196cdafe6b

The endpoint `/members/api/member/` is used by Portal for fetching member details on site load to setup different flows. The response from this endpoint for logged out member has now changed from 401 Unauthorized to 204 No Content. This updates the API handling in Portal for updated response status.

This change also handles the visible error messages on console for Portal when it first loads and tries to establish member logged-in status, and instead handles it now behind the scenes. This also makes Portal functioning more transparent on the site.
2021-05-13 15:32:32 +05:30
Rishabh
9fcad8e31d Updated default currency for free price
no refs

Since custom prices now allow prices with multiple currencies to exist, till we have a default currency for a site, we use the currency for first paid price on the list as default currency for a free price visually on Portal UI
2021-05-13 15:28:52 +05:30
Rishabh
66cbbce917 v1.3.1 2021-05-12 17:13:16 +05:30
Rishabh
52d52c9a9e Updated default page to signin for invite only sites
closes https://github.com/TryGhost/Team/issues/689

For invite only sites, the default page should be signin as it makes more sense and is actionable than a static signup page
2021-05-12 17:11:48 +05:30
Peter Zimon
0bbdccea72 Refined billing period indicator 2021-05-10 21:05:46 +02:00
Rishabh
4d9579e11c Added interval to prices on Plan UI
closes https://github.com/TryGhost/Team/issues/673
2021-05-11 00:07:55 +05:30
Rishabh
39b7c01909 v1.3.0 2021-05-10 23:09:02 +05:30
Rishabh
56756ff9b6 Fixed lint 2021-05-10 23:05:02 +05:30
Peter Zimon
280181720b Fixed modal width logic 2021-05-10 23:05:02 +05:30
Rishabh
9ac53e5b27 Fixed legacy price names link/data-attribute not working
closed https://github.com/TryGhost/Team/issues/683

The legacy price names `monthly` / `yearly` should still redirect to checkout flows as a special exception.
2021-05-10 23:05:02 +05:30
Rishabh
1ca383df5d Updated default free price fixture
refs https://github.com/TryGhost/Team/issues/648

We use sentence case everywhere for labels, the default description for free price should be the same
2021-05-10 23:05:02 +05:30
Rishabh
bc79df66e8 Added sorted prices in Portal plans UI
refs https://github.com/TryGhost/Team/issues/641

Updated prices list to be sorted on `currency` -> `amount` which is consistent with price list on Admin.
2021-05-10 23:05:02 +05:30
Rishabh
e9d8f25773 Updated old members data attribute handling for custom prices
refs https://github.com/TryGhost/Team/issues/643

With custom products and prices, the old data attributes for members functionality - `data-members-plan` - was still using the plan name for checkout session which won't work as it now expects a price ID. This change reworks how we setup to listen to `data-members-*` attributes and moves them inside App.js so they can work with API data fetched from site settings and use the price ID for the `monthly` and `yearly` names as fallback.
2021-05-10 23:05:02 +05:30
Rishabh
12500c3b95 Added fallback discount description
refs https://github.com/TryGhost/Team/issues/671

When turning on custom products, existing sites should have default price description that retains current behaviour. This change adds custom description with discount value for Yearly Plans to keep the existing behavior for sites that mimic the old setup.
2021-05-10 23:05:02 +05:30
Rishabh
9f154dbcd2 Added free price details handling
refs https://github.com/TryGhost/Team/issues/637

Since we allow setting custom name and description for free price now, this wires up the values for free membership price settings to API
2021-05-10 23:05:02 +05:30
Rishabh
b73fdf66d1 Added interval fallbacks for monthly/yearly plans
refs https://github.com/TryGhost/Team/issues/643

Previously, we always expected `Monthly` or `Yearly` prices to be available for attribtues/links as those were the only prices allowed in Portal. With custom prices, as prices can have dynamic names, we still support Monthly/Yearly prices for backwards compatibility.

The way Monthly/Yearly prices are determined with custom prices is first trying to find the first price by the name same as `Monthly` / `Yearly`, followed by finding a plan having interval `month`/`year`. This gives us the best possible window to continue supporting Monthly/Yearly till all themes have time to adapt to custom prices
2021-05-10 23:05:02 +05:30
Rishabh
815e00c761 Handled custom prices query in links/attributes
refs https://github.com/TryGhost/Team/issues/643

Previously, Portal only worked with hardcoded `Monthly` and `Yearly` plans as those were the only possible prices available to members. With custom prices and products, Portal is now expanded to work with any number of custom prices as well as allow links/attributes for them to work via IDs.

Also, to continue backwards compatibility with Monthly/Yearly, Portal will support their data attributes/links, finding the first relevant Monthly/Yearly plan by nickname, falling back on interval if needed.
2021-05-10 23:05:02 +05:30
Rishabh
811067b7a7 Added product name and description to title 2021-05-10 23:05:02 +05:30
Peter Zimon
d52f054410 Added product description to signup 2021-05-10 23:05:02 +05:30
Rishabh
3358847e78 Updated fixtures for preview mode 2021-05-10 23:05:02 +05:30
Rishabh
33308c61b5 Updated fixtures
no refs
2021-05-10 23:05:02 +05:30
Peter Zimon
fb772638b0 Refined price alignment and sizes 2021-05-10 23:05:02 +05:30
Peter Zimon
d49b3f40e7 Refined price name and value alignment 2021-05-10 23:05:02 +05:30
Peter Zimon
4260ff59a4 Updated dynamic modal width logic 2021-05-10 23:05:02 +05:30
Peter Zimon
80cd22bfaa Updated plan section styles 2021-05-10 23:05:02 +05:30
Rishabh
816560b7ce Updated preview to work in setup mode
refs https://github.com/TryGhost/Team/issues/644

In Preview mode during launch wizard in Admin, we show owners dummy Monthly/Yearly plan since the prices are not yet created but will be created if everything looks good in the next step. This change handles the dummy Monthly/yearly prices without actually having the values in DB or settings.
2021-05-10 23:05:02 +05:30
Rishabh
a7de8e9c47 Fixed tests
no refs

Updated tests to work with custom prices
2021-05-10 23:05:02 +05:30
Rishabh
53b63acf40 Cleaned up Signup and Plan pages
Cleanup Account home

Cleanup - Account Plan Page
2021-05-10 23:05:02 +05:30
Rishabh
7d43811600 Handled portal prices data from Admin 2021-05-10 23:05:02 +05:30
Rishabh
c178c60652 Updated api to use price id instead of plan name 2021-05-10 23:05:02 +05:30
Rishabh
41528e90bf Fixed current plan selection not working 2021-05-10 23:05:02 +05:30
Rishabh
92132a567c Added price change handling 2021-05-10 23:05:02 +05:30
Rishabh
4c2a6b9444 Added plan checkout 2021-05-10 23:05:02 +05:30
Peter Zimon
afd51e0e34 Updated no description price name style 2021-05-10 23:05:02 +05:30
Rishabh
38ed4ad61a Added v1 handling for custom prices
refs https://github.com/TryGhost/Team/issues/637
2021-05-10 23:05:02 +05:30
Peter Zimon
3eebae2e11 Updated change plan screen 2021-05-10 23:05:02 +05:30
Peter Zimon
cdb9e0e02c Updated price list 2021-05-10 23:05:02 +05:30
Peter Zimon
725ec2e09a Added product list to account screen 2021-05-10 23:05:02 +05:30
Renovate Bot
ad4168d5b2 Update dependency eslint-plugin-ghost to v2.2.0 2021-05-10 01:30:12 +00:00
Rishabh
4b97830079 v1.2.3 2021-05-03 22:24:15 +05:30
Rishabh
e9556466a2 Fixed Lint
no refs

Removed unused icon
2021-05-03 22:23:36 +05:30
Peter Zimon
68d0bc0248 Updated "Powered by Ghost" badge with new logo 2021-05-03 18:46:10 +02:00
Renovate Bot
9fd67880dd Update dependency eslint-plugin-ghost to v2.1.0 2021-04-30 12:16:47 +00:00
Renovate Bot
9ab5400219 Update actions/checkout action to v2 2021-04-29 09:06:18 +01:00
Rishabh
e9098743f3 v1.2.2 2021-04-28 16:31:02 +05:30
Peter Zimon
d8d2accfe4 Refined styles for invite only modal 2021-04-28 12:54:11 +02:00
Peter Zimon
4a0f3c2403 Updated invite-only styles 2021-04-28 12:40:52 +02:00
Rishabh
a1506b824f 🐛Fixed signup button and icon in invite mode
refs https://github.com/TryGhost/Team/issues/579

We added a new setting to explicitly set `invite-only` mode which was not handled in the signup button and header icon for signup page
2021-04-28 15:51:02 +05:30
Rishabh
c4aee97469 v1.2.1 2021-04-27 23:10:50 +05:30
Rishabh
33221313db Added allow self signup as preview option
refs https://github.com/TryGhost/Team/issues/579

Admin preview screen now sends `allowSelfSignup` as a query param that allows customising the Portal preview UI based on the changes selected by the Admin. This change handles the new query param in Portal
2021-04-27 23:09:57 +05:30
Rishabh
02a21b033d v1.2.0 2021-04-27 21:07:35 +05:30