4510 Commits
Author SHA1 Message Date
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
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