1
0
Fork 0
Commit graph

196 commits

Author SHA1 Message Date
Enoch Riese
ce4cf36394 get rid of reducer from gist hook 2022-06-23 14:37:11 -05:00
Enoch Riese
39cbf70c3e all gist mutation now uses the new functions 2022-06-23 12:50:51 -05:00
Joost De Cock
e5bcf3a6e1 feat(shared): Better error display in workbench 2022-06-23 15:18:20 +02:00
Joost De Cock
2b3143d395 fix(shared): Handle missing patternProps 2022-06-23 15:18:01 +02:00
Joost De Cock
640b7231be fix(shared): Avoid flash of draft error before re-render
When measurments are missing, the useEffect hook will rerender to show
the measurements page. However, before that happens there's a brief
flash of the (failed) draft because it errors without the measurements.

This prevents that by passing down whether or not all required
measurements are available, and if not the draft returns null
2022-06-23 10:11:41 +02:00
Joost De Cock
f82f7de5bb fix(shared): Don't force view to measurements by default
This is a bit of an annoyance since it forces you to the measurment
view, even for designs that have no required measurments.

So I've switched it to the draft view, and it should be the useEffect
code that detects whether required measurments are lacking and then
update the view.

FYI: @eriese
2022-06-23 09:58:54 +02:00
Joost De Cock
4bdda5062c
Merge pull request #2284 from eriese/eriese-fix-memo
fix measurement gist issues with better state management  #2281
2022-06-23 09:15:50 +02:00
Enoch Riese
7b5ed68839 fix gist loading 2022-06-22 19:13:52 -05:00
Enoch Riese
ce23291fc5 focus the first invalid measurement on page load and when trying to leave 2022-06-22 19:13:40 -05:00
Enoch Riese
018b5372fe fix deepscan issues 2022-06-22 15:38:15 -05:00
Enoch Riese
347554f3a1 fix measurement gist issues with better state management 2022-06-22 15:19:07 -05:00
Joost De Cock
fb44d9be4c fix(lab): Don't import published packages from relative url 2022-06-22 18:04:24 +02:00
Joost De Cock
2d9dba906e fix(shared): hide() signature should follow docs 2022-06-22 16:34:13 +02:00
Joost De Cock
4cba6f1804 chore: Reconfigure packages 2022-06-22 16:00:00 +02:00
Joost De Cock
1dae0a77b3 chore(shared): Temporary workaround for #2281
Commented out useMemo() code while waiting for a permanent fix
2022-06-22 14:56:46 +02:00
Joost De Cock
2fc939beda feat(shared): Added Code component 2022-06-22 14:56:26 +02:00
Joost De Cock
b9c6b77b43 fix(lab): provide index pages 2022-06-22 13:54:53 +02:00
Joost De Cock
095c52c2b6 feat(lab): Better rendering of raised events 2022-06-22 10:44:35 +02:00
Joost De Cock
533a0a9ebf fix(workbench): Guard against designs without measurements 2022-06-22 10:44:10 +02:00
Joost De Cock
fadb1a194b
Merge pull request #2159 from freesewing/dependabot/npm_and_yarn/react-swipeable-7.0.0
Bump react-swipeable from 6.2.1 to 7.0.0
2022-06-22 09:44:45 +02:00
Joost De Cock
c6bf134d03 fix(lab): snapseries alias for legacy patterns 2022-06-22 09:11:26 +02:00
Joost De Cock
d5dd8cfa09
Merge pull request #2248 from eriese/eriese-imperial
#2246 support imperial measurements in new measurement inputs
2022-06-21 18:59:55 +02:00
dependabot[bot]
ccbc251cef
Bump react-swipeable from 6.2.1 to 7.0.0
Bumps [react-swipeable](https://github.com/FormidableLabs/react-swipeable) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/FormidableLabs/react-swipeable/releases)
- [Changelog](https://github.com/FormidableLabs/react-swipeable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/FormidableLabs/react-swipeable/compare/v6.2.1...v7.0.0)

---
updated-dependencies:
- dependency-name: react-swipeable
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-21 08:42:46 +00:00
Joost De Cock
14a61798c9 feat(fs-design): Started working on new standalong dev evn 2022-06-21 10:36:20 +02:00
Joost De Cock
98ae9cc5ac wip(new-design): Started work on standalon development environment 2022-06-20 18:31:22 +02:00
Enoch Riese
9aa241d6e2 add mjs to next config 2022-06-19 18:17:20 +00:00
Joost De Cock
e908d419d5 fix(dev): Fixed build issues after recent changes 2022-06-19 16:09:53 +02:00
Joost De Cock
1fbe6d3dbf fix(lab): Build issues 2022-06-19 15:10:48 +02:00
Joost De Cock
ad05f1a4e8 feat(lab): Multicolor banner 2022-06-19 15:10:35 +02:00
Joost De Cock
c620792e55 fix(lab): Build script should call node with json modules flag 2022-06-19 14:25:27 +02:00
Joost De Cock
95065a7592 fix(sites): Updated cibuild script 2022-06-18 18:23:02 +02:00
Joost De Cock
70e0da6ced feat(lab): More dev info on Xray mode 2022-06-18 18:15:17 +02:00
Joost De Cock
026c7adcd2 feat(lab): Hover info for parts 2022-06-18 17:02:19 +02:00
Joost De Cock
16056ed04e chore(lab): Removed debug output 2022-06-18 13:18:58 +02:00
Joost De Cock
fb403e4b4d feat(lab): Added point info 2022-06-18 13:15:15 +02:00
Joost De Cock
5fba460e4b chore(lab): Tweaks to path info 2022-06-18 12:49:49 +02:00
Joost De Cock
4d8886a4f3 chore(lab): Updated footer 2022-06-18 12:49:40 +02:00
Joost De Cock
a37e66c0e5 feat(lab): Bring up info on paths when clicked upon 2022-06-18 12:15:05 +02:00
Enoch Riese
f60f047883 possibly now going overboard on null checks 2022-06-17 23:19:19 -05:00
Enoch Riese
d32f145ac3 better null checks 2022-06-17 23:15:15 -05:00
Enoch Riese
7476d45f54 Merge branch 'develop' into eriese-imperial 2022-06-17 22:31:11 -05:00
Joost De Cock
7108cb46a2 feat: Let yarn lab start the dev env 2022-06-17 14:12:46 +02:00
Joost De Cock
e69e87a8ad fix(shared): Don't clear gist but restore defaults 2022-06-17 12:07:16 +02:00
Joost De Cock
43ee0f1790 chore: Adapt sites to recent changes 2022-06-17 12:02:09 +02:00
Enoch Riese
e64a56c4c9 Merge branch 'develop' into eriese-imperial 2022-06-16 22:03:27 -05:00
Joost De Cock
e4035b2509 chore: Re-structure workspaces, enforce build order
These are some changes in the way the monorepo is structured,
that are aimed at making it easier to get started.

There are two important changes:

**Multiple workspaces**

We had a yarn workspaces setup at `packages/*`. But our monorepo has
grown to 92 packages which can be overwhelming for people not familiar
with the package names.

To remedy this, I've split it into 4 different workspaces:

- `designs/*`: Holds FreeSewing designs (think patterns)
- `plugins/*`: Holds FreeSewing plugins
- `packages/*`: Holds other packages published on NPM
- `sites/*`: Holds software that is not published as an NPM package,
  such as our various websites and backend API

This should make it easier to find things, and to answer questions like
*where do I find the code for the plugins*.

**Updated reconfigure script to handle build order**

One problem when bootstrapping the repo is inter-dependencies between
packages. For example, building a pattern will only work once
`plugin-bundle` is built. Which will only work once all plugins in the
bundle or built. And that will only work when `core` is built, and so
on.

This can be frustrating for new users as `yarn buildall` will fail.
And it gets overlooked by seasoned devs because they're likely to have
every package built in their repo so this issue doesn't concern them.

To remedy this, we now have a `config/build-order.mjs` file and the
updated `/scripts/reconfigure.mjs` script will enforce the build order
so that things *just work*.
2022-06-16 17:11:31 +02:00