Repository navigation
fix(figma): persist local projects across plugin restarts - #45
Open
Jan-CoreBunch wants to merge 2 commits into
Open
Jan-CoreBunch wants to merge 2 commits into
Jan-CoreBunch wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Local Figma projects now survive closing and reopening the plugin, including the bundled starting presets and larger custom projects. Local saves report success only after project persistence and variable synchronization complete, and synchronization leaves variables in other collections untouched.
Why
The default project JSON exceeds Figma's 100 kB per-entry plugin-data limit. The old flow could update Figma variables while project storage failed, then show success after a fixed 200 ms delay. Reopening offered a new project instead of the saved one.
shell-quote1.11.0 andproxy-addr2.0.8 to clear the critical audit failures already present in the base lockfile (shell-quote advisory, proxy-addr advisory). These are the only dependency resolution changes; regenerating the lockfile also refreshes workspace version metadata to the existing 2.0.2 manifests.Verification
bun audit --audit-level=criticalpassed; all 34 Figma tests and bothbun run build:figmaandbun run build:blockspassed. The audit policy is unchanged.bun test ./testsfrompackages/figma— 34 passed, including oversized presets, Unicode, legacy migration, failed writes, acknowledgements, and collection isolation.node ../../node_modules/jest/bin/jest.js --runInBand --coverage=false --watchman=falsefrompackages/www— 26 suites / 162 tests passed.bun run build:wwwandbun run build:figmapassed; Figma type checking, Biome checks on the relevant TypeScript files, andgit diff --checkpassed.secondarycolor with a different value was unaffected.The source boundary scan encounters an existing Windows path-separator issue in the allowlist for
packages/wp/wp/Config/Setup.php. The read-only scan passes when paths are normalized in memory; neither the scanner nor that PHP file was changed. Generated builds and local compatibility fixtures are excluded from this PR.