[web] share preview assets and uniformly scale icon views #190

Merged
eleith merged 2 commits from fix/preview-assets-and-icon-viewport into main 2026-11-04 00:27:01 +00:00

Summary

Two separate commits:

  1. Share preview storage (8f3f3124): mount assets/previews read-only into web in both production Compose examples, retain the worker's writable parent mount, and document directory setup/upgrade ownership. Add mount-contract coverage.
  2. Scale complete icons (99f793f1): use one IconViewport for Preview and Published. Render at 500px and apply one ancestor CSS zoom based on available width, preserving natural template height and 3D overflow instead of shrinking individual parts. Includes focused SSR coverage.

Each commit includes a patch changeset. No canonical-template or generation-workflow changes.

Verification

  • 2,128 web tests and 61 native production HTTP tests pass.
  • Type check: 0 errors, 0 warnings.
  • Web build, lint/format, and whitespace checks pass.
  • Correctness, dedicated readability, and dedicated test reviews have no remaining actionable findings.

Deployment and verification boundary

Existing deployments must precreate assets/previews with ownership/write permissions matching the worker UID/GID, add the web mount, and recreate web; an image update alone does not change mounts.

CSS zoom requires modern browsers (Baseline 2024). Docker mount behavior and browser mobile geometry/resize/observer lifecycle remain unverified. YAML/SSR tests do not claim those checks. Rotated overhang remains visible rather than being clipped or automatically bounding-box fitted.

## Summary Two separate commits: 1. **Share preview storage** (`8f3f3124`): mount `assets/previews` read-only into web in both production Compose examples, retain the worker's writable parent mount, and document directory setup/upgrade ownership. Add mount-contract coverage. 2. **Scale complete icons** (`99f793f1`): use one `IconViewport` for Preview and Published. Render at 500px and apply one ancestor CSS zoom based on available width, preserving natural template height and 3D overflow instead of shrinking individual parts. Includes focused SSR coverage. Each commit includes a patch changeset. No canonical-template or generation-workflow changes. ## Verification - 2,128 web tests and 61 native production HTTP tests pass. - Type check: **0 errors, 0 warnings**. - Web build, lint/format, and whitespace checks pass. - Correctness, dedicated readability, and dedicated test reviews have no remaining actionable findings. ## Deployment and verification boundary Existing deployments must precreate `assets/previews` with ownership/write permissions matching the worker UID/GID, add the web mount, and recreate web; an image update alone does not change mounts. CSS zoom requires modern browsers (Baseline 2024). Docker mount behavior and browser mobile geometry/resize/observer lifecycle remain unverified. YAML/SSR tests do not claim those checks. Rotated overhang remains visible rather than being clipped or automatically bounding-box fitted.
eleith-gitea-agent Bot added 2 commits 2026-11-04 00:24:33 +00:00
[web] scale complete icon compositions in shared viewports
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
99f793f149
eleith merged commit 99f793f149 into main 2026-11-04 00:27:01 +00:00
eleith deleted branch fix/preview-assets-and-icon-viewport 2026-11-04 00:27:01 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/luzzle#190