Commit Graph

1427 Commits

Author SHA1 Message Date
Rishabh
6c776af10b Fixed newsletter selection on offer page
- newsletter selection is moved inline instead of new page for offer signups
2022-05-18 08:35:47 +05:30
Rishabh
8ca7192d35 v2.1.1 2022-05-17 23:32:25 +05:30
Rishabh
8108448f70 Updated handling for default noreply support address
- with content api, site support address can have value of default `noreply`
- adds the default site domain for support address in case of missing domain
2022-05-17 23:20:45 +05:30
Rishabh
799570fbd0 Removed www from support address email
refs https://github.com/TryGhost/Team/issues/397

- the logic for default support address domain was not removing `www`, causing address to be formed as `noreply@www.example.com` instead of `noreply@example.com`
- removes `www` from the domain for support email address
2022-05-17 22:33:33 +05:30
Rishabh
ba142e714b v2.1.0 2022-05-17 14:05:50 +05:30
Rishabh Garg
b306b0747d Handled updated tiers API data structure (#247)
refs https://github.com/TryGhost/Team/issues/1575

- updated to work with new tiers api data structure which removes stripe id references
2022-05-17 14:03:51 +05:30
Djordje Vlaisavljevic
7699424cee Updated unsubscribe success message design
refs https://github.com/TryGhost/Team/issues/1495
2022-05-16 16:52:21 +02:00
Rishabh
c32c86047d Added account/newsletters link for member email preference
- adds new `/account/newsletters` portal link for member's to see their email preference
- redirects to signin if member is not logged in
- updates newsletter page for logged out members
2022-05-16 18:29:42 +05:30
Rishabh
43a6b8c1ed Added notification for default unsubscribed newsletter
refs https://github.com/TryGhost/Team/issues/1495
2022-05-16 16:38:19 +05:30
Peter Zimon
2e9735c5c4 Fixed footer spacings for multiple tiers signup 2022-05-13 12:48:23 +02:00
Peter Zimon
63bd92b6f2 Fixed bottom margin of signup message 2022-05-13 12:45:00 +02:00
Rishabh
159ed13ab7 v2.0.2 2022-05-12 23:31:06 +05:30
Rishabh
b3d2dbc9e9 Wired choose plan back button on newsletter page 2022-05-12 23:29:09 +05:30
Rishabh
2e1567ac67 v2.0.1 2022-05-12 23:22:33 +05:30
Rishabh
eff1abc948 Updated offer detail endpoint to use content api
refs https://github.com/TryGhost/Team/issues/1599

- offer details are now available directly on content api
2022-05-12 21:28:11 +05:30
Rishabh
7e383a97f6 Serialized missing settings from portal site data
refs https://github.com/TryGhost/Team/issues/1599

- old settings `allow_self_signup` and `is_stripe_configured` and `member_signup_access` are now removed in site data, and are replaced by new settings.
- this change maps the new settings to old settings so Portal behavior remains the same
- long term, we'll update usages in Portal to rely on new settings only
2022-05-12 20:59:58 +05:30
Rishabh
f7d3d56cb3 Updated serialisation for new site endpoint data
refs https://github.com/TryGhost/Team/issues/1599
2022-05-12 20:47:24 +05:30
Rishabh
5eb1131816 Removed old members site endpoint usage
refs https://github.com/TryGhost/Team/issues/1599
2022-05-12 20:46:52 +05:30
Rishabh
8bee963e53 Fixed lint and warnings 2022-05-12 20:38:03 +05:30
Rishabh
d2d3e3ba08 Updated site initialisation to use content api
closes https://github.com/TryGhost/Team/issues/1599

- portal uses content API to fetch data now instead of old members site endpoint
2022-05-12 20:31:47 +05:30
Rishabh
7e264b2fcd v2.0.0 2022-05-12 20:26:34 +05:30
Djordje Vlaisavljevic
980fbd98ac Updated design for newsletter selection page
refs https://github.com/TryGhost/Team/issues/1559
2022-05-11 20:33:31 +02:00
Djordje Vlaisavljevic
6dfb87fadb Added class to signup section
refs https://github.com/TryGhost/Team/issues/1559
2022-05-11 20:32:54 +02:00
Djordje Vlaisavljevic
c61860742d Changed back button label
refs https://github.com/TryGhost/Team/issues/1559
2022-05-11 20:31:46 +02:00
Djordje Vlaisavljevic
77272bcc9a Updated unsubscribe design
refs https://github.com/TryGhost/Team/issues/1495
2022-05-10 22:44:03 +02:00
Djordje Vlaisavljevic
334c2c290a Updated checkmark notification design
refs https://github.com/TryGhost/Team/issues/1440
2022-05-10 11:30:19 +02:00
Djordje Vlaisavljevic
fe961b0630 Added checkmark circle icon
refs https://github.com/TryGhost/Team/issues/1440
2022-05-10 11:29:46 +02:00
Djordje Vlaisavljevic
966146e8fa Removed alternative checkmark icon
refs https://github.com/TryGhost/Team/issues/1440
2022-05-10 11:29:35 +02:00
Rishabh
7ac062ae68 Added transition classnames for success icon 2022-05-09 16:08:37 +05:30
Djordje Vlaisavljevic
a1be413924 Updated icon design
refs https://github.com/TryGhost/Team/issues/1440
2022-05-09 11:52:50 +02:00
Djordje Vlaisavljevic
f5f5c56267 Added checkmark-circle icon
refs https://github.com/TryGhost/Team/issues/1440
2022-05-09 11:52:10 +02:00
Rishabh
e9a282ee43 Refined newsletter preference update UI
refs https://github.com/TryGhost/Team/issues/1559
2022-05-06 18:59:05 +05:30
Rishabh
160c61e66f Handled auto unsubscribe email newsletter
refs TryGhost/Team#1495

For single newsletters, the unsubscribe link on emails auto unsubscribed member from the newsletter. In case of multiple newsletters, we were missing the newsletter information on unsubscribe URL that will allow us to auto unsubscribe member from that specific newsletter as they intended, while allowing them option to manage other newsletter preferences.
This change handles the newsletter param in unsubscribe link and auto unsubscribes the member from that newsletter.
2022-05-05 12:26:39 +05:30
Rishabh
7e4ec97c0a v1.22.4 2022-05-05 12:24:50 +05:30
Djordje Vlaisavljevic
f3f1d833ff Updated button label to make it clearer
refs https://github.com/TryGhost/Team/issues/1559
2022-05-04 18:26:24 +02:00
Djordje Vlaisavljevic
90e505d469 Updated unsubscribe design and cleaned up code
refs https://github.com/TryGhost/Team/issues/1495
2022-05-04 18:25:00 +02:00
Renovate Bot
692911185c Update sentry-javascript monorepo to v6.19.7 2022-04-29 16:32:58 +00:00
Rishabh
4ef7587bad v1.22.3 2022-04-28 18:18:11 +05:30
Rishabh
92ba966345 Updated copy
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 18:17:05 +05:30
Rishabh
1dc0535c10 Added newsletter pref page for single site newsletters
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 18:15:41 +05:30
Rishabh
657dabd4eb v1.22.2 2022-04-28 17:37:19 +05:30
Rishabh
7ca28de358 Added default unsubscribe for single newsletter unsubscribe
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 17:31:34 +05:30
Djordje Vlaisavljevic
2ae8a5e14e Updated design
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:58:21 +02:00
Djordje Vlaisavljevic
f4e4da04c5 Updated design
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:50:20 +02:00
Djordje Vlaisavljevic
91fba6bf53 Added manage account preferences button
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:38:55 +02:00
Djordje Vlaisavljevic
e488699e9f Added close button
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:31:57 +02:00
Djordje Vlaisavljevic
4eed600111 Fixed linting issue
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:21:20 +02:00
Djordje Vlaisavljevic
4342da366f Updated design for unubscribe modal
refs https://github.com/TryGhost/Team/issues/1495
2022-04-28 12:20:29 +02:00
Djordje Vlaisavljevic
d4db34b069 Updated copy
refs https://github.com/TryGhost/Team/issues/1440
2022-04-28 09:31:22 +02:00
Djordje Vlaisavljevic
92811915dd Updated design for unsubscribe page
refs https://github.com/TryGhost/Team/issues/1495
2022-04-27 20:27:19 +02:00
Rishabh
82bd498ce9 v1.22.1 2022-04-27 20:59:06 +05:30
Rishabh
adcf65a821 Added unsubscribe page for email unsubscribe links
refs https://github.com/TryGhost/Team/issues/1495

With the addition of multiple newsletters, members can now view and mange their newsletter preferences via Portal when on the site.
This change allows members to manage their newsletter subscription via unsubscribe link on emails.

- adds new Unsubscribe page in portal to manage member's unsubscribe link handling
- adds 2 new endpoints to fetch/update member's newsletters via UUID
2022-04-27 20:56:20 +05:30
Rishabh
926df30ccd Refined newsletter management for logged-in members
refs https://github.com/TryGhost/Team/issues/1559

- extracts newsletter management in a common component for use across pages
2022-04-27 20:56:20 +05:30
Peter Zimon
2ab6093d9e Updated preview background color 2022-04-27 17:15:12 +02:00
Djordje Vlaisavljevic
47abf4061c Commented out tierName
refs https://github.com/TryGhost/Team/issues/1559
2022-04-27 16:09:13 +02:00
Djordje Vlaisavljevic
17000293b1 Updated CTA heading
refs https://github.com/TryGhost/Team/issues/1559
2022-04-27 15:59:52 +02:00
Djordje Vlaisavljevic
46f915ddfc Updated CTA heading typography
refs https://github.com/TryGhost/Team/issues/1490
2022-04-26 23:26:48 +02:00
Djordje Vlaisavljevic
5e48105f16 Changed toggle alignment
refs https://github.com/TryGhost/Team/issues/1490
2022-04-26 23:21:58 +02:00
Djordje Vlaisavljevic
dfe390d8b7 Updated CTA heading typography
refs https://github.com/TryGhost/Team/issues/1490
2022-04-26 23:09:57 +02:00
Djordje Vlaisavljevic
13416b8322 Changed alignment of toggles
refs https://github.com/TryGhost/Team/issues/1482
2022-04-26 22:58:14 +02:00
Djordje Vlaisavljevic
c2444a2879 Added description for Email preferences
refs https://github.com/TryGhost/Team/issues/1482
2022-04-26 22:01:33 +02:00
Djordje Vlaisavljevic
40d2d970e4 Add right margin to portal list
refs https://github.com/TryGhost/Team/issues/1482
2022-04-26 21:52:35 +02:00
Djordje Vlaisavljevic
f4cb7ac04b Changed word-break property for descriptions
refs https://github.com/TryGhost/Team/issues/1482
2022-04-26 21:49:10 +02:00
Peter Zimon
303e7286a2 Fixed current plan button z-index bug 2022-04-25 22:50:16 +02:00
Rishabh
362e0d69c5 v1.22.0 2022-04-25 19:30:29 +05:30
Rishabh
37d9099d1a Wired subscribed toggle to single site newsletter
refs https://github.com/TryGhost/Team/issues/1554

With multiple newsletters, the subscribed property on a member is replaced by newsletter(s) [] which defines member's subscription instead.

- wires existing subscribe toggle on account home to new newsletter backend
2022-04-25 18:12:08 +05:30
Rishabh
84739cca52 v1.21.1 2022-04-22 18:38:20 +05:30
Djordje Vlaisavljevic
74e5d629ba Refined design for newsletter selection step of signup
refs https://github.com/TryGhost/Team/issues/1490
2022-04-21 22:03:38 +02:00
Djordje Vlaisavljevic
a95b1c002f Added mock fixture for paid newsletters
refs https://github.com/TryGhost/Team/issues/1490
2022-04-21 22:02:58 +02:00
Djordje Vlaisavljevic
0e105fec06 Added lock icon
refs https://github.com/TryGhost/Team/issues/1490
2022-04-21 22:02:03 +02:00
Rishabh
d5c39b6d3c Removed background window scroll with Portal popup
refs https://github.com/TryGhost/Team/issues/1543

In some cases, when the background of page has scroll, scrolling inside Portal popup also scrolls the background page which causes confusion. To avoid this, we set the body of site to overflow hidden when Portal popup is opened to freeze the background, and then reset it back to original state when portal popup is hidden.
2022-04-21 16:30:02 +05:30
Rishabh
e64684655b Removed unused imports and logs 2022-04-21 15:19:24 +05:30
Rishabh
3cfc530b37 Updated newsletter selection flow for signup
refs https://github.com/TryGhost/Team/issues/1490

Updates newsletter selection flow on signup to render content inside the signup page, so we can keep the common header and popup modal for both pages.
2022-04-21 15:14:18 +05:30
Rishabh
405846ac6f v1.21.0 2022-04-20 13:53:18 +05:30
Rishabh
7c6d9a07d4 Updated newsletters to follow sort order
- updates portal to respect newsletter ordering set in Admin
2022-04-19 15:12:16 +05:30
Djordje Vlaisavljevic
17414b23a2 Updated design for newsletter selection step of signup flow
refs https://github.com/TryGhost/Team/issues/1490
2022-04-18 17:36:08 +02:00
Rishabh
8b49095214 v1.20.1 2022-04-18 18:36:28 +05:30
Rishabh
e0e6f48fc8 Wired unsubscribe all button for newsletter preference page 2022-04-14 22:07:54 +05:30
Rishabh
252e6d4523 v1.20.0 2022-04-13 18:45:53 +05:30
Rishabh
54b64c2634 Added newsletter selection to offer signup
refs https://github.com/TryGhost/Team/issues/1490

Adds newsletter subscription selection page as intermediary before signing up to a site via offer url.
2022-04-13 18:44:05 +05:30
Rishabh
031aa5f2bc Added newsletter selection for signup flows
refs https://github.com/TryGhost/Team/issues/1490

Adds newsletter subscription preference page as an intermediary step before signing up as paid or free member.
2022-04-13 18:43:23 +05:30
Rishabh
ffafed05d0 v1.19.1 2022-04-12 21:25:41 +05:30
Rishabh
0d5df582f8 Fixed missing signup button for free portal link
closes https://github.com/TryGhost/Team/issues/1511
2022-04-12 21:24:53 +05:30
Renovate Bot
2e36656d11 Update sentry-javascript monorepo to v6.19.6 2022-04-08 18:03:05 +00:00
Renovate Bot
9433ae548e Update sentry-javascript monorepo to v6.19.4 2022-04-07 01:16:33 +00:00
Rishabh
ccac18ac09 v1.19.0 2022-04-05 22:44:48 +05:30
Rishabh
fdd1347268 Wired multiple newsletter preferences to API
refs https://github.com/TryGhost/Team/issues/1469

- wires newsletters data on email preference page to real data for view/edit
- allows members to control email preference to multiple newsletters
2022-04-05 22:43:20 +05:30
Renovate Bot
e0e8fd855d Update sentry-javascript monorepo to v6.19.3 2022-03-31 20:21:23 +00:00
Renovate Bot
81e074cb9e Update dependency @testing-library/user-event to v14 2022-03-30 15:13:43 +00:00
Rishabh
981c97d3bd v1.18.5 2022-03-29 16:17:25 +05:30
Peter Zimon
a110f1469e Various refinements
- Adjusted fading cover for sticky buttons
- Adjusted bottom margin of invite only popup
- Updated input font-size for mobile to prevent input focus zooming
2022-03-29 12:45:39 +02:00
Rishabh
975e970eba v1.18.4 2022-03-29 16:14:20 +05:30
Rishabh
ae70d2a113 v1.18.3 2022-03-29 14:04:46 +05:30
Rishabh
9f335c36ff Fixed key warning for newsletter preference section 2022-03-29 14:02:28 +05:30
Rishabh
83d0a90a93 Removed input auto-zoom for mobile
Adds meta tag for iframe head to control viewport in mobile devices
2022-03-29 14:02:09 +05:30
Rishabh
3ab9a67577 Added popup notification for newsletter preference toggle
refs https://github.com/TryGhost/Team/issues/1440
2022-03-29 13:49:25 +05:30
Rishabh
700530f5fd v1.18.2 2022-03-29 12:12:58 +05:30
Rishabh
0251989c0a Fixed loading indicator for upgrade plans 2022-03-29 12:12:03 +05:30
Peter Zimon
c339761a35 Removed input auto-zoom for mobile 2022-03-28 15:53:25 +02:00
Rishabh
26a33df012 v1.18.1 2022-03-28 17:44:54 +05:30
Peter Zimon
315b2aa257 Removed cadence from offers 2022-03-28 13:49:57 +02:00
Peter Zimon
0b4bec1ac8 Updated offer preview height 2022-03-28 13:42:55 +02:00
Peter Zimon
c20fbb5a71 Added default product descriptions 2022-03-28 13:38:05 +02:00
Peter Zimon
4af2a89f13 Fixed various mobile bugs
- Fixed titles not breaking on small size screens
- Fixed bottom margin of powered by badge on mobile
- Updated word-wrap of detail values in lists
2022-03-28 13:19:15 +02:00
Peter Zimon
bd25c0cc6e Fixed mobile size bugs 2022-03-28 12:48:06 +02:00
Renovate Bot
928340c42b Update sentry-javascript monorepo to v6.19.2 2022-03-26 00:23:16 +00:00
Rishabh
44cff4145c Merged v1.17.3 into main
v1.17.3
2022-03-25 00:07:45 +05:30
Rishabh
34cb651202 Merged v1.17.2 into main
v1.17.2

# Conflicts:
#	package.json
#	src/components/common/PlansSection.js
2022-03-25 00:06:17 +05:30
Rishabh
5ff5346d1f v1.17.3 2022-03-24 23:35:06 +05:30
Rishabh
8b02c85e3b Fixed alignment issues on mobile
refs 30703842b5

Portal popup was left aligned on mobile devices due to an earlier fix for inner scroll issue which is not working correctly.
2022-03-24 23:34:11 +05:30
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