Skip to content

feat: add Knocket as a recognized platform#68

Open
rrivory wants to merge 4 commits into
urdadx:mainfrom
rrivory:feat/add-knocket-platform
Open

feat: add Knocket as a recognized platform#68
rrivory wants to merge 4 commits into
urdadx:mainfrom
rrivory:feat/add-knocket-platform

Conversation

@rrivory

@rrivory rrivory commented Jul 1, 2026

Copy link
Copy Markdown

Adds Knocket to the PLATFORM_ALIASES and PLATFORM_ICONS registries so that Knocket contact page links are auto-detected with the correct icon. Knocket is a free-forever contact page and live chat widget. More info: https://trtc.io/solutions/knocket

Summary by CodeRabbit

  • New Features
    • Added support for the Knocket social platform in user profile social links.
  • Improvements
    • Knocket links are now recognized more reliably.
    • When a matching icon isn’t available, Knocket displays with a globe-style icon for consistent presentation.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d7446c9a-19fe-4fa5-9b93-af2252025cac

📥 Commits

Reviewing files that changed from the base of the PR and between 547d52a and e4edefd.

📒 Files selected for processing (1)
  • components/core/user-profile/social-cards.jsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/core/user-profile/social-cards.jsx

📝 Walkthrough

Walkthrough

Added knocket to the social platform alias and icon maps in social-cards.jsx, while keeping the existing platform lookup order and icon fallback behavior unchanged.

Changes

Knocket Platform Mapping

Layer / File(s) Summary
Knocket alias, icon, and lookup formatting
components/core/user-profile/social-cards.jsx
PLATFORM_ALIASES and PLATFORM_ICONS gain knocket entries, SocialCards continues to resolve icons through `PLATFORM_ICONS[platform]

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested labels: enhancement

Suggested reviewers: urdadx

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description does not follow the template; it omits the required Fixes Issue, Proposed Changes, and Screenshots sections. Add the template headings and fill in Fixes Issue, Proposed Changes, and Screenshots, or mark screenshots as none if unavailable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding Knocket as a recognized platform.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Biome (2.5.1)
components/core/user-profile/social-cards.jsx

File contains syntax errors that prevent linting: Line 57: expected : but instead found const; Line 57: expected : but instead found SocialCards; Line 82: expected } but instead the file ends

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/core/user-profile/social-cards.jsx

Parsing error: Unexpected keyword 'export'. (57:0)


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 `@components/core/user-profile/social-cards.jsx`:
- Line 27: Remove the duplicate knocket entries from the object literals in
PLATFORM_ALIASES and PLATFORM_ICONS inside social-cards.jsx; each object should
define knocket only once, alongside the other platform keys such as linkedin.
Keep the existing mapping behavior unchanged, just delete the repeated key so
the noDuplicateObjectKeys lint rule passes.
🪄 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: fa483571-daee-40c8-a21a-031f32c281c6

📥 Commits

Reviewing files that changed from the base of the PR and between 618d8c2 and dbac148.

📒 Files selected for processing (1)
  • components/core/user-profile/social-cards.jsx

Comment thread components/core/user-profile/social-cards.jsx Outdated
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@rrivory is attempting to deploy a commit to the urdadx's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant