Skip to content

Snapshot capture: camera-only mode + UI icons → WebP#418

Merged
wass08 merged 2 commits into
mainfrom
feat/snapshot-camera-only-and-icon-webp
Jun 17, 2026
Merged

Snapshot capture: camera-only mode + UI icons → WebP#418
wass08 merged 2 commits into
mainfrom
feat/snapshot-camera-only-and-icon-webp

Conversation

@wass08

@wass08 wass08 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Two independent changes from a community/studio/snapshot pass, split into two commits.

1. feat(editor): snapshot capture is camera-only

Snapshot/preset capture (the "save to catalog" thumbnail flow) is for framing a shot, not editing. While capturing:

  • No selection / editing controls — the selection manager, transform handles, floating menus, and the tool manager (which renders the site boundary flags) are gated behind isCaptureMode. Clicking the scene no longer selects items.
  • Zone tags hidden — zone meshes and the HTML zone labels are suppressed.
  • Forces 3D — entering capture from a 2D/split floorplan view (which renders nothing useful for a thumbnail) switches to 3D, and the prior view mode is restored on exit.

2. perf(editor): UI icons PNG → WebP

The /icons assets were ~10MB of oversized PNGs (one toolbar icon was 1.4MB). Every non-PWA icon in apps/editor/public/icons is converted to WebP (quality 92), and all /icons/*.png references across packages/editor, packages/nodes, and apps/editor are repointed to .webp. PWA/platform icons (apple-touch-icon, icon-192, icon-512) stay PNG.

Testing

  • tsc --noEmit clean for packages/editor.
  • Verified over a running host app: converted .webp icons + PWA .png serve 200; old .png paths 404 (refs migrated); no leftover non-PWA /icons/*.png references.

🤖 Generated with Claude Code

wass08 and others added 2 commits June 17, 2026 10:41
Snapshot/preset capture is for framing a thumbnail, not editing, so it
should only move the camera:

- gate the selection manager, transform handles, floating menus, and the
  tool manager (which renders the site boundary flags) behind
  isCaptureMode, so clicking the scene no longer selects items or shows
  editing controls
- hide zone meshes and the HTML zone tags while capturing
- force 3D on entry (the 2D/split floorplan panes render nothing useful
  for a thumbnail) and restore the prior view mode on exit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The editor's /icons assets were ~10MB of oversized PNGs (a single
toolbar icon up to 1.4MB). Convert every non-PWA icon to WebP (quality
92) and repoint all /icons/*.png references to .webp across
packages/editor, packages/nodes, and apps/editor. PWA/platform icons
(apple-touch-icon, icon-192, icon-512) stay PNG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wass08 wass08 merged commit 8775734 into main Jun 17, 2026
1 check passed
@mintlify

mintlify Bot commented Jun 17, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
pascal 🔴 Failed Jun 17, 2026, 2:52 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant