6397 Commits
Author SHA1 Message Date
Oleg Isonen 91b929f561 ::migrate:: 0.260.0 2026-04-12 16:15:27 +01:00
Oleg Isonen e6ca6adc0d redepploy 2026-04-12 16:15:27 +01:00
Oleg Isonen 13088608e5 lostpixel trigger 2026-04-12 16:15:27 +01:00
Oleg Isonen 1bde3be1d7 fix: use valid CSS color space names in toValue()
colorjs uses internal short names (p3, a98rgb, prophoto) that don't
match the CSS predefined color space identifiers required by the spec:
  - p3      → display-p3
  - a98rgb  → a98-rgb
  - prophoto → prophoto-rgb

This caused toValue() to emit invalid CSS like `color(p3 ...)`, which
the css-tree lexer rejects when re-validating the value in the CSS value
input (e.g. after a round-trip through the style panel).
2026-04-12 16:15:27 +01:00
Oleg Isonen c670c3251e redirects 2026-04-12 16:15:27 +01:00
Oleg Isonen 0b2076f906 0.253.0 2026-04-12 16:15:27 +01:00
Oleg Isonen 8b2d0fc5d8 0.248.0 2026-04-12 16:15:27 +01:00
Oleg Isonen ef8d9d294f media conditions 2026-04-12 16:15:27 +01:00
Oleg Isonen fd79d77117 fix svg upload 2026-04-12 16:15:27 +01:00
Oleg Isonen 37d2a516e4 publish enh, commands panel enh, instances search 2026-04-12 16:15:27 +01:00
Oleg Isonen 4c0c2ff1b6 publish enh, commands panel enh, instances search 2026-04-12 16:15:27 +01:00
Oleg Isonen 81b19dc476 tokens conflict management 2026-04-12 16:15:27 +01:00
Oleg Isonen 29c9afc9b2 convert instance 2026-04-12 16:15:27 +01:00
Oleg Isonen ae0e9e44d5 fix paste and settings permissions 2026-04-12 16:15:27 +01:00
Oleg Isonen 0ceb82ebb5 context menu 2026-04-12 16:15:27 +01:00
Oleg Isonen 88d00559c1 test 2026-04-12 16:15:27 +01:00
Oleg Isonen 766fabb4e2 test 2026-04-12 16:15:27 +01:00
Oleg Isonen d537c3625e test 2026-04-12 16:15:27 +01:00
Oleg Isonen 8fa5df66ab media conditions 2026-04-12 16:15:27 +01:00
Oleg Isonen 4244410ad7 fix svg upload 2026-04-12 16:15:27 +01:00
Oleg Isonen 7ecab85c7b publish enh, commands panel enh, instances search 2026-04-12 16:15:27 +01:00
Oleg Isonen 38f331455a publish enh, commands panel enh, instances search 2026-04-12 16:15:27 +01:00
Oleg Isonen 05bda06a7f tokens conflict management 2026-04-12 16:15:27 +01:00
Oleg Isonen 15ce9b9f6d convert instance 2026-04-12 16:15:27 +01:00
Oleg Isonen 84c41ed3f5 fix paste and settings permissions 2026-04-12 16:15:27 +01:00
Oleg Isonen 7d9be3146c context menu 2026-04-12 16:15:27 +01:00
Oleg Isonen 76d11c2c70 test 2026-04-12 16:15:27 +01:00
Oleg Isonen 5cbb17ef73 test 2026-04-12 16:15:27 +01:00
Oleg Isonen fa2be1d21e test 2026-04-12 16:15:27 +01:00
Ivan Starkov 4213b3bd3d Try fix 2026-04-12 16:15:27 +01:00
Ivan Starkov d13a5a5a92 Try prod release again 2026-04-12 16:15:27 +01:00
Oleg Isonen 8de2fd47f6 fix: CSS shorthand properties not saved when value contains var() (#5688)
Shorthand properties like background: var(--color) were silently dropped
when pasting into the CSS editor because the shorthand expander can't
handle unresolved var() references.

Fix: CSS vars from the current element's computed styles are now
resolved before expanding shorthands. Inline and nested fallbacks
(var(--a, var(--b))) are supported. If a var still can't be resolved, a
toast error is shown instead of silently dropping the property.
2026-04-12 17:14:01 +02:00
Oleg Isonen ce3c82b582 chore: Decouple plans from the builder as much as possible (#5687) 2026-04-12 14:53:23 +02:00
Oleg Isonen 9ae93ac019 fix: Fix/color swatch in dropdown (#5675)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-11 19:49:17 +02:00
Oleg Isonen e7860b68a7 fix: feature config parsing for LTD plans (#5681) 0.259.0 2026-04-11 00:37:52 +02:00
Oleg Isonen e7927633e2 fix: Fix image picker filters by accept (#5686) 2026-04-11 00:36:27 +02:00
Oleg Isonen 7120443088 feat: replace accept checkmark icon with Accept button in notifications (#5685) 2026-04-11 00:30:42 +02:00
Oleg Isonen 3b62599ad3 fix: only show daily publish count toast when 10 or fewer remain (#5684)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-10 19:21:20 +02:00
Oleg Isonen 8b5fa7ef15 chore: msw testing helpers (#5683)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-10 19:11:27 +02:00
Shrek 72a4cecbb2 feat: replace asset option for image assets in asset details (#5676)
## Description

Adds the ability to replace an existing image asset with a new file
directly from the asset details panel, without having to delete and
re-upload manually. Related to [place an image so that it gets replaced
automatically everywhere its being used
#3268](https://github.com/webstudio-is/webstudio/issues/3268)

When clicking the new replace button on an image asset:
1. A file picker opens filtered to image MIME types
2. The new file is uploaded via the existing upload pipeline
3. All references to the old asset (props, styles, page meta: favicon,
social image, marketplace thumbnail) are atomically re-pointed to the
new asset
4. The old asset's filename and description are copied to the new asset
5. The old asset is deleted

A new `ReverseIcon` from the Figma library was added to the icons
package to represent the replace action.

## Steps for reproduction

1. Open the asset manager and select any image asset
2. In the asset details panel, click the new replace icon button next to
the download button
3. Select a new image file from the file picker
4. Expect the asset to be replaced in place - all usages (image props,
background styles, favicon, social image) should now reference the new
file with the original asset's filename preserved

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [x] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [x] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-10 19:10:56 +02:00
Oleg Isonen 90f92c58d3 feat: workspace seat billing at invite time, persist pending invites (#5680)
- Add minSeats/maxSeats to PlanFeatures schema
- listMembers returns DB-backed pending invites (no more client-side
state)
- countAllMembers includes pending invites (billed at invite time, Figma
model)
- Builder-level workspace-router calls payment worker on
addMember/removeMember
- Removed client-side invitedEmails state from manage-members-dialog
- getSeatSuspendedMessage now accepts optional workspace name
- notification-router simplified (accept no longer syncs seats)

## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-04-09 02:07:53 +02:00
Oleg Isonen b8a194c011 feat: Workspaces (#5641) 2026-04-08 21:58:20 +02:00
Oleg Isonen 80150b75e1 fix: don't round decimal unitless values for properties that accept them (#5673)
Decimals like `line-height: 1.5` were being rounded to integers because
the rounding logic in parseIntermediateOrInvalidValue applied to all
`unit: "number"` values unconditionally. Now it only rounds when
parseCssValue confirms the decimal is actually invalid for the property
(e.g. z-index, column-count require integers; line-height does not).
2026-04-02 23:50:40 +02:00
Oleg Isonen f28e99d85a chore: Payments (#5671) 2026-04-01 21:00:00 +02:00
Shrek fa54dbaafc feat: use background color to highlight the selected navigator tree (#5667)
# Description

This updates the navigator to use Figma-style subtree highlighting
instead of relying on vertical depth lines, which makes deeply nested
selections easier to follow. The selected node keeps the primary
selected background, its descendant subtree gets a lighter background,
and the navigator hides depth bars to reduce visual noise.

Related to
([#5206](https://github.com/webstudio-is/webstudio/issues/5206))

## Steps for reproduction

1. Open the Builder and create or expand a deeply nested navigator tree.
2. Select a node that has multiple nested descendants.
3. Expect the selected node to have the active background, its
descendant subtree to have a lighter background, and the navigator to no
longer rely on vertical guide lines for orientation.


https://github.com/user-attachments/assets/c7be9884-43e2-46f1-bb58-68bcf0bad48c

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [x] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-03-31 16:02:45 +02:00
Oleg Isonen a7329a6452 feat: Migrate billing portal from n8n to payment worker (#5653) 2026-03-31 13:55:31 +02:00
Oleg Isonen 678da389dd fix: Fix ssg export (#5668) 2026-03-28 11:11:29 +01:00
Oleg Isonen 4f36bfd899 fix: Ignore messages from unknown sources e.g. browser extension (#5666)
… third-party scripts)
0.258.0
2026-03-27 21:24:06 +01:00
Oleg Isonen aadf4c034b fix: Keep the resource variable modal open when adding headers (#5665)
## Description

Prevent accidental form submit in the resource variable modal when
adding or removing headers and search params. The icon buttons in the
resource editor were acting as submit buttons, which caused the
new-variable modal to close unexpectedly instead of updating the
resource fields. Updated the builder test-cases document with a manual
regression flow.

## Steps for reproduction

1. Select an element in a project
2. Open Settings for the element
3. Under data variables, create a new variable
4. Set the name
5. Select `resource` as the type
6. Enter a resource URL
7. Add a header
8. Expect the modal to stay open and a new header row to be added
9. Add a search param
10. Expect the modal to stay open and a new search param row to be added


https://github.com/user-attachments/assets/3dff2e22-284b-4548-8565-937255a732bb


## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [x] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-03-27 10:25:35 +01:00
Shrek 6359d27f6f fix: preserve shadow labels when hiding repeated items (#5663)
## Description

1. Fix style panel label rendering for repeated `box-shadow` and
`text-shadow` items after hiding one layer.

When a shadow layer is hidden, it is omitted from serialized computed
CSS. The repeated-style helper was reparsing that computed value and
bailing out when the computed item count no longer matched the cascaded
item count, which caused all shadow row labels to lose their details
even though the CSS and edit dialogs remained correct.

This PR:
- preserves repeated-item index mapping when hidden layers compact the
computed value
- returns hidden parsed items for hidden rows so labels still have data
- makes shadow labels prefer the row's parsed shadow value before
falling back to computed data
- adds regression tests for hidden box-shadow and text-shadow layers


https://github.com/user-attachments/assets/bd25e302-fac1-4cea-8a4b-317cc5b448f7


## Steps for reproduction

1. Select an instance in the builder.
2. Add at least 3 `box-shadow` layers in the style panel.
3. Hide the first layer.
4. Observe that, before this fix, the labels collapse to partial values
like `Outer:`.
6. Repeat the same flow with at least 3 `text-shadow` layers.
7. With this PR, hidden and visible shadow rows keep their full labels.

## Code Review

- [ ] hi @kof, I need you to do
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [x] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [x] added tests
- [ ] if any new env variables are added, added them to `.env` file
2026-03-27 10:02:07 +01:00