Tune NC Pet Styles search: rest-to-preview, "nc", and phrase removal #41

Merged
matchu merged 2 commits from armin-bot/impress:claude/style-search-tweaks into main 2026-11-18 09:39:56 -08:00
Contributor

Tweaks to NC Pet Styles search, from using #38.

What changes

  • Hover waits for the mouse to rest. Before, a tile previewed 200ms after the mouse entered it, so sliding across tiles on the way somewhere else triggered previews. Now the mouse has to stay still (within 4px) on a tile for 250ms, however slowly it's sliding. Leaving a tile before that cancels it, and jiggling the mouse on a tile you just clicked doesn't preview it again.
  • "nc" offers NC Pet Styles too, after "Neocash items", so "nc" then Down, Enter still picks NC items.
  • Typed phrases go away whole. Picking NC Pet Styles after "nostalgic pet style" leaves "nostalgic", not "nostalgic pet". Only the last word can be partly typed, so "back to pet" keeps "back to".
  • No "Previewing" pill for the style you're already wearing, since nothing on the pet changes.

The suggestions for "nc": Neocash items, then NC Pet Styles

Testing

yarn lint and Prettier are clean. In Chromium, against a local server with public data (Faerie Aisha):

  • Sliding slowly across four tiles over ~1.2s shows no pill. Resting 400ms shows it.
  • Moving off a tile onto a group header before it fires shows no pill. Resting on a tile, then moving to the header, keeps that preview.
  • Clicking a tile, then jiggling on it, shows no pill. Leaving and coming back previews again.
  • "nc" lists Neocash items, then NC Pet Styles.
  • "back to pet" → "back to"; "nostalgic pet style" → "nostalgic"; "nc pet styl" → "".
  • The earlier #38 checks (wear, remove, Space, filter, arrow keys, Escape) still pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS

Tweaks to NC Pet Styles search, from using #38. ## What changes - **Hover waits for the mouse to rest.** Before, a tile previewed 200ms after the mouse entered it, so sliding across tiles on the way somewhere else triggered previews. Now the mouse has to stay still (within 4px) on a tile for 250ms, however slowly it's sliding. Leaving a tile before that cancels it, and jiggling the mouse on a tile you just clicked doesn't preview it again. - **"nc" offers NC Pet Styles too**, after "Neocash items", so "nc" then Down, Enter still picks NC items. - **Typed phrases go away whole.** Picking NC Pet Styles after "nostalgic pet style" leaves "nostalgic", not "nostalgic pet". Only the last word can be partly typed, so "back to pet" keeps "back to". - **No "Previewing" pill for the style you're already wearing**, since nothing on the pet changes. ![The suggestions for "nc": Neocash items, then NC Pet Styles](https://code.openneo.net/attachments/9843cb4b-8954-48af-b272-ad399341a29d) ## Testing `yarn lint` and Prettier are clean. In Chromium, against a local server with public data (Faerie Aisha): - [x] Sliding slowly across four tiles over ~1.2s shows no pill. Resting 400ms shows it. - [x] Moving off a tile onto a group header before it fires shows no pill. Resting on a tile, then moving to the header, keeps that preview. - [x] Clicking a tile, then jiggling on it, shows no pill. Leaving and coming back previews again. - [x] "nc" lists Neocash items, then NC Pet Styles. - [x] "back to pet" → "back to"; "nostalgic pet style" → "nostalgic"; "nc pet styl" → "". - [x] The earlier #38 checks (wear, remove, Space, filter, arrow keys, Escape) still pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS
From using it:

- Hovering was too eager: sliding across tiles on the way somewhere else
  previewed them. Now the mouse has to rest on a tile (within a few
  pixels) for 250ms, however slowly it's sliding. And after clicking a
  tile, jiggling the mouse on it doesn't preview it again.
- "nc" offers NC Pet Styles too, after Neocash items.
- Choosing NC Pet Styles after typing a phrase like "nostalgic pet style"
  removes the whole "pet style", not just "style".
- The "Previewing" pill doesn't show for the style that's already worn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS
Fix two edge cases in style hover and suggestion phrase removal
All checks were successful
CI / rspec (pull_request) Successful in 1m52s
CI / deploy (pull_request) Has been skipped
3f1cf57dae
- Leaving a tile before the mouse rests on it (onto a group heading or
  the gap between tiles) cancels its pending preview, instead of
  previewing it a moment later anyway.
- Only the last word of the typed phrase can be partial, so picking NC
  Pet Styles after "back to pet" keeps "back to".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS
matchu merged commit 8043ba6d39 into main 2026-11-18 09:39:56 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenNeo/impress!41
No description provided.