feat: remove milestone countdown alert banner#78
Conversation
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/df6a25d5-46fc-41b6-92fb-a56d475c07c2 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughFool, listen up! This change removes the milestone countdown alert banner functionality from the entire application. The banner UI elements, JavaScript countdown logic, and associated CSS styling are all stripped out, leaving only the flash-on-crossing overlay behavior for milestone achievements. Changes
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes I pity the fool who leaves dead code hanging around! These changes are straightforward removals and simplifications across three related files. The refactored JavaScript logic is direct—checking milestone crossing and triggering the flash, no more banner shenanigans. Homogeneous pattern of cleanup makes it fool's work to review, sucka! 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
👁️ PR Preview
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #78 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 233 233
Branches 107 107
=========================================
Hits 233 233
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@copilot resolve the merge conflicts in this pull request |
…in-to-midnight-banner # Conflicts: # script.js # styles.css Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Resolved in 205e6dd. The conflict was caused by main (#80) removing generated files ( |
The fixed-position top banner that appeared ~2 minutes before a milestone crossing was visually intrusive without adding meaningful value.
Changes
src/js/19-milestone-alert.js: Removed countdown banner logic (MILESTONE_ALERT_THRESHOLD_SECS, banner DOM queries, threshold window display/update). Retained the milestone flash overlay (the modal dialog triggered on actual crossing) and thewitnessbadge award.index.html: Removed#milestone-alert-bannerelement and its comment.styles/social.css: Removed.milestone-alert-banner,.milestone-alert-icon,.milestone-alert-msg,.milestone-alert-countdown,@keyframes alert-slide-down,@keyframes countdown-tick, and their reduced-motion/responsive overrides.Summary by CodeRabbit