Skip to content

feat(pricing): price extra AI credit packs at $5 one-time in the perpetual calculator - #560

Merged
vvlladd28 merged 1 commit into
thingsboard:developfrom
rusikv:feature/perpetual-calc-ai-credits-pricing
Jul 17, 2026
Merged

feat(pricing): price extra AI credit packs at $5 one-time in the perpetual calculator#560
vvlladd28 merged 1 commit into
thingsboard:developfrom
rusikv:feature/perpetual-calc-ai-credits-pricing

Conversation

@rusikv

@rusikv rusikv commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #553, which shipped with extra AI credit packs routing to the custom-pricing flow because no public list price existed at the time. The License Portal calculator prices them as a regular line item — one-time $5.00 per 1M-credit pack — so the website calculator now does the same:

  • New Extra AI Credits / Extra AI Credits Cost summary rows (matching the portal's layout); the cost joins the license subtotal, the total tooltip, and the prefilled contact message (Extra AI Credits: 1M ($5.00)).
  • The custom-pricing trigger is back to the single rule: total ≥ $24,998 (Offline Mode lands exactly on the threshold). Adding one AI pack now shows $5,004.00 instead of switching to "Get a personal price".
  • Helper copy updated: the "priced individually" sentence is dropped; the tooltip says a one-time fee applies to additional credits.
  • Analytics unchanged in shape — calculator_ai_credits still reports total packs; an AI-only bump now correctly reports calculator_plan: "Platform" with a numeric calculator_total.

Verification

astro check — 0 errors. Playwright end-to-end against the built calculator — 59/59 checks, including: +1 pack → $5,004.00 with both new rows and the priced contact message; a transient typed "0" leaves a three-pack $5,014.00 total and the settled GTM payload untouched; blur normalizes the field back to the included 5; threshold/Offline custom behavior unchanged.

Extra AI credit packs are a regular line item on the License Portal
(one-time $5 per 1M-credit pack), so the calculator now prices them
instead of routing any extra pack to the custom-pricing flow: new
Extra AI Credits / Extra AI Credits Cost summary rows, the cost joins
the license subtotal and the total tooltip, and the contact message
carries it. The custom threshold is unchanged — only a total ≥ $24,998
(or Offline Mode, which lands exactly on it) routes to Send request.
Helper copy updated accordingly ("priced individually" dropped; the
tooltip now says a one-time fee applies to additional credits).
@vvlladd28
vvlladd28 merged commit 494c4c1 into thingsboard:develop Jul 17, 2026
4 of 5 checks passed
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.

2 participants