5850 Commits

Author SHA1 Message Date
55c98d2663 build: Release 26-02-2025 0.205.0 2025-02-26 21:24:24 +00:00
65a18f309f build: Automate release creation (#4910)
## Description

See script title comment why it's for

- [x] - Fix doc in SaaS
New docs
```md
Run ./release.sh

If release contains a migration: git commit -m "::migrate::" --allow-empty

Push created branch into the main repo, create draft Pull Request. (Draft pull request to ensure that it will not be merged by mistake)
```


## 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
2025-02-26 22:22:58 +01:00
4e6a448d96 fix: insert marketplace sections after selected instance (#4918)
Closes https://github.com/webstudio-is/webstudio/issues/4902

Rapid prototyping requires slightly different logic for inserting from
marketplace so sections could be added one after another.
2025-02-27 01:44:21 +07:00
16dc6c63e2 fix: Reordering Animation Children (#4917)
## 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
2025-02-26 22:36:57 +05:00
7b01153f67 experimental: Shorthands autocomplete (#4898)
ref https://github.com/webstudio-is/webstudio/issues/4816

## Description

Shows shorthands in autocomplete when adding properties.

## 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
2025-02-26 16:45:20 +01:00
06e0909275 experimental: New predefined animations (#4916)
## Description

Added few composable In, Out animations to the predefined `Add
Animation`

<img width="1411" alt="image"
src="https://github.com/user-attachments/assets/3f85ecd8-80d5-449e-a28b-3544e88eb93f"
/>


## 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
2025-02-26 16:43:53 +05:00
e6f92d827f experimental: Add debug info (#4915)
## Description

Adds experimental debug mode

<img width="306" alt="image"
src="https://github.com/user-attachments/assets/756d7f2c-d191-4cdf-9542-262f554b907e"
/>

![Screen Recording 2025-02-26 at 13 55
31](https://github.com/user-attachments/assets/cb9b83ff-b5c0-4ccf-9fab-cec77631a39d)




## 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
2025-02-26 14:14:08 +05:00
475970dd0a fix: use scroll area for pages (#4909)
After recent changes dots button is not reachable behind native scroll.
User with many pages reported the issue.
2025-02-25 02:21:17 +07:00
be2ae85854 feat: unset variables in page meta when deleted (#4907)
Another case I forgot. Variables should be unset in all page metas when
deleted.

- Test delete of body variable used in page title
- Test delete of global variable used in page title
- Bind all page meta values and delete the variable to make sure it was
unset from all fields
2025-02-24 21:27:07 +07:00
a8146c5493 fix: Fix reset on gap icons (#4908)
Closes https://github.com/webstudio-is/webstudio/issues/4861
## Description

1. reset with option/alt + click on icon without waiting for a tooltip
to click reset button
2. can't click on icon to open the tooltip

## 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
2025-02-24 15:21:20 +01:00
62a6d939d8 experimental: Animate UI (#4851)
## 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
2025-02-24 14:27:50 +05:00
5cd30fe8b0 feat: unset global variables when delete (#4904)
Global variables will be replaced with "name" or unset when deleted from
data variables section.

There are few cases to test

1. variable is unset on a few pages when delete
2. variable is unset on inside of slots when delete
2025-02-23 23:34:45 +07:00
f5b7efefef fix(devcontainer): Fix pnpm installation issue in postinstall.sh (#4886)
## Description

1. What is this PR about (link the issue and add a short description)
* This PR fixes an issue where `pnpm` was not being correctly installed
or configured within the Devcontainer environment when using
`postinstall.sh`.
* This was causing errors during container startup and when running
`pnpm` commands inside the Devcontainer.
* The fix ensures `pnpm` is properly set up in `postinstall.sh`,
resolving the Devcontainer setup issue.

## Steps for reproduction

1. Start the Webstudio Devcontainer.
2. Expect the Devcontainer to start successfully without `pnpm` related
errors.
3. Verify that `pnpm` commands can be executed correctly within the
Devcontainer terminal (e.g., `pnpm --version`).

## 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
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-02-23 14:04:38 +05:00
bf8f95a4e1 fix: Show highlighted item in slash menu in content block (#4903)
## Description

When opening slash menu in content block and using arrow keys, current
item is not highlighted

## 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
2025-02-22 20:01:56 +01:00
23034dad25 feat: add global system variable in builder (#4896)
Closes https://github.com/webstudio-is/webstudio/issues/4166

Now system is global variable and can be accessed in slots.

Legacy one can be deleted

<img width="264" alt="image"
src="https://github.com/user-attachments/assets/1c1d60f5-6be2-4871-9970-3593e3e7c08a"
/>
2025-02-23 01:46:21 +07:00
21271086f2 fix: prevent inserting into instance with placeholder (#4901)
Closes https://github.com/webstudio-is/webstudio/issues/4897

Added "placeholder" field to component meta to signal the instance
accepts should not be insertion target. This reverts us to previous
behavior even with empty instances.

Also slightly refactored placeholder rendering to use attr() instead of
extra css variable.
2025-02-22 23:56:30 +07:00
78a0fa98c1 refactor: output hyphenated properties from css parser (#4900)
We are going to switch to hyphenated properties in styles. Here
refactored css parser to output hyphenated property instead of camel
case and added camelCaseProperty utility which does the opposite of
hyphenateProperty.
2025-02-22 18:11:57 +07:00
326275fb24 refactor: generate presets with css cascade layers (#4894)
Closes https://github.com/webstudio-is/webstudio/issues/4796

CSS Cascade Layers are already widely support for almost 3 years. See
https://developer.mozilla.org/en-US/docs/Web/CSS/@layer

We can switch to it instead of wrapping selectors with `:where` all
preset selectors.

For older browsers impact will be insignificant as in most cases we use
presets only to normalize browser styles.

Generated code now looks like this

```css
@layer presets {
  div.w-box {
    display: block;
  }
}
```

Here's how presets look in chrome devtools. As you can see browser
styles are defined as layer too.

<img width="357" alt="Screenshot 2025-02-19 at 17 14 23"
src="https://github.com/user-attachments/assets/473f2c0e-c7c5-4011-ba6b-4eeb1b805039"
/>
2025-02-22 12:45:49 +07:00
25930876ef experimental: more advanced style panel feaures (#4890)
Ref https://github.com/webstudio-is/webstudio/issues/4816
Closes https://github.com/webstudio-is/webstudio/issues/4874

## Description

- [x] Memorizing recent properties by instance, so that when user
switches between instances and comes back they are still in-place
- [x] alt+shift+a for advanced mode shorthand


## 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
2025-02-19 21:26:13 +01:00
18409bb8ee refactor: fix system on non-home pages (#4893)
Tested forms only on home page. John caught the issue on other pages.
Forms now submit system.search on non-home pages proeprly.
2025-02-19 00:59:24 +07:00
b798809870 refactor: decouple system store from variables (#4888)
We are moving away from binding system to variables and instead gonna
have one global variable.

Here moved system values into separate store coupled to pages instead of
variables.

Also fixed suggestions in address bar, probably broke while design
system refactorings.

Testing
- submit form with one named input
- check system value is rendered
- check system value can be inspected
2025-02-18 23:28:29 +07:00
34e18b35ae fix: allow broken variables when validate updates (#4892)
Some templates have variables with missing scopeInstanceId on dialogs or
something else from broken embed template. Here allow it in validation
because migration would be more complex.

---------

Co-authored-by: Oleg Isonen <oleg008@gmail.com>
2025-02-18 23:20:02 +07:00
250b525ef9 refactor: move css generation to sdk (#4889)
No changes. Just moved generateCss from react-sdk to sdk.
2025-02-18 21:14:05 +07:00
7d74ea075c chore: Unreleased bugs with advanced section (#4882)
## Description

- [x] Can't click a property on main in advanced

https://github.com/user-attachments/assets/a2446685-e7dc-4c01-bf03-4ee64b8f5e16
- [x] looks like property name validation is broken. I add "dispaaayyy"
and it accepeted


## 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
2025-02-18 13:20:37 +01:00
cfbddfe066 fix: Certificate update (#4887)
## 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
2025-02-18 01:58:28 +05:00
b7e1c86f68 experimental: generate global system variable with CLI (#4885)
Here added support for generating global system variable with CLI. It's
not available yet in builder though.

Global system not presented in data but instead can be referenced with
`$ws$system` in expression instead of encoded id like
`$ws$dataSource$id`. Legacy page system variable will continue to work.
2025-02-17 16:50:55 +07:00
5c1c55799b feat: drop legacy CLI templates (#4867)
Here dropped vanilla and legacy vercel templates.
Replaced vanilla with docker in publish dialog.

<img width="360" alt="Screenshot 2025-02-13 at 18 34 53"
src="https://github.com/user-attachments/assets/c84cdae1-d1f8-4a91-b03c-1e13e95bcbf2"
/>
2025-02-16 12:50:39 +07:00
5ae7ea624f fix: Space in navigation menu button trigger exits text editing (#4880)
## Description

closes #4879

## 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
2025-02-16 10:50:22 +05:00
b4c1ffd905 fix: Scrub on windows (#4847)
## Description

https://discord.com/channels/955905230107738152/1337534586707644416


There are other bugs I see on Windows on my machine -
`requestPointerLock` seems too buggy.

1. In my case, wrap-around is not working.  
2. Fast clicks and movements can cause `pointerup` to not be intercepted
(because of the fix above).

Here’s how I see the issue:  

- `requestPointerLock` is asynchronous.  
- During `requestPointerLock`, we might get a `lostpointercapture`
event.
- This has a very low probability of happening on Mac.  
- On Windows, the probability is very high _(it can be caused by calling
`requestPointerLock` itself, depending on the machine)_.
- On Mac, if this happens, the `pointerup` event will most likely be
lost.
- On Windows, the `pointerup` event is usually preserved but can be lost
as well.

Currently, on Windows, instead of cleanup, we assume everything will be
fine.
On Mac, we perform cleanup on the `lostpointercapture` event.  

Windows' behavior is buggy, but I haven’t found a proper way to fix it.
There's no way to detect `event.buttons` on move, and this happens
independently of the `pointerleave` event.
Using body as lock target etc doesn't work too. 

My suggestion - if this causes new bugs - is to remove
`requestPointerLock` entirely on Windows.


## Steps for reproduction

1. click button
3. 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
2025-02-16 07:44:09 +05:00
6eb989d225 feat: Backspace to reset the value in CSS Value Input (#4878)
## Description

1. improved composeEventHandlers implementation
2. delete value text, then hit backspace - same as reset
3. in advanced panel all property tooltips now show "Delete property"
wording instead of "Reset value"

<img width="363" alt="image"
src="https://github.com/user-attachments/assets/f4ad7ec4-892c-4774-9143-ac2b26c55cde"
/>


## Steps for reproduction

1. click button
4. 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
2025-02-15 17:53:28 +01:00
769b2461c4 feat: Context menu for advanced style panel (#4876)
https://github.com/webstudio-is/webstudio/issues/4816

## Description

1. right click in advanced 
2. copy all
3. copy one
4. paste
5. search now works for properties AND values
6. backspace in add styles input when its empty now also closes the
input same as esc

## Steps for reproduction

1. click button
7. 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
2025-02-15 13:35:04 +01:00
ecb23c0216 feat: Search for advanced section in style panel (#4862)
https://github.com/webstudio-is/webstudio/issues/4805

## Description

1. start searching
2. abort with esc
3. try in default as well as in advanced mode
4. try with recent changes and without

## Steps for reproduction

1. click button
5. 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
2025-02-14 19:59:49 +01:00
c3ac4d6ec1 fix: preserve global variables when duplicate page (#4875)
Missed the case. Global variables were recreated and got invalid state.
Now global variables are reused or added without changes.
2025-02-15 02:53:09 +08:00
8ed3fbb085 feat: support global data variables (#4870)
Ref https://github.com/webstudio-is/webstudio/issues/4166
https://github.com/webstudio-is/webstudio/issues/3686

Added "Settings" section to global root. Now users can create data
variables which are available for all pages and inside slots.



https://github.com/user-attachments/assets/be2cf862-08ec-427e-aea3-076fa03a4437
2025-02-15 01:23:16 +08:00
13a4660391 fix: rebind variables after delete (#4865)
Ref https://github.com/webstudio-is/webstudio/issues/4768

Forgot to handle the case with rebinding with parent variables after
variable on child is deleted.

Also fixed the case with rebinding variables outside of slot scope.
2025-02-13 18:00:54 +08:00
5fabe66c7f feat: add new vercel template based on react-router (#4825)
Had to add huge @vercel/react-router but it works now.
2025-02-13 17:02:48 +08:00
ae864ef8b6 feat: allow deleting variables used in expressions (#4860)
Ref https://github.com/webstudio-is/webstudio/issues/4768

Before we disabled deleting variables which are used in expressions. Now
we will ask confirmation and unset this variable. This way user will not
be locked if variable is lost and we will show diagnostics (in the
future) where all unset variables are.

<img width="908" alt="Screenshot 2025-02-12 at 15 38 14"
src="https://github.com/user-attachments/assets/ea9eea58-c276-4251-8b95-1214e9380621"
/>
2025-02-13 10:37:53 +08:00
ba3c964095 fix: cleanup parent children when delete instances (#4859)
Was missed while refactoring. Wrong data was mutated.
2025-02-12 16:52:16 +08:00
4855ffdeb9 fix: Fix copy instance if no text is selected (#4858)
Closes https://github.com/webstudio-is/webstudio/issues/4856

## Description

Current logic broke in Chrome 133

1. Select instance in navigator
2. Copy
3. Paste
4. Should still allow selecting text and copying it

## 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

---------

Co-authored-by: istarkov <istarkov@gmail.com>
2025-02-12 15:43:25 +08:00
9e710f4156 refactor: replace ultraflag with @bomb.sh/args (#4857)
The project migrated to the new name.
No changes.
2025-02-11 23:50:18 +08:00
a03697e208 refactor: bump radix components (#4848)
Ref
https://www.radix-ui.com/primitives/docs/overview/releases#february-5-2025

Two small changes

- add react 19 to peer dependencies (remember that wall of errors?)
- prevent passing props when slot child is fragment
2025-02-11 23:37:35 +08:00
9baa30f14d fix: remove masked duplicates in binding popover (#4855)
Here improved computing variables logic to exclude masked variables from
bindings popover list.

Also rewrote related tests with jsx template.

<img width="550" alt="Screenshot 2025-02-11 at 17 49 00"
src="https://github.com/user-attachments/assets/4a4995c6-90f2-4ec4-aa08-ff66e682e90d"
/>
2025-02-11 23:16:45 +08:00
1e86e762c2 feat: Autocomplete values in advanced panel (#4854)
https://github.com/webstudio-is/webstudio/issues/4816

## Description

- When adding a new property, you sometimes don't know the property
name, e.g. you know you want to "center" it but you don't remember if
its align-items, align-content or any other and you need to see the
list.
- Currently you can create a css variable "bla" and it will bypass
validation, now it will validate
- also try "color" esc autocomplete, enter
- or "color:red" esc autocomplete enter


Try typing "center"

## 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
2025-02-11 15:26:47 +01:00
d60d3c55b8 experimental: Improve readability in advanced section (#4852)
https://github.com/webstudio-is/webstudio/issues/4816

## Description

Improved readability by:
1. indentation
2. setting gray color for preset properties
3. making colon bolder

<img width="258" alt="image"
src="https://github.com/user-attachments/assets/60528221-35f3-4782-986f-8656a9b6bffd"
/>


## Steps for reproduction

1. click button
4. 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
2025-02-10 16:01:35 +01:00
93334da114 feat: rebind masked variables (#4849)
Here improved creating variables to override deeper bindings when new
variable overrides ancestor variable similar to css variables behavior.

Here's a video with example



https://github.com/user-attachments/assets/41f93f5b-fd2d-4a3b-97d1-076f0ded5f01
2025-02-10 09:03:21 +07:00
b68d29bbca feat: Suggest a variable when user forgets -- in advanced panel (#4850)
https://github.com/webstudio-is/webstudio/issues/4804

## Description

When user is trying to create a variable but forgot to add --, we can
help

<img width="258" alt="image"
src="https://github.com/user-attachments/assets/689b33a3-5044-461b-bafa-6cac9bbcc3b2"
/>


## 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
2025-02-10 00:29:05 +01:00
1c08434e2a feat: Improved UX for adding multiple advanced style panel properties (#4846)
https://github.com/webstudio-is/webstudio/issues/4816

## Description

- [x] recent proeprties section
- [x] enter or tab in the last value in recent to show adding input
again
- [x] close new adding property input on ESC
- [x] show in recent when user ads an existing property
- [x] handle multiple properties insertion

## 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
2025-02-09 22:43:57 +01:00
a2b84fc274 refactor: use text field for devlogin (#4838)
Password field makes it harder to enter email for new user. Since thew
feature is dev only there is no need to protect it as password.
2025-02-09 20:03:35 +07:00
aa527ae2e9 refactor: rewrite more copy paste tests with jsx template (#4845)
Ref https://github.com/webstudio-is/webstudio/issues/4093

1. rewrote tests with jsx template
2. fixed copying prop resources with slots
2025-02-08 22:06:22 +07:00
4c48c21714 experimental: Advanced panel sorting and grouping (#4842)
https://github.com/webstudio-is/webstudio/issues/4816

## Description

1. We want to group entries by origin
2. We want to sort by alphabet

## Steps for reproduction

1. click button
3. 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
2025-02-08 09:58:46 +01:00