Commit Graph

502 Commits

Author SHA1 Message Date
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
Rish
e0ac0652db Updated discount value logic for yearly plan
refs https://github.com/TryGhost/members.js/issues/77

- Updated discount value for yearly plan to be only applied if monthly plan is visible
- Doesn't make sense to show discount if no monthly plan is visible
2020-08-05 13:01:01 +05:30
Rish
308297b238 Updated account profile to redirect to home on save
refs https://github.com/TryGhost/members.js/issues/77

When clicking on "Save" on account profile, the user should be redirected to the account home page in case of successful save.
2020-08-05 12:57:58 +05:30
Rish
7de783a252 Updated default page to always open from trigger button
refs https://github.com/TryGhost/members.js/issues/77

- Portal button should always show the Subscribe/Account Home screen based on logged-in status
- Resets state to expected page on every open toggle
2020-08-05 12:56:46 +05:30
Renovate Bot
bb7dba6fea Update dependency @testing-library/jest-dom to v5.11.2 2020-07-31 16:04:55 +00:00
Rish
b33b95c5e7 v0.8.15 2020-07-30 20:35:55 +05:30
Peter Zimon
4f465aa127 Refined error styles 2020-07-30 15:26:32 +02:00
Rish
3249226876 Fixed tests and form validation errors data
refs https://github.com/TryGhost/members.js/issues/78

- Fixed error object post validation to not include keys for fields without error
- Fixed tests for Signup/Signin to use correct member context
2020-07-30 16:20:15 +05:30
Peter Zimon
f356fe621f Updated trigger button position 2020-07-30 12:24:12 +02:00
Peter Zimon
06471449f1 Added transitions to top buttons 2020-07-30 12:24:12 +02:00
Peter Zimon
c99c4da8fd Set button min-width 2020-07-30 12:24:12 +02:00
Rish
290a7493f2 Updated error handling for on blur
refs https://github.com/TryGhost/members.js/issues/78

- Updates error handling to only trigger error for specific field on blur instead of all fields
2020-07-30 15:49:56 +05:30
Peter Zimon
64f80ed1b0 Moved logout to account home page
no refs.
- moved logout back to account home as that's the only place it's used
- removed "Settings" button from tests
2020-07-30 11:20:47 +02:00
Peter Zimon
848c0d8ec7 Moved logout to top left
no refs.
- logout button was too prominent so I moved it to the top left as an icon (todo: show tooptip on hover)
2020-07-29 18:06:48 +02:00
Peter Zimon
2ad2098bba Unify free + paid account home pages
no refs.
- used similar design patterns for free and paid home pages
2020-07-29 16:54:20 +02:00
Peter Zimon
bafdac7bd2 Refined logo position 2020-07-29 16:10:48 +02:00
Peter Zimon
3eaa30e1f3 Refined background color + plan label 2020-07-29 16:04:47 +02:00
Peter Zimon
a37e682f6b Applied custom preview style + fixed account
no refs.
- applied custom style for popup container and background for Admin preview to make the UX more focused
- fixed dummy paid member as the preview content of the account home page
2020-07-29 15:51:55 +02:00
Peter Zimon
9efede024a Added discount to Account/Plan page
no refs.
- moved discount calculation to util
- added discount to account/plan page to make it consistent with signup
2020-07-29 12:35:19 +02:00
Peter Zimon
6af7ab674a Restructured links page layout
no refs.
- used table for link page structur
2020-07-29 12:11:07 +02:00
Peter Zimon
a1a51b5704 Fix trigger icon style bug 2020-07-28 17:15:04 +02:00
Peter Zimon
e877dd5e37 Updated trigger button design
no refs.
- added separate trigger button styles file
- restructured and updated styles
2020-07-28 17:02:17 +02:00
Rish
f47cacd299 Fixed lint
no issue

- Fixed useless-escape in validator email regex
2020-07-28 18:37:06 +05:30
Rish
c2d52681ed Added error handling for plan checkout
refs https://github.com/TryGhost/members.js/issues/78

- Adds error handling for plan checkout when trying to checkout existing plan
2020-07-28 18:19:03 +05:30
Rish
3430cbf3bb Added error handling for input fields
refs https://github.com/TryGhost/members.js/issues/78

- Adds error handling framework for input fields in forms - Signup/Signin/Account Profile
- Shows required and invalid email errors for input fields
2020-07-28 18:19:03 +05:30
Peter Zimon
32149a5d48 Added new default button icons 2020-07-28 13:34:32 +02:00
Rish
4b29d0ce15 Fixed email subscription label on account home
no issue

- Hardcoded label was being used on account home for newsletter subscriptions status
- Updated to use label based on subscribed status, same as profile page
2020-07-24 21:04:45 +05:30
Rish
a51052c320 v0.8.14 2020-07-24 15:39:58 +05:30
Peter Zimon
e8279c132a Cleaned up CSS property order 2020-07-24 11:30:20 +02:00
Peter Zimon
7e7277544e Refined site logo spacing 2020-07-24 11:16:20 +02:00
Peter Zimon
e8ea5fef83 Added CSS variable colors 2020-07-24 11:06:56 +02:00
Peter Zimon
5484d5e2d8 Cleaned up style attributes 2020-07-24 10:46:13 +02:00
Peter Zimon
e1640740f4 Added semantic HTML to pages 2020-07-24 10:37:39 +02:00