fix(studio): recovery drafts are kept by each project's own server, never the browser (#7904)

* fix(studio): recovery drafts are kept by each project's own server, never the browser

* fix(studio): a restored draft stays offered when Studio settles which composition is open

* fix(studio): a draft read never waits on a pipe or loads an oversized record

* test(studio): the draft read's child fixture is an entry point, and its note sits in the test

* chore(studio-server): size budget covers the recovery-draft route

* chore(cli): unpacked size budget covers the recovery-draft route
This commit is contained in:
Miguel Ángel
2026-11-16 04:48:52 +00:00
committed by GitHub
parent c2c6d8c599
commit 2be03408db
11 changed files with 360 additions and 103 deletions
+1
View File
@@ -43,6 +43,7 @@ const GET_RESPONSES = new Map([
[`${PROJECT_PATH}/renders`, json({ renders: [] })],
[`${PROJECT_PATH}/lint`, json({ findings: [] })],
[`${PROJECT_PATH}/selection`, json({ selection: null, updatedAt: null })],
[`${PROJECT_PATH}/recovery-drafts/index.html`, json({ draft: null })],
[`${PROJECT_PATH}/history`, json({ entries: [], back: null, forward: null })],
["/api/registry/blocks", json([])],
["/api/fonts", json({ fonts: [] })],