@growth-operations/ui-shared 1.37.2 → 1.37.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/creditDisplay.js +5 -4
package/package.json
CHANGED
package/src/lib/creditDisplay.js
CHANGED
|
@@ -383,7 +383,7 @@ function trialStateOf(ent, { appName } = {}) {
|
|
|
383
383
|
// clockless free accounts keep the generic pre-top-up line.
|
|
384
384
|
liveClock: daysLeft != null,
|
|
385
385
|
title: "You're out of credits",
|
|
386
|
-
body: `You have used ${used}/${granted} free credits. Select
|
|
386
|
+
body: `You have used ${used}/${granted} free credits. Select a paid plan to continue use of ${name}.`,
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
if (daysLeft != null) {
|
|
@@ -397,9 +397,10 @@ function trialStateOf(ent, { appName } = {}) {
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
// Trial states map onto the banner shape with the shared support footer and a
|
|
400
|
-
// Billing-tab CTA (the copy asks for a plan
|
|
401
|
-
//
|
|
402
|
-
// are RED (they stop the app), trial-active is
|
|
400
|
+
// Billing-tab CTA (the copy asks for "a paid plan" — never "below": on Home
|
|
401
|
+
// there are no plans below the banner — so the button routes to the picker).
|
|
402
|
+
// out-of-credits/trial-ended are RED (they stop the app), trial-active is
|
|
403
|
+
// YELLOW — Andrew 2026-10-13.
|
|
403
404
|
const TRIAL_STATE_VARIANT = {
|
|
404
405
|
out_of_credits: "error",
|
|
405
406
|
trial_ended: "error",
|