Skip to content

feat(viewer): minimal icons for card open/delete actions#36

Merged
benvinegar merged 3 commits into
mainfrom
feat/card-action-icons
Jun 16, 2026
Merged

feat(viewer): minimal icons for card open/delete actions#36
benvinegar merged 3 commits into
mainfrom
feat/card-action-icons

Conversation

@benvinegar

Copy link
Copy Markdown
Member

Swaps the text "open ↗" / "delete" actions on each surface card for minimal Lucide icons — external-link and trash-2.

  • Icons are inlined (viewer/src/icons.tsx), no new dependency — they inherit currentColor and a CSS-driven size, so they match the existing muted-on-hover chrome.
  • Square icon hit area; delete turns red on hover via a new --danger theme token (light + dark).
  • The .act.open / .act.del classes and the hover/focus reveal are unchanged, so existing behavior and the e2e action-visibility test still hold.
  • Scoped the red hover to .act.icon.del so the text "dismiss" button in the release-notes card is untouched.

Looks like

Light (default / delete-hover) and dark — actions appear on card hover as before:

open + delete red on delete-hover

Verified with screenshots in both color schemes.

Validation

  • typecheck (node + workers + viewer), lint, format — clean
  • e2e viewer spec — 24 pass (chromium + webkit), including the .act.open visibility check

🤖 Generated with Claude Code

benvinegar and others added 3 commits June 16, 2026 19:21
Replace the text "open ↗" / "delete" card actions with inlined Lucide icons
(external-link and trash-2), a square icon hit area, and a red delete-on-hover
via a new --danger token. Icons are inlined (no new dependency) so they inherit
currentColor and the CSS-driven size. The `.act.open`/`.act.del` classes and
the hover/focus reveal are unchanged, so existing behavior and tests hold.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The icons are subtle enough that they don't need the hover/focus reveal the
text actions used; show them at rest so the open/delete affordances are always
discoverable. Text actions (e.g. the release-notes "dismiss") keep the reveal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@benvinegar benvinegar merged commit 427489f into main Jun 16, 2026
7 checks passed
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