Commit Graph

1184 Commits

Author SHA1 Message Date
Peter Zimon
995bef0f57 Added default text if name is missing 2020-09-04 15:28:22 +02:00
Rish
c94be8cea7 v0.8.23 2020-09-04 17:20:50 +05:30
Rish
db9ca1322e Updated usage script to include site attribute
no issue

- To correctly inject the members.js script to any theme, it needs to know the correct site URL to access Ghost APIs.
- `data-ghost` attribute is needed on the script to define the correct Site url
2020-09-04 17:19:37 +05:30
Rish
1c2890036b Reset any "last page" state on closing popup
no issue

- We don't want to keep any old "last page" state for the popup once its closed, which is used to determine which page to to go back to with "Cancel"
- If no "last page" is found, going back closes the popup instead which is expected behavior
2020-09-04 13:07:08 +05:30
Peter Zimon
fc490f9ae5 Fixed outline for buttons 2020-09-04 08:42:07 +02:00
Rish
7d0f12395a Added UI refinements for free member plan page
no refs

-  Changed title to "Choose your subscription"
- The primary button label changed to "Continue"
2020-09-03 21:07:20 +05:30
Rish
5083094308 Updated cancel button to close modal when no back
no refs

- Cancel button previously was not closing the modal where no last page was found to go back to, fixed
2020-09-03 21:06:21 +05:30
Rish
3a01015618 v0.8.22 2020-09-03 17:15:24 +05:30
Rish
b563ab05a9 Fixed default plan for complimentary members
refs https://github.com/TryGhost/members.js/issues/77

- Fixes members on complimentary plan not having a default plan selected on account plan page
2020-09-03 17:13:38 +05:30
Rish
a8d2c03f9c Fixed class attribute usage
no issue

- React expects class attribute on element to be defined as `className`
2020-09-03 17:11:42 +05:30
Rish
b2dae5fc44 Added fixture for complimentary member
no issue

- Adds a fixture for complimentary member for testing
2020-09-03 17:10:47 +05:30
Rish
4474a21a4d Fixed incorrect usage of class
no refs

- React expects `class` on elements to be defined as `className`
2020-09-03 16:27:35 +05:30
Rish
23e0a76ea3 v0.8.21 2020-09-02 12:26:30 +05:30
Rish
4490586de8 Added new member fixture for preview mode
no issue

- Admin Preview mode has its own member fixture now to represent logged in member behavior
2020-09-02 12:25:36 +05:30
Peter Zimon
f2cc49c00a Updated cancel/continue styles 2020-09-02 08:12:07 +02:00
Peter Zimon
eb5e64ad36 Removed oldschool divider line in header 2020-09-02 07:59:57 +02:00
Renovate Bot
76e6f9f28b Update dependency @testing-library/user-event to v12 2020-09-02 00:15:52 +05:30
Rish
6e2ce8fad3 v0.8.20 2020-09-01 21:01:55 +05:30
Rish
819031e909 Fixed tests
no refs
2020-09-01 21:01:12 +05:30
Rish
8648bf111b Restructured dev mode data to top
no refs

- Updates dev mode data structure to top of the page for easy access and changes
2020-09-01 21:01:12 +05:30
Rish
a39587c495 Updated cancel subscription flow
no refs

- Adds continue subscription option on account home
- Cleans up methods to render cancel continue behavior
2020-09-01 21:01:12 +05:30
Rish
cfc96aa603 Added subscription cancel/continue button
no issue

- Allows member to cancel or continue their subscription at period end
- Updates subscription cancellation setting in stripe
2020-09-01 21:01:12 +05:30
Rish
9b899d4c54 Added subscription cancel action handler
no issue

- Adds cancel/continue action handler for a subscription
2020-09-01 21:01:12 +05:30
Rish
7aa3a448f7 Fixed action reset timeout causing incorrect state
no issue

