Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedPull request was closed or merged during review WalkthroughAdds a new Support Policy page and accompanying typed data module, updates vertical spacing on the Terms page, and adds a Vercel redirects configuration for the site application. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
apps/site/src/app/support-policy/page.tsx (1)
4-96: Consider extracting data arrays to a dedicated data file.The terms page follows a pattern of separating content data into
@/data/terms. For consistency and easier content management, you could move these arrays to@/data/support-policy.ts. That said, co-locating them here works fine for a single-page use case.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/site/src/app/support-policy/page.tsx` around lines 4 - 96, Move the inline data arrays (supportChannels, responseTimes, severityLevels, publicHolidays) out of page.tsx into a new module (e.g., export them from a new "@/data/support-policy.ts") and replace the local declarations with imports in page.tsx; ensure you export each array by name from the new file and update any references in page.tsx to use the imported symbols so the page continues to render unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/site/src/app/support-policy/page.tsx`:
- Line 183: The Discord link uses an insecure http URL; update the anchor for
"Discord" (the <a href="http://pris.ly/discord">Discord</a> instance) to use
https by changing the href to "https://pris.ly/discord" so the external link is
requested over TLS.
---
Nitpick comments:
In `@apps/site/src/app/support-policy/page.tsx`:
- Around line 4-96: Move the inline data arrays (supportChannels, responseTimes,
severityLevels, publicHolidays) out of page.tsx into a new module (e.g., export
them from a new "@/data/support-policy.ts") and replace the local declarations
with imports in page.tsx; ensure you export each array by name from the new file
and update any references in page.tsx to use the imported symbols so the page
continues to render unchanged.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b65c39d3-cab6-489d-b635-1043c9de815b
📒 Files selected for processing (3)
apps/site/src/app/support-policy/page.tsxapps/site/src/app/terms/page.tsxapps/site/vercel.json
Extract support policy content data into a shared module and update the Discord link to HTTPS for safer external navigation. Made-with: Cursor
Summary by CodeRabbit
New Features
Chores
Style