-
Notifications
You must be signed in to change notification settings - Fork 323
Fix: Replace Twitter icon with new X branding across UI #529
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?
Fix: Replace Twitter icon with new X branding across UI #529
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 dependencies are upgraded from version 6.2.1 to 6.7.2. Twitter social media branding is replaced with X branding across footer and home page components, updating icon imports and accessibility labels accordingly. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 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: 1
🤖 Fix all issues with AI agents
In @package.json:
- Around line 17-20: The @fortawesome/free-regular-svg-icons dependency is
pinned to ^6.2.1 while the other FontAwesome packages use ^6.7.2; update the
version string for @fortawesome/free-regular-svg-icons in package.json to ^6.7.2
(the entry for "@fortawesome/free-regular-svg-icons") and then run your package
manager (npm install / yarn install) to refresh the lockfile so all FontAwesome
packages are aligned.
🧹 Nitpick comments (1)
src/components/Footer.jsx (1)
6-7: Consider consolidating the imports.Both lines import from the same package (
@fortawesome/free-brands-svg-icons). Consolidating them into a single import statement would be more idiomatic.♻️ Proposed refactor
-import { faDiscord, faGithub, faGitlab } from '@fortawesome/free-brands-svg-icons' -import { faXTwitter } from '@fortawesome/free-brands-svg-icons'; +import { faDiscord, faGithub, faGitlab, faXTwitter } from '@fortawesome/free-brands-svg-icons'
📜 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
🔇 Additional comments (3)
src/components/Footer.jsx (1)
49-51: LGTM! Icon and accessibility label updated correctly.The Twitter icon has been successfully replaced with the X branding, and the aria-label has been appropriately updated from "Follow on Twitter" to "Follow on X".
src/pages/index.jsx (2)
9-14: LGTM! Clean import structure.The import correctly includes
faXTwitteralongside other brand icons in a well-formatted multi-line import statement.
91-95: Icon and accessibility label updated correctly.The X icon and aria-label have been properly updated to reflect the new branding. No remaining faTwitter imports or "Follow on Twitter" text found in the codebase. IdeaLayout.jsx does not require Twitter/X branding updates.
| "@fortawesome/fontawesome-svg-core": "^6.7.2", | ||
| "@fortawesome/free-brands-svg-icons": "^6.7.2", | ||
| "@fortawesome/free-regular-svg-icons": "^6.2.1", | ||
| "@fortawesome/free-solid-svg-icons": "^6.2.1", | ||
| "@fortawesome/free-solid-svg-icons": "^6.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
🏁 Script executed:
cat -n package.json | head -25Repository: AOSSIE-Org/website
Length of output: 1002
🌐 Web query:
Font Awesome 6.7.2 breaking changes compatibility 6.2.1
💡 Result:
Short answer: there are no large deliberate breaking changes between 6.2.1 and 6.7.2, but you should test when upgrading because (a) Font Awesome v6 introduced some style/name changes back in the 6.x line (aliases exist to preserve older names) and (b) several small fixes/asset changes were made through 6.7.x that can affect edge cases (CSS/SCSS class assumptions, a minification bug, and a duotone SCSS var). Actionable notes:
- Review the “What’s Changed / Upgrade to Version 6” guide (covers style/name changes and aliases used for compatibility). [1]
- 6.7.2 fixes a minification bug (could affect pages using jQuery/older Safari), removes a hard-coded "fa" in SCSS that could affect showing v4 icons, and avoids defining a --fa--fa duotone var in the free build—test any custom SCSS/CSS that relied on those behaviors. [2][3]
Recommendation: run your app’s icon/CSS test-suite (or a quick smoke test of pages using Font Awesome) after upgrading; if you rely on older icon names/styles, keep aliases or explicitly update to the new names per the upgrade docs. [1][2]
Sources:
- Font Awesome “What’s Changed / Upgrade to Version 6” docs. [1]
- Font Awesome releases / changelog (6.7.2). [2]
- Distribution changelog noting 6.7.2 fixes (minification, SCSS hard-coded "fa", duotone var). [3]
🌐 Web query:
faXTwitter icon Font Awesome free-brands-svg-icons 6.7.2
💡 Result:
Yes — Font Awesome 6.7.2 includes the X (formerly Twitter) brand icon as "x-twitter". Use the brands class name fa-x-twitter (e.g. ). [1][2][3]
Sources:
- Iconify listing for fa6-brands:x-twitter. [1]
- Font Awesome 6.7.2 brands pack listing. [2]
- Example usage showing . [3]
References:
[1] Iconify — x twitter (fa6-brands).
[2] AllSVGIcons — Font Awesome 6 Brands (v6.7.2).
[3] Bootstrap Studio forum discussion (example usage).
Align @fortawesome/free-regular-svg-icons version with other FontAwesome packages.
Version 19 is at ^6.2.1 while lines 17, 18, and 20 use ^6.7.2. Although FontAwesome v6 maintains backward compatibility through aliases (no large deliberate breaking changes between 6.2.1 and 6.7.2), aligning all packages to ^6.7.2 ensures consistency and avoids potential edge-case issues with CSS/SCSS changes introduced in minor versions.
Proposed fix
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-brands-svg-icons": "^6.7.2",
- "@fortawesome/free-regular-svg-icons": "^6.2.1",
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",🤖 Prompt for AI Agents
In @package.json around lines 17 - 20, The @fortawesome/free-regular-svg-icons
dependency is pinned to ^6.2.1 while the other FontAwesome packages use ^6.7.2;
update the version string for @fortawesome/free-regular-svg-icons in
package.json to ^6.7.2 (the entry for "@fortawesome/free-regular-svg-icons") and
then run your package manager (npm install / yarn install) to refresh the
lockfile so all FontAwesome packages are aligned.
Issue(#465 #529)
@cr-arya-2024
Twitter icon was still showing the old bird logo in multiple UI sections instead of the new X branding.
Solution
Replaced the old
faTwittericon withfaXTwitterto reflect the updated X (Twitter) brand identity.Files Changed
(Updated all occurrences where the Twitter icon was used)
Changes Summary
faTwittertofaXTwitterResult
All Twitter icons are now consistently displayed as the new X logo across the application.
Summary by CodeRabbit
Chores
Style
✏️ Tip: You can customize this high-level summary in your review settings.