Commit Graph
5224 Commits
Author SHA1 Message Date
Oleg Isonen f20bd604d1 fix: Fix create and duplicate project (#2842)
Closes https://github.com/webstudio-is/webstudio/issues/2841

## Description

Previews Dashboard preview image pr broke creation and duplicatin of
projects

## Steps for reproduction

1. create a new project
2. duplicate a project

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-30 11:46:32 +01:00
Oleg Isonen db06821491 feat: Cleaner dashboard look and an intro video (#2843)
## Description

<img width="1512" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/bc840b48-d3cf-4932-8809-ff52fd021099">

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-30 11:46:16 +01:00
Oleg Isonen d09cceff35 chore: Drop view if exists always (#2839)
## Description

Fixes migration in https://github.com/webstudio-is/webstudio/pull/2836

It turned out updating a view reuires the order of the added fields to
be the same, otherwise it may cause weird effects .



![image](https://github.com/webstudio-is/webstudio/assets/52824/490fb38c-e2c1-46b0-9d82-4eece71f1148)

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-29 16:04:30 +01:00
Oleg Isonen 64940433c1 feat: Dashboard thumbnails (#2836)
Ref https://github.com/webstudio-is/webstudio/issues/2826

## Description

Rendering image preview of the home page social image




https://github.com/webstudio-is/webstudio/assets/52824/df23b0e2-7844-4c08-807d-ab16c83cd218



## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-29 14:30:15 +01:00
Bogdan Chadkin 7a6f5280fa build: npm release 0.129 (#2838) 0.129.0 2024-01-29 01:01:44 +07:00
Bogdan Chadkin f01da8f0a9 feat: add reverse flex directions (#2837)
Fixes https://github.com/webstudio-is/webstudio/issues/2392

<img width="249" alt="Screenshot 2024-01-28 at 14 18 08"
src="https://github.com/webstudio-is/webstudio/assets/5635476/7c346efc-91bf-4bda-ac16-0372db2319db">
2024-01-29 00:00:03 +07:00
Bogdan Chadkin 8cf38aa7c1 feat: allow refreshing resources (#2835)
Fixes https://github.com/webstudio-is/webstudio/issues/2797

<img width="564" alt="Screenshot 2024-01-27 at 15 31 19"
src="https://github.com/webstudio-is/webstudio/assets/5635476/86479413-854b-44be-8566-8f4f08c015c2">
2024-01-28 13:22:34 +07:00
Oleg Isonen f0c7decb0f feat: Topbar pages button (#2834)
Ref https://github.com/webstudio-is/webstudio/issues/2826

## Description

Previously active page in the topbar was only text, now its a button
that can toggle pages panel

## Steps for reproduction

1. click on page name in topbar
2. expect it to toggle pages panel

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-27 09:38:40 +01:00
Oleg Isonen 609e74c783 feat: Disable domain link button when published site is not ready (#2832)
Ref https://github.com/webstudio-is/webstudio/issues/2826

## Description

An active domain link icon button causes peopple to click on it when
domain/publish is not done and they end up seeing the worker error

## Steps for reproduction

1. when domain is not fully connected or at least one publish is not
done
2. expect external link button to be deactivated

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-26 19:17:51 +01:00
Bogdan Chadkin d8922a0dd4 fix: prevent editing body (#2833)
Fixes https://github.com/webstudio-is/webstudio/issues/2732
https://discord.com/channels/955905230107738152/1192842837583212655
2024-01-27 00:02:06 +07:00
Oleg Isonen 5468bbd05f fix: Navigator toolbar fixes (#2825)
Closes https://github.com/webstudio-is/webstudio/issues/1872

## Description

- updated tab trigger colors
- enabled close button when navigator is in tabbed/docked mode
- always keep the dock icon

## Steps for reproduction

1. when in undocked mode - no close button, if another tab is open,
navigator icon opens the navigator, but doesn't close
2. when in docked mode - icon closes/opens navigator, navigator is
rendered on top of canvas (for small screens)
3. when switching from docked and tab is open to undocked - tab gets
closed

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-26 16:48:23 +01:00
Bogdan Chadkin 06aa515fdd fix: compile expressions when compute properties (#2831)
Here missed the case we have to compile our expressions before executing
them with optional flag to prevent failing when properties are accessed
from undefined.
2024-01-26 20:39:47 +07:00
Bogdan Chadkin 4ef839aba7 fix: trim url for cloudflare worker (#2830)
Fixes
https://discord.com/channels/955905230107738152/1199803387005390858/1199803387005390858

Here fixed the issue with leading spaces in resource urls fail when
fetch in workers. Trimmed urls and added validation for urls.
2024-01-26 20:12:32 +07:00
Bogdan ChadkinandOleg Isonen 2816784602 fix: code editor bugs (#2829)
Fixes
https://discord.com/channels/955905230107738152/1200217669425709066

- fixed code editor collapsing
- fixed code editor initial scrolls jumping
- set max 20 lines for collection  data

---------

Co-authored-by: Oleg Isonen <oleg008@gmail.com>
2024-01-26 19:27:12 +07:00
Ivan Starkov 9edc0d7661 build: Connection pool to suport new supabase (#2828)
## Description

- Removed PGBOUNCER var from vercel
- Renamed DATABASE_URL => DIRECT_URL
- Added DATABASE_URL using this
https://www.prisma.io/docs/orm/overview/databases/supabase

SAME MUST BE DONE ON SAAS TOO ON RELEASE!!!!!!!!!!!!!!

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-26 12:33:09 +03:00
Ivan Starkov 091bd3d9a3 feat: Allow change route template in cli custom templates (#2827)
Allow change route template, so various tests in saas become easier. 
Also now each template can have own route template.
2024-01-26 14:38:53 +07:00
Oleg Isonen abcc046c65 fix: Align spacing for size section with figma (#2823)
closes https://github.com/webstudio-is/webstudio/issues/1847

## Description

Just spacing for sizes section

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @istarkov , I need you to do
  - conceptual review (architecture, feature-correctness)

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 17:20:38 +01:00
Bogdan Chadkin d0395d072e refactor: generalize generating components (#2816)
Ref https://github.com/webstudio-is/webstudio/issues/2791

Here renamed generatePageComponent to generateWebstudioComponent and
refactored to use it later for slots.

"Page Params" variable is now passed as parameter. Similar way we will
support parameters in design components.
2024-01-25 23:17:17 +07:00
Ivan Starkov 252cff1326 build: Npm release 0.128.0 (#2822)
## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
0.128.0
2024-01-25 19:11:42 +03:00
Oleg Isonen f28c241a49 fix: Settings panel spacing (#2817)
Ref https://github.com/webstudio-is/webstudio/issues/1947

## Description

It's getting it closer, but not quite all the things, so not closing the
issue yet

Before:

<img width="253" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/0d31a706-a6c7-4dea-b5e8-976c0657f4b4">


After:
<img width="259" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/d64ff71c-af11-48fb-92ca-92ccd0bfa949">

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 16:51:05 +01:00
Oleg Isonen afa218ce30 fix: Remaining styling fixes for box shadow and backgrounds (#2818)
Closes https://github.com/webstudio-is/webstudio/issues/1889

## Description

Small  styling fixes 

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @TrySound , I need you to do
  - conceptual review (architecture, feature-correctness)

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 16:39:59 +01:00
Ivan Starkov 5bff0d7584 fix: Remove deleted projects from domain count calc (#2821)
## Description

closes #2812

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 18:39:45 +03:00
Ivan Starkov b31738b586 feat: Add additional page for fixtures (#2819)
## Description

Add additional page for base fixture to simplify script loading testing.
(In other PR)

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 18:39:27 +03:00
Oleg Isonen bd935d5ec1 fix: Font smoothing antialised makes all fonts look like in figma (#2820)
Closes https://github.com/webstudio-is/webstudio/issues/1848

## Description

Under closer look all fonts were a bit bolder than in figma and this
seems to be fixing it

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @istarkov , I need you to do
  - 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 16:39:14 +01:00
Ivan Starkov b8067ac996 feat: Show plan name instead of Pro badge (#2815)
## Description

Show tier name instead of Pro badge

<img width="650" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5077042/c54fcc7c-6fa9-42b1-bcf4-bd5a0b853cf7">


Additionally we need to rename existing products on stripe

```
RocketHub T1
RocketHub T2
RocketHub T3

LTD T1
LTD T2
LTD T3
```

And fix n8n schemas to update product names

to 

```
AppSumo T1
AppSumo T2
AppSumo T3
AppSumo T4
```

during product upsert.



## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-25 18:13:28 +03:00
Jaya Krishna Namburu 11d7fa28ed feat: Add redirects UI for 301 redirects to external URL's (#2779) 2024-01-25 17:05:22 +05:30
Bogdan Chadkin a474d92069 refactor: inline actions into props (#2813)
Ref https://github.com/webstudio-is/webstudio/issues/2791

Here refactored actions generation and computing
to simplify rendering slots as components.

before

```ts
const onClick = () => {
variableName = 1
set$variableName(variableName)
}
...
<Box
data-ws-id="..."
data-ws-component="Box"
onClick={onClick}>
```

after

```ts
<Box
data-ws-id="..."
data-ws-component="Box"
onClick={() => {
variableName = 1
set$variableName(variableName)
}}>
```

Similar thing done in builder. Actions are generated and executed per
each prop when compute prop values instead of precomputing globally
along with variables.
2024-01-25 12:50:59 +07:00
Oleg Isonen 212d96c595 fix: Label shouldn't be used for section titles (#2811)
## Description

When clicking on favicon upload label, it shouldn't trigger the upload
button click

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @istarkov , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-23 17:56:07 +01:00
Bogdan Chadkin e01000e7ad fix: recover from canvas errors (#2809)
Here added error boundary to catch user errors and be able to recover
from them when broken data is updated.

No longer requires reload.
2024-01-23 23:09:01 +07:00
Bogdan Chadkin 42c4c365d1 fix: reinitialize commands when builder is reopen (#2808)
Here fixed the issue with builder commands stopped being available to
canvas because initialized only once when app starts.

Here changed initialization to each time builder is open.
2024-01-23 22:11:02 +07:00
Jaya Krishna Namburu edf39d8c40 fix: Use custom logic for showing style source label for property names. (#2810) 2024-01-23 20:39:09 +05:30
Ivan Starkov 70711f37a1 build: Release 0.127.0 (#2807)
## Description

Release 0.127.0

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
0.127.0
2024-01-22 21:56:28 +03:00
Oleg Isonen cd5cd2126f chore: Better expression editor tooltip wording (#2805)
## Description

- better expresion tooltip wording
- better layout for empty state

<img width="265" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/1ad93c44-9bfa-4ee3-a6c5-945a3b3ed7e5">

<img width="492" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/75d7ed46-0862-4174-b42d-1d735e07c5c0">


## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-22 19:37:30 +01:00
Bogdan Chadkin a29605cc78 fix: handle invalid request errors in resource loader (#2802)
Here fixed the case with broken published site when invalid url is
passed to fetch. The error is passed to user as statusText with 500
status code.

As a result correct everything will continue to render just with empty
data.

## Code Review

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

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-22 21:11:16 +03:00
Oleg Isonen a52468a3c1 chore: Improve wording for empty state in variables and binding panels (#2803)
## Description


![image](https://github.com/webstudio-is/webstudio/assets/52824/2d941caa-7b3d-43fc-9577-59f81dd38409)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @TrySound , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-22 18:13:50 +01:00
Bogdan Chadkin 2daaafd3e2 fix: compute styles for collection children correctly (#2804)
Here fixed detecting flex child on collection children where collection
parent is flexbox.

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-22 18:05:09 +01:00
Oleg Isonen 9082e4f6ee feat: Use home icon on the home page (#2793)
## Description

Just a different icon instead of standard page icon when its a home page

## Steps for reproduction

1. open pages
2. see home with home icon, the rest of pages regular icon

## Code Review

- [ ] hi @TrySound , I need you to do
  - conceptual review (architecture, feature-correctness)


## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-22 16:58:32 +01:00
Bogdan Chadkin b9df036202 fix: hide page path tooltip (#2800)
Fixes
https://discord.com/channels/955905230107738152/1198946829778305044/1198946829778305044

Should be behind cms flag
2024-01-22 21:54:57 +07:00
Ivan Starkov 24d161e000 build: Release 0.126.0 (#2795)
## Description

Npm 0.126.0 Release

## 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
0.126.0
2024-01-22 09:10:34 +03:00
Bogdan Chadkin 3fb1368023 feat: support copy pasting resources (#2796)
Closes https://github.com/webstudio-is/webstudio/issues/2532

Last one
2024-01-22 13:09:13 +07:00
Oleg Isonen c822151098 feat: Collapsible folders & nested deletion (#2776)
Ref  https://github.com/webstudio-is/webstudio/issues/404
## Description

- collapsible folders
- highlight the nested folder in pages list
- nested deletion of folders and pages
- page selector for link href now has pages in groups by folder

## Steps for reproduction

### Collapsing
1. can collapse/expand folders by clicking on arrow
2. can click on the item itself to collapse/expand
3. can use option key to apply to all children
4. can close pages panel and return to the previous state when opening
again, preserving the collapsing state

### Nested deletion
1. create a nested folder pages
2. delete the top folder
3. confirm 
4. all pages and folders should be cleanly deleted


## Code Review

- [ ] hi @TrySound , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-21 22:45:38 +01:00
Oleg IsonenandShyanRoyChoudhury ce2a5ebc52 feat: Outline Section UX improvement (#2789)
## Description

1. What is this PR about (link the issue and add a short description)
The PR has 2 improvements mentioned in the issue #2602 :
 * Ordered the Outline section after the Effects section
 * Hides all properties except Style until a Style value is selected
 
## Steps for reproduction

1. Login and create a project.
2. On the style section on the right side of the screen. scroll down to
find the updates.
3.  Outline section has shifted below Effects section.
4. And only on selecting the other toggles on style property other than
none, renders the colour, width and offset properties.


## Code Review

- [x] 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:
d252)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory

---------

Co-authored-by: ShyanRoyChoudhury <shayan.roy31@gmail.com>
2024-01-21 17:22:31 +01:00
Bogdan Chadkin eb5f9809ba fix: insert copy on reparent (#2787)
Ref https://github.com/webstudio-is/webstudio/issues/2532

Here replaced reparent implementation with copy/paste logic to support
changing scope of variables.
2024-01-21 21:31:39 +07:00
Oleg Isonen 7ebe625d82 feat: Add titles in the binidngs panel (#2786)
## Description

Adding titles for variables and expression editor for clarity and
tooltips

## Steps for reproduction

1. add a binding
2. see titles and tooltips

<img width="258" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/12332e2e-4b55-4d89-8915-cb67055dddc9">

<img width="315" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/e1bc3a6e-897a-405a-8541-d436b1533390">

<img width="288" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/7c9e3f19-986f-44fe-a51b-092f9dd9933a">

## Code Review

- [ ] hi @TrySound , 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:
5de6)
- [ ] 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.example`
and the `builder/env-check.js` if mandatory
2024-01-21 14:04:49 +01:00
Bogdan Chadkin 0c9ee38235 feat: support copy pasting text content bindings (#2788)
Ref https://github.com/webstudio-is/webstudio/issues/2532

Extended existing tests and logic to support expressions in instance
children beside prop expressions.
2024-01-21 17:46:19 +07:00
Bogdan Chadkin 1e7ef26dc9 refactor: make inserting fragments copy composable (#2783)
Ref https://github.com/webstudio-is/webstudio/issues/2532

Here refactored insertInstancesSliceCopy to accept webstudio data
instead of creating transaction.

This let us avoid hacky callbacks in duplicate instance and duplicate
page functionalities.

Note: review with hidden whitespaces
2024-01-21 12:15:08 +07:00
Bogdan Chadkin 7263136d4c refactor: drop boilerplaty parse/serialize (#2784)
Dropped previously deprecated parse/serialize utilities.
2024-01-21 11:42:15 +07:00
Bogdan Chadkin a84320666d refactor: make delete instance composable (#2781)
Here refactored delete instance to accept and mutate webstudio data
instead of accessing data stores.
Now we can avoid double transaction when delete pages.

Note: review with hidden whitespaces
2024-01-19 22:55:10 +07:00
Bogdan Chadkin f620e2e1f2 refactor: generalize transferrable fragments (#2780)
Here added two new types

WebstudioFragment - reusable fragment of webstudio data which can be
generated (markdown, embed template), transferred (copied or stored in
marketplace) and inserted.

WebstudioData - all available normalized data to allow composing
multiple operations within single transaction like delete instance and
then insert into other part of the page.
2024-01-19 22:24:59 +07:00
Bogdan Chadkin a76c29fc05 feat: inline variables outside current component/slot (#2778)
Ref https://github.com/webstudio-is/webstudio/issues/2532

Important constrain on the way to custom components to not use data
sources defined in other components when copy paste.

## Steps for reproduction

1. Test covers it
2024-01-18 23:37:50 +07:00