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

feat(fe2): Billing - Add tooltips to disabled buttons #3615

Merged
merged 17 commits into from
Dec 5, 2024

Conversation

andrewwallacespeckle
Copy link
Contributor

Let the user know why certain actions are disabled in Settings>Workspace>Billing.

I created some new computed for some of these conditionals and used them where appropriate.

Copy link

linear bot commented Dec 3, 2024

@@ -34,13 +33,24 @@
</div>
<div v-if="workspaceId" class="w-full mt-4">
<FormButton
v-if="isMonthlyToAnnual || canUpgradeToPlan"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to do this hacky fix to the v-tippy reactivity bug

Copy link
Contributor

@benjaminvo benjaminvo left a comment

Choose a reason for hiding this comment

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

Tested and found various problems. Don't mind the slightly transparent tooltips in the images – my screenshotting tool is a bit glitchy.

  1. This tooltip appears on the starter plan while you're on a trial:

CleanShot 2024-12-03 at 16 00 47@2x

  1. The downgrading tooltip appears on the starter plan while the button is in the "current plan" state
    CleanShot 2024-12-03 at 16 01 39@2x

  2. No tooltips on the disabled Plus and Business plan – in this case because I'm on an annual Starter plan and trying to upgrade to monthly Plus or Business plan.
    CleanShot 2024-12-03 at 16 02 41@2x

  3. The annual->monthly tooltip appears on the current plan here after I toggle the billing switch on and off.
    CleanShot 2024-12-03 at 16 04 04@2x

@andrewwallacespeckle
Copy link
Contributor Author

@benjaminvo This one has been approved, but I can't merge until you also approve. Thanks

@andrewwallacespeckle andrewwallacespeckle merged commit e160ea0 into main Dec 5, 2024
26 of 28 checks passed
@andrewwallacespeckle andrewwallacespeckle deleted the andrew/web-2227-add-tooltips-to-buttons branch December 5, 2024 17:44
@benjaminvo
Copy link
Contributor

I just tested this on Latest. I'm still experiencing problem 3 and 4 from this message 🤔. No tooltips on the disabled upgrade buttons (3) and a wrong tooltip on the "current plan" button after switching the billing switch on and off (4).

@andrewwallacespeckle
Copy link
Contributor Author

@b

I just tested this on Latest. I'm still experiencing problem 3 and 4 from this message 🤔. No tooltips on the disabled upgrade buttons (3) and a wrong tooltip on the "current plan" button after switching the billing switch on and off (4).

I have just opened a PR for point 3 here.

I haven't been able to recreate point 4, was there anything else you did to get it? 🤔

@benjaminvo
Copy link
Contributor

@b

I just tested this on Latest. I'm still experiencing problem 3 and 4 from this message 🤔. No tooltips on the disabled upgrade buttons (3) and a wrong tooltip on the "current plan" button after switching the billing switch on and off (4).

I have just opened a PR for point 3 here.

I haven't been able to recreate point 4, was there anything else you did to get it? 🤔

Not really I think. It's whenever my current plan is a yearly plan -> I switch to monthly billing -> hover the disabled "change to monthly" button -> switch back to yearly billing -> hover the disabled "current plan" button.

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.

4 participants