-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: subscription, plan & permissions #841
base: develop
Are you sure you want to change the base?
Conversation
ba4dd78
to
e22a9f8
Compare
e22a9f8
to
cff6086
Compare
cff6086
to
dc73a2d
Compare
dc73a2d
to
83f1757
Compare
83f1757
to
f96376c
Compare
f96376c
to
ddf4638
Compare
What's done so far: - Created the new "subscription" view - Recovered the menu link to this new page - Show a table with the current subscription. It's been done as a table since it looks like it, but I'm not sure if it's useful considering there aren't plans for multiple subscriptions - Removed the "open modal" temporary button from the main menu - Such modal can now be opened using the "view plans & pricing" button in the new page - A new Subscription Provider/Context has been created, with a `permissions` method in order to check for permissions of the current plan, but it has not been applied yet anywhere - The pricing modal has been minimally changed to allow setting a custom title, and moving its contents into an independent component - Created modals for the different tier/plan upgrade scenarios
ddf4638
to
1d79126
Compare
86d5573
to
1cb3ab8
Compare
- Created a PricingModals provider and context, with their usePricingModals hook - Integrated these into the invite team memberships, showing the upgrade tier modal there (which already links to the pricing one)
1cb3ab8
to
00d43e8
Compare
<> | ||
<SubscriptionModal isOpen={isOpen} onClose={onClose} title={t('pricing.title')} /> | ||
<Button onClick={onOpen} alignSelf='end'> | ||
View Plans & Pricing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation missing
{subscription.plan.name} ({subscription.plan.organization.memberships} members) | ||
</Td> | ||
<Td> | ||
<Tag>undefined</Tag> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this should be the price. Was set as undefined because I had no way to know it then. I'll fix it.
mb={44} | ||
mt={6} | ||
> | ||
<> | ||
<Box mb={5}> | ||
<Heading as='h1' size='xl' mb={3}> | ||
Privacy Policy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation missing
mt={6} | ||
mx='auto' | ||
> | ||
<> | ||
<Heading as='h1' size='xl'> | ||
Terms and Conditions for Vocdoni Association |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation missing
@@ -173,7 +160,7 @@ const Terms = () => ( | |||
By continuing to use app.vocdoni.io or onvote.app, you confirm your acceptance of these terms and your agreement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Translation missing
yarn.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field shouldn't be part of the git tracking...
- Trying to get rid of the plans mock, but it still needs some work (complicated when most features are missing from the plan rn) - Commented all the non implemented features in the process create form
What's done so far:
/admin/subscription
)Settings -> Subscription
)Responsive tables are also a problem with thefixed in 9e2899cdisplay: grid
we're using in the dashboard.permissions
method in order to check for permissions of the current plan, but it has not been applied yet anywhere