-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Website: Generic FAQ for fundraisers #979
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughThe pull request introduces significant updates to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Visit the preview URL for this PR (updated for commit de1714b): https://si-admin-staging--pr979-sandino-fundraiser-g-kma4j6ll.web.app (expires Tue, 17 Dec 2024 14:56:07 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: b7b0969384059dce6ea8fad1ee1d1737e54e6676 |
Direct link to a test campaign: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
shared/locales/en/website-faq.json (1)
203-234
: Consider reducing content duplication.The campaign section contains questions that are duplicated from other sections:
- "What are Direct Cash Transfers?" (duplicated from UBI section)
- "Why Sierra Leone?" (duplicated from recipients section)
Consider using a shared content structure or references to avoid maintaining duplicate content.
shared/locales/fr/website-faq.json (1)
207-238
: Consider using content references instead of duplicationThe campaign section reuses content from other sections. Consider implementing a content reference system to avoid maintenance overhead when the source content needs updates.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (5)
shared/locales/de/website-faq.json
(3 hunks)shared/locales/en/website-faq.json
(2 hunks)shared/locales/fr/website-faq.json
(2 hunks)shared/locales/it/website-faq.json
(2 hunks)website/src/middleware.ts
(1 hunks)
🔇 Additional comments (7)
website/src/middleware.ts (1)
49-50
: LGTM: New redirection case follows existing pattern.
The implementation is consistent with other redirection cases.
shared/locales/en/website-faq.json (2)
107-113
: LGTM: Improved clarity in recipient selection criteria.
The updated text clearly states the age requirement and income criteria, with a helpful link to partners.
Line range hint 235-252
: LGTM: Clear and comprehensive campaign-specific FAQ.
The campaign-ismatu section effectively explains:
- Collaboration details
- Fund distribution mechanism
- Selection criteria for Ebola survivors
shared/locales/de/website-faq.json (1)
111-117
: LGTM: German translation accurately mirrors English content.
The translation maintains consistency with the English version while being culturally appropriate.
Also applies to: 207-238, 239-252
shared/locales/fr/website-faq.json (1)
111-117
: LGTM: Enhanced transparency with partner information
The addition of the partners link improves transparency around the beneficiary selection process.
shared/locales/it/website-faq.json (2)
111-117
: LGTM: Consistent with French locale
The changes maintain consistency with the French version while preserving proper Italian localization.
207-238
: LGTM: Well-translated campaign information
The campaign section maintains structural consistency with the French version while providing natural Italian translations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
website/src/app/[lang]/[region]/(website)/campaign/[campaign]/page.tsx (1)
Line range hint
316-351
: LGTM with minor security enhancement suggestionsThe FAQ section implementation is well-structured with proper type safety and accessibility. Consider these security enhancements for external links:
-<Link href={link.href} target="_blank" rel="noreferrer" className="no-underline"> +<Link href={link.href} target="_blank" rel="noopener noreferrer" className="no-underline">Add
noopener
to prevent potential exploitation ofwindow.opener
API when opening external links.🧰 Tools
🪛 Biome (1.9.4)
[error] 337-337: Avoid passing content using the dangerouslySetInnerHTML prop.
Setting content using code can expose users to cross-site scripting (XSS) attacks
(lint/security/noDangerouslySetInnerHtml)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
website/src/app/[lang]/[region]/(website)/campaign/[campaign]/page.tsx
(3 hunks)
🔇 Additional comments (1)
website/src/app/[lang]/[region]/(website)/campaign/[campaign]/page.tsx (1)
28-28
: LGTM: Import statement is correctly placed
The addition of the Next.js Link component import is appropriate for the new FAQ links feature.
Summary by CodeRabbit
New Features
Bug Fixes
Chores