Repository navigation
chore(plugin): simplify plugin - #5466
Conversation
🦋 Changeset detectedLatest commit: b30d2f2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Notification accessibility, inaccurate warning counts, and overflowing status layouts need correction.
Review effort: Balanced
Findings: 5
Open (5)
What changed in this PR
Simplifies the Figma plugin into a direct configuration-to-export workflow with progress and result views.
Changes:
- Removes theme previews and related dependencies.
- Adds export progress, completion, and notification views.
- Renames import terminology and adds plugin packaging support.
| File | Description |
|---|---|
.gitignore |
Ignores plugin ZIP artifacts. |
pnpm-lock.yaml |
Removes unused dependencies. |
plugins/designsystemet/package.json |
Adds ZIP packaging and cleans dependencies. |
plugins/designsystemet/src/types.ts |
Defines the new message protocol. |
plugins/designsystemet/src/ui/app.tsx |
Implements the new export workflow. |
plugins/designsystemet/src/ui/app.css |
Styles status and notification views. |
plugins/designsystemet/src/ui/border-radius.ts |
Removes preview-only logic. |
plugins/designsystemet/src/ui/export-view.tsx |
Displays export progress. |
plugins/designsystemet/src/ui/finished-view.tsx |
Displays successful completion. |
plugins/designsystemet/src/ui/notifications-view.tsx |
Displays warnings, errors, and logs. |
plugins/designsystemet/src/ui/paste-view.tsx |
Updates configuration instructions. |
plugins/designsystemet/src/ui/post-to-plugin.ts |
Adds UI-to-plugin messaging. |
plugins/designsystemet/src/ui/preview-view.tsx |
Removes the theme preview. |
plugins/designsystemet/src/plugin/code.ts |
Runs validation and export in one operation. |
plugins/designsystemet/src/plugin/token-export/collection-specs.ts |
Adopts export terminology. |
plugins/designsystemet/src/plugin/token-export/effect-styles.ts |
Adopts the renamed export log. |
plugins/designsystemet/src/plugin/token-export/export-to-figma.ts |
Adds progress reporting and export naming. |
plugins/designsystemet/src/plugin/token-export/fonts.ts |
Updates export terminology. |
plugins/designsystemet/src/plugin/token-export/log.ts |
Renames the import log to export log. |
plugins/designsystemet/src/plugin/token-export/text-styles.ts |
Adopts the renamed export log. |
plugins/designsystemet/src/plugin/token-export/token-model.ts |
Updates preview-related messaging. |
plugins/designsystemet/src/plugin/token-export/variable-sync.ts |
Adopts export terminology. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
It substantially changes the message protocol, UI state machine, and destructive Figma export workflow without dedicated plugin tests.
Review effort: Balanced
Findings: None
Resolved since last review (5)
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
2960963 to
36a3fbe
Compare
|
Preview deployments for this pull request: storybook - |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The manifest changes the deployed plugin identity, and plugin-only pull requests will not trigger the newly configured tests.
Review effort: Balanced
Findings: 2
Open (2)
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
There was a problem hiding this comment.
🟡 Changes recommended
Config export mishandles prototype-named themes and semantic step names, causing data loss or silent omissions.
1 open finding
2 resolved since last review
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
🧠 Review effort: Balanced
065af22 to
7bf6a1b
Compare
There was a problem hiding this comment.
🟡 Changes recommended
File validation breaks CSS and some JSON uploads, while __proto__ CSS themes are silently lost during import.
2 open findings
1 resolved since last review
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
3d9e542 to
705fd64
Compare


resolves #5470
Summary
Removed preview for themes focusing on just having a simple as possible (wip) export to figma plugin.
font-familyin config does not exits in users Figma file (which includes system fonts) or if failed on updating other parts.Work in progress
START_VIEWconst.FEAT_CSS_IMPORT