feat: integrate AOSSIE-Org social share button in navbar#177
feat: integrate AOSSIE-Org social share button in navbar#177amankv1234 wants to merge 2 commits into
Conversation
|
Warning Review limit reached
More reviews will be available in 46 minutes and 7 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA ChangesSocial Share Button Integration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Hi @kpj2006, |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@frontend/index.html`:
- Around line 37-38: The external SocialShareButton CSS and script references
are using mutable gh/.../src/... CDN paths, so update the assets in index.html
to pinned release or commit URLs and add integrity protection for the script and
stylesheet; if that is not feasible, self-host them instead. Keep the changes
localized to the existing link and script tags so the SocialShareButton includes
remain easy to locate.
In `@frontend/src/components/Navbar.jsx`:
- Around line 215-219: The SocialShareButton share copy is hard-coded in Navbar
and bypasses localization. Update the Navbar component to read the title and
description from the app’s i18n/resource files instead of inline English
strings, and pass those translated values into SocialShareButton. Use the
existing localization pattern used elsewhere in the app so the new share flow is
fully externalized.
In `@frontend/src/components/SocialShareButton.jsx`:
- Around line 7-26: The SocialShareButton widget is only initialized once, so
its url/title stay stale after client-side navigation in the persistent navbar.
Update the useEffect in SocialShareButton to depend on the current location (or
values derived from useLocation) and recreate the window.SocialShareButton
instance whenever the route changes, while keeping the cleanup destroy logic in
the effect.
🪄 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: ASSERTIVE
Plan: Pro
Run ID: 11f283fd-3eed-43e4-90de-110a56731c83
📒 Files selected for processing (3)
frontend/index.htmlfrontend/src/components/Navbar.jsxfrontend/src/components/SocialShareButton.jsx
Description
This PR integrates the official AOSSIE-Org Social Share Button into the Chainvoice landing page (Navbar). The integration is kept extremely minimal with no unnecessary fallback or error handling logic.
social-share-button.css&social-share-button.js) inindex.html.SocialShareButton.jsxwrapper component.Navbar.jsxon the right side next to the "About" link and "Connect Wallet" button.https://chainvoice.stability.nexus/) is copied even during local testing.Related Issue
Fixes #174
UI Changes / Demo
(Please find the screenshots and demo video attached below showing the Social Share Button in action on the Navbar.)
Screenshots:

Demo Video:
https://drive.google.com/file/d/1L77SAgI1NdjTOYgf8DSFqQnuWJ3zVpC3/view?usp=sharing
Summary by CodeRabbit