Commit Graph

1088 Commits

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