1
0
Fork 0
Commit graph

200 commits

Author SHA1 Message Date
joostdecock
a4f192e090 fix(dev): Load MDX dynamically to reduce the number of routes
Prior to this commit we'd generate a page for each MDX document as that
avoids having to load MDX dynamically (which can be tricky) or through
static props (which causes issues with serialization).

However, Vercel (which hosts for us) has an upper limit on the number of
routes, and because of this extensive documentation, we blew passed it
with this approach.

This changes to a dynamic resolution of MDX content with an async import
in the useEffect hook. This should drastically reduce the number of
routes and make Vercel happy.

I didn't do much digging into the effects of this on SSR. If it turns
out it's causes issues, we'll deal with it at that time.
2023-05-20 13:22:36 +02:00
joostdecock
c11a29e28a chore(shared): Fix linter warnings in sites/shared 2023-05-19 18:15:06 +02:00
joostdecock
a41b3f09a2 chore(shared): Move org stuff to shared to be used by the lab 2023-05-17 17:32:19 +02:00
joostdecock
c9159d05c6 fix(shared): Tweak opacity for MDX metadata 2023-05-17 10:56:42 +02:00
Joost De Cock
5b12ea49ec feat(shared): Add git info to prebuild step 2023-05-17 10:53:41 +02:00
joostdecock
4fae3a425f feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
joostdecock
ed1ac8a7a7 Merge branch 'develop' into joost 2023-05-16 08:49:35 +02:00
joostdecock
9cf7de9a0b wip(shared): Work on MDX wrapper 2023-05-15 20:00:45 +02:00
joostdecock
0b238c989e wip(shared): Switched to webpack loader for MDX 2023-05-15 15:57:46 +02:00
joostdecock
517fa3f5e3 wip(shared): Re-factoring workbench 2023-05-11 19:14:48 +02:00
joostdecock
0dece4d70e wip(org): Started working on v3 workbench 2023-05-08 19:28:03 +02:00
joostdecock
bd3ce90e1a wip(org): Work on curation of sets 2023-05-08 14:03:47 +02:00
joostdecock
6dbc6fe078 wip(org): Work on curated sets 2023-05-08 09:31:37 +02:00
Benjamin F
329fc9f506 fix(workbench): Do not pre-draft patterns without measurements 2023-04-30 11:51:16 -07:00
joostdecock
3642242835 feat(org): Completed initial sets management 2023-04-30 17:50:15 +02:00
joostdecock
ebbb4a8b8c feat(shared): Modal design picker and work on sets 2023-04-30 14:53:49 +02:00
Joost De Cock
e47c18177b wip(shared): Removed useApp hook in favor of contexts
This removes the useApp hook from all org pages in favor of various
context. This means there is no longer global state that gets passed
around, instead each component that requires access to something shared
(like account, or navigation) can just use the context instead.

This is a first step, as a lot of shared components stil rely on app not
to mention the dev and lab sites.
2023-04-28 21:23:06 +02:00
Joost De Cock
5b83b12378 feat(shared): Ported modal from app-wide state to context 2023-04-25 17:33:34 +02:00
joostdecock
71a9555fbf feat(shared): make modal wrapper animate from all directions 2023-04-22 14:34:16 +02:00
Joost De Cock
7f8911a49d feat(shared): Use modal menu as main menu 2023-04-19 20:56:15 +02:00
joostdecock
33c609c886 chore: Linter warnings 2023-04-16 17:13:18 +02:00
joostdecock
86a5a8765b wip(org): Work on modal menus 2023-04-16 16:19:49 +02:00
joostdecock
6ae91efeed chore: Improvements to modal 2023-04-16 10:45:36 +02:00
joostdecock
ac2fe10294 Merge branch 'develop' into joost 2023-04-15 17:00:23 +02:00
joostdecock
dbab735eeb wip(shared): Work on modal menu 2023-04-09 15:57:25 +02:00
Luiz Saggioro
fb7ce2d5b0 Pass 'draft' into workbench props 2023-04-08 11:39:37 -04:00
joostdecock
4b4537c2a7 wip(org): New header and theme picker 2023-04-07 17:10:54 +02:00
Joost De Cock
83e4e86f74 wip: Work on site navigation 2023-04-01 15:41:58 +02:00
Joost De Cock
995bb23551 wip(shared): Nav prebuild changes 2023-03-28 16:47:52 +02:00
Joost De Cock
9e3861b009 chore(shared): Moved account components to allowed shared access 2023-03-27 19:07:48 +02:00
Joost De Cock
10ceb2df91 wip(org): Work on porting account pages to new navigation 2023-03-27 18:49:09 +02:00
Joost De Cock
4697fbd999 chore(dev): Menu tweaks 2023-03-26 08:32:44 +02:00
Joost De Cock
244f4524c4 wip(dev): Refactoring navigation 2023-03-26 06:51:11 +02:00
Joost De Cock
89617bef92 wip(shared): Work on refactoring hooks 2023-03-24 21:30:04 +01:00
Enoch Riese
deb5bb8407 lint fixes 2023-03-09 17:56:29 -06:00
Enoch Riese
bf51065cc8 add cutting instructions to title. ensure translation on drafts 2023-03-09 08:59:03 -06:00
Enoch Riese
29e3ba6323 cutting layout page has tabs for each fabric type. parts duplication 2023-02-27 17:47:34 -06:00
Enoch Riese
6dbe15a862 cutting layout renders at the most basic level 2023-02-21 22:56:03 +02:00
Enoch Riese
0a07ca8de0 some lint fixes from after the mjs overhaul 2023-02-13 16:44:12 -06:00
Enoch Riese
49f8badcfe convert new files to mjs 2023-02-11 16:45:00 -06:00
Enoch Riese
ed3f0abf23 basic editor interface 2023-02-11 16:31:43 -06:00
Enoch Riese
dd4aabc557 fix lab build errors after mjs transition 2023-02-09 21:39:19 -06:00
joostdecock
86aa0f20da chore: linter issues 2023-02-05 19:58:25 +01:00
joostdecock
d6d8c6f122 fix(lab): Fixed lab after moving to esm and named exports 2023-02-05 17:59:22 +01:00
joostdecock
1bd908d2c0 chore: Linter warnings 2023-02-05 16:30:12 +01:00
joostdecock
59708f534d wip(lab): Work on porting lab/workbenck to named exports 2023-01-29 18:57:24 +01:00
joostdecock
595417a23b feat(org): Ported components to mjs and named exports 2023-01-29 16:44:02 +01:00
Joost De Cock
dfa26c2e35 wip(shared): Brokering peace between prettier and eslint 2022-12-26 18:00:44 +01:00
Joost De Cock
ba76fdc2a7 fix(org): Linter errors 2022-12-26 17:44:00 +01:00
Joost De Cock
78879db88d wip(org): Tweaks to layout/fonts 2022-12-26 17:10:14 +01:00