Closed raae closed 3 years ago
I think a full rewrite would be nice, and make the steps seperate pages.
I am thinking:
pages/signup/index
for signing uppages/signup/init
for collecting initial datapages/signup/subscribe
for collecting paymentI would also like a user to be redirected to the correct page if they has not completed onboarding. Now if you do not complete and then log in you will be asked to pay. But not complete onboarding.
On the marketing page I am thinking of making a proper pricing table, so it would be nice so be able to carry over monthly and yearly as a query param and have the plan selected when paying.
When #259 is merged look to features/auth and features/user and pages/profile/*
for how I am thinking of structuring the app moving forward. The plan is to encapsulate the react-redux stuff in custom hooks like useAuth
, useUser
and useSubscription
. Also planning to create a subscription
feature to replace payment and move useSubscription
there. useSubscription
will then also encapsulate the logic so its moved out of the form.
Let me know if you have any questions @SaraVieira.
If the user has not completed onboarding, ask for the latest menses date (optional) as well as menses tag.
Also make the timeline does not show NaN for the cycle days.