feat: add indicator of disabled check#1290
Conversation
Script size changes
Totals
|
There was a problem hiding this comment.
@The-9880 -- I'm cross-referencing the OAS Check schema (also 👏) and I noticed disableReason is always present in the schema which then showed me that reasonless checks have an empty string. My preference would be null, would that be a big deal to change?
What are the current strings we have that this field can be?
I'd also like for us to agree that the reason field is some sort of enum we can map to. Reasons for this are:
- i18n. The less English language strings we have coming from the API the easier it is for us to fully translate the app when we get round to it (which will be on the roadmap in FY27)
- Depending on the reason we can change the UI and potential messaging. In particular if we wanted to try and upsell if someone's checks were disabled because they hit the free tier limit.
@VikaCep -- works great. Maybe just add a simple test that if disableReason is present it gets rendered in the UI and if it is an empty string it doesn't?
Hey! I can absolutely change this to be The current only value we are using for this is |
Beautiful. Exactly what we want ❤️ @VikaCep can you make the changes so that we show a user-friendly message using something like a key/value map? |
For sure! Just pushed some updates :) |
Add UI hint for checks disabled due to free tier overage
Closes issue #1261
Summary
Implements a visual indicator for checks that have been disabled due to free tier overage. When the
disableReasonfield is populated on a check object, users will now see a clear orange "Disabled" badge with a tooltip explaining the reason.