Skip to content

Add checkbox to hide completed milestones#31

Merged
nitrocode merged 2 commits into
mainfrom
copilot/add-hide-completed-milestones
Apr 22, 2026
Merged

Add checkbox to hide completed milestones#31
nitrocode merged 2 commits into
mainfrom
copilot/add-hide-completed-milestones

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

Users had no way to filter out already-triggered milestones, making it harder to focus on what's still upcoming.

Changes

  • index.html — Adds a <label>/<input type="checkbox"> above the milestones grid
  • styles.css — Styles the filter label; adds .milestones-grid.hide-completed .milestone-card.triggered { display: none; } to suppress triggered cards via CSS
  • script.js — In init(), wires a change listener on #hideCompletedMilestones that toggles .hide-completed on #milestonesGrid; works correctly with the live RAF loop since updateCounters adds .triggered dynamically

Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/fbc5adbd-ea76-4925-a49c-323b72351b1c

Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

👁️ PR Preview

🚀 Open Preview

Deployed from commit b8fb906 · Updates on every push to this PR
(Preview is removed automatically when the PR is closed.)

@nitrocode nitrocode merged commit 6e15bda into main Apr 22, 2026
3 checks passed
@nitrocode nitrocode deleted the copilot/add-hide-completed-milestones branch April 22, 2026 15:09
github-actions Bot added a commit that referenced this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants