-
Notifications
You must be signed in to change notification settings - Fork 334
replaced the old "Twitter icon and URL with Updated X icon" on homepage and footer (#519) #538
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?
replaced the old "Twitter icon and URL with Updated X icon" on homepage and footer (#519) #538
Conversation
|
@0105-sunny is attempting to deploy a commit to the AOSSIE Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughRebrands Twitter to X across Footer and Home (icon, URL, and accessible label), updates Home hero and project/statistics layout and adds a JSDoc block, adjusts Banner pattern visibility and Tailwind class ordering for large-screen rendering, and normalizes a trailing newline in IdeaLayout. No exported APIs or component signatures changed. Changes
Sequence Diagram(s)(Skipped — changes are UI/layout and branding edits without new multi-component control flow.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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-21: Update the FontAwesome dependencies in package.json so
versions are consistent: change "@fortawesome/free-regular-svg-icons",
"@fortawesome/free-solid-svg-icons", and "@fortawesome/fontawesome-svg-core" to
the same major version as "@fortawesome/free-brands-svg-icons" (e.g., "^7.1.0"),
and bump "@fortawesome/react-fontawesome" from "^0.2.0" to a current compatible
release (e.g., "^3.1.1"); then run npm/yarn install and verify the app builds
and icons render to ensure no breaking API changes.
🧹 Nitpick comments (1)
src/components/Footer.jsx (1)
48-50: LGTM with minor nit.Branding updates correctly implemented with proper
aria-label, URL, and icon changes.Minor nit: There's an extra space in
<Link aria-label(two spaces instead of one). Consider fixing for consistency with other Link elements in this file.🧹 Optional formatting fix
- <Link aria-label="Follow on X" className=' text-zinc-400 hover:text-[`#00843D`] dark:text-zinc-400 dark:hover:text-yellow-400 transition' href='https://x.com/aossie_org'> + <Link aria-label="Follow on X" className=' text-zinc-400 hover:text-[`#00843D`] dark:text-zinc-400 dark:hover:text-yellow-400 transition' href='https://x.com/aossie_org'>
| "@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", |
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:
#!/bin/bash
echo "=== Checking `@fortawesome/free-brands-svg-icons` 7.1.0 ==="
curl -s https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/7.1.0 2>/dev/null | jq '{version: .version, peerDependencies: .peerDependencies}' || echo "Failed to fetch version info"
echo ""
echo "=== Checking `@fortawesome/fontawesome-svg-core` versions ==="
curl -s https://registry.npmjs.org/@fortawesome/fontawesome-svg-core 2>/dev/null | jq '.versions | keys[-5:]' || echo "Failed to fetch versions"
echo ""
echo "=== Latest versions in NPM registry ==="
echo "free-brands-svg-icons latest:"
curl -s https://registry.npmjs.org/@fortawesome/free-brands-svg-icons/latest 2>/dev/null | jq '.version' || echo "Failed"
echo "fontawesome-svg-core latest:"
curl -s https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/latest 2>/dev/null | jq '.version' || echo "Failed"
echo "free-regular-svg-icons latest:"
curl -s https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/latest 2>/dev/null | jq '.version' || echo "Failed"
echo "free-solid-svg-icons latest:"
curl -s https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/latest 2>/dev/null | jq '.version' || echo "Failed"
echo "react-fontawesome latest:"
curl -s https://registry.npmjs.org/@fortawesome/react-fontawesome/latest 2>/dev/null | jq '.version' || echo "Failed"Repository: AOSSIE-Org/website
Length of output: 517
Align FontAwesome icon package versions.
The @fortawesome/free-brands-svg-icons is at ^7.1.0 while other icon packages (@fortawesome/free-regular-svg-icons, @fortawesome/free-solid-svg-icons) remain at ^6.2.1. This inconsistency across icon packages should be resolved by upgrading all icon packages to the same version (e.g., ^7.1.0), or documenting why free-brands-svg-icons requires a newer major version.
Additionally, @fortawesome/react-fontawesome at ^0.2.0 is significantly outdated (latest is 3.1.1); consider updating it as well to ensure compatibility with the FontAwesome icon packages.
🤖 Prompt for AI Agents
In `@package.json` around lines 17 - 21, Update the FontAwesome dependencies in
package.json so versions are consistent: change
"@fortawesome/free-regular-svg-icons", "@fortawesome/free-solid-svg-icons", and
"@fortawesome/fontawesome-svg-core" to the same major version as
"@fortawesome/free-brands-svg-icons" (e.g., "^7.1.0"), and bump
"@fortawesome/react-fontawesome" from "^0.2.0" to a current compatible release
(e.g., "^3.1.1"); then run npm/yarn install and verify the app builds and icons
render to ensure no breaking API changes.
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 `@src/pages/index.jsx`:
- Around line 79-83: The effect is mutating the imported projects array by
calling sort() directly; update the useEffect that calls setRandomProjects so it
first creates a shallow copy of projects (e.g., via spread or slice) and then
sorts that copy before slicing to pick 3 items—modify the code around useEffect,
setRandomProjects, and projects to sort a copy instead of mutating the original.
| useEffect(() => { | ||
| setRandomProjects(projects.sort(() => 0.5 - Math.random()).slice(0, 3)) | ||
| setRandomProjects( | ||
| projects.sort(() => 0.5 - Math.random()).slice(0, 3) | ||
| ) | ||
| }, []) |
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.
Avoid mutating the imported projects array.
Array.prototype.sort() mutates the original array in-place. Since projects is imported from a shared module, this mutation persists across renders and could cause unexpected behavior if the array is used elsewhere in the application.
🛠️ Proposed fix
useEffect(() => {
setRandomProjects(
- projects.sort(() => 0.5 - Math.random()).slice(0, 3)
+ [...projects].sort(() => 0.5 - Math.random()).slice(0, 3)
)
}, [])📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| useEffect(() => { | |
| setRandomProjects(projects.sort(() => 0.5 - Math.random()).slice(0, 3)) | |
| setRandomProjects( | |
| projects.sort(() => 0.5 - Math.random()).slice(0, 3) | |
| ) | |
| }, []) | |
| useEffect(() => { | |
| setRandomProjects( | |
| [...projects].sort(() => 0.5 - Math.random()).slice(0, 3) | |
| ) | |
| }, []) |
🤖 Prompt for AI Agents
In `@src/pages/index.jsx` around lines 79 - 83, The effect is mutating the
imported projects array by calling sort() directly; update the useEffect that
calls setRandomProjects so it first creates a shallow copy of projects (e.g.,
via spread or slice) and then sorts that copy before slicing to pick 3
items—modify the code around useEffect, setRandomProjects, and projects to sort
a copy instead of mutating the original.
Fixes #519
@akshitamodi
@AOSSIE-Org/maintainer
Dear mam/sir i have updated the Twitter icon
kindly please review this pr thanks !
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.