Skip to content

[UBP] Nudge users toward pay-as-you-go in workspace class preferences #15190

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

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

jankeromnes
Copy link
Contributor

@jankeromnes jankeromnes commented Dec 6, 2022

Description

Nudge users toward pay-as-you-go in workspace class preferences.

Related Issue(s)

Fixes #14831

How to test

  1. View some Project's Settings page without being on UBP yet

Release Notes

NONE

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-jx-ws-classes-nudge.1 because the annotations in the pull request description changed
(with .werft/ from main)

@jankeromnes jankeromnes marked this pull request as ready for review December 6, 2022 15:06
@jankeromnes jankeromnes requested a review from a team December 6, 2022 15:06
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Dec 6, 2022
@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 6, 2022

I've implemented @jldec's latest suggestion here #14831 (comment) because that seemed like an easy first attempt, but I'd also be happy to implement @gtsiolis' Nudge 1 from #14831 (comment) (as agreed to by @svenefftinge)

Not UBP Project Settings UBP Project Settings
Screenshot 2022-12-06 at 16-04-49 Settings — Gitpod Screenshot 2022-12-06 at 16-05-47 Settings — Gitpod

EDIT: Looking a bit closer at it, I find it confusing (what is "my existing plan"? 🤔 and where should I go to cancel it?) -- Maybe the other proposal is better.

@jankeromnes
Copy link
Contributor Author

Will implement Nudge (1) -- back to Draft.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 6, 2022

I also found & fixed a bug that prevented UBP personal account projects from using workspace classes. 🐛

Okay, new proposal:

Personal Account Team
Not UBP Screenshot 2022-12-06 at 17 13 45 Button links to /plans Screenshot 2022-12-06 at 17 14 12 Button links to Team Billing
UBP Screenshot 2022-12-06 at 17 14 51 Screenshot 2022-12-06 at 17 15 09

@jankeromnes jankeromnes marked this pull request as ready for review December 6, 2022 16:20
Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Thanks, @jankeromnes! 🔮

Left some minor and non-blocking comments below. 🏓

@@ -48,12 +49,14 @@ export function ProjectSettingsPage(props: { project?: Project; children?: React

export default function () {
const { project, setProject } = useContext(ProjectContext);
const [teamBillingMode, setTeamBillingMode] = useState<BillingMode | undefined>(undefined);
const [billingMode, setBillingMode] = useState<BillingMode | undefined>(undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

issue: Probably not the best line to comment on this, but the Usage tab is visible for teams even if you haven't enabled UBP for your account. Is this known or expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! But yes, I believe this is expected. The reason is that viewing the Usage for your team makes sense even if you're not yet on UBP.

Comment on lines +163 to +167
<h3 className="mt-12">Workspaces</h3>
<p className="text-base text-gray-500 dark:text-gray-400">
Choose the workspace machine type for your workspaces.
</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: I find the section heading here unnecessary as if we're trying to fool users by advertizing a feature that does not exist, or they can not reach, especially since there are no other workspace settings, and we're not allowing users to close this alert. I'd drop the section heading, but I'll leave you and @jldec decide because of the relevant comment in #14831 (comment). 🏓

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @gtsiolis. I agree that we wouldn't want to fool our users about anything.

Ping @jldec for final decision about the heading 🙂 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's clearer with the heading Let's leave it in.

Copy link
Contributor

Choose a reason for hiding this comment

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

DEAL—Let's go with that and change later if needed. 🤝

@jankeromnes
Copy link
Contributor Author

Many thanks for the feedback! Everything is resolved, and this PR is just awaiting approval before it can be merged. 🙂 🔜

@jldec
Copy link
Contributor

jldec commented Dec 7, 2022

We’ve introduced complexity into this nudge by adding buttons that link to the right places with the action button.
There are actually 3 different scenarios

  • personal
  • team-plan (old)
  • team-billing (new)

We need to link to all 3 correctly for the buttons to work properly.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 7, 2022

  • personal

This is handled ✅ (link to old individual billing)

  • team-plan (old)

I think this is irrelevant -- we allow users to switch to UBP even if they still have old Team Plans. Please confirm @geropl

  • team-billing (new)

This is handled ✅ (link to team billing)

@jldec
Copy link
Contributor

jldec commented Dec 7, 2022

Please see comment in the issue.

We need to keep the nudge language to explain that cancelling is required.
It's ok to remove the mention of March 2023.

Please use the following Nudge text:

! To access large workspaces and pay-as-you-go, first cancel your existing plan.

It's fine to have the green buttons or links to the right place to cancel, as long as they work properly.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 7, 2022

Okay, reverted to the billing page nudge, but kept the button:

Screenshot 2022-12-07 at 15 41 58

Also, the Team Billing page now also has a nudge when relevant (new in this PR):

Screenshot 2022-12-07 at 15 42 17

Copy link
Member

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

LGTM

@roboquat roboquat merged commit 3b4ffb3 into main Dec 7, 2022
@roboquat roboquat deleted the jx/ws-classes-nudge branch December 7, 2022 15:20
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UBP] Nudge users toward pay-as-you-go in workspace class preferences
5 participants