Workshop session mode UI — fund session panel + balance HUD + macaroon flow #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The session API (Mode 2) exists on the backend but the Workshop frontend has no UI for it. Users can only do per-job flows today.
Acceptance criteria
#session-panelPOST /api/sessions→ displays BOLT11 QR + copy buttonGET /api/sessions/:iduntilstate === "active"; on activation: stores{sessionId, macaroon, balanceSats}in localStorage, updates HUD to "Balance: N sats" + "⚡ Top Up" link, switches input bar label to "Ask Timmy (session active)…" with green pulse borderPOST /api/sessions/:id/requestwith macaroon; Timmy's response in speech bubble; balance ticks downOut of scope
Relevant files
the-matrix/index.htmlthe-matrix/js/session.js(new module)the-matrix/js/payment.jsthe-matrix/js/ui.jsDelegate
@kimiPR #55 created.
The session UI was already mostly implemented on main. This PR adds the two remaining gaps:
[ QR ]placeholders with actual BOLT11 QR code rendering usingqrcode-generatorAll acceptance criteria are now covered: fund session button, session panel with amount presets, BOLT11 QR + copy, stub-pay, 2s polling, localStorage restore, balance HUD, green pulse input bar, low-balance overlay, and per-job flow untouched.