Commit Graph
5224 Commits
Author SHA1 Message Date
Oleg Isonen b3b1792eae fix: Image on canvas in latest chrome may not render when loading is lazy (#2902)
## Description

When on canvas inside builder we need to always eager load images to
avoid this bug in latest chrome with cache turned off

## Steps for reproduction

1. turn off cache
2. add image component on canvas
3. see it renders as expected (loading lazy in settings is default, but
on canvas it renders as loading eager)

## 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-13 12:19:07 +01:00
Bogdan Chadkin 231f91c69c experimental: add redirect field to page settings (#2900)
Here added new field to page settings ui and page meta schema to
redirect page when specified. Having bindings support redirect can be
specified conditionally based on cms cata.

Tested locally, works with both urls and paths.

<img width="702" alt="Screenshot 2024-02-12 at 15 58 11"
src="https://github.com/webstudio-is/webstudio/assets/5635476/a4c171b4-8091-4241-b36f-401fc543427c">
2024-02-13 00:01:52 +07:00
Oleg Isonen 6e503ce98a fix: Fix shared link deletion crash (#2899)
## Description

When deleting a link, blur event from link name triggers an update,
which executes after link has been deleted

## Steps for reproduction

1. create a link
2. delete it
3. should not crash

## 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-12 14:04:37 +01:00
Bogdan Chadkin 4a6c91bf31 experimental: generate variables for page meta website (#2898)
Here added support for variables in page meta in generated websites.
Prevented creating unused variables. We can reuse the same way for other
generated parts later.
2024-02-11 20:53:19 +07:00
Bogdan Chadkin ffff4e5beb refactor: improve copy page url (#2896)
- moved copy url to address bar
- support copy with keyboard
- persist copied state for 2 seconds
2024-02-11 20:00:48 +07:00
Oleg Isonen b85d256645 fix: Fix tokens outside click accidentally creating tokens (#2893)
## Description

We were using popper in combobox and that is not handling click outside,
so a click outside has resulted in selected item change.

In case of style source we were creating a new token instead of just
closing the completion popover

## Steps for reproduction

It affects all places where we use combobox:

- style source
- css value
- transition property value
- settings > new property



https://github.com/webstudio-is/webstudio/assets/52824/4019e57f-3072-476f-a525-0d49b742df79


## 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-11 13:04:33 +01:00
Oleg Isonen a34afe8160 fix: Show advanced typography styles state using ellipsis icon dots (#2888)
## Description

Since advanced typography options are 1 menu click hidden, there was no
way to know if they are set when looking at the panel, I decided to get
creative and used the ellipsis icon dots same way we use dots on the
panel title, slightly increased their size to make it visible

<img width="236" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/388f6309-9ae2-4a7e-a43e-557d3cf97530">


## Steps for reproduction

1. define advanced typography options
2. see dots change colors, same way as the section title dots when
closed

## 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-10 19:47:50 +01:00
Oleg Isonen 393cad2c0b fix: fix color picker updating value and not selecting text when outside (#2892)
https://github.com/webstudio-is/webstudio/issues/2890

Previous attempt to prevent selection resulted in not updating the value
in the picker

## Description

When dragging color handle it should be updating the hex value and when
dragging outside of the picker it should not select the entire text


## 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-10 19:47:06 +01:00
Oleg Isonen dbf84eb990 chore: Update wording on the view permission (#2894)
## Description

Description was outdated

## 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-10 19:46:19 +01:00
Bogdan Chadkin 29df24bfaf experimental: update variables when duplicate page (#2886)
Here improved page duplicate logic to support replacing old variables in
page meta and path params variable with new references.

Also improved path duplicating to preserve path params by prefixing with
`/copy-n` subpath.
2024-02-09 23:53:37 +07:00
Oleg Isonen 2a0556ae96 fix: Allow opening pages from topbar when in preview mode (#2885)
## Description

Topbar pages button works when in build mode, but in preview it doesn't,
this changes it. So one can switch pages when in preview mode

## Steps for reproduction

1. switch to preview mode
2. toggle pages button in top bar

## 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-09 15:13:38 +01:00
Oleg Isonen c4670f501c build: npm release 0.132.0 (#2884)
## 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.132.0
2024-02-08 20:59:12 +01:00
Oleg Isonen f3c815d524 fix: Fix clone from builder when shared link is used (#2883)
## Description

Clone had no authToken provided via shared url

## Steps for reproduction

1. create a shared url with view permission
2. open it from a different account
3. clone from menu should work

## 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-08 20:51:56 +01:00
Bogdan Chadkin af672a8df8 refactor: improve path params (#2882)
- generate path params fields on the fly, even for new page
- fill entered values when path params variable is created
- fixed showing $ws$dataSource$id instead of variable name when no
values path params entered
- renamed variable to "Path Params"
2024-02-08 17:50:40 +07:00
Ivan Starkov 78a5e3c916 build: Release 0.131.0 (#2880)
## 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.131.0
2024-02-08 00:51:52 +03:00
Oleg Isonen cd4faac416 fix: Loading indicator was deactivated (#2879)
## Description

In the previous attempt to fix React warnings I accidentally deactivated
the loading indicator completely, now this fix works.

## Steps for reproduction

1. click on any project
2. see loading indicator right away

## 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 21:52:28 +01:00
Oleg Isonen 22be073e6c fix: Return the check for templates permission (#2878)
## Description

We just removed that check for the wrong reasons, readding it back
before we ca find a better solution and avoid having a shortlist check
in the permissions check

## 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-02-07 21:28:58 +01:00
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
0.130.0
2024-02-07 20:37:44 +03:00
Ivan Starkov 3c75c2126e fix: Fix db consistency issues with assets (#2876)
## Description

The issue that postgres doesn't allow automatically set null on specific
field in multi-column FK contraints

i.e.following  is not possible
```
FOREIGN KEY ("previewImageAssetId", "id") REFERENCES "Asset"("id", "projectId") ON DELETE SET previewImageAssetId=NULL
```

## Fix

1. Create assets before project created on clone (otherwise we need
magic like DEFERRABLE INITIALLY IMMEDIATE on constraints)

2. Drop project asset reference before asset delete (can be done with
trigger but too magical for the only edgecase)


## Steps for reproduction

Add asset to home page, delete it, no issues.
Duplicate project - no issues.


## 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:26:57 +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
Oleg Isonen c8c91b4f10 chore: Allow logging console.info and console.error (#2872)
## Description

In cases where we need permanent logs, we need to be able to log and
commit and there is no point of having that rule. That rule protects
against accidentally forgetting console.log

## Steps for reproduction

1. write console.warn or console.error and pass the linter

## 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-06 14:25:56 +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 4f868c5a5f fix: Normalize border style (#2867)
## Description

We don't support inset/outset in the style panel which is the initial
for inputs/buttons

New defaults are:

- input, textarea, button - solid
- radio, checkbox - none (already was none, no change,but we didn't
reflect that in sp)

## Steps for reproduction

1. add those components to canvas
2. see that input, textarea, button - have solid border style in style
panel
3. see that radio, checkbox - show none

## 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-05 18:34:04 +01:00
Oleg Isonen fb70166359 fix: Improve invalid ancestors config (#2870)
## Description

- prevent form and inputs/buttons addable to Link, Button
- button, form not addable to Link

## 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-05 17:30:01 +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 646ee81af6 feat: add class name to initial properties (#2868)
Fixes
https://discord.com/channels/955905230107738152/1203564257367695411
2024-02-05 19:29:59 +07: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
Bogdan Chadkin 46658a6cfb fix: prevent quoting page description (#2855)
Accidentally duplicated description conversion to expression which made
all descriptions quoted.
ccommit
2024-02-01 20:57:37 +07:00
Bogdan Chadkin dd21011c31 build: resync fixtures (#2856)
Here updated fixtures after migrating page meta to expressions.
2024-02-01 20:53:58 +07: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
Bogdan Chadkin 02ea008042 build: drop macos cli test (#2851)
Macos tests are very flacky and often fail after 20min timeout. In most
cases linux tests are enough.
2024-01-31 21:30:12 +07:00
Bogdan Chadkin 8f02f08c21 fix: add missing constraints migration (#2850) 2024-01-31 21:23:01 +07: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
Bogdan Chadkin 35fbcb9fc4 refactor: generate page meta in loader (#2844)
Here refactored page meta with simpler type than full page data and
moved it into factory which is invoked lazily in loader.

This will let us support variables and resources in page settings later.
2024-01-30 21:24:55 +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