Session Power Meter: 3D Balance Visualizer #17
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?
What & Why
The session balance is currently a flat number in the session panel. A 3D 'power meter' — a lightning bolt or glowing orb that fills proportionally to the session balance and pulses when a payment is received — makes the economic layer viscerally understandable. Visitors see their energy level at a glance.
Done looks like
Out of scope
Tasks
session_balance_updateWebSocket events; animate fill level and trigger pulse effects on payment received / drain on job cost.Relevant files
the-matrix/js/world.jsthe-matrix/js/session.jsthe-matrix/js/effects.jsthe-matrix/js/interaction.jsthe-matrix/js/websocket.jsPR created: http://143.198.27.163:3000/replit/timmy-tower/pulls/109
Implemented the 3D session power meter:
power-meter.js(new) — glowing orb with transparent shell, inner fill orb that scales with balance (0→1), lightning bolt overlay, point light, DOM text label. Color gradient: red → yellow → cyan. Pulses on payment (fill) or job deduction (drain).session.js— drives meter visibility/fill on all balance change paths; exportsopenSessionPanel()for click-to-open; tracks session max sats.websocket.js— handlessession_balance_updateWS events.interaction.js— addsregisterClickTarget()supporting FPS, non-lock desktop, and mobile tap modes.main.js— wires init/update/dispose + registers click target.