- Previously, a timeout after 5s for previous action was resetting the action state, but didn't take into account any consecutive action and reset state incorrectly
- Timeout is reset on every action so only the last action outside timelimit causes action state to reset
2020-09-01 21:01:12 +05:30
Renovate Bot
3a5a3527bb Lock file maintenance 2020-09-01 12:48:13 +05:30
Rish
7a73869b75 Fixed tests
no issue
2020-08-27 21:40:43 +05:30
Peter Zimon
97ac0f01ec Refined primary button
no refs.
- increased the default height of primary button
- added loading spinner to sign in and sign up button loading state
2020-08-27 17:58:36 +02:00
Peter Zimon
2e429e8c8c Updated sign up/in button height 2020-08-27 17:08:49 +02:00
Rish
bd844c3568 v0.8.19 2020-08-26 00:52:17 +05:30
Rish
e50576b420 Updated cancel button behavior for account pages
no issue

- By default, Cancel button on Account plan/profile pages goes back to last open page like accountHome
- In case the page is opened directly via custom trigger button, there is no last open page so the popup didn't close
- Closes popup for back actions in case no last page is found
2020-08-26 00:50:55 +05:30
Rish
c721eda332 v0.8.18 2020-08-26 00:34:55 +05:30
Rish
f647f5e3d9 Fixed lint warnings
no issue
2020-08-26 00:34:21 +05:30
Rish
df6448cf84 Fixed flickering for signup/signin button state on success
refs https://github.com/TryGhost/members.js/issues/77

Weird behavior -
(1) enabled "Send login link" -> (2) disabled "Sending" -> (3) enabled "Send login link" -> (4) check your inbox page.

New expected behavior -
 (1) -> (2) -> (4)
2020-08-26 00:31:30 +05:30
Rish
c64e9181c6 Fixed form error handling update
no issue

- Form was not updating the error messages onBlur
- Updates error message handling and form submit
2020-08-26 00:24:34 +05:30
Renovate Bot
7a74ac21a0 Update dependency @testing-library/jest-dom to v5.11.4 2020-08-25 03:05:29 +00:00
Renovate Bot
dda2f84c16 Update dependency @testing-library/react to v10.4.9 2020-08-24 01:05:44 +00:00
Peter Zimon
1ff013d3f5 Refined disabled primary button style 2020-08-19 18:33:04 +02:00
Peter Zimon
3ad708da9d Fixed width of primary button 2020-08-19 18:26:03 +02:00
Peter Zimon
abad1d4e6b Refined subscribe button height 2020-08-19 18:12:02 +02:00
Rish
d863496bbe v0.8.17 2020-08-17 09:51:34 +05:30
Rish
ffb9e95594 Removed Stripe JS script load
no issue

- Stripe JS is enabled as part of members in ghost_head based on stripe connection
- Portal should expect Stripe to be already added to page via Ghost_Head, so removes explicit check and load here
2020-08-17 09:50:51 +05:30
Renovate Bot
040efb77cf Update dependency react-scripts to v3.4.3 2020-08-14 16:04:34 +00:00
Renovate Bot
b7002ef34e Update dependency @testing-library/jest-dom to v5.11.3 2020-08-14 15:06:07 +00:00
Rish
25f5e66268 Removed unused ref and styles
closes https://github.com/TryGhost/members.js/issues/76

- Removes unused ref calculation for height as its moved inline with frame changes
2020-08-13 18:11:01 +05:30
Renovate Bot
790057bfa8 Update dependency react-scripts to v3.4.2 2020-08-12 12:04:49 +00:00
Renovate Bot
90161206e4 Update dependency @testing-library/react to v10.4.8 2020-08-07 17:05:18 +00:00
Rish
ce7cf575ed v0.8.16 2020-08-07 21:51:29 +05:30
Rish
19d39babc8 Fixed lint
no issue
2020-08-05 14:28:20 +05:30
Rish
95ec778920 Fixed tests
no issue

- Updated tests for account plan and profile pages
2020-08-05 13:33:49 +05:30
Rish
1e2fe6be48 Updated default selected plan for paid/free members
refs https://github.com/TryGhost/members.js/issues/77

When changing plan from the account page, there should always be a default selected plan:

- for free members the first plan,
- for paid members the current plan
2020-08-05 13:14:39 +05:30