SaaS · Product Design · AI
Valence is a design editor from Ionic Studio. Designers build tokens, components and prototypes in it, and work with an AI assistant, also called Valence, in a chat bar. Each prompt uses credits, and when they run out the chat stops.
Valence had no way to tell you when your credits were running out, or what to do about it. Working directly with the founders and engineers, I designed that experience from scratch in Figma, then built it in the working app myself using Claude Code: how usage shows up, what happens at the limit, how people subscribe or buy more credits, and how they know it worked.
The main interaction happens in the chat, so that's where the experience lives.
01 · Warn
A small ring in the chat bar shows credits at a glance. At 90%, an amber notification appears with a direct link to get more credits. At the limit, a blocking notification disables the chat box and prompts you to either upgrade, buy more credits, or wait until your limit resets.
Normal usage
Ring 10% filled.
90% used
An amber notice sits right above the prompt, with a way to get more credits.
Out of credits
The notice stays in the same place, so nothing jumps around, and the prompt box is replaced by a clear explanation.
02 · Choose
From the notice, people land on Plan & Billing with two ways to keep going: subscribe to Pro, or buy credits.
1Subscribe to Pro
2Buy credits
Plan & Billing: subscribe to Pro, or buy credits.
Pro is $20 a month and includes 1,000 credits. When the purchase lands, the plan card takes the "Current plan" mark with a check and a shimmer, and the balance counts up.
The "Current plan" mark moves from Starter to Pro, with a check and a shimmer.
The balance counts up to the new total, with a "+1,000 credits added" chip.
A top-up is a one-time purchase for people who don't want a subscription: 200 or 1,000 credits that carry over. The balance counts up and a chip confirms the amount.
The balance counts up, with a "+200 credits added" chip.
Full flow
The payment flow is simulated for the prototype. The checkout runs in a sandbox, and personal details in the recordings are blurred.
Outcome
Valence now has a complete credit and billing experience, from the first warning to the confirmation.
I built two versions of the flow: one with settings as a modal, and one with settings as a page. After reviewing both, the team chose the page. They are still finishing the app, and a beta is planned for the end of the year.