fix: prevent hotspot move on double-click and open edit modal#9
Merged
Conversation
Add drag threshold to hotspot reposition to prevent accidental moves during double-click. Introduce "reposition-pending" intermediate state that requires 5px mouse movement before committing to a drag. Double-clicking a hotspot now opens the HotspotModal for editing. Add ESC key support to close HotspotModal.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 28, 2026
trmquang93
added a commit
that referenced
this pull request
May 16, 2026
#52) When find_stock_image falls back to Picsum (no UNSPLASH_ACCESS_KEY), the response now includes structured fields that agents can't miss: { source: "picsum", warning: "RANDOM photos — Picsum ignores your query (\"...\"). ..." } Picsum also now returns a single deterministic placeholder instead of multiple pseudo-results that mislead agents into thinking they are distinct query matches. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 16, 2026
Add a new MCP tool that parses stored screen HTML across the flow and returns dominant design tokens (colors, typography, radii, spacing) ranked by per-screen frequency. Supports scopeRoot / screenIds filtering. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 16, 2026
#54) Multi-word queries (e.g. "crown premium") are now automatically split into terms, searched independently, and merged by overlap count then best individual rank. When no results match any term, the response includes suggestions[] with the individual keywords. Tool description updated to clarify single-keyword semantics as a safety net. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 17, 2026
trmquang93
added a commit
that referenced
this pull request
May 17, 2026
Add 5 compose_* MCP tools that return Satori-compatible HTML fragments: - compose_page — safe-area-aware page wrapper - compose_button — primary/secondary/destructive variants with icon support - compose_list_row — standard list row with chevron - compose_section_header — uppercase title + optional action - compose_card — rounded card with title/body/footer Fragments are composable (nest button in card in page) and every output is Satori-clean by construction (display:flex everywhere, no position:absolute, white-space:nowrap on text leaves). Optional inline:false mode stores fragments server-side and returns lightweight <x-block id="..."/> references that the renderer expands at draw time, cutting per-screen token cost. Design tokens (colors, radius, font) customizable via tokens parameter. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 17, 2026
Add a new stateless `validate_html` MCP tool that checks HTML/CSS against Satori's rendering constraints without rasterizing. Returns structured warnings (path + rule + message) in milliseconds, letting agents catch layout bugs before the slow render step. Rules: unsupported-position, no-style-block, multi-child-needs-flex, no-br-tag, text-needs-nowrap, unsupported-css-property. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 17, 2026
* feat: render response — accurate dimensions, warnings, optional thumbnail (#8.5 #9.2 #9.3) Three related improvements to the MCP render-response shape, shipped together because they all touch the same response builder: - 8.5: imageWidth/imageHeight now report actual decoded PNG dimensions (read from IHDR) instead of display-scaled values. The editor state still stores display-scaled heights for canvas card sizing. - 9.2: warnings[] array surfaces silent degradations — allowlist rejects, fetch timeouts, empty responses, and chrome composition failures. Absent when all resources resolved cleanly. - 9.3: Optional includeThumbnail (200px-wide PNG) and includeFullImage (full-res PNG base64) parameters on all render-producing tools. Both default to false to keep token cost predictable. Affected tools: create_screen, update_screen_image, batch_create_screens, compose_chrome. * feat: create_screen_with_hotspots transactional group op (#9.9) --------- Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
trmquang93
added a commit
that referenced
this pull request
May 17, 2026
…nail (#8.5 #9.2 #9.3) (#58) Three related improvements to the MCP render-response shape, shipped together because they all touch the same response builder: - 8.5: imageWidth/imageHeight now report actual decoded PNG dimensions (read from IHDR) instead of display-scaled values. The editor state still stores display-scaled heights for canvas card sizing. - 9.2: warnings[] array surfaces silent degradations — allowlist rejects, fetch timeouts, empty responses, and chrome composition failures. Absent when all resources resolved cleanly. - 9.3: Optional includeThumbnail (200px-wide PNG) and includeFullImage (full-res PNG base64) parameters on all render-producing tools. Both default to false to keep token cost predictable. Affected tools: create_screen, update_screen_image, batch_create_screens, compose_chrome. Co-authored-by: Quang Tran <16215255+trmquang93@users.noreply.github.com>
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
Test plan
npm test— 233 tests)