feat(web): changelog page#186
Conversation
|
@anirudhprmar is attempting to deploy a commit to the maxktz Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
📝 WalkthroughWalkthroughA changelog feature is added that fetches GitHub releases (optional token), renders sanitized Markdown release bodies with collapsible UI and contributor links, provides sidebar/release/footer components, and integrates the changelog route into navigation and sitemap. ChangesChangelog Feature with GitHub Release Integration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Poem
🚥 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 unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/web/src/components/changelog/changelog-footer.tsx`:
- Line 7: Remove the dead ThemeToggle code by deleting the unused import
"ThemeToggle" and removing the commented-out JSX that references it (the
commented block around ThemeToggle near the bottom of the component, referenced
around the commented lines 82-85); ensure no other references to ThemeToggle
remain in the changelog-footer component and run the linter to confirm the
unused-import warning is resolved.
In `@apps/web/src/components/changelog/changelog-release.tsx`:
- Line 3: Remove the unused Badge import from the module: in
changelog-release.tsx delete the imported symbol Badge from the import statement
(or remove the entire import line if it only imported Badge) so the file no
longer references the unused Badge symbol and lint warnings disappear.
In `@apps/web/src/lib/github.ts`:
- Around line 5-11: The fetch to GitHub that assigns to res currently has no
timeout; update the call to use an AbortSignal with AbortSignal.timeout (e.g.,
create a signal via AbortSignal.timeout(5000)) and pass it in the fetch options
so the request aborts after a reasonable period; ensure the signal is added
alongside next and headers in the same options object and handle the potential
abort by catching the error where this fetch is invoked (the fetch call that
sets const res and uses env.GITHUB_TOKEN/Accept headers).
In `@apps/web/src/lib/html-parser.tsx`:
- Line 10: Remove the unused import "Button" from the module: delete the import
specifier Button from the import statement that currently reads import { Button
} from "`@/components/ui/button`"; (or remove the entire import if that was the
only specifier), ensuring no references remain to the Button symbol in the file
(check functions/classes like any exported parser or component in
html-parser.tsx) so lint errors are resolved.
- Line 7: The rehypeRaw plugin is being used to parse untrusted HTML (body)
which creates an XSS risk; update the rehype plugins array that includes
rehypeRaw to immediately follow it with rehypeSanitize (imported from
"rehype-sanitize") so sanitized output is produced, and ensure the sanitization
plugin is applied before passing HTML into the render path (look for the plugins
array where rehypeRaw is referenced). Also remove the unused Button import (the
`Button` symbol) from this file to clean up unused imports.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 13b7830f-13e9-48d4-8539-6030c68beb60
⛔ Files ignored due to path filters (1)
bun.lockis excluded by!**/*.lock
📒 Files selected for processing (15)
apps/web/src/app/changelog/layout.tsxapps/web/src/app/changelog/page.tsxapps/web/src/app/sitemap.tsapps/web/src/components/changelog/changelog-footer.tsxapps/web/src/components/changelog/changelog-release.tsxapps/web/src/components/changelog/changelog-sidebar.tsxapps/web/src/components/changelog/release-contributors.tsxapps/web/src/components/layout/navigation-bar.tsxapps/web/src/components/sections/footer-section.tsxapps/web/src/env.jsapps/web/src/lib/consts.tsapps/web/src/lib/github.tsapps/web/src/lib/html-parser.tsxapps/web/src/lib/releases.tspackage.json
Issue : #163
added changelog page
preview changelog:
https://github.com/user-attachments/assets/0abe8283-7662-430a-aeb6-d63cdee3d977
updated navbar and footer :


Summary by CodeRabbit