-
Notifications
You must be signed in to change notification settings - Fork 334
Update Twitter logo to 'X' in the website #519 #531
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
base: main
Are you sure you want to change the base?
Conversation
|
Someone is attempting to deploy a commit to the AOSSIE Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughFontAwesome package dependencies were upgraded to newer versions. Twitter icon references were migrated from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 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. ✨ Finishing touches
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/pages/index.jsx (1)
9-14: Keep the label consistent with the “X” icon.On Line 92 the
aria-labelstill says “Follow on Twitter” while Line 96 rendersfaXTwitter.Proposed diff
- <Link - aria-label="Follow on Twitter" + <Link + aria-label="Follow on X (Twitter)" className="text-zinc-500 transition hover:text-[#00843D] dark:text-zinc-400 dark:hover:text-yellow-400" href="https://twitter.com/aossie_org" > <FontAwesomeIcon icon={faXTwitter} size="2xl" /> </Link>Also applies to: 92-97
🤖 Fix all issues with AI agents
In @package.json:
- Around line 17-22: The FontAwesome packages are version-mismatched:
@fortawesome/free-brands-svg-icons is ^7.1.0 while
@fortawesome/fontawesome-svg-core, free-regular-svg-icons, free-solid-svg-icons
and @fortawesome/react-fontawesome are ^6.2.1; fix by making all FontAwesome
packages the same major version — either downgrade
@fortawesome/free-brands-svg-icons to ^6.2.1, or upgrade
@fortawesome/fontawesome-svg-core, @fortawesome/free-regular-svg-icons,
@fortawesome/free-solid-svg-icons and @fortawesome/react-fontawesome to ^7.x
consistently in package.json, then run your package manager (npm/yarn/pnpm) to
reinstall and verify no peer dependency warnings.
In @src/components/Footer.jsx:
- Line 6: The aria-label for the social link still reads "Follow on Twitter"
while the icon import and rendering use faXTwitter; update the aria-label (and
any visible copy) in the Footer component so it matches the new brand (e.g.,
"Follow on X" or "Follow on X (formerly Twitter)") and ensure any tooltip/title
text is updated too; look for the JSX element that references the imported
faXTwitter in src/components/Footer.jsx and replace the old label text
accordingly.
🧹 Nitpick comments (1)
src/pages/index.jsx (1)
22-27: Avoid mutatingprojectsvia in-placesort(); clone + shuffle safely.Line 25 mutates the imported
projectsarray (projects.sort(...)), which can have surprising side effects elsewhere. Also,sort(() => 0.5 - Math.random())is not a reliable shuffle.Proposed diff
useEffect(() => { - setRandomProjects(projects.sort(() => 0.5 - Math.random()).slice(0, 3)) + const shuffled = [...projects] + for (let i = shuffled.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)) + ;[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]] + } + setRandomProjects(shuffled.slice(0, 3)) }, [])
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (3)
package.jsonsrc/components/Footer.jsxsrc/pages/index.jsx
| "@fortawesome/fontawesome-svg-core": "^6.2.1", | ||
| "@fortawesome/free-brands-svg-icons": "^6.2.1", | ||
| "@fortawesome/free-brands-svg-icons": "^7.1.0", | ||
| "@fortawesome/free-regular-svg-icons": "^6.2.1", | ||
| "@fortawesome/free-solid-svg-icons": "^6.2.1", | ||
| "@fortawesome/react-fontawesome": "^0.2.0", | ||
| "@fortawesome/react-fontawesome": "^3.1.1", | ||
| "@headlessui/react": "^1.7.2", |
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.
🧩 Analysis chain
🌐 Web query:
@fortawesome/free-brands-svg-icons v7 peer dependencies compatibility fontawesome-svg-core v6
💡 Result:
Short answer: @fortawesome/free-brands-svg-icons v7 requires fontawesome-svg-core v7 — it is not compatible with fontawesome-svg-core v6. See Font Awesome's compatibility/upgrade notes and their repo CI/compat matrix which excludes v7 icon packages for core v6. [1][2]
Sources:
- Font Awesome upgrade/docs (v7 compatibility notes). [1]
- FortAwesome repo CI/compat matrix showing v6 core excludes v7 icon packages. [2]
🌐 Web query:
@fortawesome/react-fontawesome 3.1.1 peer dependencies requirements fontawesome-svg-core
💡 Result:
@fortawesome/react-fontawesome@3.1.1 requires @fortawesome/fontawesome-svg-core with the range "~1 || ~6 || ~7" (i.e., compatible with Font Awesome core v1, v6 or v7). [1][2]
Sources:
- package.json (react-fontawesome) showing peerDependencies "~1 || ~6 || ~7". [1]
- @fortawesome/react-fontawesome (v3.1.1) package summary listing peerDependencies. [2]
🌐 Web query:
FontAwesome v7 v6 migration compatibility breaking changes
💡 Result:
Key breaking/compatibility changes when migrating from Font Awesome v6 → v7 (summary):
-
Sass/SCSS: switched to Dart Sass and @use; variable/mixin names lost the old fa- prefix (now namespaced when using @use). You must replace v6 Sass files and update variable/mixin references and compilation. [1]
-
CSS pseudo-elements / web-font rules: font-family rules changed — use the new CSS custom properties (e.g. var(--fa-font-solid)) instead of direct "Font Awesome 6 ..." declarations. Update any pseudo-element rules. [3]
-
Webfonts & glyphs: v7 font files differ; update embedded fonts or swap SVGs. Duotone ligature syntax changed and may require manual updates in design files. [5]
-
JS components: Font Awesome v7 JS components were designed to be backwards compatible with v6, but you must update the component files/packages to the v7 versions (npm packages / Kit). Use the v7 packages and remove old v6 packages first. [2]
-
Framework packages (example: Vue): v7 uses new package names and installs; remove old @fortawesome/vue-fontawesome and @fortawesome/fontawesome-svg-core entries and reinstall v7 packages (v6 icon packages remain compatible but can be updated). [4]
-
Upgrade helpers & shims: Font Awesome provides upgrade guides, shims (v*-shims.js) and v*-font-face.css helpers to ease migration if you can’t update all references at once. Consider using a Kit to preserve older-version compatibility while migrating. [6]
If you want, I can produce a checklist for your specific stack (plain CSS/webfonts, Sass, React/Vue, or SVG+JS).
Fix FontAwesome package version incompatibility.
You're mixing @fortawesome/free-brands-svg-icons@^7.1.0 with @fortawesome/fontawesome-svg-core@^6.2.1, which is not supported. The v7 icon packages require fontawesome-svg-core@^7.x and are incompatible with v6.
Either downgrade @fortawesome/free-brands-svg-icons to ^6.2.1 to match the rest of the FontAwesome suite, or upgrade all FontAwesome packages (core, solid, regular, brands, react-fontawesome) to v7.x.
🤖 Prompt for AI Agents
In @package.json around lines 17 - 22, The FontAwesome packages are
version-mismatched: @fortawesome/free-brands-svg-icons is ^7.1.0 while
@fortawesome/fontawesome-svg-core, free-regular-svg-icons, free-solid-svg-icons
and @fortawesome/react-fontawesome are ^6.2.1; fix by making all FontAwesome
packages the same major version — either downgrade
@fortawesome/free-brands-svg-icons to ^6.2.1, or upgrade
@fortawesome/fontawesome-svg-core, @fortawesome/free-regular-svg-icons,
@fortawesome/free-solid-svg-icons and @fortawesome/react-fontawesome to ^7.x
consistently in package.json, then run your package manager (npm/yarn/pnpm) to
reinstall and verify no peer dependency warnings.
| import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
| import { faEnvelope } from '@fortawesome/free-solid-svg-icons' | ||
| import { faDiscord, faGithub, faGitlab, faTwitter } from '@fortawesome/free-brands-svg-icons' | ||
| import { faDiscord, faGithub, faGitlab, faXTwitter } from '@fortawesome/free-brands-svg-icons' |
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.
Update the link label to match the new “X” icon (a11y/UX).
On Line 48 the aria-label still says “Follow on Twitter” while Line 49 renders faXTwitter. Consider updating the label (and optionally visible copy if any) to avoid confusing screen-reader users.
Proposed diff
- <Link aria-label="Follow on Twitter" className=' text-zinc-400 hover:text-[#00843D] dark:text-zinc-400 dark:hover:text-yellow-400 transition' href='https://twitter.com/aossie_org'>
+ <Link aria-label="Follow on X (Twitter)" className=' text-zinc-400 hover:text-[#00843D] dark:text-zinc-400 dark:hover:text-yellow-400 transition' href='https://twitter.com/aossie_org'>
<FontAwesomeIcon icon={ faXTwitter} size='xl' />
</Link>Also applies to: 48-50
🤖 Prompt for AI Agents
In @src/components/Footer.jsx at line 6, The aria-label for the social link
still reads "Follow on Twitter" while the icon import and rendering use
faXTwitter; update the aria-label (and any visible copy) in the Footer component
so it matches the new brand (e.g., "Follow on X" or "Follow on X (formerly
Twitter)") and ensure any tooltip/title text is updated too; look for the JSX
element that references the imported faXTwitter in src/components/Footer.jsx and
replace the old label text accordingly.
Summary by CodeRabbit
Chores
New Features
Updates
✏️ Tip: You can customize this high-level summary in your review settings.