Commit 4699145
Stop auto-re-mining; persist deployed dashboards across runs
Three coordinated changes so a dashboard, once built, stays valid
indefinitely unless explicitly refreshed:
1. CI: actions/cache for cloudflare/public/*.html across runs
(single shared key) — wrangler deploy replaces the assets dir,
so without this each single-user run would wipe every other
user's deployed HTML. With this, runs restore the full snapshot,
add/refresh their own user, and write back the union.
2. CI: cron / push runs skip users that already have a deployed
HTML. Only single-user dispatches (with inputs.user set) ever
re-mine an existing user.
3. Worker: /api/refresh checks if /<user>.html exists via the
ASSETS binding and returns {status: "already_deployed"} unless
?force=1 is passed. Loading page reloads on this status.
4. Template: footer "↻ Refresh stats" button calls
/api/refresh?user=X&force=1 — the only path to re-mining an
already-deployed user.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 082b5d6 commit 4699145
3 files changed
Lines changed: 125 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
| |||
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
78 | | - | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
87 | | - | |
88 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
89 | 117 | | |
90 | 118 | | |
91 | 119 | | |
92 | 120 | | |
93 | 121 | | |
| 122 | + | |
94 | 123 | | |
95 | 124 | | |
96 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
66 | 91 | | |
67 | | - | |
68 | | - | |
| 92 | + | |
| 93 | + | |
69 | 94 | | |
70 | 95 | | |
71 | 96 | | |
| |||
529 | 554 | | |
530 | 555 | | |
531 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
532 | 563 | | |
533 | 564 | | |
534 | 565 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
599 | 615 | | |
600 | 616 | | |
601 | 617 | | |
| |||
758 | 774 | | |
759 | 775 | | |
760 | 776 | | |
| 777 | + | |
761 | 778 | | |
762 | 779 | | |
763 | 780 | | |
| |||
1496 | 1513 | | |
1497 | 1514 | | |
1498 | 1515 | | |
1499 | | - | |
| 1516 | + | |
| 1517 | + | |
1500 | 1518 | | |
1501 | | - | |
1502 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1503 | 1560 | | |
1504 | 1561 | | |
1505 | 1562 | | |
| |||
0 commit comments