[claude] Mobile: Job history tab showing completed jobs (#31) #107
Reference in New Issue
Block a user
Delete Branch "claude/issue-31"
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?
Fixes #31
What was done
Added a "⏱ HISTORY" bottom-sheet panel that persists and displays the user's completed jobs on mobile and desktop.
Changes
history.js(new) — localStorage-backed history store (timmy_history_v1, up to 50 entries). Renders job rows with: truncated prompt (2-line clamp), cost in sats / "free" / "rejected", relative timestamp ("2 min ago"), chevron indicator. Tap any row to expand the full result with a smooth CSSmax-heighttransition. Pull-to-refresh (drag down at top) and a REFRESH button.index.html— Added the History panel HTML (bottom sheet, slides up from below the input bar) and all CSS. Added⏱ HISTORYbutton to the top-button bar.payment.js— CallsaddHistoryEntry()when a Lightning job reachescompleteorrejectedstate, including cost fromcostLedger.session.js— CallsaddHistoryEntry()after each session request completes, computing cost from the balance delta.main.js— Imports and callsinitHistoryPanel()on first init.Notes
GET /api/jobslist endpoint). Jobs are recorded as they complete in this browser session and persist across page reloads.vite build— no errors.