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

Users can no longer access or use the team plans or plans page #13618

Closed
gtsiolis opened this issue Oct 5, 2022 · 0 comments · Fixed by #13621
Closed

Users can no longer access or use the team plans or plans page #13618

gtsiolis opened this issue Oct 5, 2022 · 0 comments · Fixed by #13621
Assignees
Labels
component: dashboard feature: billing team: webapp Issue belongs to the WebApp team type: bug Something isn't working

Comments

@gtsiolis
Copy link
Contributor

gtsiolis commented Oct 5, 2022

Bug description

Users no longer see the Plans menu item in user settings. While the /plans page remains accessible, upgrading to another plan does not work.

Re-posting two relevant code sections from a relevant discussion (internal):

export default function getSettingsMenu(params: { userBillingMode?: BillingMode }) {
return [
{
title: "Account",
link: [settingsPathAccount, settingsPathMain],
},
{
title: "Notifications",
link: [settingsPathNotifications],
},
...renderBillingMenuEntries(params.userBillingMode),
{
title: "Variables",
link: [settingsPathVariables],
},
{
title: "SSH Keys",
link: [settingsPathSSHKeys],
},
{
title: "Integrations",
link: [settingsPathIntegrations, "/access-control"],
},
{
title: "Preferences",
link: [settingsPathPreferences],
},
];
}
function renderBillingMenuEntries(billingMode?: BillingMode) {
if (!billingMode) {
return [];
}
switch (billingMode.mode) {
case "none":
return [];
case "chargebee":
return [
{
title: "Plans",
link: [settingsPathPlans],
},
{
title: "Team Plans",
link: [settingsPathTeams],
},
];
case "usage-based":
return [
{
title: "Billing",
link: [settingsPathBilling],
},
// We need to allow access to "Team Plans" here, at least for owners.
...(BillingMode.showTeamSubscriptionUI(billingMode)
? [
{
title: "Team Plans",
link: [settingsPathTeams],
},
]
: []),
];
}
}

2d68f0f#diff-64248da95f399a1cfe99b03aa662caf313faf9b7016999111605da5d61f1971dL39

Steps to reproduce

Issue 🅰️

  1. Log in or sign up as a new user.
  2. Go to user settings.
  3. Notice there's no Plans menu item.

Issue 🅱️

  1. Go to /plans
  2. Try upgrading to a Personal, Professional, or Unleashed plan.

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Front logo Front conversations

@gtsiolis gtsiolis added type: bug Something isn't working component: dashboard team: webapp Issue belongs to the WebApp team feature: billing labels Oct 5, 2022
@geropl geropl moved this to Scheduled in 🍎 WebApp Team Oct 5, 2022
@geropl geropl self-assigned this Oct 5, 2022
@gtsiolis gtsiolis changed the title Users can no longer access or use the plans page Users can no longer access or use the team plans or plans page Oct 5, 2022
@laushinka laushinka moved this from Scheduled to In Progress in 🍎 WebApp Team Oct 6, 2022
Repository owner moved this from In Progress to In Validation in 🍎 WebApp Team Oct 6, 2022
@geropl geropl moved this from In Validation to Done in 🍎 WebApp Team Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard feature: billing team: webapp Issue belongs to the WebApp team type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants