Commit Graph

738 Commits

Author SHA1 Message Date
Rishabh
41528e90bf Fixed current plan selection not working 2021-05-10 23:05:02 +05:30
Rishabh
92132a567c Added price change handling 2021-05-10 23:05:02 +05:30
Rishabh
4c2a6b9444 Added plan checkout 2021-05-10 23:05:02 +05:30
Peter Zimon
afd51e0e34 Updated no description price name style 2021-05-10 23:05:02 +05:30
Rishabh
38ed4ad61a Added v1 handling for custom prices
refs https://github.com/TryGhost/Team/issues/637
2021-05-10 23:05:02 +05:30
Peter Zimon
3eebae2e11 Updated change plan screen 2021-05-10 23:05:02 +05:30
Peter Zimon
cdb9e0e02c Updated price list 2021-05-10 23:05:02 +05:30
Peter Zimon
725ec2e09a Added product list to account screen 2021-05-10 23:05:02 +05:30
Renovate Bot
ad4168d5b2 Update dependency eslint-plugin-ghost to v2.2.0 2021-05-10 01:30:12 +00:00
Rishabh
4b97830079 v1.2.3 2021-05-03 22:24:15 +05:30
Rishabh
e9556466a2 Fixed Lint
no refs

Removed unused icon
2021-05-03 22:23:36 +05:30
Peter Zimon
68d0bc0248 Updated "Powered by Ghost" badge with new logo 2021-05-03 18:46:10 +02:00
Renovate Bot
9fd67880dd Update dependency eslint-plugin-ghost to v2.1.0 2021-04-30 12:16:47 +00:00
Renovate Bot
9ab5400219 Update actions/checkout action to v2 2021-04-29 09:06:18 +01:00
Rishabh
e9098743f3 v1.2.2 2021-04-28 16:31:02 +05:30
Peter Zimon
d8d2accfe4 Refined styles for invite only modal 2021-04-28 12:54:11 +02:00
Peter Zimon
4a0f3c2403 Updated invite-only styles 2021-04-28 12:40:52 +02:00
Rishabh
a1506b824f 🐛Fixed signup button and icon in invite mode
refs https://github.com/TryGhost/Team/issues/579

We added a new setting to explicitly set `invite-only` mode which was not handled in the signup button and header icon for signup page
2021-04-28 15:51:02 +05:30
Rishabh
c4aee97469 v1.2.1 2021-04-27 23:10:50 +05:30
Rishabh
33221313db Added allow self signup as preview option
refs https://github.com/TryGhost/Team/issues/579

