Commit Graph

1166 Commits

Author SHA1 Message Date
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