Conversation
|
ecd7b75 to
07cd293
Compare
07cd293 to
ae69ece
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Scope assignment failures can now abort the main import and leave it partially applied.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Moves Figma scope derivation into collection specs and applies scopes during variable synchronization.
Changes:
- Derives and stores scopes in variable specs.
- Synchronizes scopes alongside WEB code syntax.
- Removes the post-import scope pass.
File summaries
| File | Description |
|---|---|
collection-specs.ts |
Adds scope derivation and drift logging. |
variable-sync.ts |
Applies scopes during synchronization. |
scopes.ts |
Exposes reusable scope helpers. |
importer.ts |
Removes the post-import scope pass. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| if ( | ||
| normalizeScopes(desired.scopes) !== | ||
| normalizeScopes(variable.scopes ?? []) | ||
| ) { | ||
| variable.scopes = desired.scopes; | ||
| scopesUpdated++; | ||
| } |
moved figma variables scopes to variables-sync so that its done in the correct context and not and after loop which needed more logic to handle
Stack created with GitHub Stacks CLI • Give Feedback 💬