2579 Commits
Author SHA1 Message Date
Ivan Starkov f21442b3b9 build: Release 0.130.0 (#2877)
## 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
2024-02-07 20:37:44 +03:00
Oleg Isonen d1dba475c5 feat: Clonable project (#2871)
## Description

Every project is now clonable if you have a shared link with at least
view permission or higher.

## Steps for reproduction

1. get a link with view permission from another owner
2. clone it
3. repeat the same from your own 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-02-07 15:46:22 +01:00
Jaya Krishna Namburu 2bb7e06281 chore: Add DIRECT_URL to the .env.example file (#2861)
## Description

Connecting to database now needs `DIRECT_URL` too, referene

https://github.com/webstudio-is/webstudio/blob/main/packages/prisma-client/prisma/schema.prisma#L13-L17

```sh
datasource db {
  provider  = "postgres"
  url       = env("DATABASE_URL")
  directUrl = env("DIRECT_URL")
}
```



## Code Review

- [ ] hi @istarkov , I need you to do
  - detailed review (read every line)
  
## Before requesting a review

- [x] made a self-review
2024-02-06 16:01:01 +01:00
Bogdan Chadkin 39579c904b feat: preserve last selected style source on instances (#2873)
Fixes https://github.com/webstudio-is/webstudio/issues/2575
2024-02-06 20:22:59 +07:00
Bogdan Chadkin 0a8b4d4325 fix: prevent form validation in canvas mode (#2874)
Fixes
https://discord.com/channels/955905230107738152/1203979363738193960
2024-02-06 18:54:38 +07:00
Jaya Krishna Namburu d4de7c6f27 fix: selecting transition property when filtering (#2869)
## Description
https://discord.com/channels/955905230107738152/1203772575298232412
Fixes, wrong selection of property when a list is being filtered for
transition proeprties.

## Steps for reproduction

- Add a transition property.
- Then select the `property` and enter some characters for filtering.
- Now, select a value from the newly filtered list.


## Code Review

- [ ] hi, I need you to do
  - conceptual review (architecture, feature-correctness)
  - 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

- [] tested locally and on preview environment (preview dev login: 5de6)
2024-02-06 12:09:51 +01:00
Oleg Isonen 913a44c30c feat: Collapse folders by default and allow collapsing first-level folders (#2864)
## Description

1. Opens folders in collapsed state by default, otherwise with big
amount of items folders are kind pointless as you have to close them
first
2. Allow collapsing folders on the first level, it wasn't possible
before

<img width="248" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/2c6f1518-2a29-40fc-b839-f5ba9d75eec1">


## Steps for reproduction

1. create nested folders
1. see you can collapse/expand first level folder
1. see you folders open in collapsed state initially

## 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-02-05 14:00:20 +01:00
Bogdan Chadkin 4f7dbce2f3 feat: autocomplete computed member expression (#2866)
Fixes https://github.com/webstudio-is/webstudio/issues/2790
https://discord.com/channels/955905230107738152/1203115803910873218

Here fixed the issue with completing array indexes or object keys
unsupported with dot syntax.

<img width="294" alt="Screenshot 2024-02-04 at 17 34 37"
src="https://github.com/webstudio-is/webstudio/assets/5635476/541f7b94-1d66-4062-a76e-d91d42040517">
<img width="526" alt="Screenshot 2024-02-04 at 17 33 20"
src="https://github.com/webstudio-is/webstudio/assets/5635476/54f97a1b-8034-4139-978e-0d10a148189b">
<img width="377" alt="Screenshot 2024-02-04 at 17 33 27"
src="https://github.com/webstudio-is/webstudio/assets/5635476/feecea04-646e-4b7d-9c33-5f957cdf08a9">
2024-02-04 23:04:28 +07:00
Oleg Isonen 00fa1e97ff chore: Reorganize project settings (#2865)
## Description

No functional changes, only namings and structure - each section,
separate module

## Steps for reproduction

1. open project settings
2. expect no changes

## 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-02-03 16:41:29 +01:00
Oleg Isonen 9cb07e6c73 feat: Use a number as a shortcut for breakpoints without modifiers (#2862)
## Description

Both ctrl/cmd + number are used to in browsers to switch between tabs.
Webflow is just using a number shortcut without modifier, lets do the
same

## Steps for reproduction

1. hit numbers to switch breakpoints
2. can still type numbers in inputs

## 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-02-03 11:49:06 +01:00
Oleg Isonen b68702a630 fix: Show active state of the menu button for advanced typography options (#2863)
## Description

Show active state of the menu button for advanced typography options
## Steps for reproduction

1. typography section > advanced settings menu > click
2. panel opens, button has active state

## 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-02-03 11:28:36 +01:00
Oleg Isonen de7f764932 fix: Font familes with a space were not rendering correctly (#2860)
## Description

Now any font that contains a space should render

## Steps for reproduction

1. select any font that has a space in the name
2. check it actually renders on canvas

## 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-02-02 19:22:57 +01:00
Bogdan Chadkin 6fda5d7f66 feat: support bindings in page meta (#2859)
Here added support for bindings in page meta for following fields

- title
- description
- social image url
- exclude from search
- custom meta content

<img width="448" alt="Screenshot 2024-02-02 at 17 40 37"
src="https://github.com/webstudio-is/webstudio/assets/5635476/b059fdcc-84f3-4aa6-bdac-8308ab121292">
<img width="442" alt="Screenshot 2024-02-02 at 17 40 44"
src="https://github.com/webstudio-is/webstudio/assets/5635476/451b8161-6c8c-479a-a150-baefb6607b9d">
2024-02-03 00:47:43 +07:00
Oleg Isonen e0faf4b79f feat: Show free domain limit banner (#2857)
## Description

To indicate clearly upfront when user reaches the 5 free domains limit,
we fetch the total count and show the banner.

## Steps for reproduction

1. open publish dialog
2. if 5 domains already added to the account - you should see the
banner, otherwise no banner if less domains or you are on pro

## 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-02-02 15:34:25 +01:00
Oleg Isonen e77a8f5180 chore: More dashboard improvements (#2854)
## Description

- improved dashboard resource items
- fixed react warnings


## 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-02-01 11:20:53 +01:00
Bogdan Chadkin 84fc906721 refactor: convert page meta fields into expressions (#2853)
Here added huge migration to convert page meta into expressions and
adapted the code to compute those.
2024-02-01 14:20:18 +07:00
Oleg Isonen ebe80ee682 feat: Intro video as a first item in resources of the dashboard (#2852)
## Description

Improving onboarding experience:
- Intro video as a first item in resources of the dashboard
- Hover/focus states of resource items more nice



https://github.com/webstudio-is/webstudio/assets/52824/9ba48b1d-950e-49ca-b2fd-44c1a3ead5dc






## 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-31 20:25:41 +01:00
Oleg Isonen 01f3f82d93 feat: Big learning resources panel for dashboard (#2847)
## Description

This is supposed to help with the onboarding: people generally miss all
the content we have.



https://github.com/webstudio-is/webstudio/assets/52824/8e79e3a2-0dd2-452e-b852-a2c59454f817




## Steps for reproduction

1. open dashboard
2. see new Resources section
3. check accessibility

## 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-31 13:11:06 +01:00
Oleg Isonen 42c882f213 feat: Make publish permission visible for everyone but enabled for pro (#2848)
## Description

Publish permission was hidden for non-pro accounts but this makes it
hard to discover.

<img width="151" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/e880d535-bbf6-431b-834f-f0fa1f1324c6">

## Steps for reproduction

1. open share dialog
2. see publish permission is disabled for non-pro
3. enabled for pro
4. has a tooltip that explains it
5. has link button that leads to the pricing page

## 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-31 12:16:55 +01:00
Oleg Isonen 7a49bde1e7 feat: Update the menu according to figma (#2849)
## Description

<img width="243" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/5a6d87fd-c27b-444d-8966-65d1325b212b">

## 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-31 12:15:30 +01:00
Oleg Isonen c8554c35e2 chore: Hide AI bar by default initially (#2846)
## Description

- reducing amount of text in the AI bar menu
- stop showing AI bar by default

## 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-30 21:59:21 +01:00
Bogdan Chadkin 443fa5a50c feat: support social image url (#2845)
To integrate cms we need to be able to specify arbitary url as social
image instead of just asset.

Here added input which overrides selected asset. Hidden behind the flag.

<img width="538" alt="Screenshot 2024-01-30 at 21 27 40"
src="https://github.com/webstudio-is/webstudio/assets/5635476/e472028c-1cea-4e7d-9320-75d0cb9d2eff">
2024-01-30 23:39:40 +07:00
Oleg Isonen a8d8c7a458 chore: Update help popover (#2840)
## Description

- switch to X icon/wording
- switch. to docs from blog

<img width="266" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/e3381ae1-fd11-415c-8f7f-8d03ededff6c">

## Steps for reproduction

1. click on help icon in builder left bottom icon or from dashboard
2. see new X icon 
3. see new docs link

## 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-30 12:13:58 +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 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) 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
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
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
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
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
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
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