You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 07b4e8b
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: implement AI Guilt-O-Meter (Phase 3 PRD #2) (#106)
-**Problem:** Phase 3 PRD #2 (AI Guilt-O-Meter) was the next unimplemented low-effort high-impact feature; the site lacked a persistent emotional hook to keep sessions engaged past the initial counter shock.
150
+
-**Approach:** Added `GUILT_LABELS` constant and `getGuiltLabel(pct)` pure function to `death-clock-core.js` for unit-testability; created `src/js/22-guilt-meter.js` with `initGuiltMeter()` / `updateGuiltMeter()` updating on the existing 1s interval; added HTML `<progress>` element with ARIA attributes and a share button; renamed `22-boot.js` → `23-boot.js` to maintain strict sequential file ordering; added the `certified_hypocrite` badge to `BADGE_DEFS`.
151
+
-**Learning:** Progress bar fill transitions in CSS require `appearance: none` plus browser-prefixed pseudo-elements (`::-webkit-progress-value`, `::-moz-progress-bar`) to render correctly across Chromium and Firefox. Always add both. (→ CSS)
#### PR #107 — fix: extinction countdown ticks down by 2 seconds instead of 1
148
157
149
158
-**Problem:** The extinction countdown header displayed the seconds decreasing by ~2 per tick instead of 1, because `updateExtinctionCountdown` used `tokensRemaining / currentRate` (linear approximation) while `getCurrentTokens` uses an exponentially-growing integral model.
@@ -153,7 +162,7 @@ Entries are grouped by release. Add new entries at the top of the appropriate re
-**Problem:** The site had no daily-rotating content to drive return visits; Phase 3 PRD #1 (Token Horoscope) was the highest-impact lowest-effort unimplemented feature.
159
168
-**Approach:** Added `HOROSCOPE_TEMPLATES` (30 entries) and `getDailyHoroscope(nowMs, templates)` pure function to `death-clock-core.js`; wired up a new `src/js/21-horoscope.js` DOM module with `<details>/<summary>` collapse, localStorage date tracking, and a share button reusing `openSharePopup()`.
Copy file name to clipboardExpand all lines: src/js/14-badges.js
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,8 @@
29
29
{id: 'lights_out',icon: '☠️',name: 'Lights Out',desc: 'Replaced every human worker. Fully automated.',type: 'manual'},
30
30
// Witness badges
31
31
{id: 'witness',icon: '👁️',name: 'Witness',desc: 'Stayed to watch a milestone get crossed in real time.',type: 'manual'},
32
+
// Guilt-O-Meter badge
33
+
{id: 'certified_hypocrite',icon: '\uD83D\uDE2C',name: 'Certified Hypocrite',desc: 'Watched the apocalypse for 5 minutes without doing anything about it.',type: 'manual'},
0 commit comments