Add a CSV export for the Texas Hold'em hand history log

A dedicated dealer needs a paper trail that outlives the browser tab, not
just a scrollable in-app panel — the Export CSV button downloads the full
resolved-pot log (hand #, time, pot, payouts) for recordkeeping or a
disputed chip count after the session ends.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb
This commit is contained in:
2026-08-31 17:26:11 -06:00
co-authored by Claude Sonnet 5
parent 68e263f325
commit d168fedf1f
5 changed files with 81 additions and 1 deletions
@@ -82,4 +82,9 @@ document.addEventListener("DOMContentLoaded", () => {
hooks.save(state);
Render.renderAll();
});
document.getElementById("exportHistoryBtn").addEventListener("click", () => {
if ((state.handHistory || []).length === 0) return;
HandHistoryExport.download(state.handHistory);
});
});