145 Commits
Author SHA1 Message Date
4d1a86b902 Sync tokens & Add a GitHub action that will automatically keep figma-design-tokens.ts up to date (#778)
## Description

Just another PR to sync tokens, but also I've added a GitHub action that
will automatically keep `figma-design-tokens.ts` up to date in the
`figma-tokens` branch

## Code Review

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

## 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-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory

Co-authored-by: Oleg Isonen <oleg008@gmail.com>
Co-authored-by: Taylor Nowotny <86495896+taylornowotny@users.noreply.github.com>
Co-authored-by: markxtang <122043657+markxtang@users.noreply.github.com>
Co-authored-by: Bot (build-figma-tokens.yml) <bot@localhost>
2023-01-14 10:48:29 +01:00
Bogdan Chadkin 9c71929b25 Upgrade to remix 1.7.6 (#725)
https://github.com/remix-run/remix/releases/tag/remix%401.7.0
https://github.com/remix-run/remix/releases/tag/remix%401.7.4

du -ckd1 node_modules
-795648
+798524

Not much changes though I found since
[1.7.5](https://github.com/remix-run/remix/releases/tag/remix%401.7.5)
build started to hang when run with turbo or recursive pnpm run.

Looks like in this commit some stream or connection not closed when
build is finished.

https://github.com/remix-run/remix/pull/4410

Let's see if not fixed in newer versions and then file an issue.
2023-01-03 18:24:44 +03:00
Ivan Starkov b17b22276d Add status field to assets table (#711)
## Description

I need this filed in the following PR, to count assets before upload.
And restrict the total number of assets per project.

## Steps for reproduction

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)

## Before requesting a review

- [x] 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-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-28 00:02:53 +03:00
Bogdan Chadkin 845d53981c Improve packages publish (#676)
- all workspace dependencies are use with `workspace:^` protocol which
on publish is replaced with `^VERSION`. This will let us to upgrade
transitive packages in saas without shaman dancing around package.json
and lockfile.
- publish-to-npm script is replaced with `pnpm -r publish` which
recursively publishes all packages if version does not exist in npm
- dropped yarn lockfile
2022-12-22 17:06:27 +03:00
Bogdan Chadkin b3c87af7c1 Migrate to pnpm for package management (#641)
- setup corepack for pnpm and forbid yarn usage with "engines" field
- converted yarn lockfile into pnpm lockfile with `pnpm import` command
- replaced yarn with pnpm in scripts and github actions, had to use
custom cache to support corepack

This PR is only migration. Will use new pnpm features in other PRs.

```diff
du -ckd1 node_modules (yarn)
- 1125032

du -ckd1 node_modules/.pnpm
+ 857456
```

Install time (including cache downloads) in github actions reduced from
42s to 23s


## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [x] conceptual
  - [X] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-22 12:16:13 +03:00
Mateusz Burzyński 86292353bc Unify Storybook config (#585)
This PR moves most of the Storybook configs into a single, private,
package that can be imported/required by your packages. It aims to keep
the config the same for all of them as much as possible - so, for
example, all of the packages are now using Webpack 5 in their
Storybooks.
2022-12-17 21:50:59 +01:00
Bogdan Chadkin ff7c1c923e Install missing deps with types (#647)
In https://github.com/webstudio-is/webstudio-designer/pull/646 I checked
with build. Now found more issues with typescript.

Also forgot to migrate to jest/globals "project" package.
2022-12-17 11:41:34 +03:00
Bogdan Chadkin 3d3b7e6d80 Install missing deps and restrict ranges (#646)
Pnpm helped to find a few dependencies were missing in projects. Some
root deps with "*" versions restricted to simplify upgrade and prevent
unwanted upgrade while migrating to pnpm.
2022-12-16 17:38:27 +03:00
Mateusz Burzyński 3794f9a497 Add a composed Storybook (#529)
This PR builds on top of the work done in
https://github.com/webstudio-is/webstudio-designer/pull/519 and
introduces a root-level storybook that just aggregates all of the
per-package storybooks into one.

This allows you to have a single, convenient, URL to visit and browse
all of those existing storybooks at once. To access this storybook you
need to click on the `Details` link attached to the "Storybook Publish:
!webstudio-is/webstudio-designer" status check.

The current URL from this branch is available
[here](https://638affb61acca1e593c6e558-dksaophpxa.chromatic.com/) so
you can take a look at how this looks in practice.
2022-12-09 14:46:23 +01:00
Mateusz Burzyński 730b12b21b Deploy per-PR Storybooks on Chromatic (#519)
This publishes all available Storybooks to Chromatic - this happens per
push so you will always be able to check out the current state of things
in those Storybooks.

Since you have a lot of Storybooks... this isn't quite convenient. I
plan to combine all of those Storybooks into a single one (a single
storybook that will reference all of those smaller ones). I'd like to do
that in a follow-up PR though - let's now focus on getting this up and
running.
2022-12-06 08:32:51 +01:00
Bogdan Chadkin 3e96357a2c Use sources as type deifnitions (#539)
Right now our build and CI take a lot of time. 1:40min - 2min on CI and
1min locally. We spend time on vercel, on main CI, on publish and
locally.

At the moment in packages anything outside of src folder is not checked
because of rootDir.

We have to generate "references" field on precommit.

All these issues can be avoided if remove .d.ts generation completely
and specify sources in "types" field. This way we get zero build time
for types and can switch to other build tool (like esbuild) for .js
generation and get almost instant build on vercel, on main CI and on
publish.

Downsides

- it can be slower (actually not really caz we delete .tsbuildinfo cache
anyway and we can still generate it with incremental flag)
- it contraditcs recommended practices for published packages (we can
generate .d.ts in publish script only and use "types" as source
internally)
2022-11-28 22:27:56 +03:00
Bogdan Chadkin 0036185747 Publish css-vars package to npm (#517)
This one is missing when upgrade packages in webstudio-saas
2022-11-26 17:56:21 +03:00
Bogdan Chadkin c2f895bc6b Use corepack to setup yarn (#377)
See https://nodejs.org/api/corepack.html

Corepack is a way to setup specific yarn/pnpm version on the fly.
Builtin with Node 16.9+

Requires to run `corepack enable`

Replaces https://github.com/webstudio-is/webstudio-designer/pull/370
2022-11-25 12:46:42 +03:00
Mateusz Burzyński 7c1f860637 Fix bundling issues 2022-11-04 21:25:41 +01:00
Mateusz Burzyński 75cb3252e5 Try to use golden-fleece to handle tsconfig containing comments 2022-10-22 12:52:51 +02:00
Mateusz Burzyński 56e198012e Use tsx to run the script 2022-10-22 09:49:35 +02:00
Mateusz Burzyński 67e7dfeff0 Automate TS project references 2022-10-21 10:58:25 +02:00
Roman Pominov 84cbd7dc6d remove node 14 support 2022-10-06 13:51:32 +04:00
Andras Bacsai 8d0e1d8502 fix: let turborepo handle dependent package 2022-09-23 11:49:42 +02:00
Andras Bacsai df9f99ecb5 fix: build command for storybook 2022-09-23 11:45:01 +02:00
Andrey Okonetchnikov ce7bda51f9 Run build before building storybook 2022-09-23 11:14:01 +02:00
Andrey Okonetchnikov 2391418d2c Use yarn to run turbo 2022-09-23 11:04:39 +02:00
Andrey Okonetchnikov ef542e158b Integrate lost-pixel 2022-09-23 10:47:15 +02:00
Mateusz Burzyński 6f4aabde95 Make sure that TS 4.7 gets used 2022-09-21 14:57:34 +02:00
Roman Pominov fecb66d99c Update package.json 2022-09-12 23:34:19 +03:00
Roman Pominov f20ad95fb5 move migrations script to root 2022-09-12 16:38:13 +03:00
Roman Pominov 0979c02b39 add migrate script in root & --skip-confirmation 2022-09-08 11:15:28 +03:00
Mateusz Burzyński b913ac73d7 Refactor pubsub to use strongly-typed events between publishers and subscribers 2022-08-23 00:28:50 +02:00
Andras Bacsai ced3a73bec renaming all packages to @webstudio-is/* 2022-07-22 12:28:17 +00:00
Oleg Isonen d376984f59 Revert "Revert "we don't seem to need it""
This reverts commit 2d344f7d33.
2022-07-12 01:03:57 +02:00
Oleg Isonen eb4d0129d6 Merge branch 'main' into remove-vercel-workarounds 2022-07-11 20:18:15 +02:00
Oleg Isonen 2d344f7d33 Revert "we don't seem to need it"
This reverts commit c22d35e8ce.
2022-07-11 20:07:50 +02:00
Oleg Isonen c22d35e8ce we don't seem to need it 2022-07-10 12:37:40 +02:00
Oleg Isonen 359cb31904 decouple storybook from yarn dev 2022-07-10 12:24:58 +02:00
Leon Salsiccia f4a50c9ce3 remove vercel deployment workarounds 2022-07-10 01:44:51 +00:00
Leon Salsiccia 3838fe90c5 fix vercel deployments 2022-07-08 23:29:05 +00:00
Oleg Isonen d271cc1538 fix for vercel 2022-07-07 11:00:45 +02:00
Oleg Isonen 7038e6a94f start storybook with yarn dev 2022-07-07 10:17:26 +02:00
Oleg Isonen 4e4750cbb7 _build shoudln't be commited 2022-07-06 21:27:52 +02:00
Oleg Isonen 310166343b first working version of designer in turborepo 2022-07-06 11:36:59 +02:00
Oleg Isonen 25280852e6 Merge pull request #53 from webstudio-is/24-support-component-story-format-csf
CSF in Properties
2022-07-05 18:21:24 +02:00
Sara Vieira 70a074e722 Merge branch 'main' into sentry-v2 2022-07-05 16:24:47 +02:00
Sara Vieira 72884e4325 update sentry 2022-07-05 16:23:33 +02:00
Oleg Isonen 959525fa63 Merge branch 'main' into 24-support-component-story-format-csf 2022-07-04 20:31:01 +02:00
Oleg Isonen 0bde951185 fix ts errors 2022-07-04 20:27:48 +02:00
Oleg Isonen 5a74436d74 Merge branch 'main' into 24-support-component-story-format-csf 2022-07-04 19:47:59 +02:00
Sara Vieira 1aa4126e94 revert package updates 2022-07-01 20:21:13 +02:00
Sara Vieira 9af7dba962 chore(sentry) - Use new @remix/sentry 2022-07-01 20:19:26 +02:00
Andrey Okonetchnikov 63a3ce6d23 Merge branch 'main' into feat-combobox 2022-07-01 15:30:03 +02:00
Andrey Okonetchnikov 22bcd9e96d feat(Select): Implement Select using @radix-ui/select 2022-07-01 14:52:23 +02:00