4586 Commits
Author SHA1 Message Date
Oleg Isonen 4ce12b90ce build: 0.139.0 (#2970)
## 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.139.0
2024-03-05 14:05:18 +01:00
Oleg Isonen 6f5d4d59e4 experimental: skip permissions check in assets for marketplace (#2969)
Previous pr didn't add the flag to skip the check

## 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-05 14:00:40 +01:00
Oleg Isonen 87afcc7e9b build: release 0.138.0 (#2968)
## 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.138.0
2024-03-05 12:56:12 +01:00
Oleg Isonen 13d0140d61 feat: reset shortcut hint for all style panel style info tooltips (#2965)
Currently user had no way to discover option/alt + click on label in
style panel

<img width="246" alt="image"
src="https://github.com/webstudio-is/webstudio/assets/52824/e4c69f33-6b05-4f0c-9946-d062fc9d07c5">


## Steps for reproduction

1. click on any property value that is set in style panel
2. see the hint

## 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-05 11:41:31 +01:00
Oleg Isonen b22e58dcdb experimental: marketplace improvements (#2964)
## Description

- skip assets permission check for marketplace, assets had a separate
check which is not needed for a marketplace item
- sort template categories alphabetically
- improve about layou

## 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-05 11:28:42 +01:00
Ivan Starkov 069c3c9457 build: Release 0.137.0 (#2963)
## 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.137.0
2024-03-04 18:55:48 +03:00
Oleg Isonen e7e7bbba4d fix: support wildcards when duplicating pages (#2962)
## Description

Reverting back to the logic that during duplication uses '/test' to
'/copy-1/test' because it also supports '/test/*' and '/test/name*'

## 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 16:27:30 +01:00
Ivan Starkov 1eed2a4f9f build: Release 0.136.0 (#2961)
## 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-03-04 16:39:38 +03:00
Ivan Starkov c61a8c659a build: Force env vars to reapply (#2960)
## 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-03-04 16:02:15 +03:00
Oleg Isonen 2c5f8029d2 fix: Fix page path check using full path with folders during duplication (#2958)
- Check full path including folder when checking for existing path
- Use suffix instead of prefix when duplicated path is found e.g.
/path-1 /path-2

## Steps for reproduction

1. create a page inside a folder 
2. duplicate page
3. see that it gets a path and name with a suffix
4. same should happen when you duplicate an already duplicated page with
suffix - suffix should increase

## 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-03-04 13:37:26 +01:00
Oleg Isonen 016fc89fb2 fix: remove breakpoints menu shortcut (#2959)
turns out we nobody needs it and it conflicts with cmd+b in text editing

https://discord.com/channels/955905230107738152/1212808892627558491

## Steps for reproduction

1. hit cmd+b or ctrl+b and it shouldn't open the menu

## 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-03-04 13:22:23 +01:00
f66a6bee31 experimental: Marketplace settings (#2949)
## Description

- split project settings
- add marketplace settings

## 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

---------

Co-authored-by: Bogdan Chadkin <trysound@yandex.ru>
Co-authored-by: istarkov <istarkov@gmail.com>
2024-03-04 13:06:49 +01:00
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