Repository navigation
feat(nav): a small hover motion on each main menu icon - #2447
Merged
Merged
Conversation
Hovering or keyboard-focusing a main item of the left menu plays its icon's motion once (500-700ms, eased out), and the icon then rests: the globe turns, the bars dip and grow back, the trend line draws in, the target pulses, and so on. nav-icon.tsx pairs each icon with its motion; each motion is a block in globals.css. The motions run on CSS transitions of two registered custom properties (a clock and a strength), not keyframes, so a pointer that leaves mid-motion eases the icon back to rest instead of snapping. Reduced motion turns them off. No JS, no new dependency. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
A collapsed menu opens over the page 150ms after the pointer comes on it, and redraws the rows that open a submenu (Action Center, Prompts, Visibility, Content), so their icon's motion started again mid-way. The aside now says when it shows icons alone (data-icons-only), and there the motion starts 250ms after hover or focus, as the menu opens. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Brings in ansvisor#2446 (no row counts), ansvisor#2442, ansvisor#2447, ansvisor#2441 and ansvisor#2377. Conflicts: - approved-articles.json: regenerated (yarn vitest run -u src/lib/help). help/chat/chat.md merged cleanly: main's "Watch the work" text (no row counts) and this branch's action-title line are both kept (132 words); updated stays 2026-11-16, last_checked 2026-11-15. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Takes the updated ansvisor#2420, which now includes upstream main (ansvisor#2446 no row counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377). Conflicts: - approved-articles.json: regenerated (yarn vitest run -u src/lib/help). help/chat/chat.md merged cleanly: updated 2026-11-16, last_checked 2026-11-15. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Takes the updated ansvisor#2422, which now includes ansvisor#2420 and upstream main (ansvisor#2446 no row counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377). No conflicts; approved-articles.json checked with yarn vitest run -u src/lib/help (no change). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Takes the updated ansvisor#2423, which now includes ansvisor#2422, ansvisor#2420 and upstream main (ansvisor#2446 no row counts, ansvisor#2442, ansvisor#2447, ansvisor#2441, ansvisor#2377). Conflicts: - help/chat/chat.md: front matter only; took the later last_checked (2026-11-16). Both sides' text is kept: main's "Watch the work" (no row counts, 148 words) and this branch's look-up-by-code paragraph in "Ask about your actions" (146 words). - approved-articles.json: regenerated (yarn vitest run -u src/lib/help). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Brings in ansvisor#2446 (no row counts), ansvisor#2442, ansvisor#2447, ansvisor#2441 and ansvisor#2377. Conflicts: - help/chat/chat.md: front matter only; took the later last_checked (2026-11-16), updated stays 2026-11-16. Both sides' sections are kept: main's "Watch the work" (no row counts) and this branch's "Open and close Settings in the chat menu" (98 words). approved-articles.json merged cleanly and is current (yarn vitest run -u src/lib/help: no change). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The product owner liked a detail in Resend's dashboard: when you hover a menu item, its icon moves a little, once, then settles. This PR adds the same to the main items of our left menu.
Hover an item, or reach it with the keyboard, and its icon plays one short motion that fits what it shows. Then the icon rests. It does not loop, bounce or change colour. Submenu entries have no icons, so they don't move.
There is no text change, so
en.jsonand the Help articles are unchanged.Changes
web/src/components/layout/nav-icon.tsx(new):NAV_ICON_MOTIONSpairs each main item's icon with its motion. This is the only place the pairing lives.NavIcondraws the icon withdata-nav-motion="<name>".web/src/components/layout/sidebar.tsx:NavIcon;asidehasdata-icons-onlywhile the menu shows icons alone (see below).web/src/app/globals.css: a new block, "The left menu's icon motions", with one short rule set per motion.web/src/components/layout/nav-icon.test.tsx(new): the tests below.twinkle: the two small stars shrink and come back one after the other, while the big star turns a littlepulse: one pulse through the rings, from the centre outturn: the globe turns once (its meridian narrows, flips and widens)bars: the bars dip and grow back, left to rightdraw: the trend line draws in from the leftcall: the megaphone tips up a littlewrite: the text lines write in, one after anotherswing: the needle swings back and settles on its readinglift: the page lifts 1.5pxnudge: the two people shift a little, the one behind firstHow it works
path,circle, picked with:nth-child) withtransform-box: fill-boxand atransform-origin. Ads and Reports move the whole icon.:hover, the icon snaps back if the pointer leaves mid-motion.--nav-tis a registered number, the motion's clock. It goes from 0 to 1 on hover or focus. Every motion is exactly at rest at 0 and at 1, so the icon stays at rest while the pointer stays.--nav-kis the motion's strength. When the pointer leaves, it fades to 0 in 200 ms, so a motion cut short eases back to rest. Only then does the clock reset to 0, which is not visible.--nav-b), eased out over its share of the clock. This is how parts move one after another.transformand the line'sstroke-dashoffsetchange.Accessibility
prefers-reduced-motion: reduceblock setstransition: none,transform: noneandstroke-dashoffset: 0on the icons and their parts. Nothing moves.:focus-visibleplays the motion like hover does. Tab or the arrow keys in the menu reach each item, and each icon moves once on focus. A mouse click does not count as focus-visible, so it does not play the motion a second time.@propertyshow no motion. The menu still works.How to test
prefers-reduced-motion: reduce). Nothing moves.Checks
npx tsc --noEmit -p .: passes.npx vitest run src/components/layout src/lib/use-server-exports.test.ts src/components/agentic/agentic.test.tsx src/lib/insights-trend.test.ts src/lib/dashboard-navigation: 17 files, 227 tests pass.nav-icon.test.tsx(8 tests):globals.csshas a block for each motion;:focus-visibleboth play a motion, 250 ms later with icons alone;prefers-reduced-motion: reduceblock turns off transitions, transforms and the dash offset.Sidebar(a recorded video, dark mode, was reviewed with the owner):Generated by Claude Code