Skip to content

Replace tool card badge and link with icon#340

Merged
rwv merged 1 commit intodev/astro-rewrite-basefrom
refactor/tool-card-icon
Apr 6, 2026
Merged

Replace tool card badge and link with icon#340
rwv merged 1 commit intodev/astro-rewrite-basefrom
refactor/tool-card-icon

Conversation

@rwv
Copy link
Copy Markdown
Member

@rwv rwv commented Apr 5, 2026

Summary

  • Remove category Badge and "Open tool →" link from tool directory cards
  • Add lucide icon before tool title, resolved from each tool's manifest.icon field
  • New ToolIcon component maps manifest icon strings (e.g. "binary", "braces", "image") to lucide-react components
  • Clean up unused openToolLabel from message catalogs and types

Test plan

  • Check home page (/) — tool cards show icon before title, no badge, no "Open tool" link
  • Check tools page (/tools) — same
  • Check zh-CN variants — same
  • Verify each tool shows correct icon: binary (Base64), braces (JSON Schema), image (Image Resizer)

🤖 Generated with Claude Code

Remove category badge and "Open tool →" link from tool directory
cards. Add a lucide icon before the tool title, resolved from each
tool's manifest icon field via a new ToolIcon component.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rwv rwv merged commit 60a869f into dev/astro-rewrite-base Apr 6, 2026
4 checks passed
@rwv rwv deleted the refactor/tool-card-icon branch April 6, 2026 02:04
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