Skip to content
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

Poké: rework display active subscription/plan #4576

Merged
merged 4 commits into from
Apr 5, 2024
Merged

Conversation

PopDaph
Copy link
Contributor

@PopDaph PopDaph commented Apr 4, 2024

Description

I know this is more code but Poké deserves some love 🙈
This PR is about removing the JSON viewer to replace by a table -> splitting in both the Subscription info with the product limitations from the plan.

Screenshot 2024-04-04 at 18 14 15

Next step is to move the buttons to upgrade/downgrade a workspace and add a new one for Enterprise onboarding;

Risk

/

Deploy Plan

/

@PopDaph PopDaph requested a review from fontanierh April 4, 2024 16:16
@@ -329,9 +328,215 @@ const WorkspacePage = ({
</DropdownMenu.Items>
</DropdownMenu>
</div>
<div className="border-material-200 my-4 flex flex-col rounded-lg border p-4">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 Can you move this to a dedicated table like we did for other tables?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes @flvndvd 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flvndvd done, ok for you?

Copy link
Contributor

@fontanierh fontanierh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great !

@PopDaph
Copy link
Contributor Author

PopDaph commented Apr 4, 2024

As discussed IRL I also moved the order of tables and renamed the title for the table with history of subscriptions.

@PopDaph PopDaph requested a review from flvndvd April 4, 2024 16:50
}) {
const activePlan = subscription.plan;
return (
<div className="flex flex-col space-y-8 pt-4">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we could factorize this? Like having an object like we do for data_table?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Merging as is so I can focus on the new Enterprise form this morning, I'll open a new PR to handle this feedback right after 🙇🏻‍♀️

@PopDaph PopDaph merged commit 9ddfac0 into main Apr 5, 2024
5 checks passed
@PopDaph PopDaph deleted the poke-active-plan branch April 5, 2024 07:47
flvndvd pushed a commit that referenced this pull request May 26, 2024
* Poké: rework display active subscription/plan

* Apply feedback

* lint

* Improve look
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants