-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[admin][UBP] Grant free credits to users in admin dashboard #14591
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
Comments
A reasonable option would be to reset the clock on their free tier so that they start with a fresh 500 credits. |
We should allow admins to do these things:
@jldec What is the order in which you want to see this in production? |
@svenefftinge priorities from product side are:
|
Unassigning myself, because we need input from @gitpod-io/product-design |
Also see #14367 |
From discussion with @gtsiolis
Alternative approach (if easier): NOTE: This credit grant mechanism may be suboptimal if the period is about to be reset, since unused free credits expire at the end of each cycle when the balance used goes back to 0. |
Adding below some visuals to help with the implementation. Cc @svenefftinge @jldec
FWIW:
See design specs. |
This looks super cool @gtsiolis! 🧡 The only suggestion I have is to show the full "audit log" entry instead of an excerpt. Perhaps make the log element or 'container' the same width as the 2 elements above it (balance used and cycle resets). |
Thanks @jimmybrancaccio! 🏇 Indeed, surfacing all the information sounds better. I deliberately added this with the text delimiter as this could out of the scope of this iteration. Alternatively, using a tooltip for the full note entry could be nice, as long as a user can hover and click any links inside the note. In any case, it could be interesting to also enforce a max character limit so that notes don't span much. This way we could surface all the note. Additionally, using a larger width for the dropdown could help. Full log entries with more details could be later on surfaced in #11469. |
@gtsiolis Tooltip would be great. Not having the full entry could make this somewhat pointless especially if the more useful information is at the end of the log entry which ends up getting truncated. If we do initially launch this with the log entry truncated we should make sure that anyone who leaves notes knows to put the important content first so it doesn't get truncated. |
@jimmybrancaccio Thinking about this again, I'd a) avoid the tooltip, b) increase dropdown width, c) use scrollable fixed-height dropdown as we do with workspace changes so that all information can be accessed for the first iteration. 🛹 Additionally, we can let users be conscious about this field by adding a placeholder text to prompt them for a short note or restrict the max length of the note to scale better in the UI. Cc @jldec @svenefftinge |
The credit notes would end up as a usage entry. So I propose we just show the whole usage data in a list. |
@svenefftinge I agree with having a separate usage detail list view, but I would split that out and try to finish the credit adjust first. I have created 2 issues for followup.
cc: @gtsiolis |
Sure, I meant to say that I will not add the dropdown part that @gtsiolis and @jimmybrancaccio were talking about. |
Sounds good, @svenefftinge!
Do we need any designs for this yet? We may also need to inform** admins that their submitted information on the note will be visible to team owners, or any other with access to team usage, right? ** by using the note placeholder or help text, or the alert on the modal. |
Yes & Yes! 😅 |
On it. ✋ |
I'm adding below another iteration of the designs taking into account the comment above in #14591 (comment). Feedback is welcome!
For surfacing this information, I tried adding the credit notes as a usage entry and include the whole information or a generic text.
Alternatively, we could use the billing page as the single source of truth so that it's easier for users to understand why they may be seeing a difference in the balance used, etc.
|
Looks great @gtsiolis! How would one see the credit notes for all time? I see it looks like the dropdown would only show the notes from the current billing cycle? |
Admins should be able to grant additional credits to users E.g. to unblock their usage if they had out-of-control prebuilds before switching to UBP.
Example here (internal)
The text was updated successfully, but these errors were encountered: