Commit Graph

635 Commits

Author SHA1 Message Date
Peter Zimon
3ffe293003 Refined cancellation reason textarea
no refs.
- refined style and copy
2020-11-25 09:42:42 +01:00
Rish
df2e451294 Updated cancellation reason input to use textarea
refs https://github.com/TryGhost/Ghost/issues/12403

- Updates UI component for cancelation reason to use textarea instead of input
- Keep the maxlength to 500 chars for the input
2020-11-25 12:27:08 +05:30
Rish
bf8d949a22 Renamed custom trigger classname to portal
no issue

Custom class is appended to trigger buttons based on popup state to allow UI changes based on different popup state. The class name is updated from using members terminology to new Portal terminology now.
2020-11-25 12:18:06 +05:30
Rish
e36b9360e7 🐛 Fixed support and powered by links not working
closes https://github.com/TryGhost/Ghost/issues/12367

- Support and powered by links were not opened through `href` inside iframe
- Adds support to open these links via `window.open` to bypass iframe restriction
2020-11-24 22:47:29 +05:30
Fabien 'egg' O'Carroll
dff46b99a2 Added cancellation feedback to confirmation screen (#111)
refs https://github.com/TryGhost/Ghost/issues/12403

This gives members the ability to share their cancellation reason with site owners.
The reason is included in the cancellation request and stored both in Ghost & Stripe.

Co-authored-by: Peter Zimon <zimo@ghost.org>
2020-11-24 11:31:42 +00:00
Rish
cfa44b2c77 Updated stripe cancel redirect to existing page
refs https://github.com/TryGhost/Ghost/issues/12365

Stripe back button previously redirected user to site home instead of keeping existing link where the checkout was triggered from. This updates the link to go back to old site URL in case the previous URL was still on the Ghost site.
2020-11-23 13:56:22 +05:30
Rish
3f3c0b4b94 v0.13.1 2020-11-23 11:11:30 +05:30
Peter Zimon
2efeb8f1f7 Updated plan section hover style 2020-11-20 11:01:16 +01:00
Rish
28570bd3ea Fixed portal plan links for data attributes
no refs

- Portal plan checkout links were incorrectly passing empty plan and not opening Stripe checkout, fixed.
2020-11-20 15:13:38 +05:30
Rish
8483ba162d Added listener for portal link changes
refs https://github.com/TryGhost/Ghost/issues/12365

- Listens to portal link changes in URL and opens direct checkout plans
2020-11-20 10:42:03 +05:30
Rish
4dc22ca568 Updated portal stripe actions
no refs

- Updates stripe actions via portal to use custom parameter values to show notifications
- Updated parameter don't interfere with existing theme notifications
2020-11-20 10:27:06 +05:30
Rish
9dac6d9435 Added direct portal link for free signup
refs https://github.com/TryGhost/Ghost/issues/12365

- Added direct portal link handling for - `/signup/free` - to open Portal with Free plan only when available
- In case free plan is not available, Portal will show default signup screen
2020-11-19 18:06:56 +05:30
Rish
de3e5f52d0 Cleared portal checkout link on use
refs https://github.com/TryGhost/Ghost/issues/12365

- Browser back button from Stripe checkout takes users to infinite navigation loop as we were not clearing the direct checkout link
- Clears direct checkout link on load so user can continue navigation as normal
2020-11-19 16:31:34 +05:30
Rish
2a091ac56d Updated direct plan checkout without popup
refs https://github.com/TryGhost/Ghost/issues/12365

- Updated direct checkout to load Stripe without opening popup
2020-11-19 16:04:49 +05:30
Rish
f7fa4e50e6 v0.13.0 2020-11-18 19:56:52 +05:30
Rish
0b1b0b3f63 Removed portal notification for action param
no issue

Portal was showing notification for `action` param as well, which can cause double notification in case theme also handled notification
2020-11-18 19:54:34 +05:30
Rish
11746c1df7 Fixed broken notification state in case of missing member
no issue

- Notification was fetching member's first name which caused error in case the member was not logged in
- Adds check for member to exist before fetching first name
2020-11-18 19:24:25 +05:30
Rish
28ed0fb632 Revert "Revert to 0.10.17 (#110)"
This reverts commit 741bfb637d.

The revert was done to resolve an urgent bug fix which was breaking Portal script in case of any notification
2020-11-18 19:22:26 +05:30
Fabien O'Carroll
fd99540f92 v0.12.0 2020-11-18 13:17:34 +00:00
Fabien 'egg' O'Carroll
741bfb637d Revert to 0.10.17 (#110)
There is a bug in these version where Portal does not load correctly after a successful
Stripe Checkout. We are reverting until we can determine the cause of the bug and fix it

* Revert "v0.11.1"

This reverts commit 828c4d59e2.

* Revert "Fixed incorrect link/path handling"

This reverts commit 9d853be979.

* Revert "v0.11.0"

This reverts commit 16c2224b9b.

* Revert "Updated portal direct checkout links to use path"

This reverts commit d26fad1ef2.

* Revert "Added direct links for monthly/yearly checkout"

This reverts commit bbea4f7ec5.

* Revert "Added user select style to plan container"

This reverts commit a665ca5923.

* Revert "Refined copy"

This reverts commit 32d4949e1d.

* Revert "Account home page refinements"

This reverts commit 6587eca37d.

* Revert "Notification refinements"

This reverts commit 23c75e3acc.

* Revert "Added name to welcome notification"

This reverts commit 7220049830.

* Revert "Refined notification"

This reverts commit d1c091584f.
2020-11-18 13:16:07 +00:00
Rish
828c4d59e2 v0.11.1 2020-11-18 16:03:27 +05:30
Rish
9d853be979 Fixed incorrect link/path handling
no refs

Last release broke the handling of incorrect portal link or attribute as no default value was used for link path
2020-11-18 16:02:31 +05:30
Rish
16c2224b9b v0.11.0 2020-11-17 23:07:13 +05:30
Rish
d26fad1ef2 Updated portal direct checkout links to use path
refs https://github.com/TryGhost/Ghost/issues/12365

Last commit added Portal checkout links using query param on signup link - `signup?plan=monthly/yearly`, this updates the checkout links to use path instead of params on links and data attributes instead.

Portal link for monthly plan checkout - `#/portal/signup/monthly`
Portal data attribute for monthly plan checkout - `data-portal=signup/monthly`

Portal link for yearly plan checkout - `#/portal/signup/yearly`
Portal data attribute for monthly plan checkout - `data-portal=signup/yearly`
2020-11-17 21:15:20 +05:30
Rish
bbea4f7ec5 Added direct links for monthly/yearly checkout
refs https://github.com/TryGhost/Ghost/issues/12365

Currently, while its possible to open Stripe checkout directly on a monthly/yearly plan, Portal links don't allow similar feature. This change allows opening a site on a specific Portal link that can directly open Stripe checkout for monthly/yearly plan, if the plan is allowed.

- Adds handling for new portal signup link for monthly plan - `/#/portal/signup?plan=monthly`
- Adds handling for new portal signup link for yearly plan - `/#/portal/signup?plan=yearly`
2020-11-17 19:06:41 +05:30
Peter Zimon
a665ca5923 Added user select style to plan container
no refs.
- added user-select: none to plan containers to make it feel more like UI and less web content
2020-11-17 09:56:21 +01:00
Peter Zimon
32d4949e1d Refined copy
no refs.
2020-11-10 16:39:37 +01:00
Peter Zimon
6587eca37d Account home page refinements
no refs.
- copy refinements
- added renewal date to paid members' account home
2020-11-10 16:15:27 +01:00
Peter Zimon
23c75e3acc Notification refinements
no refs.
- refined notification styles for single and double lines
- refined copy
2020-11-10 16:00:50 +01:00
Peter Zimon
7220049830 Added name to welcome notification
no refs.
2020-11-10 15:49:52 +01:00
Peter Zimon
d1c091584f Refined notification
no refs.
- added top/bottom padding to notifications
- refined line height
- added line break to welcome notification
2020-11-10 15:44:08 +01:00
Rish
1716771c6a v0.10.17 2020-11-07 01:22:31 +05:30
Rish
f4f037452d Fixed popup close on clicking outside content
no refs

- Popup was not closing when clicked outside in the empty area as listener was firing on wrong element
2020-11-07 01:21:47 +05:30
Rish
2ed016f7d8 v0.10.16 2020-11-06 19:36:08 +05:30
Rish
b3d063b836 Updated request src for signup with stripe checkout
no refs

- Custom requestSrc was not passed when a plan was checkout during signup, which didn't trigger the custom portal action param
2020-11-06 19:35:25 +05:30
Rish
fb698ad972 v0.10.15 2020-10-30 23:27:29 +05:30
Rish
b5277ad1c5 🐛 Fixed billling info update failing
no refs

- Invalid success/cancel URL for billing API due to empty parameter caused failure in opening Stripe
2020-10-30 23:26:49 +05:30
Rish
6163083df8 v0.10.14 2020-10-29 14:02:31 +05:30
Rish
2454e76c04 Fixed incorrect usage of tabindex
no issue

React JSX expects tabindex html property to be camel case - tabIndex
2020-10-29 14:01:24 +05:30
Rish
b590a1fa90 Added upgrade checkout metadata for stripe
no issue

Ghost sends email on successful signup to a paid plan via Stripe checkout, but couldn't differentiate between a Stripe checkout as new member or as an upgrade previously. This led to an extra second email with magic link on upgrading to paid plan while logged in.

Passing `checkoutType` metadata to Stripe checkout allows webhook to ignore second email in case of an upgrade scenario.
2020-10-29 13:59:19 +05:30
Rish
168fb204eb Redirected to home page on signout
no issue

Handles Portal or theme to redirect to home page for a site when signing out
2020-10-29 13:57:25 +05:30
Rish
41f171838a Handled notifications for new custom action param
refs https://github.com/TryGhost/Ghost/issues/12253

- Handles custom action param for requests from Portal by listening on `portal-action` instead of `action` and `portal-stripe` instead of `stripe` in query params for magic link and stripe checkout changes
- Allows theme to continue using the old params so in future Portal doesn't interfere with theme notifications
2020-10-29 13:56:33 +05:30
Peter Zimon
e97e7964ba Added "Publish with Ghost" badge (#106)
added "Publish with Ghost" badge to the bottom left corner of the screen when the portal popup is open
2020-10-19 18:45:14 +02:00
Rish
0b32646944 v0.10.13 2020-10-17 18:31:02 +05:30
Rish
4e39684c43 Updated change email notification message
no refs

- Notification message was missing for change email success/failure
2020-10-17 18:30:11 +05:30
Peter Zimon
59e729e7bd Refined invite-only signup page
no refs.
- added default invitation icon for sites without icon
- refined copy and position of invite only notification
2020-10-16 16:42:46 +02:00
Rish
46366d5066 Fixed popup close in preview mode with Esc
no refs

- Popup shouldn't close with Esc in preview mode on Ghost Admin
2020-10-16 15:07:04 +05:30
Rish
ae2023999a Replaced signup with invite-only screen for no plans
no issue
- If the site owner has no active plan enabled for signup in settings, it implies an invite-only site usecase which needs to be highlighted to he user
- Shows the invite only message along with option to login when SIgnup screen is opened in such scenario
2020-10-16 14:46:19 +05:30
Peter Zimon
510dfd75d9 Removed notifications when cancelling Stripe flows
no refs.
- removed notifications when clicking on the back button Stripe checkout either in update plan or in sign up flows
2020-10-14 16:18:09 +02:00
Peter Zimon
5ec1bdb05e Refined billing update loader icon 2020-10-14 15:13:30 +02:00
Peter Zimon
4d172a6645 Fixed one line notification style 2020-10-14 15:08:11 +02:00
Peter Zimon
6cbe8cca36 Added tabindex to signup and signin input fields 2020-10-14 15:05:40 +02:00
Peter Zimon
5c425fec9c Refined input field animation styles 2020-10-14 14:55:02 +02:00
Peter Zimon
548403dc03 Maximised length of portal button text
no refs.
2020-10-14 14:43:48 +02:00
Peter Zimon
5b7b77a855 Refined account plan page footer padding 2020-10-14 11:32:08 +02:00
Rish
aa6bb75e13 Updated readme usage section
no issue

Updates usage section to correctly highlight directly adding script or enabling via Ghost config setups
2020-10-14 14:24:24 +05:30
Rish
e837446063 v0.10.12 2020-10-13 22:46:57 +05:30
Rish
d0c15e30fc Fixed site fixtures for tests
no issue

- Default site fixtures for tests often break them as tests expect all 3 plans to be present at the moment, change here updates the tests to use custom site fixture with all 3 plans to avoid breaking with any changes for dev testing
2020-10-13 22:17:30 +05:30
Peter Zimon
91414f764d Added halo around signed in trigger button
no refs.
- added an outline on the Portal trigger button for logged in state so that it pops out better on any background with Gravatars
2020-10-13 17:19:06 +02:00
Peter Zimon
e0103647e6 Adjusted drop shadow of Portal trigger button
no refs.
- update Portal trigger button's drop shadow so that it stands out a bit more from the background
2020-10-13 17:19:06 +02:00
Rish
e1c99346c7 Added logic for local switch update for visual flow
no issue

- Currently, the newsletter switch works on the value update from the API which can have slight delay causing sluggish feeling on using the switch
- Adds logic to locally update the switch state before resetting to whatever value comes from the update so the behavior feels instant
2020-10-13 18:22:26 +05:30
Rish
ac162cf1ea Added redirect to account home for complimentary member
no issue

- Complimentary members should be redirected to account home when attempted to open the account plan page via portal link
2020-10-13 18:22:26 +05:30
Rish
da7aee7003 Added loader icon for edit billing update
no issue

- Adds loading indicator for Billing update button while it waits to create and load stripe session
2020-10-13 18:22:26 +05:30
Peter Zimon
b037d98fb8 Removed auto-invert color from primary buttons
no refs.
2020-10-13 14:43:22 +02:00
Peter Zimon
b8a57d6ddf Updated animation timings
no refs.
- removed double trigger of in-popup notifications
- adjusted timing and easing for both in-popup and global notifications
2020-10-13 14:22:05 +02:00
Peter Zimon
e5175555b9 Updated dynamic signup and signin popup width
no refs.
- set popupwidth based on available plans inlcuding if self signup and/or stripe is enabled
2020-10-13 13:00:11 +02:00
Rish
e591770e5e Removed validation check on input blur
no issue

- Removes validation check for fields on focus away to make the form behavior more friendly
2020-10-13 11:29:48 +05:30
Rish
ad488d73ed Cleaned up portal link on popup close
no issue

- On closing portal popup, the hash link was not getting reset which then prevented the popup to be opened again
- Clears portal hash link on popup close
2020-10-13 11:26:01 +05:30
Rish
031bca982a v0.10.11 2020-10-02 22:03:43 +05:30
Rish
048cdbd315 Updated discount calculation round-off
no issue

- Updated yearly plan discount calculation based on rounding down to nearest integer
2020-10-02 20:35:00 +05:30
Peter Zimon
e9df5b5584 Updated billing info notification copy 2020-10-02 17:01:02 +02:00
Peter Zimon
71a8e7355b Updated triggerbutton height 2020-10-02 16:59:01 +02:00
Rish
167cbba36d v0.10.10 2020-10-02 20:02:17 +05:30
Rish
d9cb6597c5 Added back button to account plan and profiles for direct links
no issue

- We had previously removed the Back button for account profile/plan pages when opened directly via Portal link
- This updates the behavior to show the back button which takes back to Account Home as the previous behavior seemed incomplete to users
2020-10-02 19:58:51 +05:30
Rish
74a7232d0c Fixed hash change for links
no issue

- Hash handler was not updating Portal state if it pointed to a Portal link, which caused the need for a full refresh to reflect new link triggers
- Updates hash handler to use handle both preview and link states
2020-10-02 19:57:43 +05:30
Rish
bcf2b5872b v0.10.9 2020-10-02 19:37:55 +05:30
Rish
21fc8ab2b4 Updated billing info popup message
no issue

- Updates stripe billing info update/cancel message in popup notification
2020-10-02 19:35:58 +05:30
Peter Zimon
4b3973c105 Updated mobile size inputs and buttons 2020-10-02 15:50:33 +02:00
Peter Zimon
35366964b7 Updated cancel confirmation copy 2020-10-02 15:40:21 +02:00
Peter Zimon
89c7698f79 Added name and email input attributes 2020-10-02 15:35:11 +02:00
Peter Zimon
7721027783 Updated copy for newsletter setting 2020-10-02 15:27:37 +02:00
Peter Zimon
6c1041cedb Fix back button spacing 2020-10-02 15:20:08 +02:00
Peter Zimon
fe79d42239 Updated link color in popup notifications 2020-10-02 15:15:08 +02:00
Peter Zimon
bc17f41860 Updated name error copy 2020-10-02 14:56:14 +02:00
Peter Zimon
231bafb826 Updated email error copy 2020-10-02 14:51:26 +02:00
Rish
57e83ebe6c v0.10.8 2020-10-02 18:17:32 +05:30
Rish
22a1a5a5fd Fixed loader on account profile update
no issue

- Loader was missing because of `isRunning` state not added for profile update action
2020-10-02 18:00:29 +05:30
Rish
c58fd0c8de Fixed back button for plan confirmation page
no issue

- Back button was removed for confirmation page when opened via Portal link, as we checked for `lastPage` available only
2020-10-02 18:00:01 +05:30
Rish
c4b0aa9b12 v0.10.7 2020-10-02 16:41:20 +05:30
Rish
659340ec3e Fixed back button visible on link pages
no issue

- When account plan/profile pages are opened via Portal Link, the back button is non-functional as we don't have a last page to go to, fix hides the back button in such cases
2020-10-02 16:38:11 +05:30
Rish
f9ab9835e8 v0.10.6 2020-10-02 15:58:50 +05:30
Rish
465793a518 Fixed account plan page for logged out state
no issue

- Account plan page did not handle redirect to signup when no member is logged in
2020-10-02 15:57:58 +05:30
Rish
96c72aa3c9 v0.10.5 2020-10-02 15:45:44 +05:30
Rish
f91aeec3c8 Fixed members form missing data-members-name
refs #12249
refs ce14d8113a

This was incorrectly assuming the presence of the data-members-name
element in the document. By guarding against it and defaulting to
undefined, we fallback to the existing behaviour when the element is not
present.
2020-10-01 22:46:45 +05:30
Rish
39a40034ac Fixed tests
no issue

- Added yearly back to fixtures as tests rely on them
- Long term fix is to directly override fixtures with expected value for tests to not rely on value in file
2020-10-01 17:56:15 +05:30
Rish
884c56f793 Added enter to submit on forms
no issue

- Adds enter to submit on Signin/Signup/AccountProfile pages when focused on an input field
2020-10-01 17:54:39 +05:30
Peter Zimon
15d4a83b1e Updated portal title when there's no logo 2020-10-01 14:00:26 +02:00
Peter Zimon
cf4736d2df Portal notifications style (#103)
- Updated notification style for a less opinionated design so that it works better with any accent color
- Changed full width notificaiton style to smaller to avoid covering navigation
2020-10-01 13:59:32 +02:00
Rish
b414e3b7e4 Fixed empty accent color not set in preview mode
no issue

Current logic ignored empty accent color value coming from the preview url which did not unset the accent color when removed from preview. The fix allows for empty accent color in preview so that it can be reset to default.
2020-10-01 12:18:05 +05:30
Rish
9263a84c09 Updated data attributes script to read member name in form
no issue

- We recently updated Ghost to allow theme developers to pass member's name via `data-members-name` attribute
- The script covers the usecase for any themes using the attribute to fill member's name during the signup process
2020-10-01 12:18:05 +05:30