Repository navigation
fix: render Slack logo from a bundled icon instead of the removed CDN asset - #1523
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Mock-LLM E2E Tests60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
✅ Mock-LLM Docker E2E Test Results60/60 passed Commit: Details
Posted by the Mock-LLM E2E workflow · results are deterministic (scripted LLM responses) |
|
✅ Review complete. This review was performed through OpenHands Cloud Automation. You can log in and view the conversation here. |
all-hands-bot
left a comment
There was a problem hiding this comment.
🟢 Taste Rating: Good taste - Elegant, simple solution
This is a focused fix for a real broken asset path. The bundled SVG path reuses McpLogoBadge's existing inline-SVG sizing/color behavior, keeps every other integration on the unchanged <img> flow, and the PR includes screenshot evidence plus green CI.
[RISK ASSESSMENT]
- [Overall PR]
⚠️ Risk Assessment: 🟢 LOW
Small frontend-only rendering change scoped to Slack logo selection; no API, data, auth, dependency, or agent-behavior changes. The remaining concern is routine asset/trademark maintenance, but the behavior is isolated and easy to revert.
VERDICT:
✅ Worth merging: Core logic is sound, CI is green, and evidence shows the UI behavior.
KEY INSIGHT:
The change fixes the broken remote dependency by routing only the known Slack catalog ID through a local inline-SVG path while leaving all other logos untouched.
This review was generated by an AI agent (OpenHands) on behalf of the user through OpenHands Automation. View conversation
main (#1519, #1523) independently removed the vendor entry.id patches, bumped @openhands/extensions to 0.7.0, and replaced the removed logos subpath with a bundled Slack icon, superseding this branch's approach. Resolve by taking main's implementation for all overlapping files and keeping this branch's only remaining delta: bump extensions 0.7.0 -> 0.8.0. 0.8.0 adds an OAuth connection option to Linear ahead of the API-key one, so the default transport is now the OAuth shttp /mcp endpoint. Update the Linear catalog test to assert the bearer shttp /mcp option explicitly rather than the first shttp option. Co-authored-by: openhands <openhands@all-hands.dev>
|
🚀 Released in v1.2.0. |
HUMAN:
The Slack badge rendered as an empty purple square on the Automate and MCP Servers pages. McpLogoBadge loads each logo via , and Slack's catalog logoUrl (https://cdn.simpleicons.org/slack/FFFFFF) now returns HTTP 404 — Simple Icons removed the Slack mark per a Slack/Salesforce brand-guideline request. The img onError handler then hides the image, leaving only the background color.
The broken URL comes from the @openhands/extensions package and can't be edited directly, so fix it in app code: bundle src/icons/slack.svg (fill="currentColor") and render it inline through McpLogoBadge's existing [&>svg] sizing + color path, selected via a small id-keyed LOCAL_LOGO_ICONS map. This removes the remote-CDN dependency for Slack; all other entries keep the unchanged path. The mark resolves to white on Slack's Aubergine (#4A154B) background, consistent with every other badge.
AGENT:
Why
On the Automate (
/automations) and MCP Servers (/mcp) pages, the Slack integration logo renders as an empty purple badge instead of the Slack mark.Steps to reproduce
npm run devhttp://localhost:3001/mcporhttp://localhost:3001/automationsActual: Empty purple (
#4A154B) badge, no logo.Expected: White Slack mark centered on the purple badge, consistent with every other service logo.
Root cause
All service logos render through
McpLogoBadgevia<img src={entry.logoUrl}>. For Slack thelogoUrl(supplied by the@openhands/extensionscatalog) ishttps://cdn.simpleicons.org/slack/FFFFFF, which now returns HTTP 404 — Simple Icons removed the Slack mark following a Slack/Salesforce brand-guideline request.Verified with
curl:cdn.simpleicons.org/slack/FFFFFF→404cdn.simpleicons.org/github/FFFFFF(control) →200 image/svg+xmlWhen the image 404s, the badge's
onErrorhandler setsdisplay:none, leaving only the background color. The broken URL lives in the third-party package (node_modules/@openhands/extensions/integrations/catalog/slack.json), so it cannot be edited directly — the fix must live in app code.Proposed fix
Bundle a local Slack SVG and render it inline through the badge's existing inline-SVG path (its
[&>svg]sizing +color: currentColor, the same path theBotfallback uses), removing the fragile remote-CDN dependency for Slack.Acceptance criteria
md/sm/xs) in stacked layouts.typecheck,eslint, andprettierpass.Summary
The Slack logo renders as an empty purple badge on the Automate (
/automations) and MCP Servers (/mcp) pages. Slack's logo URL on the Simple Icons CDN (https://cdn.simpleicons.org/slack/FFFFFF) now returns HTTP 404 — Simple Icons removed the Slack mark following a Slack/Salesforce brand-guideline request — and the badge'sonErrorhandler hides the broken image, leaving only the background color.Because the URL is baked into the third-party
@openhands/extensionscatalog, this PR fixes it in app code by bundling a local Slack SVG and rendering it inline, removing the remote-CDN dependency for Slack.Before / After
#4A154Bbadge (image 404s and is hidden)Changes
src/icons/slack.svg**— monochrome Slack mark,viewBox="0 0 24 24",fill="currentColor", following the repo'ssrc/icons/\*.svgconvention.src/components/features/mcp-logo-badge.tsx**— import the icon via svgr (#/icons/slack.svg?react), add a one-entryLOCAL_LOGO_ICONSmap keyed byentry.id, and add one ternary arm so a local icon renders inline when present. Every other entry keeps the existing<img>path; thefallback/Botpath is untouched.Why this approach
[&>svg]sizing +color), the same path theBotfallback already uses — no new rendering mechanism.currentColorresolves to white on Slack's official Aubergine (#4A154B) background, consistent with every other monochrome badge and brand-compliant.onError/display:noneflash.Testing
npm run typecheck✅eslint src/components/features/mcp-logo-badge.tsx✅prettier --checkon the component ✅npm run dev→ Slack mark renders on/mcpand/automationsacross the marketplace list, installed-server card, install modal, and recommended-automation stacked badges.Issue Number
Resolves #2001
How to Test
Clone the
agent-server-guirepository.Start the development server:
Navigate to either:
http://localhost:3001/automations(Automatepage), orhttp://localhost:3001/mcp(MCP Serverspage).Video/Screenshots
app-2544.mov
Type
Notes
currentColorrender path.cdn.simpleicons.orglogos get removed upstream, they'll show the same symptom and are fixable by adding an entry toLOCAL_LOGO_ICONS.🐳 Docker images for this PR
• GHCR package: https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas
ghcr.io/openhands/agent-canvasghcr.io/openhands/agent-server:1.29.3-pythonopenhands-automation==1.0.0a133d5637fdd6002c63837201c599228dd2a4850c4ePull (multi-arch manifest)
# Multi-arch manifest — Docker automatically pulls the correct architecture docker pull ghcr.io/openhands/agent-canvas:sha-3d5637fRun
All tags pushed for this build
About Multi-Architecture Support
sha-3d5637f) is a multi-arch manifest supporting both amd64 and arm64sha-3d5637f-amd64) are also available if needed