feat: add discord support#149
Conversation
|
Warning Review limit reached
More reviews will be available in 25 minutes and 47 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 We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. 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)
WalkthroughThis pull request adds Discord as a supported sharing platform across the SocialShareButton component and all its framework wrappers (Preact, Qwik, React). The core implementation includes Discord metadata, platform configuration, and custom share behavior that copies the link and opens Discord. ChangesDiscord Platform Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
index.html (1)
284-286:⚠️ Potential issue | 🟡 MinorUpdate the platform count and list to include Discord.
The feature card states "7+ Platforms" and lists platforms without Discord. With Discord added, this should be updated to reflect the current count (9 platforms) and include Discord in the platform list.
📝 Suggested fix
<div class="feature-card"> <div class="feature-icon">🌐</div> - <h3>7+ Platforms</h3> - <p>WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, Pinterest</p> + <h3>9 Platforms</h3> + <p>WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, Pinterest, Discord</p> </div>🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@index.html` around lines 284 - 286, Update the feature card header and platform list to include Discord: change the <h3> text from "7+ Platforms" to "9 Platforms" (or "9+ Platforms" if you prefer the plus) and add "Discord" into the <p> platform list (the element currently reading "WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, Pinterest") so the paragraph includes "Discord" among the entries.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@index.html`:
- Around line 284-286: Update the feature card header and platform list to
include Discord: change the <h3> text from "7+ Platforms" to "9 Platforms" (or
"9+ Platforms" if you prefer the plus) and add "Discord" into the <p> platform
list (the element currently reading "WhatsApp, Facebook, X, LinkedIn, Telegram,
Reddit, Email, Pinterest") so the paragraph includes "Discord" among the
entries.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: dfee602a-3797-4a3e-8d80-f3bb96b3c9b0
📒 Files selected for processing (5)
index.htmlsrc/social-share-button-preact.jsxsrc/social-share-button-qwik.tsxsrc/social-share-button-react.jsxsrc/social-share-button.js
|
Dear Maintainer, I have submitted a PR addressing this issue. The implementation includes:
All changes have been tested locally and align with the expected behavior described in the issue. Please review when convenient. |
|
Hello 👋 This PR has had no activity for more than 2 weeks. If you are still working on it, please push an update or leave a comment. Ping a maintainer if you believe it is ready for review or merge! This PR will be automatically closed in 7 days if there is no further activity. |
|
@kpj2006 Please review my pr and direct me if any changes are needed. |
|
Hello 👋 This PR has had no activity for more than 2 weeks. If you are still working on it, please push an update or leave a comment. Ping a maintainer if you believe it is ready for review or merge! This PR will be automatically closed in 7 days if there is no further activity. |
|
@Aarya-Chaudhari i told you about this issue, let me know what i have told i don't remember correctly. |
|
@kpj2006 Please review my pr, Sir. |
|
@hiranya25 can you check discord? i have write something about my reviewing timeline |
|
@kpj2006 I hope you can review my pr now. Please review whenever convinient. |
|
@CodeRabbit does this pr add discord in all required file? ig this pr have not include content in readme. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check README for Discord mention
echo "=== README.md Discord mentions ==="
grep -in "discord" README.md || echo "NO Discord mention in README.md"
# List all wrapper/component files
echo ""
echo "=== All src files ==="
fd . src/ --type f
# Check if there's a Vue wrapper
echo ""
echo "=== Vue wrapper Discord check ==="
fd "vue" src/ --type f | xargs grep -li "discord" 2>/dev/null || echo "No Vue file or no Discord in Vue file"
fd "vue" src/ --type f | xargs grep -in "platforms" 2>/dev/null | head -30
# Check if there's an Angular wrapper
echo ""
echo "=== Angular wrapper Discord check ==="
fd "angular\|ng" src/ --type f -i | xargs grep -li "discord" 2>/dev/null || echo "No Angular file or no Discord in Angular file"
# Check Svelte
echo ""
echo "=== Svelte wrapper Discord check ==="
fd "svelte" src/ --type f | xargs grep -li "discord" 2>/dev/null || echo "No Svelte file or no Discord in Svelte file"
fd "svelte" src/ --type f | xargs grep -in "platforms" 2>/dev/null | head -30
# Check all src files for discord
echo ""
echo "=== Discord mentions across all src files ==="
rg -in "discord" src/ -l
# Check all src files for default platforms list (to find ones missing discord)
echo ""
echo "=== Default platforms lists in src files ==="
rg -in "whatsapp.*facebook|facebook.*whatsapp|platforms.*\[" src/ -A2 -B1Length of output: 4447
✅ Files updated with Discord support
No Vue, Angular, or Svelte wrappers exist in ❌ What's missing
The README does reference Discord (lines 7, 41–43), but only as links to the project's own community Discord server, not as a documented supported sharing platform. If the README has a section listing supported platforms (e.g., WhatsApp, Facebook, Twitter, etc.), Discord needs to be added there.
🧠 Learnings used |
hiranya25
left a comment
There was a problem hiding this comment.
Updated readme as asked, and I believe it was only the think left.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@README.md`:
- Line 74: The feature bullet on line 74 lists Discord as a supported platform,
but the "Available Platforms" section later in the README does not include
Discord, creating contradictory information about platform support. Locate the
"Available Platforms" section in the README and add Discord to that list to
ensure all platform lists throughout the document are consistent and accurate.
🪄 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: 66921724-8c81-4d8c-9e2d-13b65c4d98e6
📒 Files selected for processing (1)
README.md
|
Now updated everything please review |
|
@kpj2006 Please review now, I believe I've updated it everywhere. |
|
thanks for contribution @hiranya25 !! |
|
let's complete roadmap of this project, if you are still interested in this project |
|
Yes, absolutely. I'm interested in continuing and completing the roadmap for this project. Thank you for reviewing my contributions. Having my first PR merged was a great learning experience, and I'd be happy to keep contributing and work through the remaining roadmap items. |
|
let's talk on discord |
|
@kpj2006 I was earlier member, but suddenly group disappeared, and now I'm not able to join the Aossie discord. |
|
@hiranya25 I have sended you friend request on discord https://discord.gg/GZxDzwQpT (btw this is server invite lmk if not able to join) |
Addressed Issue
Fixes #135
Summary
Added Discord as a supported platform in SocialShareButton.
Changes
Behavior
Before
After
Testing
Files Modified
Screenshots
Screencast.from.2026-04-05.20-35-07.webm
Checklist
Summary by CodeRabbit