Skip to content

feat(icons): morph copy/check icon toggles with morphicons - #87

Open
montycheese wants to merge 2 commits into
mainfrom
mux/omni-ui-claude-4
Open

feat(icons): morph copy/check icon toggles with morphicons#87
montycheese wants to merge 2 commits into
mainfrom
mux/omni-ui-claude-4

Conversation

@montycheese

Copy link
Copy Markdown
Contributor

Summary

  • Adds the morphicons library (spring-physics SVG path morphing) and uses it to animate the three copy→check icon toggles that previously swapped instantly: CopyPromptButton (B20), CopyButton (internal-explorer), and CopyableValue (vibenet).
  • Adds shared CLIPBOARD_MORPH_ICON / CHECK_MORPH_ICON path data to app/components/ui/icons.tsx, reusing the app's existing icon geometry.
  • CopyableValue's copy icon lives on a 40x40 grid; regridded onto morphicons' 24x24 baseline via fitIcon so it can morph against the 24x24 check icon.

Test plan

  • tsc --noEmit passes
  • next lint passes on changed files
  • Verified in a local dev server via Playwright that the icon actually interpolates between shapes on click (captured an in-flight transitional frame) rather than instant-swapping, in all three components

Animates the clipboard-to-check transitions in CopyPromptButton,
internal-explorer's CopyButton, and vibenet's CopyableValue instead of
an instant swap.
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
omni-ui Ready Ready Preview Aug 25, 2026 2:32pm

Request Review

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.

2 participants