Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(editor): drop Install theme from zip attachments (MUL-9385) (#10721)
Jiayuan Zhangaceec639d865
diff --git a/apps/docs/content/docs/themes.fr.mdx b/apps/docs/content/docs/themes.fr.mdxindex 28b278b467..dcb67c4f21 100644--- a/apps/docs/content/docs/themes.fr.mdx+++ b/apps/docs/content/docs/themes.fr.mdx@@ -88,7 +88,7 @@ Pour créer votre propre thème, voir [Créer un thème](/developers/themes).N’importe quel agent peut créer un thème à partir d’une description. Demandez-le dans un chat, une tâche ou un commentaire, par exemple « fais-moi un thème sombre et calme avec un ciel nocturne qui défile lentement ». Les agents connaissent le format des thèmes et doivent passer les vérifications avant de livrer.- **Dans l’application de bureau**, un agent qui tourne sur le même ordinateur écrit le thème dans le dossier des thèmes. Dès qu’il passe les vérifications, il apparaît sous **Thème** : choisissez-le une fois, et chaque modification demandée ensuite s’affiche en une seconde environ.-- **Sur le web, ou avec un agent sur une autre machine**, l’agent joint le thème sous forme de `.zip`. Cliquez sur **Installer le thème** sur la pièce jointe : Multica applique les mêmes vérifications et la même confirmation qu’avec **Importer un thème**.+- **Sur le web, ou avec un agent sur une autre machine**, l’agent joint le thème sous forme de `.zip`. Téléchargez-le, puis installez-le avec **Créer le vôtre → Importer un thème → Fichier de thème (.zip)**.## Quand un thème casse quelque chosediff --git a/apps/docs/content/docs/themes.ja.mdx b/apps/docs/content/docs/themes.ja.mdxindex d7740d5117..c94cd226a3 100644--- a/apps/docs/content/docs/themes.ja.mdx+++ b/apps/docs/content/docs/themes.ja.mdx@@ -88,7 +88,7 @@ import { Step, Steps } from "fumadocs-ui/components/steps";どのエージェントでも、説明文からテーマを作れます。チャットやタスク、コメントで「ゆっくり流れる夜空の、落ち着いたダークテーマを作って」のように頼んでください。エージェントはテーマの形式を知っていて、納品前にテーマのチェックに合格する必要があります。- **デスクトップアプリでは**、同じコンピューターで動くエージェントがテーマをテーマフォルダに書き込みます。チェックに合格すると **テーマ** に表示されます。一度選べば、その後に頼んだ変更は 1 秒ほどで反映されます。-- **Web 版、または別のマシンで動くエージェントの場合**、エージェントはテーマを `.zip` として添付します。添付ファイルの **テーマをインストール** をクリックすると、**テーマを読み込む** と同じチェックと確認画面が表示されます。+- **Web 版、または別のマシンで動くエージェントの場合**、エージェントはテーマを `.zip` として添付します。ダウンロードして、**自分で作る → テーマを読み込む → テーマファイル(.zip)** からインストールします。## テーマで表示が崩れたときdiff --git a/apps/docs/content/docs/themes.ko.mdx b/apps/docs/content/docs/themes.ko.mdxindex c8c28adb1d..90c675a9d7 100644--- a/apps/docs/content/docs/themes.ko.mdx+++ b/apps/docs/content/docs/themes.ko.mdx@@ -88,7 +88,7 @@ import { Step, Steps } from "fumadocs-ui/components/steps";어떤 에이전트든 설명만으로 테마를 만들 수 있습니다. 채팅, 태스크, 댓글에서 "밤하늘이 천천히 흐르는 차분한 다크 테마를 만들어 줘"처럼 요청하세요. 에이전트는 테마 형식을 알고 있으며, 전달하기 전에 테마 검사를 통과해야 합니다.- **데스크톱 앱에서는** 같은 컴퓨터에서 실행되는 에이전트가 테마를 테마 폴더에 씁니다. 검사를 통과하면 **테마**에 나타납니다. 한 번 선택해 두면 이후에 요청하는 변경은 1초 안팎으로 반영됩니다.-- **웹에서, 또는 다른 컴퓨터에서 실행되는 에이전트라면** 에이전트가 테마를 `.zip`으로 첨부합니다. 첨부 파일의 **테마 설치**를 클릭하면 **테마 가져오기**와 같은 검사와 확인 창이 표시됩니다.+- **웹에서, 또는 다른 컴퓨터에서 실행되는 에이전트라면** 에이전트가 테마를 `.zip`으로 첨부합니다. 내려받은 뒤 **직접 만들기 → 테마 가져오기 → 테마 파일(.zip)** 메뉴에서 설치합니다.## 테마 때문에 화면이 깨졌을 때diff --git a/apps/docs/content/docs/themes.mdx b/apps/docs/content/docs/themes.mdxindex 8d7121298a..27c125fced 100644--- a/apps/docs/content/docs/themes.mdx+++ b/apps/docs/content/docs/themes.mdx@@ -88,7 +88,7 @@ To start a theme of your own, see [Make a theme](/developers/themes).Any agent can build a theme from a description. Ask it in a chat, an issue, or a comment, for example "make me a calm dark theme with a slowly drifting night sky". Agents know the theme format and must pass the theme checks before they deliver.- **In the desktop app**, an agent running on the same computer writes the theme into the themes folder. Once it passes the checks it appears under **Theme**: pick it there once, and each change you ask for after that shows up within a second.-- **On the web, or with an agent on another machine**, the agent attaches the theme as a `.zip`. Click **Install theme** on the attachment: Multica runs the same checks and shows the same confirmation as **Import theme**.+- **On the web, or with an agent on another machine**, the agent attaches the theme as a `.zip`. Download it and install it with **Make your own → Import theme → Theme file (.zip)**.## When a theme breaks somethingdiff --git a/apps/docs/content/docs/themes.zh-Hant.mdx b/apps/docs/content/docs/themes.zh-Hant.mdxindex 71fef30b0a..d28f78393f 100644--- a/apps/docs/content/docs/themes.zh-Hant.mdx+++ b/apps/docs/content/docs/themes.zh-Hant.mdx@@ -88,7 +88,7 @@ import { Step, Steps } from "fumadocs-ui/components/steps";任何 AI 代理都能根據一段描述製作主題。在對話、任務或留言裡告訴它,例如「幫我做一個夜空緩緩流動的沉靜深色主題」。AI 代理了解主題格式,交付前必須通過主題檢查。- **在桌面應用程式中**,執行在同一台電腦上的 AI 代理會把主題寫進主題資料夾。主題通過檢查後會出現在 **主題** 清單裡,選用一次即可;之後你提出的每次修改,一秒左右就會生效。-- **在網頁版中,或 AI 代理執行在另一台機器上時**,AI 代理會把主題作為 `.zip` 附在回覆裡。點擊附件上的 **安裝主題**,Multica 會做與 **匯入主題** 相同的檢查並顯示相同的確認視窗。+- **在網頁版中,或 AI 代理執行在另一台機器上時**,AI 代理會把主題作為 `.zip` 附在回覆裡。下載後,從 **製作自己的主題 → 匯入主題 → 主題檔案(.zip)** 安裝。## 主題出問題時diff --git a/apps/docs/content/docs/themes.zh.mdx b/apps/docs/content/docs/themes.zh.mdxindex 8dedd86e2c..39996e591e 100644--- a/apps/docs/content/docs/themes.zh.mdx+++ b/apps/docs/content/docs/themes.zh.mdx@@ -88,7 +88,7 @@ import { Step, Steps } from "fumadocs-ui/components/steps";任何智能体都能根据一段描述制作主题。在对话、任务或评论里告诉它,比如“帮我做一个夜空缓缓流动的沉静深色主题”。智能体了解主题格式,交付前必须通过主题检查。- **在桌面应用中**,运行在同一台电脑上的智能体会把主题写进主题文件夹。主题通过检查后会出现在 **主题** 列表里,选用一次即可;之后你提出的每次修改,一秒左右就会生效。-- **在网页版中,或智能体运行在另一台机器上时**,智能体会把主题作为 `.zip` 附在回复里。点击附件上的 **安装主题**,Multica 会做与 **导入主题** 相同的检查并显示相同的确认窗口。+- **在网页版中,或智能体运行在另一台机器上时**,智能体会把主题作为 `.zip` 附在回复里。下载后,从 **制作自己的主题 → 导入主题 → 主题文件(.zip)** 安装。## 主题出问题时diff --git a/docs/theming.md b/docs/theming.mdindex 97c865015b..3685a929fd 100644--- a/docs/theming.md+++ b/docs/theming.md@@ -13,8 +13,8 @@ Appearance → Theme options**. Themes never run JavaScript.**Settings → Appearance → Manage** lists the themes installed on the deviceand the community theme store; the built-in themes are in the theme picker. Install a theme from thestore there, or with **Import theme**, from a `.zip` of the folder or from the-folder itself; a theme `.zip` attached to a chat or comment installs with-**Install theme** on the attachment. Themes are saved on the device, like every other Appearance+folder itself, including a theme `.zip` downloaded from a chat or comment+attachment. Themes are saved on the device, like every other Appearancesetting; **Remove** on a theme's card deletes it, and goes back to Defaultwhen it was in use. **Check for updates** looks for new releases of thethemes installed from the store.@@ -463,9 +463,9 @@ to the skill's routing table instead of an entry to every agent's skill list.itself. Every later save to the theme in use applies within a second, soask for changes and watch them land.- **On the web, or with an agent on another machine.** The agent attaches- the theme as a `.zip`. **Install theme** on the attachment reads it with- the same checks and confirmation as **Import theme**; a newer version of- the same id replaces the old one.+ the theme as a `.zip`. Download it and install it with **Import theme**,+ which runs the checks and asks before installing; a newer version of the+ same id replaces the old one.The checker runs without installing the repository, from a sparse cloneand Node 22.18 or newer:diff --git a/packages/views/editor/attachment-card.tsx b/packages/views/editor/attachment-card.tsxindex c8f4ecb034..554b7957e3 100644--- a/packages/views/editor/attachment-card.tsx+++ b/packages/views/editor/attachment-card.tsx@@ -27,7 +27,6 @@ interface AttachmentCardChromeProps {canPreview: boolean;canDownload: boolean;canDelete?: boolean;- action?: ReactNode;onPreview: () => void;onDownload: () => void | Promise<unknown>;onDelete?: () => void;@@ -39,7 +38,6 @@ function AttachmentCardChrome({canPreview,canDownload,canDelete,- action,onPreview,onDownload,onDelete,@@ -63,7 +61,6 @@ function AttachmentCardChrome({: filename}</p></div>- {!uploading && action}{!uploading && canPreview && (<DeferredTooltipcontent={t(($) => $.attachment.preview)}@@ -152,8 +149,6 @@ export interface AttachmentCardProps {onDownload: () => void | Promise<unknown>;/** Optional remove button, used by editable comment/file-card surfaces. */onDelete?: () => void;- /** A labelled button shown before the icons, such as Install theme. */- action?: ReactNode;/** Registers the card with the right-click menu. */scopeRef?: (element: HTMLElement | null) => void;}@@ -167,7 +162,6 @@ export function AttachmentCard({onPreview,onDownload,onDelete,- action,scopeRef,}: AttachmentCardProps) {const kind = filename ? getPreviewKind(contentType, filename) : null;@@ -183,7 +177,6 @@ export function AttachmentCard({canPreview={canPreview}canDownload={!!href}canDelete={!!onDelete}- action={action}onPreview={onPreview}onDownload={onDownload}onDelete={onDelete}@@ -205,8 +198,6 @@ export interface AttachmentFileCardProps {onPreview: () => void;onDownload: () => void | Promise<unknown>;onDelete?: () => void;- /** A labelled button that stays visible, such as Install theme. */- action?: ReactNode;/** Registers the card with the right-click menu. */scopeRef?: (element: HTMLElement | null) => void;}@@ -227,7 +218,6 @@ export function AttachmentFileCard({onPreview,onDownload,onDelete,- action,scopeRef,}: AttachmentFileCardProps) {const { t } = useT("editor");@@ -273,7 +263,6 @@ export function AttachmentFileCard({</span>)}</span>- {!uploading && action}{!uploading && (canDownload || onDelete) && (<span className={cn("relative flex shrink-0 items-center gap-0.5 transition-opacity group-hover/file-card:opacity-100 group-focus-within/file-card:opacity-100 [@media(hover:none)]:opacity-100",diff --git a/packages/views/editor/attachment.tsx b/packages/views/editor/attachment.tsxindex 147e291292..a1029c678b 100644--- a/packages/views/editor/attachment.tsx+++ b/packages/views/editor/attachment.tsx@@ -60,7 +60,6 @@ import {} from "./hooks/use-inline-media-url";import { useDownloadAttachment } from "./use-download-attachment";import { AttachmentCard, AttachmentFileCard } from "./attachment-card";-import { InstallThemeButton, canBeThemeZip } from "./install-theme-button";import { useAttachmentDownloadState } from "./hooks/use-attachment-download-state";import { canOpenPreview, getPreviewKind, type PreviewKind } from "./utils/preview";import { imageDimensions } from "./utils/image-metadata";@@ -440,11 +439,6 @@ export function Attachment({);}- const themeAction =- !editable && !state.uploading && state.attachmentId && canBeThemeZip(state.filename, state.record?.size_bytes) ? (- <InstallThemeButton attachmentId={state.attachmentId} filename={state.filename} />- ) : undefined;-if (layout === "card") {return (<>@@ -461,7 +455,6 @@ export function Attachment({onPreview={openPreview}onDownload={handleDownload}onDelete={editable ? onDelete : undefined}- action={themeAction}/>{preview.modal}</>@@ -479,7 +472,6 @@ export function Attachment({onPreview={openPreview}onDownload={handleDownload}onDelete={editable ? onDelete : undefined}- action={themeAction}scopeRef={scopeRef}/>{preview.modal}diff --git a/packages/views/editor/install-theme-button.test.tsx b/packages/views/editor/install-theme-button.test.tsxdeleted file mode 100644index 88bc6559b7..0000000000--- a/packages/views/editor/install-theme-button.test.tsx+++ /dev/null@@ -1,76 +0,0 @@-import type { ReactNode } from "react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { cleanup, render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { I18nProvider } from "@multica/core/i18n/react";-import {- DEFAULT_APPEARANCE,- THEME_PACKAGE_MAX_BYTES,- useAppearanceStore,- useInstalledThemesStore,- writeZip,-} from "@multica/core/appearance";-import enEditor from "../locales/en/editor.json";-import enSettings from "../locales/en/settings.json";--const getAttachmentBlob = vi.hoisted(() => vi.fn());-vi.mock("@multica/core/api", () => ({ api: { getAttachmentBlob } }));--import { InstallThemeButton, canBeThemeZip } from "./install-theme-button";--const RESOURCES = { en: { editor: enEditor, settings: enSettings } };-const Wrapper = ({ children }: { children: ReactNode }) => (- <I18nProvider locale="en" resources={RESOURCES}>- {children}- </I18nProvider>-);--const encode = (text: string) => new TextEncoder().encode(text);-const zip = (files: Record<string, string>) =>- new Blob([writeZip(Object.entries(files).map(([path, text]) => ({ path, data: encode(text) })))]);--describe("InstallThemeButton", () => {- beforeEach(() => {- localStorage.clear();- useAppearanceStore.setState(DEFAULT_APPEARANCE);- useInstalledThemesStore.setState({ themes: [], folders: {}, fromStore: {} });- getAttachmentBlob.mockReset();- });- afterEach(cleanup);-- it("is offered on a .zip that is not larger than a theme may be", () => {- expect(canBeThemeZip("night-sky.zip", 40_000)).toBe(true);- expect(canBeThemeZip("NIGHT-SKY.ZIP", undefined)).toBe(true);- expect(canBeThemeZip("backup.zip", THEME_PACKAGE_MAX_BYTES + 1)).toBe(false);- expect(canBeThemeZip("notes.pdf", 100)).toBe(false);- });-- it("installs the attachment as a theme after confirmation and switches to it", async () => {- getAttachmentBlob.mockResolvedValue(- zip({- "manifest.json": JSON.stringify({ apiVersion: 1, id: "night-sky", name: "Night Sky", version: "1.0.0" }),- "theme.css": ".theme-dark { --page-canvas: #101426; }",- }),- );- const user = userEvent.setup();- render(<InstallThemeButton attachmentId="att-1" filename="night-sky.zip" />, { wrapper: Wrapper });-- await user.click(screen.getByRole("button", { name: "Install theme" }));- expect(getAttachmentBlob).toHaveBeenCalledWith("att-1");- expect(await screen.findByText(/Night Sky/)).toBeInTheDocument();- await user.click(screen.getByRole("button", { name: "Install and use" }));-- expect(useInstalledThemesStore.getState().themes.map((theme) => theme.id)).toEqual(["night-sky"]);- expect(useAppearanceStore.getState().theme).toBe("night-sky");- });-- it("lists what stops a zip from installing", async () => {- getAttachmentBlob.mockResolvedValue(zip({ "README.md": "not a theme" }));- const user = userEvent.setup();- render(<InstallThemeButton attachmentId="att-2" filename="code.zip" />, { wrapper: Wrapper });-- await user.click(screen.getByRole("button", { name: "Install theme" }));- expect(await screen.findByText(enSettings.appearance.import.error_title)).toBeInTheDocument();- expect(useInstalledThemesStore.getState().themes).toEqual([]);- });-});diff --git a/packages/views/editor/install-theme-button.tsx b/packages/views/editor/install-theme-button.tsxdeleted file mode 100644index 42617785d8..0000000000--- a/packages/views/editor/install-theme-button.tsx+++ /dev/null@@ -1,62 +0,0 @@-"use client";--import { useState } from "react";-import { toast } from "sonner";-import { Loader2, Palette } from "@multica/ui/icons";-import { Button } from "@multica/ui/components/ui/button";-import { api } from "@multica/core/api";-import { THEME_PACKAGE_MAX_BYTES, readThemePackage } from "@multica/core/appearance";-import { useThemeInstallDialog } from "../common/theme-install-dialog";-import { useT } from "../i18n";--/**- * Whether an attachment could be a theme: a .zip no larger than a theme may- * be, which Import theme would refuse anyway. Its contents are read on click.- */-export function canBeThemeZip(filename: string, sizeBytes: number | undefined): boolean {- return /\.zip$/i.test(filename) && (sizeBytes === undefined || sizeBytes <= THEME_PACKAGE_MAX_BYTES);-}--/**- * Installs a .zip attachment as a theme, through the same checks and confirm- * dialog as Settings → Appearance → Import theme. This is how a theme an- * agent built reaches someone on web or on another machine.- */-export function InstallThemeButton({ attachmentId, filename }: { attachmentId: string; filename: string }) {- const { t } = useT("editor");- const dialog = useThemeInstallDialog();- const [reading, setReading] = useState(false);-- const install = async () => {- setReading(true);- try {- const blob = await api.getAttachmentBlob(attachmentId);- dialog.offer(await readThemePackage([new File([blob], filename)]));- } catch {- toast.error(t(($) => $.attachment.install_theme_failed));- } finally {- setReading(false);- }- };-- return (- <>- <Button- variant="outline"- size="xs"- className="relative shrink-0"- disabled={reading}- aria-busy={reading}- onMouseDown={(event) => event.stopPropagation()}- onClick={(event) => {- event.stopPropagation();- void install();- }}- >- {reading ? <Loader2 data-icon="inline-start" className="animate-spin" /> : <Palette data-icon="inline-start" />}- {t(($) => $.attachment.install_theme)}- </Button>- {dialog.element}- </>- );-}diff --git a/packages/views/locales/en/editor.json b/packages/views/locales/en/editor.jsonindex f2013ad868..d8b35819e1 100644--- a/packages/views/locales/en/editor.json+++ b/packages/views/locales/en/editor.json@@ -53,8 +53,6 @@"zoom_actual": "Actual size"},"attachment": {- "install_theme": "Install theme",- "install_theme_failed": "Couldn't read the attachment. Try again in a moment.","download_failed": "Couldn't fetch a download link. Try again in a moment.","copy_contents": "Copy contents","contents_copied": "Contents copied",diff --git a/packages/views/locales/es/editor.json b/packages/views/locales/es/editor.jsonindex 1b62948d70..ba4303180b 100644--- a/packages/views/locales/es/editor.json+++ b/packages/views/locales/es/editor.json@@ -53,8 +53,6 @@"zoom_actual": "Tamaño real"},"attachment": {- "install_theme": "Instalar tema",- "install_theme_failed": "No se pudo leer el adjunto. Inténtalo de nuevo en un momento.","download_failed": "No se ha podido obtener un enlace de descarga. Inténtalo de nuevo en un momento.","copy_contents": "Copiar contenido","contents_copied": "Contenido copiado",diff --git a/packages/views/locales/fr/editor.json b/packages/views/locales/fr/editor.jsonindex dca8549aca..a633673e7e 100644--- a/packages/views/locales/fr/editor.json+++ b/packages/views/locales/fr/editor.json@@ -53,8 +53,6 @@"zoom_actual": "Taille réelle"},"attachment": {- "install_theme": "Installer le thème",- "install_theme_failed": "Impossible de lire la pièce jointe. Réessayez dans un instant.","download_failed": "Impossible d'obtenir un lien de téléchargement. Réessayez dans un instant.","copy_contents": "Copier le contenu","contents_copied": "Contenu copié",diff --git a/packages/views/locales/ja/editor.json b/packages/views/locales/ja/editor.jsonindex 86e6955b47..6265f45d79 100644--- a/packages/views/locales/ja/editor.json+++ b/packages/views/locales/ja/editor.json@@ -53,8 +53,6 @@"zoom_actual": "実際のサイズ"},"attachment": {- "install_theme": "テーマをインストール",- "install_theme_failed": "添付ファイルを読み込めませんでした。しばらくしてからもう一度お試しください。","download_failed": "ダウンロードリンクを取得できませんでした。しばらくしてからもう一度お試しください。","copy_contents": "内容をコピー","contents_copied": "内容をコピーしました",diff --git a/packages/views/locales/ko/editor.json b/packages/views/locales/ko/editor.jsonindex f115c3df84..b913156446 100644--- a/packages/views/locales/ko/editor.json+++ b/packages/views/locales/ko/editor.json@@ -53,8 +53,6 @@"zoom_actual": "실제 크기"},"attachment": {- "install_theme": "테마 설치",- "install_theme_failed": "첨부 파일을 읽을 수 없습니다. 잠시 후 다시 시도하세요.","download_failed": "다운로드 링크를 가져오지 못했습니다. 잠시 후 다시 시도하세요.","copy_contents": "내용 복사","contents_copied": "내용을 복사했습니다",diff --git a/packages/views/locales/ru/editor.json b/packages/views/locales/ru/editor.jsonindex 1caf473397..bf637b9ec8 100644--- a/packages/views/locales/ru/editor.json+++ b/packages/views/locales/ru/editor.json@@ -53,8 +53,6 @@"zoom_actual": "Реальный размер"},"attachment": {- "install_theme": "Установить тему",- "install_theme_failed": "Не удалось прочитать вложение. Попробуйте ещё раз чуть позже.","download_failed": "Не удалось получить ссылку для скачивания. Повторите попытку через некоторое время.","copy_contents": "Скопировать содержимое","contents_copied": "Содержимое скопировано",diff --git a/packages/views/locales/zh-Hans/editor.json b/packages/views/locales/zh-Hans/editor.jsonindex 08305a60c8..604f4c736b 100644--- a/packages/views/locales/zh-Hans/editor.json+++ b/packages/views/locales/zh-Hans/editor.json@@ -53,8 +53,6 @@"zoom_actual": "实际大小"},"attachment": {- "install_theme": "安装主题",- "install_theme_failed": "无法读取附件,请稍后重试。","download_failed": "下载链接获取失败,请稍后重试。","copy_contents": "复制全文","contents_copied": "已复制全文",diff --git a/packages/views/locales/zh-Hant/editor.json b/packages/views/locales/zh-Hant/editor.jsonindex a28d17b51b..01d0d94553 100644--- a/packages/views/locales/zh-Hant/editor.json+++ b/packages/views/locales/zh-Hant/editor.json@@ -53,8 +53,6 @@"zoom_actual": "實際大小"},"attachment": {- "install_theme": "安裝主題",- "install_theme_failed": "無法讀取附件,請稍後再試。","download_failed": "下載連結獲取失敗,請稍後重試。","copy_contents": "複製全文","contents_copied": "已複製全文",diff --git a/server/internal/service/builtin_skills/multica-platform/references/themes.md b/server/internal/service/builtin_skills/multica-platform/references/themes.mdindex 28a7c4a5ff..d85183cf3e 100644--- a/server/internal/service/builtin_skills/multica-platform/references/themes.md+++ b/server/internal/service/builtin_skills/multica-platform/references/themes.md@@ -72,10 +72,11 @@ Desktop watches a themes folder in its user data:- **Anywhere else**, or when the user is on the web or another computer: zipthe theme with `manifest.json` at the top of the zip as `<id>.zip`, andattach it to your reply (`multica attachment upload <path>` in a chat,- `--attachment <path>` on `multica issue comment add`). The attachment shows- **Install theme**, which runs the same checks and asks before installing.- For a follow-up, raise `version` and attach a new zip; installing it- replaces the previous one.+ `--attachment <path>` on `multica issue comment add`). Tell the user to+ download it and install it under Settings → Appearance → Make your own →+ **Import theme** → Theme file (.zip), which runs the same checks and asks+ before installing. For a follow-up, raise `version` and attach a new zip;+ importing it replaces the previous one.In the reply, say where the theme went (the folder, or the attachment) and,for the folder, that it needs picking once; what the checker reported; anddiff --git a/server/internal/service/builtin_skills_test.go b/server/internal/service/builtin_skills_test.goindex e34539765a..234e684c1b 100644--- a/server/internal/service/builtin_skills_test.go+++ b/server/internal/service/builtin_skills_test.go@@ -731,7 +731,7 @@ func TestPlatformSkillCoversPlatformContracts(t *testing.T) {"~/.config/Multica/themes","does not switch to it","every save to the theme in use applies",- "**Install theme**",+ "**Import theme**","multica attachment upload <path>",},},