AI-native design editor. Open-source Figma alternative.
chore: merge master into live-editor-regressions
Danila Poyarkov2e66792c5986
diff --cc CHANGELOG.mdindex 9832c6222,969a8ce29..170ca76f4--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -50,11 -51,10 +51,10 @@@- Match page-list density to the layer tree and add subtle, reduced-motion-aware dialog transitions.- Fade in streaming Markdown list items and code lines without animating completed responses.- Vertically center shaped section titles and allow renaming a section by double-clicking its canvas label.-- Load supported online fonts before revealing imported pages, preserve substituted text during editing, and shape canvas labels with bundled Inter typography.+- Load supported online fonts before revealing imported pages, preserve substituted text during editing, and shape canvas labels with Inter typography and shared Arabic/CJK font fallback.- - Upgrade CanvasKit to 0.41 and use immutable renderer paths through `PathBuilder`.- - Upgrade direct model chat providers and transports to AI SDK 7 while retaining the local ACP execution path.- - Localize file, clipboard, collaboration, chat, vectorization, storage, recovery, and component-library notifications in every supported language.- - Move MCP connections into their own Settings destination instead of presenting them as part of model configuration.+ - Complete translated app, accessibility, font, color, file, clipboard, collaboration, chat, vectorization, storage, recovery, component-library, and connection feedback across supported locales, and synchronize document language with the selected locale.+ - Separate local MCP server controls, browser WebMCP access, and remote connections in Settings, with inline searchable tool permissions.+ - Show translated field errors, hints, and consistent contextual alerts in Settings forms, focus the first invalid field on submission, and explain missing requirements instead of silently disabling Save or Test.- Pan horizontally with Shift+wheel while preserving native horizontal trackpad movement.### Fixed@@@ -103,34 -91,29 +94,31 @@@- Restore visible above, below, and child drop feedback while dragging layers in the Layers panel.- Place editor-created instances beside nested source components in world space, including transformed parents.- Prevent malformed collaboration updates from corrupting synchronized nodes or derived text rendering.- - Transfer native `.fig` exports over binary Tauri IPC, preventing large desktop saves from being truncated or exhausting WebView memory. (#484)- - Keep unsaved source-less documents recoverable after their editor tab is closed.- - Decode zstd-compressed FIG containers, reject invalid compressed payloads, and preserve exact fixture byte ranges. (#397)- - Compose caller CSS with Tailwind defaults when importing DOM/CSS documents. (#397)- - Preserve desktop HTTP timeout, abort, and empty-response semantics. (#397)- - Report whether missing Figma clipboard images were actually fetched. (#397)- - Report exhausted provider credit, request failures, and output-token limits through localized chat toasts and copied diagnostics. (#451, #454)+ - Transfer native `.fig` exports over binary Tauri IPC, preventing large desktop saves from being truncated or exhausting WebView memory (#484).+ - Decode zstd-compressed FIG containers and reject invalid compressed payloads (#397).+ - Compose caller CSS with Tailwind defaults when importing DOM/CSS documents (#397).+ - Preserve desktop HTTP timeout, abort, and empty-response semantics (#397).+ - Report whether missing Figma clipboard images were actually fetched (#397).+ - Report exhausted provider credit, request failures, and output-token limits through localized chat toasts and copied diagnostics (#451, #454).- Prevent Windows desktop crashes when loading large system fonts for non-Latin text.- - Preserve open vector segments when the same vector network also contains filled regions. (#450)- - Match Figma Plugin API behavior for `rescale()`, page `backgrounds`, and nullable visual `absoluteRenderBounds`. (#442)- - Keep imported Figma instances linked to their remapped source components so later component edits update existing instances. (#385)+ - Preserve open vector segments when the same vector network also contains filled regions (#450).+ - Match Figma Plugin API behavior for `rescale()`, page `backgrounds`, and nullable visual `absoluteRenderBounds` (#442).+ - Keep imported and pasted Figma instances linked to their remapped source components so later component edits update existing instances (#385).- Restore native copy, cut, and paste shortcuts in desktop text inputs while preserving design clipboard handling on the canvas.- - Preserve selected layers when browser clipboard serialization fails during cut operations, and fall back to the session clipboard when system clipboard access is unavailable. (#568)- - Treat MCP tool results with an omitted `isError` field as successful while preserving explicit MCP errors. (#583)- - Remove the permanent CORS configuration action from cloud-storage settings and report connection results through standard toasts with clear browser-specific guidance.- - Complete translated app, accessibility, font, color, collaboration, import, connection-test, and browser fallback text across all supported locales, and synchronize document language with the selected locale.- - Preserve effective nested instance text overrides when importing complex Figma component hierarchies. (#102)+ - Preserve committed desktop text input when the WebView supplies text through the input event before updating the hidden text field (#607).+ - Preserve selected layers when browser clipboard serialization fails during cut operations, and fall back to the session clipboard when system clipboard access is unavailable (#568).+ - Treat MCP tool results with an omitted `isError` field as successful while preserving explicit MCP errors (#583).+ - Preserve effective nested instance text overrides when importing complex Figma component hierarchies (#102).- Preserve SVG clip paths, including clip shapes referenced through `<use>`, when importing editable vectors.- - Preserve circles, ellipses, rectangles, lines, polylines, and polygons supplied as JSX children of inline SVG elements. (#452)- - Preserve component links when pasting Figma instances so later component edits continue to update them.- - Stop local MCP servers after the app disconnects instead of leaving orphaned background processes. (#494)+ - Preserve circles, ellipses, rectangles, lines, polylines, and polygons supplied as JSX children of inline SVG elements (#452).+ - Stop local MCP servers after the app disconnects instead of leaving orphaned background processes (#494).+ - Prevent unbounded instance duplication when editing Figma-imported or pasted components with serialized or renamed children, keep extra instance children in their intended order, and avoid pasted instances re-linking pre-existing instances during clipboard import.- - Prevent unbounded instance duplication when editing Figma-imported or pasted components with serialized or renamed children, keep extra instance children stable instead of yanking them to the front, and avoid pasted instances re-linking pre-existing instances during clipboard import.### Performance+- Reduce pauses after repeated frame creation without leaving hidden property edits or popups active.+- Reduce repeated text shaping and scene invalidation while moving and resizing objects, and reuse fitting canvas labels during zoom.- - Scope automation and Figma API layout reconciliation to graph nodes and parent containers actually changed by each mutation.+ - Reduce unnecessary layout work after automation and Figma API edits by updating only affected layers and containers.- Keep rapid trackpad zoom reversals and effect-heavy document navigation responsive by cancelling obsolete reconstruction and reusing safe raster snapshots.- Show the FIG page list from a lightweight Kiwi scan before materializing the full document.- Avoid redundant collaboration writes when synchronized node fields have not changed.diff --cc src/components/ui/select/AppSelect.vueindex 5286b70d5,9d26c9586..0f3c4f773--- a/src/components/ui/select/AppSelect.vue+++ b/src/components/ui/select/AppSelect.vue@@@ -13,9 -13,8 +13,10 @@@ importSelectViewport} from 'reka-ui'import { tv } from 'tailwind-variants'+ import { computed } from 'vue'+import { useRetainedPopup } from '@open-pencil/vue'+import type { ComponentUI } from '@/components/ui/types'import theme from '@/theme/select/app'import type { AppSelectTheme } from '@/theme/select/app'@@@ -32,7 -31,9 +33,10 @@@ defineOptions({ inheritAttrs: false }const { options, label, placeholder, ui } = defineProps<AppSelectProps<T>>()const modelValue = defineModel<T>({ required: true })const styles = tv(theme)()+const { open: popupOpen, portalActive } = useRetainedPopup()+ const selectedLabel = computed(+ () => options.find((option) => option.value === modelValue.value)?.label+ )</script><template>@@@ -46,10 -47,12 +50,12 @@@:class="styles.trigger({ class: ui?.trigger })":aria-label="label">- <SelectValue :placeholder="placeholder" :class="styles.value({ class: ui?.value })" />+ <SelectValue :placeholder="placeholder" :class="styles.value({ class: ui?.value })">+ {{ selectedLabel ?? placeholder }}+ </SelectValue><icon-lucide-chevron-down class="ml-1 size-3 shrink-0 text-muted" /></SelectTrigger>- <SelectPortal>+ <SelectPortal v-if="portalActive"><SelectContentposition="popper":side-offset="2"diff --cc tools/lint/tests/vue-module.test.tsindex cc40f9e6b,000000000..aafa16caamode 100644,000000..100644--- a/tools/lint/tests/vue-module.test.ts+++ b/tools/lint/tests/vue-module.test.ts@@@ -1,47 -1,0 +1,49 @@@+import { expect, test } from 'bun:test'+import { execFile } from 'node:child_process'+import { mkdtemp, rm, writeFile } from 'node:fs/promises'+import { tmpdir } from 'node:os'- import { join, resolve } from 'node:path'++import { join } from 'node:path'+import { promisify } from 'node:util'+++import { resolveWorkspaceRoot } from '@open-pencil/package-artifacts'+++const execute = promisify(execFile)- const root = resolve(import.meta.dir, '../../..')++const root = await resolveWorkspaceRoot(import.meta.dir)++test.each(['app-first', 'sdk-first'])(+ 'Vue module declarations preserve Storybook default args (%s)',+ async (order) => {+ const directory = await mkdtemp(join(tmpdir(), 'open-pencil-vue-module-'))+ try {+ const declarations = [join(root, 'src/env.d.ts'), join(root, 'packages/vue/src/global.d.ts')]+ if (order === 'sdk-first') declarations.reverse()+ const project = join(directory, 'tsconfig.json')+ await writeFile(+ project,+ JSON.stringify({+ extends: join(root, 'tsconfig.json'),+ include: [],+ files: [+ ...declarations,+ join(root, 'src/components/ui/paint/FillSwatchTrigger.stories.ts')+ ]+ })+ )+ const result = await execute(+ process.execPath,+ [+ join(root, 'node_modules/@typescript/native-preview/bin/tsgo'),+ '--noEmit',+ '--project',+ project+ ],+ { cwd: root, timeout: 20_000, maxBuffer: 2 * 1024 * 1024 }+ )+ expect(result.stdout).toBe('')+ expect(result.stderr).toBe('')+ } finally {+ await rm(directory, { recursive: true, force: true })+ }+ },+ 30_000+)