Commit Graph

1091 Commits

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