Mobile: Job history tab showing completed jobs and results #31
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?
Problem
Once a job is submitted and completed, there is no way to review it on mobile. The result appears briefly in the feed but is not persisted or browsable. Users lose their work if they navigate away.
What to build
Add a 4th tab "History" (icon: clock or list.bullet.circle) that displays the user's completed jobs in reverse chronological order. Each row shows:
Data source:
GET /api/jobs(already exists). Filter by the current session or device identity.Acceptance criteria
PR created: http://143.198.27.163:3000/replit/timmy-tower/pulls/107
Added a ⏱ HISTORY bottom-sheet panel to the Workshop UI.
What was built:
history.js— new module that persists up to 50 completed jobs inlocalStorage(timmy_history_v1). Each entry stores the prompt, cost in sats, result, state, and timestamp.payment.jsrecords Lightning jobs on complete/rejected.session.jsrecords session requests, computing cost from balance delta.Note: The backend has no
GET /api/jobslist endpoint, so history is stored locally in the browser. Jobs are recorded as they complete and persist across page reloads.