Commit Graph
5224 Commits
Author SHA1 Message Date
Mayke 2a7a7bc3e5 Ensure no conflicts on undo and redo hotkeys (#2230)
Ref https://github.com/webstudio-is/webstudio/issues/2028

Changed `useHotkeys.enableOnFormTags` to be enabled just when in canvas
for undo/redo.
2023-09-02 16:20:59 +04:00
Bogdan Chadkin afc75f1d99 Drop unused db validation (#2231)
We had db data validation enabled before but it made api requests very
slow. We disabled this validation and seems like there is no need to
enable again.

Also dropped all zod list types of our data because validation was the
only use case.
2023-09-01 23:57:59 +04:00
Oleg Isonen f3ed732adb New package name for CLI (#2228)
- We decided to use `npx webstudio` for simplicity and new package name
is nicer
- Added the license
2023-09-01 13:50:24 +02:00
Jaya Krishna Namburu fb60ff5d04 Add typecript typechecking for the cli (#2227)
## Description

This PR adds, typescript type checking for the cli, which runs in the CI
pipeline too.

## Code Review

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

- [x] made a self-review
2023-09-01 10:43:01 +02:00
Jaya Krishna Namburu d63a1ec615 Add a default favicon for the projects generated using cli (#2222)
## Description

This PR adds a default favicon for the projects generated using `cli`.
Now there is a another build step, which holds all the default image
assets. And stores them as `base64`. And writes back to the destination
project.

The two things that are handled are

- favicon
- no-warnings flag to disable warnings when using cli

## Code Review

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

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")
2023-08-31 20:08:22 +02:00
Ivan Starkov d10e5272b7 Update trpc (#2223)
## Description

Update trpc

## 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
2023-08-31 19:04:56 +03:00
Bogdan Chadkin f5882256b8 Move assets schema into sdk package (#2220)
We are planning to move all types necessary to represent generated site
into separate package. This way we will be able to make CLI as small as
possible.

Here moved only assets schema. Now we get rid of aws, sharp and one
prisma usage (project-build still use it)

```diff
- 99MB
+ 75MB
```
2023-08-31 19:39:20 +04:00
Bogdan Chadkin b6c4911e41 Remove generate-arg-types from direct dependencies (#2218)
Here moved PropMeta to react-sdk package. It was the only reason to
install generate-arg-types cli as direct dependency in all component
libraries.

This is the resulting install size of webstudio CLI. TypeScript and
react-docgen-typescript no longer installed.

```diff
- 141MB
+ 99MB
```
2023-08-31 15:59:45 +04:00
Bogdan Chadkin 2b0e9ae206 Remove assets stubbing (#2219)
We used to set undefined in assets map value to preserve the order
between uploading and uploaded states. Now we started sorting uploaded
assets by create time and stubbing no longer do anything useful.
2023-08-31 13:37:52 +04:00
Jaya Krishna Namburu 37dd701546 Add support for radix components in projects generated by cli (#2213)
## Description

This PR adds support for projects that uses radix components.

## Steps for reproduction

Generate a project that is using radix components. Everything should
work as expected.

## Code Review

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

Most of the code is taken from `webstudio-saas` repo itself. 

- Updated the templates to use latest version of the `@webstudio`
packages.
2023-08-31 04:27:28 +02:00
Oleg Isonen e757566e84 Use PlusIcon for new page (#2216)
Closes https://github.com/webstudio-is/webstudio/issues/1991
## Description

Updated new page icon to using Plus icon

## Steps for reproduction

1. open pages panel
2. see new icon

## 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
2023-08-30 23:48:53 +02:00
Oleg Isonen 28f104c80e Hide additional states, they should go into a submenu (#2217)
Closes https://github.com/webstudio-is/webstudio/issues/2029

## Description

Once we add a submenu, all advanced states will go there

## Steps for reproduction

1. see that button, input, textarea no longer have these states on style
source

disabled", 
enabled", 
read-only",
read-write"



## 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
2023-08-30 23:06:01 +02:00
Oleg Isonen 11e078b78f Update links after renaming the repository (#2214) 2023-08-30 12:09:03 +02:00
Jaya Krishna Namburu 7a77340da0 Update cli readme (#2168) 2023-08-30 00:08:13 +05:30
Bogdan Chadkin fff332ef5f Fix community links (#2211)
webstudio -> webstudio-community
webstudio-builder -> webstudio
2023-08-29 14:32:37 +04:00
Oleg Isonen 37bd008428 Update main webstudio repo links (#2210)
We renamed webstudio-builder to webstudio
2023-08-29 14:10:43 +04:00
Bogdan Chadkin 440fc6b6de Release 0.91.0 (#2209) 0.91.0 2023-08-29 10:02:57 +04:00
Oleg Isonen f5e1de3fcd Add dialog close button states (#2208)
Close button was missing CSS states
2023-08-29 09:56:49 +04:00
Bogdan Chadkin c2885fdea3 Release 0.90.0 (#2207) 0.90.0 2023-08-28 23:12:58 +04:00
Bogdan Chadkin c5c4aa2593 Fix style source menu trigger (#2205)
Closes https://github.com/webstudio-is/webstudio-builder/issues/2204
2023-08-28 22:19:24 +04:00
Oleg Isonen a1e6df3423 Fix footer chevron color (#2203)
## Description

1. Chevron icon changed, color not set

## Steps for reproduction

1. open footer
2. see color of cheveron is white

## 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-builder/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
2023-08-28 18:11:00 +02:00
Bogdan Chadkin 86ff9d406d Improve radix components (#2201)
Here addressed of some recent feedback

- removed cursor: pointer from all buttons
- added active states to accordion and tabs triggers
- replaced X with svg icon in dialog and sheet close button
- updated item icon for all components
- removed dir and orientation props from accordion initials
2023-08-28 20:04:26 +04:00
Jaya Krishna Namburu 0e64ee80c8 Moving cli from apps folder into packages folder (#2198)
## Description

This PR moves the cli from `apps/cli` into `packages` folder. It was
initially started under `app/cli` from this
[comment](https://github.com/webstudio-is/webstudio-cli/pull/6#issuecomment-1657212350).
But looks like, `packages` is the good place for it.
2023-08-28 09:55:08 +02:00
Ivan Starkov d41b52abda Release 0.89.0 (#2200)
## 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-builder/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.89.0
2023-08-27 21:42:04 +03:00
2680ae0a13 Add tooltips for component properties in Settings tab (#2125)
## Description

1. What is this PR about (link the issue and add a short description)

**Important** The PR adds tooltips only for HTML attributes.

Fixes https://github.com/webstudio-is/webstudio-builder/issues/2027

## Steps for reproduction

1. Add a few components to the canvas
3. Select one
4. Go to the Settings tab in the right sidebar
5. Hover over the labels

HTML attributes should show a tooltip with a description

## Code Review

- [ ] @taylornowotny please review the descriptions in the
props-descriptions.ts file
   - test it on preview
- [ ] @istarkov check the first commit that is where the implementation
and integration are done. The idea behind this is that we have a central
file with HTML attributes descriptions and when generating components
props we pick the descriptions from there if the property doesn't have a
custom description. Essentially we use props-descriptions as a fallback.
Do we need tests for this feature?
  

## Before requesting a review

- [ ] made a self-review

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests

---------

Co-authored-by: Giuseppe Gurgone <ggurgone@users.noreply.github.com>
Co-authored-by: istarkov <istarkov@gmail.com>
2023-08-27 20:46:36 +03:00
Bogdan Chadkin cc0336e50d Drag on canvas closest detachable (#2197)
Before when start dragging we searched for closest rich editor under
cursor and did nothing when the instance is not detachable (for example
select value or switch indicator).

Here I changed the behavior to also look for closest detachable instance
and drag whole thing. This way we do not need toast like in navigator
and can canvas dnd just work.

Also fixed placeholder in "Select Value" component. Before was no way to
change it.
2023-08-27 21:28:33 +04:00
Bogdan Chadkin abc7acbc55 Reimplement instance selection with pointer events (#2199)
Here improved instance selection by using pointerdown and pointerup.
This solves issues with libraries like radix preventing firing mouse
events.

Though there is a problem. Pointer events do not support event.detail to
inform about double clicks. So here I implemented multiple clicks
detection. For this I track time between latest pointerup and next
pointerdown events.
2023-08-27 21:00:25 +04:00
Oleg Isonen d2bb3dc0a3 Add component descriptions (#2196)
## Description

Now we are showing each component description in a tooltip

## Steps for reproduction

1. hover any component in components panel
2. see tooltip text

## Code Review

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

## Before requesting a review

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

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/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
2023-08-27 14:36:48 +02:00
Jaya Krishna Namburu 9fc3026bfa (fix): Fix nested routes in the cli projects (#2189) 2023-08-27 17:20:14 +05:30
Bogdan Chadkin 4c6fe0bb23 Add more constraints to components (#2195)
Marked more components as non-detachable and non-self-nestable
2023-08-27 14:48:21 +04:00
Ivan Starkov 7fd01f7d07 NPM Release 0.88.0 (#2194)
## 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-builder/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.88.0
2023-08-27 11:01:48 +03:00
Ivan StarkovandBogdan Chadkin aaaa50f107 No content Nav menu items (#2188)
## Description

Menu items without content (just with Link)

<img width="707" alt="image"
src="https://github.com/webstudio-is/webstudio-builder/assets/5077042/63cf6a84-08bc-4f8f-b307-41323921c78c">

## 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-builder/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 <opensource@trysound.io>
2023-08-27 10:52:50 +03:00
Bogdan Chadkin e814cfaaed Add radix radio group (#2192)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2031

- https://www.radix-ui.com/primitives/docs/components/radio-group
- https://ui.shadcn.com/docs/components/radio-group

<img width="468" alt="Screenshot 2023-08-26 at 21 30 40"
src="https://github.com/webstudio-is/webstudio-builder/assets/5635476/26865561-f445-4532-bf35-dabf20b32f59">
2023-08-27 00:02:01 +04:00
Bogdan Chadkin 2891822ab4 Add radix checkbox (#2191)
- https://www.radix-ui.com/primitives/docs/components/checkbox
- https://ui.shadcn.com/docs/components/checkbox

<img width="468" alt="image"
src="https://github.com/webstudio-is/webstudio-builder/assets/5635476/a13771d2-c574-4fa0-9176-0bdc7e98cfa8">
2023-08-26 19:09:53 +04:00
Bogdan Chadkin e32a3e61ef Add radix switch (#2187)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2031

- https://ui.shadcn.com/docs/components/switch
- https://www.radix-ui.com/primitives/docs/components/switch

<img width="438" alt="image"
src="https://github.com/webstudio-is/webstudio-builder/assets/5635476/1197c2cd-d09f-4914-9ddc-f5d5c3f18210">
2023-08-26 17:41:58 +04:00
Bogdan Chadkin 8dca908e3a Fix chevron icons (#2190)
Ref https://discord.com/channels/955905230107738152/1144755824628076585

Chevron icons were not flatten so result looked broken.
2023-08-26 17:41:35 +04:00
Bogdan Chadkin efdf883fa8 Add radix select component (#2183)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2096

- https://www.radix-ui.com/primitives/docs/components/select
- https://ui.shadcn.com/docs/components/select

<img width="1044" alt="Screenshot 2023-08-25 at 20 27 13"
src="https://github.com/webstudio-is/webstudio-builder/assets/5635476/e7f1c1fd-fefe-44a9-9193-a83e4d84409e">
2023-08-26 12:49:55 +04:00
Ivan Starkov 1871f81755 Rename radix template labels (#2186)
## 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-builder/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
2023-08-26 10:45:08 +02:00
Ivan Starkov 7c0e25cf04 Fix navigation menu by aligning it to the left (#2182)
## Description

Setting max-w-max we are forcing menu to be left aligned.

## 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-builder/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
2023-08-25 17:04:07 +03:00
Bogdan Chadkin c48f6613a8 Fix focus navigation in preview (#2179)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151
https://github.com/webstudio-is/webstudio-builder/pull/2112

Here splitted webstudio component wrapper for preview and canvas. This
allows us to have more granular control over preview behavior. For
example canvas requres all elements to be focusable for instance
selection to work. Prevew should be close to published sites and reflect
user experience.
2023-08-25 17:47:40 +04:00
Ivan Starkov 5a529cd8bd Fix horizontal scroll and last element selection in the Tree (#2181)
## Description

ref #2151 

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

Also made that scrollbars are not intersected
<img width="111" alt="image"
src="https://github.com/webstudio-is/webstudio-builder/assets/5077042/e103e4b1-40e3-4328-b698-8cdb7b43ae4b">

## Steps for reproduction

Add a lot of elements into the tree.
Be sure last element has a long long label.

See it can be selected, 
See both scrolls work

## 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-builder/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
2023-08-25 16:22:55 +03:00
Bogdan Chadkin 342ad9bf29 Refactor shadcn sheet with radix dialog (#2180)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151

Sheet is dialog internally with different styles. Here I refactored it
to reuse dialog components and not expose own components.
2023-08-25 17:00:19 +04:00
Bogdan Chadkin c08d1ed568 Refactor navigation menu with local styles (#2177)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151

We decided to not use preset tokens for default styling and get back to
local styles. Here migrated navigation menu.
2023-08-25 15:39:14 +04:00
Bogdan Chadkin 5068e3f186 Drop non-radix components (#2178)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151

Input and Textarea components are just native input and textarea with
additional styling. Considering this styling does not bring any value
for user we better remove such components.
2023-08-25 15:26:43 +04:00
Bogdan Chadkin 5af1ba168f Fix font weight detection of uploaded fonts (#2175)
Ref https://discord.com/channels/955905230107738152/1144505313358254120

Here turns out there is not standard in naming font subfamilies. To fix
I expanded the list of weights wiith spaceless variants. Added "regular"
keyword to detect normal font weight.
2023-08-25 13:11:36 +04:00
Bogdan Chadkin 6f9492794d Drop radix button component (#2169)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151

Button component in radix library is useless because duplicates the
button we already have. The only difference is styles we can add with
templates for other radix components.

Variants and sizes are provided with code. No need in tokens anymore.
2023-08-25 11:39:31 +04:00
Ivan Starkov ab436a6fc4 Fix new href property duplicated on unmount (#2170)
## Description

On onmount outdated onSave were used. What cause creation of additional
href property on instance.

- [x] - Fix duplication on unmount (1st commit)
- [x] - Fix save, to validate if multiple properties with same name
exists. (2nd commit)
- [x] - Use latest prop in resolveUrlProp (3rd commit)

Use hide whitespaces.

<img width="303" alt="image"
src="https://github.com/webstudio-is/webstudio-builder/assets/5077042/156fc5a4-c697-4b05-8caf-7a3b7fa29264">


## 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-builder/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
2023-08-25 10:36:14 +03:00
Ivan Starkov 52b01efa3b Fix parent style calculation for unstylable parent components (#2167)
## Description

If the parent component has `meta.stylable = false`, we need to skip it
to get the correct style of the parent.


## Steps for reproduction

Create the Box and add the Sheet to it. 
When you go to the sheet/trigger/button, you will notice that it does
not have a 'Flex Child' section or a 'zIndex' property.

To add these, add 'display: flex' to the box you created initially. When
you go back to the sheet/trigger/button, you will see that it now has a
'Flex Child' section and a 'zIndex' property.

## 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-builder/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
2023-08-25 00:10:41 +03:00
Oleg IsonenandwasimTQ 9336f05f25 Add help button with popover in dashboard and builder (#2166)
Originally started in
https://github.com/webstudio-is/webstudio-builder/pull/2132

Closes https://github.com/webstudio-is/webstudio-builder/issues/2039

## Description

Help dialog in builder and dashboard

## Steps for reproduction

1. open builder
2. open help dialog in the left sidebar
3. open dashboard
4. click help button

## 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-builder/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: wasimTQ <wasimthoufiq21@gmail.com>
2023-08-24 22:44:38 +02:00
Bogdan Chadkin 75c5cdc179 Prevent editing of radix input and textarea in canvas mode (#2160)
Ref https://github.com/webstudio-is/webstudio-builder/issues/2151

Here added new logic to intercept bubbled to html element events

- handle click on links in preview
- prevent forms submit
- prevent keydown on input and textarea in canvas

This allows to remove some props overrides from webstudio component and
fixes editing of radix input and textarea.
2023-08-25 00:25:16 +04:00