Spaces:
Chris4K
/
Paused

Aksel Joonas Reedi commited on
Commit
c4ac4e6
·
unverified ·
1 Parent(s): 2715896

Replace orange JobsUpgradeDialog with sleek full-pane billing screen (#175)

Browse files

- Drop the HF-orange gradient bar, orange icon chip, and orange button.
Card now uses --panel/--border with a single high-contrast --text/--bg
primary button and a ghost secondary, matching the rest of the UI.
- Render as a full-pane fixed overlay rather than a small Dialog so the
chat is genuinely blocked while billing is required — the agent's
previous turn already ended on `tool_state_change(billing_required)`,
so the screen acts as the explicit "paused, waiting on you" state.
- Always show both actions side-by-side: "Add credits" (opens the HF
billing tab + arms the visibility-change auto-retry in ChatInput) and
"I've added credits" (calls the existing onRetry → resume message).
Removes the Topped-up? mode-flip; the visibility-change handler in
ChatInput continues to fire on tab refocus, unchanged.
- Keep the component name and props so ChatInput needs no changes.

1 file changed +124 -106
frontend/src/components/JobsUpgradeDialog.tsx+124-106