feat: changelog — render markdown links, collapse older releases, fix date parsing#83
Conversation
…ases, fix date parsing Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/5092cea8-eedb-4847-8dc3-3be7d2b469f0 Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/5092cea8-eedb-4847-8dc3-3be7d2b469f0 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 (4)
📝 WalkthroughWalkthroughFool, listen up! This PR be fixing up the changelog parsing to recognize both Keep-a-Changelog and release-please formats with optional URLs and flexible date placement! And I pity the fool who don't appreciate the new changelog rendering with markdown link support, a toggle for older releases, and fresh CSS styling to make it look fly! Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 #83 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 242 242
Branches 109 109
=========================================
Hits 242 242
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:
|
Changelog items were displaying raw markdown syntax (
[#79](url)) as literal text, and all releases were rendered at once making the tab overwhelming.Changes
Markdown link rendering (
src/js/08-static-renders.js)mdLinksToHtml()that converts[text](url)patterns to<a>tags; onlyhttps?://URLs are linked, everything else falls back to escaped textTruncated display with expand/collapse (
src/js/08-static-renders.js,styles/content-pages.css)Date parsing fix (
scripts/build-changelog.js)## [1.5.0](url) (2026-04-26)rather than## [1.5.0] - 2026-04-26; the regex now handles both formats, so dates were previously alwaysnullTests (
tests/script.test.js)httpsURL safety (nohref="javascript:"), button presence, expand/collapse toggle, and single-release edge caseExample of what a changelog item now looks like rendered:
Summary by CodeRabbit
New Features
Style
Tests