Debounce style inputs; stop Layers recomputing on hover #40

Closed
opened 2026-10-07 16:47:20 +00:00 by jknapp · 1 comment
Owner

Tier: Quick win · Order: 13 of 35 · Effort: S · Impact: med

What

Typing in a style field or moving the mouse over the canvas no longer stutters.

Why

Audit: no input debouncing (shared.tsx:244-258); Layers rebuilds a copy of every node on every editor event including hover (LayersPanel.tsx:291-303).

Today

Every keystroke = setProp + full re-render.

Design notes

Layers should depend only on node ids/children with a shallow-equal comparator.

Depends on

  • #32 One undo step per edit, not per keystroke

From the 2026-10-07 site-builder research (competitor review, user sentiment, code audit, Fable prioritization). Roadmap: https://claude.ai/artifact/QpQcSCk21z6SN7LPSm8tKE · id input-debounce-layers-memo

**Tier:** Quick win · **Order:** 13 of 35 · **Effort:** S · **Impact:** med ## What Typing in a style field or moving the mouse over the canvas no longer stutters. ## Why Audit: no input debouncing (shared.tsx:244-258); Layers rebuilds a copy of every node on every editor event including hover (LayersPanel.tsx:291-303). ## Today Every keystroke = setProp + full re-render. ## Design notes Layers should depend only on node ids/children with a shallow-equal comparator. ## Depends on - #32 One undo step per edit, not per keystroke --- From the 2026-10-07 site-builder research (competitor review, user sentiment, code audit, Fable prioritization). Roadmap: https://claude.ai/artifact/QpQcSCk21z6SN7LPSm8tKE · id `input-debounce-layers-memo`
jknapp added the tier: quick-wineffort: Simpact: med labels 2026-10-07 16:47:20 +00:00
jknapp referenced this issue from a commit 2026-10-07 21:10:18 +00:00
Author
Owner

Shipped in WHP release 2026.10.3 (site-builder main bdb4789, deployed fleet-wide 2026-10-07). Implemented, reviewed and verified as part of the editor-polish batch.

Shipped in WHP release **2026.10.3** (site-builder `main` bdb4789, deployed fleet-wide 2026-10-07). Implemented, reviewed and verified as part of the editor-polish batch.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud-hosting-platform/site-builder#40