Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@visactor/react-vchart": "~1.8.8",
"@visactor/vchart": "~1.8.8",
"@visactor/vchart-semi-theme": "~1.8.8",
"antd": "^6.3.5",
"axios": "1.15.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
Expand Down
4 changes: 2 additions & 2 deletions web/src/helpers/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import {
SiGitlab,
SiGoogle,
SiKeycloak,
SiLinkedin,
SiLinkerd,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Verify available icon exports in the pinned react-icons version
curl -fsSL https://unpkg.com/react-icons@5.5.0/si/index.d.ts \
  | rg -n 'SiLinkedin|SiLinkerd'

Repository: QuantumNous/new-api

Length of output: 157


🏁 Script executed:

# Check the actual lines in the file
sed -n '92p; 507p' web/src/helpers/render.jsx

Repository: QuantumNous/new-api

Length of output: 98


🏁 Script executed:

# Show context around line 507 to verify the mapping
sed -n '500,515p' web/src/helpers/render.jsx

Repository: QuantumNous/new-api

Length of output: 404


🏁 Script executed:

# Show context around line 92 to verify the import
sed -n '85,100p' web/src/helpers/render.jsx

Repository: QuantumNous/new-api

Length of output: 261


Replace SiLinkerd with SiLinkedin for the LinkedIn provider icon mapping.

The linkedin provider is incorrectly mapped to SiLinkerd (Linkerd service mesh icon) instead of SiLinkedin. This will render the wrong icon in the OAuth provider UI.

Suggested fix
-  SiLinkerd,
+  SiLinkedin,
...
-  linkedin: SiLinkerd,
+  linkedin: SiLinkedin,
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@web/src/helpers/render.jsx` at line 92, The LinkedIn provider is mapped to
the wrong icon symbol; update the icon mapping (e.g., the providerIconMap or the
mapping entry that currently uses SiLinkerd for 'linkedin') to use SiLinkedin
instead, and ensure you import SiLinkedin from react-icons/si (removing
SiLinkerd if it becomes unused) so the LinkedIn OAuth button renders the correct
icon.

SiNextcloud,
SiNotion,
SiOkta,
Expand Down Expand Up @@ -504,7 +504,7 @@ const oauthProviderIconMap = {
google: SiGoogle,
discord: SiDiscord,
facebook: SiFacebook,
linkedin: SiLinkedin,
linkedin: SiLinkerd,
x: SiX,
twitter: SiX,
slack: SiSlack,
Expand Down
2 changes: 1 addition & 1 deletion web/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import '@douyinfe/semi-ui/dist/css/semi.css';
import '@douyinfe/semi-ui';
import { UserProvider } from './context/User';
import 'react-toastify/dist/ReactToastify.css';
import { StatusProvider } from './context/Status';
Expand Down