Skip to content

build: Release 17-07-2026#5906

Open
kof wants to merge 5 commits into
mainfrom
release-17-07-2026.staging
Open

build: Release 17-07-2026#5906
kof wants to merge 5 commits into
mainfrom
release-17-07-2026.staging

Conversation

@kof

@kof kof commented Jul 17, 2026

Copy link
Copy Markdown
Member

No description provided.

@kof
kof force-pushed the release-17-07-2026.staging branch 4 times, most recently from bfccb6a to 41a64bf Compare July 19, 2026 21:47
@kof
kof force-pushed the release-17-07-2026.staging branch from 41a64bf to 50126db Compare July 19, 2026 23:41
kof added 3 commits July 21, 2026 10:33
## Summary

- Keep the shared content-model validator strict during normal Builder
authoring.
- Report HTML and component nesting violations as publish warnings
instead of blocking legacy projects.
- Allow paste operations to retain violations already contained inside
legacy fragments and surface them as warnings.
- Continue rejecting new violations introduced at the paste destination
boundary.
- Remove obsolete empty content models from CodeText and Video so their
runtime-supported, HTML-valid children pass validation.

## Root cause

The new pre-publish audit applied current authoring constraints to
historical project trees. Some legacy structures, including old
Accordion triggers containing an h3 inside a button, were created by
earlier Webstudio templates and cannot satisfy the current HTML model
without migration. Blocking publish or paste would make untouched legacy
content unusable.

CodeText and Video also had metadata that rejected children their
renderers intentionally support. Those verified metadata mismatches are
corrected independently of the compatibility policy.

## Behavior

- New invalid nesting remains prevented by normal authoring operations.
- Existing invalid nesting produces a Publish warning and does not abort
publishing.
- Webstudio instance, HTML, JSX, and Webflow paste retain
fragment-internal violations and show a paste warning.
- Paste still validates the destination and cannot introduce a new
invalid parent-child relationship.
- Resource integrity and missing audit inputs still prevent publishing.

## Verification

- [x] Legacy button containing h3 reports a publish warning
- [x] Legacy invalid subtree pastes successfully with a warning
- [x] New paste destination violations remain rejected or use the
closest valid target
- [x] Valid legacy CodeText children pass validation
- [x] Valid Video source and track children pass validation
- [x] Project-build matcher and insert-target tests
- [x] Builder instance, HTML, JSX, and Webflow paste tests
- [x] Project-build and Builder typechecks
- [x] Focused oxlint and formatting checks
## Summary

Preserve design-token selections on instances nested inside pasted Slot
content.

## Root cause

Token style sources receive new or reused IDs during fragment insertion.
Regular copied instances applied that token ID mapping to their
style-source selections, but preserved Slot/portal content copied
selections with the stale clipboard IDs. As a result, an Accordion's
shared HtmlEmbed icon could lose its visible token after pasting the
whole Accordion even though pasting the icon alone worked.

## Changes

- Pass the token style-source ID map into Slot/portal style insertion.
- Remap token IDs while preserving local style-source IDs.
- Add unit coverage for portal selection remapping.
- Add a fragment-level regression test using a tokenized HtmlEmbed
inside a Slot.

## Checklist

- [x] Remap token selections in pasted Slot content
- [x] Add regression coverage
- [x] Run project-build tests
- [x] Run project-build typecheck
- [x] Run lint and formatting checks

## Verification

- `pnpm --filter @webstudio-is/project-build test` — 1,993 tests passed
- `pnpm --filter @webstudio-is/project-build typecheck`
- `pnpm exec oxlint --deny-warnings
packages/project-build/src/runtime/style-copy.ts
packages/project-build/src/runtime/fragment.ts
packages/project-build/src/runtime/style-copy.test.ts
packages/project-build/src/runtime/fragment.test.tsx`
- `pnpm exec oxfmt packages/project-build/src/runtime/style-copy.ts
packages/project-build/src/runtime/fragment.ts
packages/project-build/src/runtime/style-copy.test.ts
packages/project-build/src/runtime/fragment.test.tsx`
## Summary

Show client-side pre-publish audit findings as soon as the user starts
publishing, and apply the Builder's standard text styling to warning
banners.

## Root cause

The cloud publish audit ran inside an async form action, while the
static export audit ran inside an async transition. React deferred their
ordinary state updates until those async operations completed, so
warnings could appear only after publishing or export finished even
though validation itself ran synchronously on the client.

## Changes

- Run the cloud publish audit in the synchronous button click handler
before starting the async publish transition.
- Run the static export audit before starting its async transition.
- Keep warnings non-blocking while preserving blocking audit errors.
- Render warning-banner content with the design-system `Text` component.

## Checklist

- [x] Show cloud publish warnings before publishing starts
- [x] Show static export warnings before export starts
- [x] Style warning text consistently
- [x] Run Builder tests
- [x] Run Builder typecheck
- [x] Run lint and formatting checks

## Verification

- `pnpm --filter @webstudio-is/builder test` — 2,351 tests passed
- `pnpm --filter @webstudio-is/builder typecheck`
- `pnpm exec oxlint --deny-warnings
apps/builder/app/builder/features/publish/publish.tsx`
- `pnpm exec oxfmt
apps/builder/app/builder/features/publish/publish.tsx`
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