Commit Graph
5224 Commits
Author SHA1 Message Date
Ivan Starkov 2b888d52fd feat: CLI Mutiple template support (#2957)
## Description

We have that depending on some external parameters we will need to have
custom builds. Like adding analytics, web vitals etc on specific
resources.

Instead of relying on env variables (has different support on different
build systems vite, esbuild etc)

We can just use additional templates override. i.e.



```bash
# Without analytics
webstudio build --template ./custom-template

# With analytics
webstudio build --template ./custom-template --template ./custom-template-analytics
```


## 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-03-04 14:03:34 +03:00
Bogdan Chadkin 3e1820c553 feat: support multiline string variable (#2954)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here added multiline and expandable dialog support for string variables.
It's useful to define large content for resource requests for example
graphql queries.

<img width="995" alt="Screenshot 2024-02-29 at 15 08 49"
src="https://github.com/webstudio-is/webstudio/assets/5635476/09496eef-b44f-4df0-9e31-ba6b0d445020">
2024-03-01 18:00:24 +07:00
Bogdan Chadkin 1b9bdd83d8 experimental: allow customizing page language (#2928)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here added language field to page settings and changed page generation
to render whole html instead of just outlet, which let us modify html
lang attribute.

Also fixed cms banner on pro account.
2024-02-29 21:14:51 +07:00
Bogdan Chadkin 8053be7bb7 feat: support json in resource body (#2953)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here optionally added support for json in resource body. This is
necessary when use graphql apis or just json based rest api.

Expression editor for entering json value is shown whenever method post
and content-type: application/json are specified.
2024-02-29 15:09:16 +07:00
Oleg Isonen 8439af8bb7 fix: upload images serially to avoid being rate limited (#2952)
## Description

When uploading 15+ images at once it will be rate limited as they upload
in parallel and that looks like DDOS to the rate limiter

## Steps for reproduction

1. select many files
2. upload and see no error

## 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-28 17:45:46 +01:00
Bogdan Chadkin 8722b15ab2 refactor: check literals with parser (#2950)
Here improved detecting literal values in expressions without executing
with potentially global variables.

Also fixed expression errors
2024-02-28 00:46:25 +07:00
Bogdan Chadkin 2d5e5c88f9 refactor: revert remix redirect method (#2951)
This reverts commit fa376d4204.

Seems like native redirect does not suppot relative paths which are
essential for redirect ui.
2024-02-28 00:23:14 +07:00
Bogdan Chadkin 07a6c1cce4 build: release 0.135.0 (#2946) 0.135.0 2024-02-26 16:23:45 +07:00
Bogdan Chadkin 1ac6a9d00a fix: support renaming of instances inside collection (#2947)
Found a bug with renaming because edited instance
is stored as id instead of selector.

## Steps for reproduction

1. create collection
2. try to rename its content
2024-02-26 16:07:06 +07:00
Oleg IsonenandBogdan Chadkin dd425afd6d experimental: marketplace for templates (#2916)
## Description

Foundation for the future marketplace where free and paid templates,
apps and other integrations can be offered. This first version is
limited to a few items that we will add there.

Generally, we call items we list on that marketplace "products" and they
can open an iframe either in the same left panel or in a dialog.

1. Product listing is effectively a webstudio website that can also be
functional standalone as well as inside the builder.
2. That website wraps individual section templates with a utility
component that handles click-to-insert

<img width="281" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/0511f516-fb95-41b4-afa5-7a91f238c353">
<img width="290" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/881fdee8-47ac-4d3a-ac01-7fdb9fdab236">


https://share.descript.com/view/bIgPI8aGiYA


## Steps for reproduction

1. no need to test for now

## Code Review

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

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory

---------

Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
2024-02-26 10:01:36 +01:00
Bogdan Chadkin 1fe3a842b0 fix: replace unknown variables on paste (#2945)
Here fixing the issue with saving expressions with variables not
available in the scope which leads to user confusion and compilation
errors.

<img width="481" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/5635476/176a0e1e-a74c-433f-8e7f-fdba9d4b8c71">
2024-02-26 12:03:20 +07:00
Bogdan Chadkin 7ee9701906 fix: hide collection item from resource fields (#2944)
Here hidden all parameter variables except path params from resource
fields so users didn't get invalid compilation.
2024-02-25 17:51:01 +07:00
Oleg Isonen 952bcd620c feat: Make fullscreen option available to all code editors (#2942)
## Description

When collection Data renders a large json, its hard to read or edit
without a bigger editor. With this full-screen is available on all Code
Editors

## Steps for reproduction

1. See expanding works in all properties
- Collection: Data
- HTML Embed: Code
- Edit variable type JSON

## 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-25 10:58:44 +01:00
Bogdan Chadkin fa376d4204 refactor: use native Response.redirect method (#2943)
Here switched from remix redirect method to native Response.redirect
available in all platforms.
2024-02-25 12:31:41 +07:00
Oleg Isonen 898d8c4ae9 fix: fix collection component filter (#2941)
Accidentally broke list filtering of the collection component in the
components panel
2024-02-24 12:25:33 +07:00
Oleg Isonen f560256160 experimental: hide the CMS banner until released (#2937)
## Description

1. We accidentally released the CMS banner to everyone, which will be
misleading
2. Removed old feature flags

## 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-23 13:26:31 +01:00
Ivan Starkov b1b3174cfa fix: Fix link preloads (#2940)
## Description

Issues found on saas

## 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-23 13:15:31 +03:00
Oleg Isonen c87af6e6e7 fix: Only show maximize button in the HTML editor on hover (#2936)
## Description

To avoid covering code with the button, only show it on mouse hover.

## Steps for reproduction

1. open html embed editor
2. see maximize button is not visible when mouse is not hovering the
editor, but shows up when hovering

## 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-23 11:14:46 +01:00
Ivan Starkov 59b4050b0c build: Release 0.134.0 (#2935)
## 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.134.0
2024-02-22 22:23:49 +03:00
Oleg Isonen 0e4cc4c5bd feat: Expand HTML editor (#2934)
## Description

Allow user to see code in a bigger editor for HTML Embed

## Steps for reproduction

1. insert html embed
2. click on expand button in the editor

## 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-22 22:23:38 +03:00
Oleg Isonen 35efee6c4f fix: Don't auto replace embed code if the value required changes after sanitization (#2933)
## Description

Sanitization and autoSave in code of the embed prevents user from typing
invalid code. Now it will be allowed, error shown separately along with
a button for auto fixing.

https://share.descript.com/view/Baf4D4AFzkH

## 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-02-22 18:59:49 +01:00
Ivan Starkov 979d0fa5d9 feat: Preload page font and background-image assets (#2932)
## Description

Add background images and fonts to link rel preload (to reduce FCP, LCP
and Layout Shift)

## 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-22 15:53:08 +03:00
Jaya Krishna Namburu 59593e313b feat: allow users to set custom redirect status code (#2930)
## Description

Allow users to configure `301` or `302` status code for redirects.

## Steps for reproduction

- Go to project settings
- Add a redirect
- Select a status code from the dropdown at the time of adding a
redirect.
- When the project is deployed, and redirects should reflect the status
code that is added in project settings.

![Screenshot 2024-02-21 at 13 48
18](https://github.com/webstudio-is/webstudio/assets/11075561/69999f06-8140-4b98-b095-eda32530047b)


## Code Review

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

## Before requesting a review

- [x] made a self-review

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
2024-02-21 12:35:18 +01:00
Bogdan Chadkin 9e37075e7d refactor: move insert instance children logic into utility (#2931)
Here split and consolidated utility for adding children to instances. It
can be universally reused almost everywhere.
2024-02-21 17:08:10 +07:00
Bogdan Chadkin 727978b2c9 fix: prevent generating unused variables in resoures (#2929)
Here improved the resources generator to not produce variables unused in
resource fields.

Also enforced unused variables to be always provided to avoid issues
with not generated variables.
2024-02-20 13:10:38 +07:00
Bogdan Chadkin bf6223902e refactor: allow to extract webstudio fragment from any data (#2927)
Here refactored to extract fragment or copy from any data not only
global stores.
2024-02-19 17:33:26 +07:00
Bogdan Chadkin 9206d45ac5 experimental: use dynamic page icon in pages navigator (#2926)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here added new isPathnamePattern utility to check the path is dynamic.
We can use to change the icon in pages list.

<img width="435" alt="Screenshot 2024-02-18 at 21 01 02"
src="https://github.com/webstudio-is/webstudio/assets/5635476/cca0fdeb-5576-4c7d-a905-92e9061d9add">
2024-02-19 11:22:04 +07:00
Bogdan Chadkin 4f06445e93 experimental: move address bar to topbar (#2921)
Ref https://github.com/webstudio-is/webstudio/issues/2903

<img width="345" alt="Screenshot 2024-02-18 at 13 05 42"
src="https://github.com/webstudio-is/webstudio/assets/5635476/5348a2c2-a1ca-4c58-bc25-95ddace948a3">
<img width="948" alt="Screenshot 2024-02-18 at 13 05 27"
src="https://github.com/webstudio-is/webstudio/assets/5635476/e14dfb6d-084d-40f4-a920-4afb868137c3">


Fixed
https://discord.com/channels/955905230107738152/1208193507668394094 too
2024-02-18 20:35:23 +07:00
Bogdan Chadkin c74b4fc6e8 fix: use editing page scope instead of selected page (#2923)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here fixing an issue with showing scope of selected page instead of
currently opened in editor.
2024-02-18 17:57:50 +07:00
Oleg Isonen 15c653abe5 fix: Fix unnecessary separator (#2922)
## Description

We have 2 separators between redirects section in project settings, when
Redirects are enabled


## 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-18 11:47:08 +01:00
Bogdan Chadkin 3863abec2a refactor: rename instances slice to webstudio fragment (#2925)
Here renamed everywhere in the code instances slice to webstudio
fragment to keep naming consistent across whole app.
2024-02-18 17:43:07 +07:00
Oleg Isonen 1888fed507 docs: Update README.md (#2924)
## 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-18 11:36:30 +01:00
Oleg Isonen 233d6bf429 chore: Improve copy to clipboard experience (#2920)
## Description

- more decent copy to clipboard button with tooltip expaining the state

## 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-16 14:23:58 +01:00
Bogdan Chadkin 51e2693872 experimental: improve address bar UI (#2919)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Now it looks more like address bar and provides validation for required
or non-splat params with slashes. To make it work implemented tokenizer
and improved pattern compiler.

<img width="457" alt="Screenshot 2024-02-16 at 14 20 02"
src="https://github.com/webstudio-is/webstudio/assets/5635476/478478cc-c0b7-4968-b9e0-43be8d82f3bb">
<img width="764" alt="Screenshot 2024-02-16 at 14 19 43"
src="https://github.com/webstudio-is/webstudio/assets/5635476/cef0803f-d65f-4a26-887b-450ef7d7aa8d">
2024-02-16 19:44:35 +07:00
Oleg Isonen be593f7dd0 feat: Custom attributes / properties (#2912)
Closes https://github.com/webstudio-is/webstudio/issues/1012

## Description

I decided to just use the same control to add a custom
property/attribute, it works same way as adding style sources.

## Steps for reproduction

## 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-16 10:59:36 +01:00
Jaya Krishna Namburu 7e8896cb75 experimental: Add support for redirects in deployment (#2824)
## Description

WIP, still a lot of cases to cover. Please don't review yet

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-16 06:46:41 +01:00
Bogdan Chadkin e95133fb23 experimental: add pro banner to page settings (#2918)
Ref https://github.com/webstudio-is/webstudio/issues/2903

<img width="575" alt="Screenshot 2024-02-15 at 17 52 00"
src="https://github.com/webstudio-is/webstudio/assets/5635476/54124996-e857-45bf-adfa-ec14b5a4aadd">
2024-02-15 23:51:48 +07:00
Oleg Isonen f9349c6ac3 fix: Fix truncation of a long page name in the top bar button (#2917)
## Description

With the introduction of a button in the top bar we forgot to truncate
when page name is too long

## Steps for reproduction

1. create a page with a very long name
2. see it's name being truncated in the 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-15 14:55:40 +01:00
Bogdan Chadkin be2b5ce31a refactor: rename page.pathVariableId to pathParamsDataSourceId (#2915)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Small renaming for clarity
2024-02-15 19:31:55 +07:00
Bogdan Chadkin cf3ad4a0a1 experimental: disable status and redirect for hobby users (#2914)
Ref https://github.com/webstudio-is/webstudio/issues/2903

<img width="530" alt="Screenshot 2024-02-15 at 12 16 25"
src="https://github.com/webstudio-is/webstudio/assets/5635476/e4eca9e6-fc27-42e8-a3f3-9b7bc742f90d">
<img width="515" alt="Screenshot 2024-02-15 at 12 16 20"
src="https://github.com/webstudio-is/webstudio/assets/5635476/18ff8acb-fc8c-4d1c-9e42-8c9cdd1d193e">
<img width="452" alt="Screenshot 2024-02-14 at 22 34 04"
src="https://github.com/webstudio-is/webstudio/assets/5635476/f9963d97-8e8d-456d-a354-aa61d1816b93">
2024-02-15 12:20:19 +07:00
Bogdan Chadkin 9f263b2f5e experimental: put dynamic path behind feature flag (#2913)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Added additional validation for hobby users to forbid dynamic path
parameters and disable copy address button.


<img width="453" alt="Screenshot 2024-02-14 at 16 00 31"
src="https://github.com/webstudio-is/webstudio/assets/5635476/a58aecf5-2b06-4f3d-9e8d-06eb2fe3bf5f">
<img width="737" alt="Screenshot 2024-02-14 at 15 53 52"
src="https://github.com/webstudio-is/webstudio/assets/5635476/e3e9b5cf-a571-4897-b415-1240d97e71cc">
2024-02-14 22:11:01 +07:00
Bogdan Chadkin 4c20e2d317 refactor: avoid generating unused variables in page components (#2906)
Here improved component generator logic to not generate unused
variables. This way later we will be able to avoid requesting unused
resources as well.
2024-02-14 11:50:10 +07:00
Oleg Isonen ecb990d73d build: Release 0.133.0 (#2910)
## 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.133.0
2024-02-13 20:49:56 +01:00
Oleg Isonen 6887463746 feat: Scrub improvements (#2904)
## Description

1. Allow scrub on any css value that can be numeric, no matter what
current keyword value might be selected
2. Adjust scrub speed depending on the unit

## Steps for reproduction

1. try scrubing any css value 
3. backdrop fill in the effects section won't allow to scrub , which is
correct
4. try changing dfferent units and see how it feels, if the speed is
appropriate

## 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 20:12:09 +01:00
Ivan Starkov 33fd11d929 fix: Popover content position change to absolute throw error on canvas (#2909)
## Description

closes #2735

## 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-13 20:40:41 +03:00
Ivan Starkov e67b13d64d fix: Dialog focus issues (#2908)
## Description

closes #2889

## 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-13 20:40:28 +03:00
Oleg Isonen 2e5e116b47 chore: Change tabs order (#2907)
## Description

Just changed the order because it makes no sense to have assets before
pages and navigator

## 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-13 18:24:50 +01:00
Oleg Isonen 66f36a0e83 feat: Autosave settings (#2897)
## Description

This makes all changes in settings panel inside inputs, textareas and
code input save automatically with slight debounce, without waiting for
blur etc.

## Steps for reproduction

1. try to change any input/textarea/code
2. change should apply right away

## 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-13 13:40:19 +01:00
Bogdan Chadkin 646245f21a experimental: allow changing page status (#2905)
Ref https://github.com/webstudio-is/webstudio/issues/2903

Here added support for changing page status in page settings. This works
for both redirect and content rendering.

User can render error message based on received cms data and give 404
status code.
2024-02-13 18:37:24 +07:00
Oleg Isonen 9efc764898 feat: Add all input types (#2901)
## Description

With this pr we are enabling all input types



https://github.com/webstudio-is/webstudio/assets/52824/0a09928d-68b6-4e0d-964e-7c19e92dc61a


## Steps for reproduction

1. add text input
2. try different types

## 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-13 12:19:51 +01:00