Commit Graph

1011 Commits

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