Admin preview screen now sends `allowSelfSignup` as a query param that allows customising the Portal preview UI based on the changes selected by the Admin. This change handles the new query param in Portal
2021-04-27 23:09:57 +05:30
Rishabh
02a21b033d v1.2.0 2021-04-27 21:07:35 +05:30
Rishabh Garg
d690684a56 Updated to handle invite only setting (#139)
refs https://github.com/TryGhost/Team/issues/579

A new setting `members_signup_access` can be set to `invite` by the site owner which explicitly makes Portal to behave invite only, this change updates Portal to handle the setting
2021-04-27 21:04:58 +05:30
Renovate Bot
3bdfe189d9 Update dependency @testing-library/jest-dom to v5.12.0 2021-04-23 16:47:19 +00:00
Fabien O'Carroll
0066732b74 v1.1.1 2021-04-05 16:14:41 +01:00
Fabien 'egg' O'Carroll
6b60e51747 Updated data-attributes to use smart_cancel (#136)
refs https://github.com/TryGhost/Team/issues/530

This makes sure that sites not using the Portal modal will have their
cancel behaviour updated too.

* Added missing newline
2021-04-05 16:13:39 +01:00
Renovate Bot
aaf4cfcffe Update dependency @testing-library/react to v11.2.6 2021-03-31 12:39:55 +00:00
Fabien O'Carroll
62a7542a6c v1.1.0 2021-03-30 12:21:19 +01:00
Rish
778ffe2f81 Updated action for continuing a subscription
refs https://github.com/TryGhost/Team/issues/530

A continueSubscription action has been added to handle continuing
subscriptions as a different flow since we now have `smart_cancel` for the cancellation. The "continue subscription" button in Portal is updated to use the new action to correctly continue a subscription instead of old action which did both cancel and continue.
2021-03-30 12:20:21 +01:00
Fabien O'Carroll
1caaa3f2fe Updated actions to cancel&continue subscriptions
refs https://github.com/TryGhost/Team/issues/530

The members-api now accepts the `smart_cancel` option when updating
subscriptions. This will automatically handle cancelling the
subscription if it is in an overdue state.

A continueSubscription action has been added to handle continuing
subscriptions.
2021-03-30 12:20:21 +01:00
Renovate Bot
b2c380cd60 Update dependency @testing-library/jest-dom to v5.11.10 2021-03-26 22:13:41 +00:00
Rish
d0384f431a Removed hardcoded accent color fallbacks
refs https://github.com/TryGhost/Team/issues/536

From 4.0, we ensure and require that accent colour is always set. This change removes hardcoded accent color fallbacks to avoid confusion as well as cause accidental fallback that is undesired causing themes to look different
2021-03-24 18:12:29 +05:30
Rish
b4b5720643 v1.0.2 2021-03-19 12:55:00 +05:30
Rish
d871166ebb Added class selector to notification iframe
no refs
2021-03-19 12:54:19 +05:30
Rish
8c6c13156f v1.0.1 2021-03-19 12:38:21 +05:30
Rish
2e8eea05ff Replaced membersjs titles to portal
no refs
2021-03-19 12:35:57 +05:30
Rish
627b2238da Updated readme
no refs
2021-03-17 22:34:00 +05:30
Renovate Bot
ed5d975087 Update dependency @testing-library/user-event to v12.8.3 2021-03-11 20:17:49 +00:00
Rish
a49d4b9099 v1.0.0 2021-03-10 22:56:10 +05:30
Rish
99fc9e0388 v1.0.0-rc.16 2021-03-10 15:09:59 +05:30
Rish
b1418e1b52 Fixed lint
no refs
2021-03-10 15:09:13 +05:30
Rish
ea41b38797 Added autofocus to signin and signup pages
no refs

- Adds autofocus on Name/Email field on signup page when opened
- Adds autofocus on Name/Email field on signin page when opened
2021-03-10 15:06:22 +05:30
Rish
74f8d4eb86 Added autofocus option to input fields
no refs

Allows input components to define if they want to autofocus on component load, useful for autofocus on form pages in Portal
2021-03-10 15:05:49 +05:30
Rish
d381382f4e v1.0.0-rc.15 2021-03-10 09:39:20 +05:30
Rish
35e5c2d1b9 Fixed portal link removal on popup close
no refs

Last commit updated the portal link regex to allow for trailing slashes, this updates the check for removing portal link when popup is closed
2021-03-10 09:38:33 +05:30
Rish
5844312552 v1.0.0-rc.14 2021-03-10 09:16:27 +05:30
Rish
54a2d2e39e Handled trailing slash for Portal links
no refs

The portal links were not working in case of a trailing slash at the end, this fix updates the regex to allow and ignore the trailing slashes in portal links as it can be a common mistake to include trailing slashes.

SITE/#/portal/  - Did not work previously, now works
vs
SITE/#/portal  - Works
2021-03-10 09:15:12 +05:30
Rish
3b5fa6db8d Updated default accent color
refs https://github.com/TryGhost/Team/issues/535

Updates default accent color to '#15171A' so as its consistent everywhere
2021-03-09 18:08:17 +05:30
Rish
922c2e64dd v1.0.0-rc.13 2021-03-09 15:15:42 +05:30
Rish
6566cc08e6 Added member data refresh for stripe checkout
no refs

Does member data refresh when hiding notification to ensure subscription data for member is fetched if Stripe webhooks are delayed on server and shows no subscription in first request.
2021-03-09 15:07:18 +05:30
Rish
87f08919b7 Cleaned up stripe success/cancel urls
no refs

Removes old portal specific cancel/success params for stripe checkout/billing update
2021-03-09 12:43:08 +05:30
Rish
97f797b168 v1.0.0-rc.12 2021-03-08 23:07:25 +05:30
Rish
00485dc89b Fixed undefined in subcription confirmation screen
no refs

- We updated site plans to use `currency_symbol` instead of `currency`, but missed updating it here so the popup showed `undefined` for the new plan on confirmation screen
2021-03-08 23:05:58 +05:30
Rish
2e41b24240 Updated number formatter to use locale method
no refs

Updates number formatter to use native `toLocaleString` instead of custom regex
2021-03-08 22:59:13 +05:30
Peter Zimon
3067456a0e Updated currency code formatting 2021-03-08 18:13:35 +01:00
Peter Zimon
bb59b019db Added thousands separator
- added thousands separator to helpers and signup screen
2021-03-08 17:24:50 +01:00
Peter Zimon
5cacd0611d v1.0.0-rc.11 2021-03-04 16:26:57 +01:00
Peter Zimon
35fa356a48 Forcing hardware acceleration for transitions 2021-03-04 16:12:56 +01:00
Rish
35e2e2fbe1 v1.0.0-rc.10 2021-03-04 19:07:54 +05:30
Peter Zimon
7aac27edfc Updated modal animation 2021-03-04 14:14:36 +01:00
Rish
07384dc584 v1.0.0-rc.9 2021-03-04 15:30:41 +05:30
Peter Zimon
81e4f1bc79 Minor style changes
- applied blur on modal cover background
- adjusted positioning of modal
- refined sign in / sign up link style
- adjusted magic link envelope icon position and size
2021-03-04 10:58:35 +01:00
Rish
474a4f175b Fixed plans in dev mode
no refs

Plans picked from fixture in dev mode was overwritten by empty object when site data is updated, fixed to update correctly.
2021-03-04 01:40:51 +05:30
Rish
1868542504 Updated webpack config to cleanup warnings
no refs

`yarn build` used to throw up a lot of warnings because the webpack config was not correctly updated to use performance config for portal's usecase, this change -

- Sets the `mode` to explicit `production` instead of implicit which throws a warning
- Updated performance max* sizes to account for a single portal chunk bundled up as an external script
2021-03-04 01:19:56 +05:30
Renovate Bot
c73e80e1fb Update dependency @testing-library/user-event to v12.8.1 2021-03-03 15:08:05 +00:00
Rish
6e15908fd9 Updated master to main in yarn ship
no issue

`master` is now renamed as `main` upstream, this updates the `yarn ship` to push updates to `main` instead of master now.
2021-03-02 18:12:18 +05:30
Rish
80c943a7b6 v1.0.0-rc.8 2021-03-02 18:10:33 +05:30
Rish
d781f4fe3a Updated root div id to use portal naming
closes https://github.com/TryGhost/Team/issues/512

Updates naming of root container to `ghost-portal-root` instead of `ghost-membersjs-root` inline with overall naming to portal everywhere.
2021-03-02 18:09:45 +05:30
Renovate Bot
db97b9a9dd Update dependency @testing-library/user-event to v12.8.0 2021-03-02 02:02:04 +00:00
Peter Zimon
82ed022f95 Added currency styles 2021-02-25 13:06:19 +01:00
Fabien 'egg' O'Carroll
ccde2519a8 Used Intl.NumberFormat to determine currency symbol (#128)
refs https://github.com/TryGhost/Team/issues/473
refs https://github.com/TryGhost/Ghost/pull/12700/commits/006cf434

Ghost no longer sends back currency symbols from the API, so we calculate the currency
symbol using `Intl.NumberFormat`.

We've also renamed the `currency` property to `currency_symbol` - as it does not store a currency.

Depending on currency and locale, currency symbols can be the currency ISO code (e.g. AED).
In order to style these differently we add a different class to the element.
2021-02-25 09:58:19 +00:00
Renovate Bot
b751c1c41e Update dependency @testing-library/user-event to v12.7.3 2021-02-23 15:29:52 +00:00
Rish
5b5110ea64 v1.0.0-rc.7 2021-02-23 17:12:59 +05:30
Fabien 'egg' O'Carroll
7b75255e4e Pass subscription id when editing billing (#126)
refs TryGhost/Team#479

This updates Portal to pass the subscription_id of the subscription we want to edit billing for
2021-02-23 16:50:27 +05:30
Renovate Bot
f76c8c0f56 Update react monorepo to v16.14.0 2021-02-16 21:51:29 +00:00
Renovate Bot
2ff203bfc6 Update dependency react-scripts to v3.4.4 2021-02-16 20:00:41 +00:00
Renovate Bot
12d0ca7ae3 Update dependency @testing-library/user-event to v12.7.1 2021-02-16 18:44:28 +00:00
Hannah Wolfe
9f43272817 v1.0.0-rc.6 2021-02-15 16:57:03 +00:00
Hannah Wolfe
ef7d1a70f8 Added accent color override handling
- This is a temporary solution to being able to pass in the accent color
- Need to review if attributes / links should definitely support all of the current preview query params (probably should)
2021-02-15 16:47:40 +00:00
Renovate Bot
a326e3c76c Update dependency @testing-library/user-event to v12.7.0 2021-02-11 17:32:49 +00:00
Renovate Bot
2622591049 Update dependency @testing-library/react to v11.2.5 2021-02-11 13:19:03 +00:00
Renovate Bot
2e4151cdca Update dependency @testing-library/jest-dom to v5.11.9 2021-02-11 08:00:26 +00:00
Rish
50b81b1520 v1.0.0-rc.5 2021-02-11 00:15:23 +05:30
Rish
9fafbb44de Fixed incorrect plans override for preview
refs b739f14183

While adding plans params in preview mode, the site plans were incorrectly overridden with default empty value from preview mode so plan values didn't show up on the screen at all. This commit updates correct structure for site plans
2021-02-11 00:13:59 +05:30
Renovate Bot
799dc78e30 Update dependency eslint-plugin-ghost to v2 2021-02-10 13:59:56 +00:00
Rish
69a0db2d61 v1.0.0-rc.4 2021-02-09 14:13:27 +05:30
Rish
2f297582e1 Added default opacity to trigger button iframe
no refs

Adds default opacity to trigger button iframe allowing themes like Edition to modify visibility of portal button in preview mode, but doesn't change any existing behavior
2021-02-09 14:12:31 +05:30
Rish
0411fad8f6 v1.0.0-rc.3 2021-02-09 13:32:05 +05:30
Rish
b739f14183 Added currency and pricing preview params
no issue

As part of launch wizard in Ghost-Admin, we allow site owner/admins to try different pricing and currency in Admin preview. This change allows Portal popup to consume and update pricing/currency/background on the preview screen using `monthlyPrice`, `yearlyPrice`, `currency` and `disableBackground` params.

- `monthlyPrice`- Allows updating monthly price value via preview
- `yearlyPrice`- Allows updating yearly price value via preview
- `currency`- Allows updating currency value via preview
- `disableBackground`- Allows disabling preview background for Portal UI
2021-02-09 13:31:05 +05:30
Rish
ded3461a20 v1.0.0-rc.2 2021-02-03 08:46:19 +05:30
Rish
b5a7c92327 Removed portal-action param in favor of action
no issue

With Ghost 4.0, we want to keep a single universal action source so the Ghost core doesn't have to know about portal specific actions
2021-02-03 08:45:34 +05:30
Rish
9228651786 v1.0.0-rc.1 2021-02-03 08:37:37 +05:30
John O'Nolan
14314613c0 2021 2021-01-25 16:35:55 +00:00
Renovate Bot
f7195a5161 Update dependency @testing-library/react to v11.2.3 2021-01-24 19:51:16 +00:00
Rish
933fa87aa8 v0.15.1 2021-01-18 11:45:49 +05:30
Rish
a09ff2ca5c Fixed site domain for FirstPromoter
no issue

Removes http(s) and trailing slashes from FirstPromoter site URL
2021-01-18 11:44:47 +05:30
Rish
569c94272c v0.15.0 2021-01-15 20:03:41 +05:30
Rish
a085063a42 Added FirstPromoter integration
no issue
depends on https://github.com/TryGhost/Ghost/pull/12540

FirstPromoter allows sites to build their own referral programs.
Portal reads FirstPromoter settings from site data and uses them to setup FirstPromoter script to track member referrals
2021-01-15 15:36:13 +05:30
Rish
72c8cad3f5 Updated hash removal logic on close
no refs

Using `location.hash` to remove hash params on Portal still keeps the `#` on browser. Instead, we take advantage of history API to remove Portal hash params from screen
2021-01-11 10:56:14 +05:30
Renovate Bot
d6e4635a8b Update dependency @testing-library/user-event to v12.6.0 2021-01-09 09:53:41 +00:00
Rish
ce33a055aa v0.14.1 2020-12-18 22:37:41 +05:30