Skip to content

extended collections#3745

Draft
six7 wants to merge 6 commits intomainfrom
six7/extended-collections
Draft

extended collections#3745
six7 wants to merge 6 commits intomainfrom
six7/extended-collections

Conversation

@six7
Copy link
Copy Markdown
Collaborator

@six7 six7 commented Jan 2, 2026

Introduces support for extended collections, wip

six7 added 4 commits December 22, 2025 09:45
…ion plan

- Updated @figma/plugin-typings to version 1.121.0 in yarn.lock.
- Removed outdated entries for object-inspect, qs, side-channel, string-width, and wrap-ansi from yarn.lock.
- Introduced a new document for the implementation plan of Figma extended variable collections, detailing goals, known API observations, data model changes, and a phased approach for development.

This commit enhances the project by ensuring up-to-date dependencies and providing a structured plan for future feature development.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 2, 2026

🦋 Changeset detected

Latest commit: 7ff4af5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tokens-studio/figma-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 2, 2026

⤵️ 📦 ✨ The artifact was successfully created! Want to test it? Download it here 👀 🎁

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 2, 2026

Commit SHA:338e440f4e0bee5f668c1b0f6708f4bd375c599f

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: six7/extended-collections 
Status File % Stmts % Branch % Funcs % Lines
🔴 total 64.59 (-0.02) 56.61 (-0.13) 61.19 (-0.14) 64.96 (0.02)
🔴 packages/tokens-studio-for-figma/src/app/components/ImportVariablesDialog.tsx 26.22 (-1.36) 13.79 (-2.87) 8 (-0.69) 29.09 (-1.09)
🔴 packages/tokens-studio-for-figma/src/app/components/ManageThemesModal/CreateOrEditThemeForm.tsx 41.48 (-5.57) 32 (-8.42) 36.66 (-6.19) 43.75 (-4.63)
🔴 packages/tokens-studio-for-figma/src/app/components/ManageThemesModal/ManageThemesModal.tsx 51.89 (0) 44.44 (-1.14) 42.1 (0) 51.31 (0)
🔴 packages/tokens-studio-for-figma/src/app/components/ManageThemesModal/SingleThemeEntry.tsx 79.31 (-15.69) 50 (-11.11) 88.88 (-11.12) 84.61 (-10.39)
🔴 packages/tokens-studio-for-figma/src/app/store/models/reducers/tokenState/saveTheme.ts 85 (0) 65 (-1.66) 75 (0) 84.21 (0)
🔴 packages/tokens-studio-for-figma/src/plugin/createNecessaryVariableCollections.ts 94.11 (-5.89) 86.53 (-8.92) 100 (0) 93.75 (-6.25)
✨ 🆕 packages/tokens-studio-for-figma/src/plugin/extendedCollectionHelpers.ts 92.3 91.66 100 92.3
🟢 packages/tokens-studio-for-figma/src/plugin/pullVariables.ts 82.32 (3.31) 59.35 (-2.58) 85 (2.4) 84.86 (5.26)
✨ 🆕 packages/tokens-studio-for-figma/src/plugin/resolveThemeDependencies.ts 96 91.66 100 100
🔴 packages/tokens-studio-for-figma/src/plugin/setValuesOnVariable.ts 78.72 (-0.79) 71.11 (-2.57) 81.81 (1.81) 79.12 (-1.12)
🔴 packages/tokens-studio-for-figma/src/plugin/updateVariables.ts 96.15 (-3.85) 75 (5) 100 (0) 96.15 (-3.85)
🟢 packages/tokens-studio-for-figma/src/plugin/asyncMessageHandlers/getAvailableVariableCollections.ts 100 (0) 75 (25) 100 (0) 100 (0)
✨ 🆕 packages/tokens-studio-for-figma/src/types/figma-extended-collections.d.ts 100 100 100 100
🔴 packages/tokens-studio-for-figma/src/utils/hashFigmaId.ts 57.14 (-17.86) 50 (0) 100 (0) 57.14 (-17.86)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 2, 2026

Commit SHA:338e440f4e0bee5f668c1b0f6708f4bd375c599f
Current PR reduces the test coverage percentage by 1 for some tests

six7 added 2 commits January 2, 2026 11:24
- Completed Phase 4: Updated variables for extended themes, ensuring inherited variables are protected from deletion and can have override values set.
- Completed Phase 5: Introduced UI controls for theme inheritance, allowing users to select a parent theme and displaying inheritance relationships in the theme list.
- Updated relevant files to implement and test these features, ensuring all tests pass successfully.
…management

- Added detailed debug logging to `createNecessaryVariableCollections`, `findCollectionAndModeIdForTheme`, `setColorValuesOnVariable`, and `setValuesOnVariable` functions to trace collection and mode operations.
- Improved error handling in `setColorValuesOnVariable` to ensure graceful failure and logging of issues when setting color values.
- Updated `hashFigmaId` to return an empty string instead of null for better consistency in error scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant