Skip to content

Agent Zero AI framework

Unify WebUI icons and fix message collapsing

frdel93d1131ce1b9
diff --git a/plugins/AGENTS.md b/plugins/AGENTS.md
index 9c0117581..830ea181a 100644
--- a/plugins/AGENTS.md
+++ b/plugins/AGENTS.md
@@ -35,6 +35,7 @@
- Frontend plugin HTML extensions live under `extensions/webui/<point>/`, include a root Alpine scope, and use `x-move-*` directives when targeting static breakpoints.
- Frontend plugin JS extensions live under `extensions/webui/<point>/` and export a default function.
- Plugin UI must use the A0 notification system for errors, warnings, success, and info instead of inline success/error boxes.
+- Bundled plugin WebUI must author Material Symbols as empty `<x-icon name="lowercase_snake_case"></x-icon>` elements and use `:name` for Alpine-driven icon names. Legacy `.material-symbols-outlined` and `.material-icons-outlined` spans remain runtime-compatible for community plugins, but bundled plugins must not introduce new ligature-text spans.
- Banners and discovery cards are provided through Python `banners` extensions by appending dictionaries with unique `id`, `type`, `priority`, and display fields to the `banners` list.
- Alert banner types are `info`, `warning`, and `error`; discovery card types are `hero` and `feature`.
- Banner/card fields may include `title`, `html`, `description`, `thumbnail`, `icon`, `cta_text`, `cta_action`, and `dismissible` depending on type.
diff --git a/plugins/_browser/extensions/webui/get_tool_message_handler/browser-tool-handler.js b/plugins/_browser/extensions/webui/get_tool_message_handler/browser-tool-handler.js
index 5a3aba995..8104e6adf 100644
--- a/plugins/_browser/extensions/webui/get_tool_message_handler/browser-tool-handler.js
+++ b/plugins/_browser/extensions/webui/get_tool_message_handler/browser-tool-handler.js
@@ -349,7 +349,7 @@ function renderBrowserScreenshotKvp(kvpsTable, resolveBrowserPayload, label, sta
button.innerHTML = `
<img class="browser-screenshot-kvp-image" alt="" draggable="false">
<span class="browser-screenshot-kvp-placeholder" aria-hidden="true">
- <span class="material-symbols-outlined">image_search</span>
+ <x-icon name="image_search"></x-icon>
</span>
`;
button.addEventListener("click", async (event) => {
diff --git a/plugins/_browser/webui/browser-panel.html b/plugins/_browser/webui/browser-panel.html
index 0f543407b..05d0f43b7 100644
--- a/plugins/_browser/webui/browser-panel.html
+++ b/plugins/_browser/webui/browser-panel.html
@@ -22,7 +22,7 @@
:aria-selected="$store.browserPage.isActiveBrowser(browser).toString()"
:title="$store.browserPage.browserTabTooltip(browser)"
@click="$store.browserPage.selectBrowser(browser.id, browser.context_id)">
- <span class="material-symbols-outlined browser-tab-icon" aria-hidden="true">language</span>
+ <x-icon class="browser-tab-icon" aria-hidden="true" name="language"></x-icon>
<span class="browser-tab-title" x-text="$store.browserPage.browserTabTitle(browser)"></span>
</button>
<button type="button" class="browser-tab-close"
@@ -31,14 +31,14 @@
:disabled="$store.browserPage.isClosingBrowser(browser.id, browser.context_id)"
@pointerdown.stop
@click.stop="$store.browserPage.closeBrowser(browser.id, browser.context_id)">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</template>
<button type="button" class="browser-new-tab" title="New Browser" aria-label="New Browser"
:disabled="$store.browserPage.isBusy()"
@click="$store.browserPage.openNewBrowser()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
</button>
</div>
@@ -49,15 +49,15 @@
<div class="browser-navigation">
<button class="btn btn-icon-action" title="Back" @click="$store.browserPage.command('back')"
:disabled="!$store.browserPage.activeBrowserId || $store.browserPage.isBusy()">
- <span class="material-symbols-outlined">arrow_back</span>
+ <x-icon name="arrow_back"></x-icon>
</button>
<button class="btn btn-icon-action" title="Forward" @click="$store.browserPage.command('forward')"
:disabled="!$store.browserPage.activeBrowserId || $store.browserPage.isBusy()">
- <span class="material-symbols-outlined">arrow_forward</span>
+ <x-icon name="arrow_forward"></x-icon>
</button>
<button class="btn btn-icon-action" title="Reload" @click="$store.browserPage.command('reload')"
:disabled="!$store.browserPage.activeBrowserId || $store.browserPage.isBusy()">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
</button>
</div>
@@ -67,8 +67,8 @@
:class="{ 'is-active': $store.browserPage.annotating }"
:disabled="!$store.browserPage.canAnnotate() && !$store.browserPage.annotating"
@click="$store.browserPage.toggleAnnotationMode()">
- <span class="material-symbols-outlined" aria-hidden="true"
- x-text="$store.browserPage.annotating ? 'rate_review' : 'edit_note'"></span>
+ <x-icon aria-hidden="true"
+ :name="$store.browserPage.annotating ? 'rate_review' : 'edit_note'"></x-icon>
<span x-text="$store.browserPage.annotating ? 'Annotating' : 'Annotate'"></span>
</button>
<div class="browser-extension-menu" @click.outside="$store.browserPage.closeExtensionsMenu()"
@@ -77,7 +77,7 @@
aria-label="Browser settings" @click.stop="$store.browserPage.toggleExtensionsMenu()"
:aria-expanded="$store.browserPage.extensionMenuOpen.toString()"
:class="{ 'is-active': $store.browserPage.status?.extensions?.active }">
- <span class="material-symbols-outlined">tune</span>
+ <x-icon name="tune"></x-icon>
</button>
<div class="browser-extension-dropdown" x-show="$store.browserPage.extensionMenuOpen" x-transition
style="display: none;">
@@ -96,7 +96,7 @@
</div>
<div class="browser-extension-section-title">Chrome Extensions</div>
<button type="button" class="dropdown-item" @click="$store.browserPage.createExtensionWithAgent()">
- <span class="material-symbols-outlined">add_circle</span>
+ <x-icon name="add_circle"></x-icon>
<span>Create New Extension with A0</span>
</button>
<div class="browser-extension-url">
@@ -108,20 +108,20 @@
<button type="button" class="btn btn-ok" @click="$store.browserPage.installExtensionFromUrl()"
:disabled="$store.browserPage.extensionActionLoading"
:aria-busy="$store.browserPage.extensionActionLoading.toString()">
- <span class="material-symbols-outlined"
+ <x-icon
:class="{ spinning: $store.browserPage.extensionActionLoading }"
- x-text="$store.browserPage.extensionActionLoading ? 'progress_activity' : 'download'"></span>
+ :name="$store.browserPage.extensionActionLoading ? 'progress_activity' : 'download'"></x-icon>
<span x-text="$store.browserPage.extensionActionLoading ? 'Installing…' : 'Install URL'">Install URL</span>
</button>
<button type="button" class="btn btn-field"
@click="$store.browserPage.askAgentInstallExtension()">
- <span class="material-symbols-outlined">psychology_alt</span>
+ <x-icon name="psychology_alt"></x-icon>
<span x-text="$store.browserPage.extensionAssistantActionLabel()">Scan with A0</span>
</button>
</div>
<div class="browser-extension-warning" x-show="$store.browserPage.hasExtensionInstallUrl()"
x-transition style="display: none;">
- <span class="material-symbols-outlined">warning</span>
+ <x-icon name="warning"></x-icon>
<span>
Extensions run inside the Docker browser sandbox, but malicious or buggy extensions can still
damage that environment. Review what you install.
@@ -133,8 +133,8 @@
style="display: none;">
<div class="browser-extension-list-header">
<span>Installed extensions</span>
- <span class="material-symbols-outlined spinning"
- x-show="$store.browserPage.extensionsListLoading">progress_activity</span>
+ <x-icon class="spinning"
+ x-show="$store.browserPage.extensionsListLoading" name="progress_activity"></x-icon>
</div>
<template x-for="extension in $store.browserPage.extensionsList" :key="extension.path">
<div class="browser-extension-row" :title="extension.path">
@@ -150,7 +150,7 @@
:aria-label="$store.browserPage.extensionOpenTitle(extension)"
:disabled="!extension.enabled || $store.browserPage.isBusy()"
@click.stop="$store.browserPage.openExtensionUi(extension)">
- <span class="material-symbols-outlined">open_in_new</span>
+ <x-icon name="open_in_new"></x-icon>
<span>Open</span>
</button>
<label class="browser-extension-toggle">
@@ -164,7 +164,7 @@
</template>
</div>
<button type="button" class="dropdown-item" @click="$store.browserPage.openExtensionsSettings()">
- <span class="material-symbols-outlined">tune</span>
+ <x-icon name="tune"></x-icon>
<span>Settings</span>
</button>
<div class="browser-extension-message" x-show="$store.browserPage.extensionActionMessage"
@@ -176,7 +176,7 @@
</div>
<form class="browser-address-form" aria-label="Browser navigation" @submit.prevent="$store.browserPage.go()">
- <span class="material-symbols-outlined browser-address-icon">language</span>
+ <x-icon class="browser-address-icon" name="language"></x-icon>
<input class="browser-address" aria-label="Browser address" name="browser_address" x-model="$store.browserPage.address"
@focus="$store.browserPage.onAddressFocus()" @blur="$store.browserPage.onAddressBlur()"
@keydown.enter.prevent="$store.browserPage.go()"
@@ -251,7 +251,7 @@
<span>Annotations</span>
<button type="button" class="browser-annotation-clear" title="Clear annotations"
aria-label="Clear annotations" @click="$store.browserPage.clearVisibleAnnotations()">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
<div class="browser-annotation-chips">
@@ -261,7 +261,7 @@
<span class="browser-annotation-chip-text" x-text="annotation.comment"></span>
<button type="button" title="Remove annotation" aria-label="Remove annotation"
@click="$store.browserPage.removeAnnotationComment(annotation.id)">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</template>
@@ -275,7 +275,7 @@
</div>
<template x-if="!$store.browserPage.hasFrame() && !$store.browserPage.isBusy()">
<div class="browser-empty">
- <span class="material-symbols-outlined">captive_portal</span>
+ <x-icon name="captive_portal"></x-icon>
<button class="btn btn-field" @click="$store.browserPage.command('open')">Open
Browser</button>
</div>
@@ -286,7 +286,7 @@
:class="{ 'is-active': $store.browserPage.isBusy() || $store.browserPage.error, 'has-error': $store.browserPage.error && !$store.browserPage.isBusy() }">
<template x-if="$store.browserPage.isBusy()">
<div class="browser-status" :title="$store.browserPage.loadingMessage()">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span x-text="$store.browserPage.loadingMessage()">Loading</span>
</div>
</template>
diff --git a/plugins/_browser/webui/browser-store.js b/plugins/_browser/webui/browser-store.js
index 15ec5788d..cd8d85884 100644
--- a/plugins/_browser/webui/browser-store.js
+++ b/plugins/_browser/webui/browser-store.js
@@ -2866,7 +2866,7 @@ const model = {
newAction.className = "browser-header-actions surface-modal-new-action";
newAction.innerHTML = `
<button type="button" class="browser-header-new-button surface-modal-new-button" title="New Browser" aria-label="New Browser">
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
<span>New</span>
</button>
`;
@@ -2886,12 +2886,12 @@ const model = {
const focusButton = globalThis.document.createElement("button");
focusButton.type = "button";
focusButton.className = "surface-button browser-modal-focus-button";
- focusButton.innerHTML = '<span class="material-symbols-outlined" aria-hidden="true">fullscreen</span>';
+ focusButton.innerHTML = '<x-icon aria-hidden="true" name="fullscreen"></x-icon>';
const updateFocusButton = (active) => {
const label = active ? "Restore size" : "Focus mode";
focusButton.setAttribute("aria-label", label);
focusButton.setAttribute("title", label);
- focusButton.querySelector(".material-symbols-outlined").textContent = active ? "fullscreen_exit" : "fullscreen";
+ focusButton.querySelector("x-icon").name = active ? "fullscreen_exit" : "fullscreen";
};
const setFocusMode = (enabled) => {
if (enabled) {
diff --git a/plugins/_browser/webui/config.html b/plugins/_browser/webui/config.html
index 1e2b9e5fa..e4654962a 100644
--- a/plugins/_browser/webui/config.html
+++ b/plugins/_browser/webui/config.html
@@ -45,7 +45,7 @@
class="browser-config-note browser-config-success"
x-show="$store.browserConfig.config.runtime_backend !== 'host_required'"
>
- <span class="material-symbols-outlined">deployed_code</span>
+ <x-icon name="deployed_code"></x-icon>
<span>Internal Docker browser selected. Host-browser CLI settings are ignored for Browser tool runs.</span>
</div>
@@ -153,7 +153,7 @@
class="browser-config-note"
x-show="$store.browserConfig.config.runtime_backend === 'host_required' && $store.browserConfig.config.host_browser_profile_mode !== 'agent'"
>
- <span class="material-symbols-outlined">info</span>
+ <x-icon name="info"></x-icon>
<span>
For an already-open browser, Chrome, Edge, Brave, Vivaldi, and Chromium use chrome://inspect/#remote-debugging; Opera uses opera://inspect/#remote-debugging. Enable "Allow remote debugging for this browser instance", then restart or reconnect A0 CLI if the browser does not appear. If needed, launch the browser with --remote-debugging-port=9222 and --user-data-dir=&lt;profile-dir&gt;, then use localhost:9222 or the full ws://.../devtools/browser/... endpoint here or in A0_HOST_BROWSER_REMOTE_DEBUGGING_ENDPOINTS.
</span>
@@ -163,7 +163,7 @@
class="browser-config-warning"
x-show="$store.browserConfig.config.runtime_backend === 'host_required' && $store.browserConfig.config.host_browser_profile_mode !== 'agent'"
>
- <span class="material-symbols-outlined">warning</span>
+ <x-icon name="warning"></x-icon>
<span>
Existing profile lets the agent interact with the browser instance you authorize,
including signed-in sites, cookies, tabs, downloads, and page content.
@@ -184,7 +184,7 @@
</label>
<div class="browser-config-note">
- <span class="material-symbols-outlined" :class="{ spinning: $store.browserConfig.hostBrowserStatusLoading }" x-text="$store.browserConfig.hostBrowserStatusLoading ? 'progress_activity' : 'captive_portal'"></span>
+ <x-icon :class="{ spinning: $store.browserConfig.hostBrowserStatusLoading }" :name="$store.browserConfig.hostBrowserStatusLoading ? 'progress_activity' : 'captive_portal'"></x-icon>
<span x-text="$store.browserConfig.browserRuntimeStatusLabel()"></span>
</div>
</div>
@@ -269,7 +269,7 @@
</div>
<div class="browser-config-warning">
- <span class="material-symbols-outlined">warning</span>
+ <x-icon name="warning"></x-icon>
<span>
Extensions run inside the Docker browser sandbox, but malicious or buggy extensions can
still damage that environment. Keep only the extensions you trust enabled.
@@ -279,7 +279,7 @@
<div class="browser-config-extension-list">
<div class="browser-config-subtitle">
<span>Installed extensions</span>
- <span class="material-symbols-outlined spinning" x-show="$store.browserConfig.extensionsLoading">progress_activity</span>
+ <x-icon class="spinning" x-show="$store.browserConfig.extensionsLoading" name="progress_activity"></x-icon>
</div>
<template x-if="!$store.browserConfig.extensionsLoading && !$store.browserConfig.extensionsList.length">
<div class="browser-config-empty">No installed extensions found.</div>
@@ -308,21 +308,20 @@
:aria-label="'Delete ' + (extension.name || 'extension')"
@click.stop="$store.browserConfig.deleteExtension(extension)"
>
- <span
- class="material-symbols-outlined"
+ <x-icon
:class="{ spinning: $store.browserConfig.extensionDeleteLoadingPath === extension.path }"
- x-text="$store.browserConfig.extensionDeleteLoadingPath === extension.path ? 'progress_activity' : 'delete'"
- ></span>
+ :name="$store.browserConfig.extensionDeleteLoadingPath === extension.path ? 'progress_activity' : 'delete'"
+ ></x-icon>
</button>
</span>
</div>
</template>
<div class="browser-config-note browser-config-success" x-show="$store.browserConfig.extensionsMessage">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
<span x-text="$store.browserConfig.extensionsMessage"></span>
</div>
<div class="browser-config-note" x-show="$store.browserConfig.extensionsError">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="$store.browserConfig.extensionsError"></span>
</div>
</div>
diff --git a/plugins/_chat_compaction/extensions/webui/chat-input-bottom-actions-start/compact-button.html b/plugins/_chat_compaction/extensions/webui/chat-input-bottom-actions-start/compact-button.html
index 28b1f175e..86280e5d4 100644
--- a/plugins/_chat_compaction/extensions/webui/chat-input-bottom-actions-start/compact-button.html
+++ b/plugins/_chat_compaction/extensions/webui/chat-input-bottom-actions-start/compact-button.html
@@ -38,7 +38,7 @@
<div class="cmpct-header">
<h3>Compact Chat History</h3>
<button class="cmpct-close" @click="$store.compactStore?.closeModal()">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
@@ -85,7 +85,7 @@
</div>
<div class="cmpct-info">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
<span>The context will be replaced with a compacted summary. The original conversation will be backed up.</span>
</div>
</div>
diff --git a/plugins/_chat_compaction/webui/compact-modal.html b/plugins/_chat_compaction/webui/compact-modal.html
index 665da605b..3e7f73fc7 100644
--- a/plugins/_chat_compaction/webui/compact-modal.html
+++ b/plugins/_chat_compaction/webui/compact-modal.html
@@ -9,7 +9,7 @@
<div class="modal-header">
<h3>Compact Chat History</h3>
<button class="modal-close" @click="$store.compactStore?.closeModal()">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
@@ -63,13 +63,13 @@
<template x-if="!$store.compactStore?.canCompact">
<div class="stats-info">
- <span class="material-symbols-outlined">info</span>
+ <x-icon name="info"></x-icon>
<span>Conversation is too short to compact (minimum 1,000 tokens).</span>
</div>
</template>
<div class="stats-warning">
- <span class="material-symbols-outlined">warning</span>
+ <x-icon name="warning"></x-icon>
<span>This action cannot be undone. The original conversation will be replaced with a summary.</span>
</div>
</div>
diff --git a/plugins/_chat_naming/extensions/webui/sidebar-row-actions-menu/rename.html b/plugins/_chat_naming/extensions/webui/sidebar-row-actions-menu/rename.html
index 716d57aba..86fc5c8d9 100644
--- a/plugins/_chat_naming/extensions/webui/sidebar-row-actions-menu/rename.html
+++ b/plugins/_chat_naming/extensions/webui/sidebar-row-actions-menu/rename.html
@@ -11,7 +11,7 @@
$store.sidebar.rowMenuOpenId,
$store.sidebar.rowMenuKind,
)">
- <span class="material-symbols-outlined">edit</span>
+ <x-icon name="edit"></x-icon>
<span x-text="$store.sidebar.rowMenuKind === 'task' ? 'Rename Task' : 'Rename Chat'"></span>
</button>
</div>
diff --git a/plugins/_chat_naming/webui/rename.html b/plugins/_chat_naming/webui/rename.html
index 3e76eeb53..40645e0e7 100644
--- a/plugins/_chat_naming/webui/rename.html
+++ b/plugins/_chat_naming/webui/rename.html
@@ -27,14 +27,14 @@
@click="$store.chatNaming.generate()"
:disabled="$store.chatNaming.loading || $store.chatNaming.generating
|| $store.chatNaming.saving">
- <span class="material-symbols-outlined"
- x-text="$store.chatNaming.generating ? 'progress_activity' : 'auto_awesome'"></span>
+ <x-icon
+ :name="$store.chatNaming.generating ? 'progress_activity' : 'auto_awesome'"></x-icon>
<span x-text="$store.chatNaming.generating ? 'Generating...' : 'Generate'"></span>
</button>
<button type="button" class="btn"
@click="$store.chatNaming.openSettings()"
:disabled="$store.chatNaming.loading || $store.chatNaming.saving">
- <span class="material-symbols-outlined">settings</span>
+ <x-icon name="settings"></x-icon>
<span>Settings</span>
</button>
</div>
diff --git a/plugins/_commands/extensions/webui/chat-input-box-start/commands-menu.html b/plugins/_commands/extensions/webui/chat-input-box-start/commands-menu.html
index 69e67f561..bb4dae78a 100644
--- a/plugins/_commands/extensions/webui/chat-input-box-start/commands-menu.html
+++ b/plugins/_commands/extensions/webui/chat-input-box-start/commands-menu.html
@@ -11,7 +11,7 @@
<div class="commands-slash-menu" x-show="$store.commandsSlash.menuVisible" x-transition.opacity.duration.120ms>
<template x-if="$store.commandsSlash.loading">
<div class="commands-slash-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading slash commands...</span>
</div>
</template>
@@ -49,7 +49,7 @@
class="commands-slash-create"
@mousedown.prevent
@click.prevent="$store.commandsSlash.openCreateCommand()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
<span x-text="$store.commandsSlash.emptyStateLabel"></span>
</button>
</div>
diff --git a/plugins/_commands/webui/editor.html b/plugins/_commands/webui/editor.html
index 8d6725a2f..4be3ca37d 100644
--- a/plugins/_commands/webui/editor.html
+++ b/plugins/_commands/webui/editor.html
@@ -97,7 +97,7 @@
<template x-if="$store.commandsManager.editor.path">
<div class="commands-editor-path">
- <span class="material-symbols-outlined">description</span>
+ <x-icon name="description"></x-icon>
<span x-text="$store.commandsManager.editor.path"></span>
</div>
</template>
diff --git a/plugins/_commands/webui/main.html b/plugins/_commands/webui/main.html
index 0f7322264..227de6296 100644
--- a/plugins/_commands/webui/main.html
+++ b/plugins/_commands/webui/main.html
@@ -30,15 +30,15 @@
<div class="commands-toolbar-actions">
<button type="button" class="button secondary" @click="$store.commandsManager.refresh()">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
<span>Refresh</span>
</button>
<button type="button" class="button secondary" @click="$store.commandsManager.browseScopeFolder()">
- <span class="material-symbols-outlined">folder_open</span>
+ <x-icon name="folder_open"></x-icon>
<span>Browse Scope Folder</span>
</button>
<button type="button" class="button primary" @click="$store.commandsManager.openCreateCommand()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
<span>Create Command</span>
</button>
</div>
@@ -46,7 +46,7 @@
</div>
<div class="commands-loading" x-show="$store.commandsManager.loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading commands...</span>
</div>
@@ -70,13 +70,13 @@
<div class="commands-card-actions">
<button type="button" class="button icon" title="Edit command" @click="$store.commandsManager.openEditCommand(command)">
- <span class="material-symbols-outlined">edit</span>
+ <x-icon name="edit"></x-icon>
</button>
<button type="button" class="button icon" title="Duplicate command" @click="$store.commandsManager.duplicateCommand(command)">
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
</button>
<button type="button" class="button icon danger" title="Delete command" @click.stop="$confirmClick($event, () => $store.commandsManager.deleteCommand(command))">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
</div>
@@ -94,7 +94,7 @@
Create YAML-configured slash commands here and they will appear from <code>/</code> in chat.
</div>
<button type="button" class="button primary" @click="$store.commandsManager.openCreateCommand()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
<span>Create Slash Command</span>
</button>
</div>
@@ -125,7 +125,7 @@
:title="$store.commandsManager.scopedOverride(command) ? 'Edit override' : 'Create editable override'"
:aria-label="$store.commandsManager.scopedOverride(command) ? `Edit /${command.name} override` : `Create editable /${command.name} override`"
@click="$store.commandsManager.editBuiltinCommand(command)">
- <span class="material-symbols-outlined">edit</span>
+ <x-icon name="edit"></x-icon>
</button>
</div>
diff --git a/plugins/_desktop/extensions/webui/right-canvas-toolbar-start/desktop-new-menu.html b/plugins/_desktop/extensions/webui/right-canvas-toolbar-start/desktop-new-menu.html
index 66006333f..bb33649a9 100644
--- a/plugins/_desktop/extensions/webui/right-canvas-toolbar-start/desktop-new-menu.html
+++ b/plugins/_desktop/extensions/webui/right-canvas-toolbar-start/desktop-new-menu.html
@@ -13,25 +13,25 @@
:aria-expanded="open.toString()"
@click.stop="open = !open"
>
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
<span>New</span>
- <span class="material-symbols-outlined office-new-chevron" aria-hidden="true">expand_more</span>
+ <x-icon class="office-new-chevron" aria-hidden="true" name="expand_more"></x-icon>
</button>
<div class="office-new-menu" role="menu" x-show="open" @click.stop style="display: none;">
<button type="button" class="office-new-menu-item" role="menuitem" @click="open = false; $store.desktop?.runNewMenuAction('open')">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span>Open</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" @click="open = false; $store.desktop?.runNewMenuAction('writer')">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span>Writer</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" @click="open = false; $store.desktop?.runNewMenuAction('spreadsheet')">
- <span class="material-symbols-outlined" aria-hidden="true">table_chart</span>
+ <x-icon aria-hidden="true" name="table_chart"></x-icon>
<span>Spreadsheet</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" @click="open = false; $store.desktop?.runNewMenuAction('presentation')">
- <span class="material-symbols-outlined" aria-hidden="true">co_present</span>
+ <x-icon aria-hidden="true" name="co_present"></x-icon>
<span>Presentation</span>
</button>
</div>
diff --git a/plugins/_desktop/webui/desktop-panel.html b/plugins/_desktop/webui/desktop-panel.html
index 1bbe300c3..b0764883f 100644
--- a/plugins/_desktop/webui/desktop-panel.html
+++ b/plugins/_desktop/webui/desktop-panel.html
@@ -11,7 +11,7 @@
<div class="office-shell">
<div class="office-document-header" x-show="$store.desktop.hasActiveFile()" style="display: none;">
<div class="office-document-title" :title="$store.desktop.tabLabel($store.desktop.session)">
- <span class="material-symbols-outlined office-document-icon" aria-hidden="true" x-text="$store.desktop.tabIcon($store.desktop.session)"></span>
+ <x-icon class="office-document-icon" aria-hidden="true" :name="$store.desktop.tabIcon($store.desktop.session)"></x-icon>
<span class="office-document-name" x-text="$store.desktop.tabTitle($store.desktop.session)"></span>
<span class="office-document-dirty" x-show="$store.desktop.dirty" aria-hidden="true">*</span>
</div>
@@ -25,7 +25,7 @@
:disabled="$store.desktop.saving"
@click="$store.desktop.save()"
>
- <span class="material-symbols-outlined" :class="{ spinning: $store.desktop.saving }" x-text="$store.desktop.saving ? 'progress_activity' : 'save'"></span>
+ <x-icon :class="{ spinning: $store.desktop.saving }" :name="$store.desktop.saving ? 'progress_activity' : 'save'"></x-icon>
</button>
<div class="office-file-actions" x-data="{ open: false }" @click.outside="open = false" @keydown.escape.window="open = false">
@@ -39,15 +39,15 @@
:disabled="$store.desktop.saving"
@click.stop="open = !open"
>
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
<div class="office-new-menu office-file-menu" role="menu" x-show="open" @click.stop>
<button type="button" class="office-new-menu-item" role="menuitem" :disabled="$store.desktop.saving" @click="open = false; $store.desktop.renameActiveFile()">
- <span class="material-symbols-outlined" aria-hidden="true">edit</span>
+ <x-icon aria-hidden="true" name="edit"></x-icon>
<span>Rename</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" :disabled="$store.desktop.loading" @click="open = false; $store.desktop.closeActiveFile()">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
<span>Close File</span>
</button>
</div>
@@ -55,7 +55,7 @@
</div>
<div class="office-state-line" x-show="$store.desktop.message || $store.desktop.error || $store.desktop.loading" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.desktop.loading }" x-text="$store.desktop.loading ? 'progress_activity' : ($store.desktop.error ? 'error' : 'check_circle')"></span>
+ <x-icon :class="{ spinning: $store.desktop.loading }" :name="$store.desktop.loading ? 'progress_activity' : ($store.desktop.error ? 'error' : 'check_circle')"></x-icon>
<span x-text="$store.desktop.error || $store.desktop.message || 'Working'"></span>
</div>
@@ -74,10 +74,10 @@
</div>
<div class="office-desktop-empty" x-show="$store.desktop.shouldShowDesktopEmptyState()" style="display: none;">
- <span class="material-symbols-outlined" aria-hidden="true">power_settings_new</span>
+ <x-icon aria-hidden="true" name="power_settings_new"></x-icon>
<span class="office-desktop-empty-title">Desktop is shut down</span>
<button type="button" class="office-icon-button office-command-button" @click="$store.desktop.restartDesktopSession()">
- <span class="material-symbols-outlined" aria-hidden="true">restart_alt</span>
+ <x-icon aria-hidden="true" name="restart_alt"></x-icon>
<span class="office-button-label">Restart Desktop</span>
</button>
</div>
diff --git a/plugins/_desktop/webui/desktop-store.js b/plugins/_desktop/webui/desktop-store.js
index 83f4cc086..ed0446de9 100644
--- a/plugins/_desktop/webui/desktop-store.js
+++ b/plugins/_desktop/webui/desktop-store.js
@@ -2393,25 +2393,25 @@ const model = {
root.className = "office-header-actions surface-modal-new-action";
root.innerHTML = `
<button type="button" class="office-header-new-button surface-modal-new-button" aria-haspopup="menu" aria-expanded="false">
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
<span>New</span>
- <span class="material-symbols-outlined office-new-chevron" aria-hidden="true">expand_more</span>
+ <x-icon class="office-new-chevron" aria-hidden="true" name="expand_more"></x-icon>
</button>
<div class="office-new-menu" role="menu" hidden>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="open">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span>Open</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="writer">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span>Writer</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="spreadsheet">
- <span class="material-symbols-outlined" aria-hidden="true">table_chart</span>
+ <x-icon aria-hidden="true" name="table_chart"></x-icon>
<span>Spreadsheet</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="presentation">
- <span class="material-symbols-outlined" aria-hidden="true">co_present</span>
+ <x-icon aria-hidden="true" name="co_present"></x-icon>
<span>Presentation</span>
</button>
</div>
@@ -2548,12 +2548,12 @@ const model = {
const focusButton = globalThis.document.createElement("button");
focusButton.type = "button";
focusButton.className = "surface-button office-modal-focus-button";
- focusButton.innerHTML = '<span class="material-symbols-outlined" aria-hidden="true">fullscreen</span>';
+ focusButton.innerHTML = '<x-icon aria-hidden="true" name="fullscreen"></x-icon>';
const updateFocusButton = (active) => {
const label = active ? "Restore size" : "Focus mode";
focusButton.setAttribute("aria-label", label);
focusButton.setAttribute("title", label);
- focusButton.querySelector(".material-symbols-outlined").textContent = active ? "fullscreen_exit" : "fullscreen";
+ focusButton.querySelector("x-icon").name = active ? "fullscreen_exit" : "fullscreen";
};
updateFocusButton(false);
placeSurfaceModalHeaderAction(header, focusButton, "window");
diff --git a/plugins/_discovery/extensions/webui/onboarding-success-end/discovery-cards.html b/plugins/_discovery/extensions/webui/onboarding-success-end/discovery-cards.html
index 222364d4b..faad83268 100644
--- a/plugins/_discovery/extensions/webui/onboarding-success-end/discovery-cards.html
+++ b/plugins/_discovery/extensions/webui/onboarding-success-end/discovery-cards.html
@@ -26,7 +26,7 @@
<img :src="card.thumbnail" :alt="card.title" loading="lazy">
</template>
<template x-if="!card.thumbnail && card.icon">
- <span class="material-symbols-outlined discovery-feature-icon" x-text="card.icon"></span>
+ <x-icon class="discovery-feature-icon" :name="card.icon"></x-icon>
</template>
</div>
<h4 class="discovery-feature-title" x-text="card.title"></h4>
@@ -36,7 +36,7 @@
type="button"
@click.stop="$store.discoveryStore.executeCta(card.cta_action)">
<span x-text="card.cta_text"></span>
- <span class="material-symbols-outlined">arrow_forward</span>
+ <x-icon name="arrow_forward"></x-icon>
</button>
</article>
</template>
@@ -56,7 +56,7 @@
@click.stop="$store.discoveryStore.dismissCard(card.id)"
:aria-label="`Dismiss ${card.title}`"
title="Dismiss">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<div class="discovery-hero-content">
@@ -66,7 +66,7 @@
type="button"
@click.stop="$store.discoveryStore.executeCta(card.cta_action)">
<span x-text="card.cta_text"></span>
- <span class="material-symbols-outlined">arrow_forward</span>
+ <x-icon name="arrow_forward"></x-icon>
</button>
</div>
@@ -75,7 +75,7 @@
<img :src="card.thumbnail" :alt="card.title" loading="lazy">
</template>
<template x-if="!card.thumbnail && card.icon">
- <span class="material-symbols-outlined discovery-hero-icon" x-text="card.icon"></span>
+ <x-icon class="discovery-hero-icon" :name="card.icon"></x-icon>
</template>
</div>
</article>
@@ -112,7 +112,7 @@
<button type="button"
class="discovery-undismiss-btn"
@click="$store.discoveryStore.undismissCards()">
- <span class="material-symbols-outlined">undo</span>
+ <x-icon name="undo"></x-icon>
<span>Show dismissed suggestions</span>
</button>
</div>
diff --git a/plugins/_discovery/extensions/webui/welcome-actions-end/discovery-cards.html b/plugins/_discovery/extensions/webui/welcome-actions-end/discovery-cards.html
index 23f483b0e..32c82dc32 100644
--- a/plugins/_discovery/extensions/webui/welcome-actions-end/discovery-cards.html
+++ b/plugins/_discovery/extensions/webui/welcome-actions-end/discovery-cards.html
@@ -21,7 +21,7 @@
@click.stop="$store.discoveryStore.dismissFeatureCards()"
aria-label="Dismiss Connect Channels"
title="Dismiss">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</header>
@@ -35,7 +35,7 @@
<img :src="card.thumbnail" :alt="card.title" loading="lazy">
</template>
<template x-if="!card.thumbnail && card.icon">
- <span class="material-symbols-outlined discovery-feature-icon" x-text="card.icon"></span>
+ <x-icon class="discovery-feature-icon" :name="card.icon"></x-icon>
</template>
</span>
<span class="discovery-feature-title" x-text="`${card.cta_text || 'Connect'} ${card.title}`"></span>
@@ -52,7 +52,7 @@
@click.stop="$store.discoveryStore.dismissCard(card.id)"
:aria-label="`Dismiss ${card.title}`"
title="Dismiss">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<header class="discovery-account-header">
@@ -64,7 +64,7 @@
type="button"
@click="$store.discoveryStore.executeCta(card.cta_action)">
<span x-text="card.cta_text"></span>
- <span class="material-symbols-outlined">arrow_forward</span>
+ <x-icon name="arrow_forward"></x-icon>
</button>
</header>
@@ -105,7 +105,7 @@
<button type="button"
class="discovery-undismiss-btn"
@click="$store.discoveryStore.undismissCards()">
- <span class="material-symbols-outlined">undo</span>
+ <x-icon name="undo"></x-icon>
<span>Show dismissed suggestions</span>
</button>
</div>
diff --git a/plugins/_editor/webui/editor-panel.html b/plugins/_editor/webui/editor-panel.html
index fcf18713d..76bc2b6bf 100644
--- a/plugins/_editor/webui/editor-panel.html
+++ b/plugins/_editor/webui/editor-panel.html
@@ -23,7 +23,7 @@
:title="$store.editor.tabLabel(tab)"
@click="$store.editor.selectTab(tab.tab_id)"
>
- <span class="material-symbols-outlined editor-tab-icon" aria-hidden="true" x-text="$store.editor.tabIcon(tab)"></span>
+ <x-icon class="editor-tab-icon" aria-hidden="true" :name="$store.editor.tabIcon(tab)"></x-icon>
<span class="editor-tab-title" x-text="$store.editor.tabTitle(tab)"></span>
</button>
<button
@@ -34,7 +34,7 @@
@pointerdown.stop
@click.stop="$store.editor.closeTab(tab.tab_id)"
>
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</div>
</template>
@@ -46,12 +46,12 @@
:disabled="$store.editor.loading || $store.editor.saving"
@click="$store.editor.runNewMenuAction('markdown')"
>
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
</button>
</div>
<div class="editor-close-confirm" x-show="$store.editor.hasPendingClose()" style="display: none;" role="status">
- <span class="material-symbols-outlined editor-close-confirm-icon" aria-hidden="true">warning</span>
+ <x-icon class="editor-close-confirm-icon" aria-hidden="true" name="warning"></x-icon>
<div class="editor-close-confirm-copy">
<span class="editor-close-confirm-title" x-text="$store.editor.pendingCloseTitle()"></span>
<span class="editor-close-confirm-message" x-text="$store.editor.pendingCloseMessage()"></span>
@@ -88,47 +88,47 @@
:aria-label="$store.editor.viewModeTitle()"
@click="$store.editor.toggleViewMode()"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.editor.viewModeIcon()"></span>
+ <x-icon aria-hidden="true" :name="$store.editor.viewModeIcon()"></x-icon>
</button>
<div class="editor-tool-group editor-history-tools" x-show="$store.editor.isTextDocument()" style="display: none;">
<button type="button" class="editor-icon-button" title="Undo" aria-label="Undo" :disabled="$store.editor.previewEditing || !$store.editor.canUndo()" @click="$store.editor.undo()">
- <span class="material-symbols-outlined">undo</span>
+ <x-icon name="undo"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Redo" aria-label="Redo" :disabled="$store.editor.previewEditing || !$store.editor.canRedo()" @click="$store.editor.redo()">
- <span class="material-symbols-outlined">redo</span>
+ <x-icon name="redo"></x-icon>
</button>
</div>
<div class="editor-tool-group editor-source-tools" x-show="$store.editor.isTextDocument() && $store.editor.isSourceMode()" style="display: none;">
<button type="button" class="editor-icon-button" title="Bold" aria-label="Bold" @click="$store.editor.format('bold')">
- <span class="material-symbols-outlined">format_bold</span>
+ <x-icon name="format_bold"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Italic" aria-label="Italic" @click="$store.editor.format('italic')">
- <span class="material-symbols-outlined">format_italic</span>
+ <x-icon name="format_italic"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="List" aria-label="List" @click="$store.editor.format('list')">
- <span class="material-symbols-outlined">format_list_bulleted</span>
+ <x-icon name="format_list_bulleted"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Numbered list" aria-label="Numbered list" @click="$store.editor.format('numbered')">
- <span class="material-symbols-outlined">format_list_numbered</span>
+ <x-icon name="format_list_numbered"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Table" aria-label="Table" @click="$store.editor.format('table')">
- <span class="material-symbols-outlined">table</span>
+ <x-icon name="table"></x-icon>
</button>
</div>
<div class="editor-tool-group editor-preview-tools" x-show="$store.editor.isTextDocument() && $store.editor.isPreviewMode()" style="display: none;">
<button type="button" class="editor-icon-button" title="Edit document" aria-label="Edit document" x-show="!$store.editor.previewEditing" @click="$store.editor.startPreviewEdit()">
- <span class="material-symbols-outlined">edit_note</span>
+ <x-icon name="edit_note"></x-icon>
</button>
<button type="button" class="editor-icon-button is-primary" title="Apply document edit" aria-label="Apply document edit" x-show="$store.editor.previewEditing" @click="$store.editor.applyPreviewEdit()">
- <span class="material-symbols-outlined">check</span>
+ <x-icon name="check"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Cancel document edit" aria-label="Cancel document edit" x-show="$store.editor.previewEditing" @click="$store.editor.cancelPreviewEdit()">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Search" aria-label="Search" :disabled="$store.editor.previewEditing" @click="$store.editor.openSearch()">
- <span class="material-symbols-outlined">search</span>
+ <x-icon name="search"></x-icon>
</button>
</div>
<span class="editor-toolbar-spacer"></span>
@@ -142,7 +142,7 @@
:disabled="$store.editor.saving"
@click="$store.editor.save()"
>
- <span class="material-symbols-outlined" :class="{ spinning: $store.editor.saving }" x-text="$store.editor.saving ? 'progress_activity' : 'save'"></span>
+ <x-icon :class="{ spinning: $store.editor.saving }" :name="$store.editor.saving ? 'progress_activity' : 'save'"></x-icon>
</button>
<button
@@ -153,7 +153,7 @@
:disabled="$store.editor.saving"
@click="$store.editor.saveAs()"
>
- <span class="material-symbols-outlined">save_as</span>
+ <x-icon name="save_as"></x-icon>
</button>
<div class="editor-file-actions" x-data="{ open: false }" @click.outside="open = false" @keydown.escape.window="open = false">
@@ -167,23 +167,23 @@
:disabled="$store.editor.saving"
@click.stop="open = !open"
>
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
<div class="editor-new-menu editor-file-menu" role="menu" x-show="open" @click.stop>
<button type="button" class="editor-new-menu-item" role="menuitem" :disabled="$store.editor.saving" @click="open = false; $store.editor.downloadActiveFile()">
- <span class="material-symbols-outlined" aria-hidden="true">download</span>
+ <x-icon aria-hidden="true" name="download"></x-icon>
<span>Download</span>
</button>
<button type="button" class="editor-new-menu-item" role="menuitem" :disabled="$store.editor.saving" @click="open = false; $store.editor.renameActiveFile()">
- <span class="material-symbols-outlined" aria-hidden="true">edit</span>
+ <x-icon aria-hidden="true" name="edit"></x-icon>
<span>Rename</span>
</button>
<button type="button" class="editor-new-menu-item" role="menuitem" :disabled="$store.editor.loading" @click="open = false; $store.editor.closeActiveFile()">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
<span>Close File</span>
</button>
<button type="button" class="editor-new-menu-item" role="menuitem" :disabled="$store.editor.loading || $store.editor.visibleTabs().length === 0" @click="open = false; $store.editor.closeAllFiles()">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
<span>Close All</span>
</button>
</div>
@@ -192,7 +192,7 @@
</div>
<div class="editor-search-bar" x-show="$store.editor.searchOpen" style="display: none;">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input
type="search"
data-editor-search
@@ -204,18 +204,18 @@
/>
<span class="editor-search-count" x-text="$store.editor.searchCountLabel()"></span>
<button type="button" class="editor-icon-button" title="Previous match" aria-label="Previous match" :disabled="$store.editor.searchMatches.length === 0" @click="$store.editor.previousSearchMatch()">
- <span class="material-symbols-outlined">keyboard_arrow_up</span>
+ <x-icon name="keyboard_arrow_up"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Next match" aria-label="Next match" :disabled="$store.editor.searchMatches.length === 0" @click="$store.editor.nextSearchMatch()">
- <span class="material-symbols-outlined">keyboard_arrow_down</span>
+ <x-icon name="keyboard_arrow_down"></x-icon>
</button>
<button type="button" class="editor-icon-button" title="Close search" aria-label="Close search" @click="$store.editor.closeSearch()">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
<div class="editor-state-line" x-show="$store.editor.message || $store.editor.error || $store.editor.loading" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.editor.loading }" x-text="$store.editor.loading ? 'progress_activity' : ($store.editor.error ? 'error' : 'check_circle')"></span>
+ <x-icon :class="{ spinning: $store.editor.loading }" :name="$store.editor.loading ? 'progress_activity' : ($store.editor.error ? 'error' : 'check_circle')"></x-icon>
<span x-text="$store.editor.error || $store.editor.message || 'Working'"></span>
</div>
@@ -267,15 +267,15 @@
<div class="editor-empty" x-show="!$store.editor.session && !$store.editor.loading" style="display: none;">
<div class="editor-empty-actions">
<button type="button" class="editor-icon-button editor-command-button" @click="$store.editor.runNewMenuAction('open')">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span class="editor-button-label">Open</span>
</button>
<button type="button" class="editor-icon-button editor-command-button" @click="$store.editor.runNewMenuAction('markdown')">
- <span class="material-symbols-outlined" aria-hidden="true">article</span>
+ <x-icon aria-hidden="true" name="article"></x-icon>
<span class="editor-button-label">Markdown</span>
</button>
<button type="button" class="editor-icon-button editor-command-button" @click="$store.editor.runNewMenuAction('text')">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span class="editor-button-label">Text</span>
</button>
</div>
diff --git a/plugins/_editor/webui/editor-store.js b/plugins/_editor/webui/editor-store.js
index 7c8ba8d9c..bb8926df3 100644
--- a/plugins/_editor/webui/editor-store.js
+++ b/plugins/_editor/webui/editor-store.js
@@ -1738,21 +1738,21 @@ const model = {
root.className = "editor-header-actions surface-modal-new-action";
root.innerHTML = `
<button type="button" class="editor-header-new-button surface-modal-new-button" aria-haspopup="menu" aria-expanded="false">
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
<span>New</span>
- <span class="material-symbols-outlined editor-new-chevron" aria-hidden="true">expand_more</span>
+ <x-icon class="editor-new-chevron" aria-hidden="true" name="expand_more"></x-icon>
</button>
<div class="editor-new-menu" role="menu" hidden>
<button type="button" class="editor-new-menu-item" role="menuitem" data-editor-new-action="open">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span>Open</span>
</button>
<button type="button" class="editor-new-menu-item" role="menuitem" data-editor-new-action="markdown">
- <span class="material-symbols-outlined" aria-hidden="true">article</span>
+ <x-icon aria-hidden="true" name="article"></x-icon>
<span>Markdown</span>
</button>
<button type="button" class="editor-new-menu-item" role="menuitem" data-editor-new-action="text">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span>Text</span>
</button>
</div>
diff --git a/plugins/_email_integration/webui/config.html b/plugins/_email_integration/webui/config.html
index ea3a78239..014de89c1 100644
--- a/plugins/_email_integration/webui/config.html
+++ b/plugins/_email_integration/webui/config.html
@@ -41,10 +41,10 @@
<button class="btn btn-action delete"
@click.stop="$confirmClick($event, () => $store.emailConfig.removeHandler(idx))"
title="Remove inbox">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
- <span class="material-symbols-outlined email-card-chevron"
- :class="{ 'is-open': $store.emailConfig.editing === idx }">expand_more</span>
+ <x-icon class="email-card-chevron"
+ :class="{ 'is-open': $store.emailConfig.editing === idx }" name="expand_more"></x-icon>
</div>
</div>
@@ -96,8 +96,8 @@
</template>
<template
x-if="provider.logo !== 'microsoft365' && (provider.logo === 'icloud' || provider.logo === 'custom-imap')">
- <span class="material-symbols-outlined"
- x-text="provider.logoText"></span>
+ <x-icon
+ :name="provider.logoText"></x-icon>
</template>
<template
x-if="provider.logo !== 'microsoft365' && provider.logo !== 'icloud' && provider.logo !== 'custom-imap'">
@@ -289,8 +289,8 @@
<details class="email-advanced" x-show="$store.emailConfig.hasProvider(handler)">
<summary>
<span>Advanced</span>
- <span class="material-symbols-outlined email-advanced-chevron"
- aria-hidden="true">keyboard_arrow_down</span>
+ <x-icon class="email-advanced-chevron"
+ aria-hidden="true" name="keyboard_arrow_down"></x-icon>
</summary>
<div class="email-advanced-body">
<div class="field">
diff --git a/plugins/_goal/extensions/webui/chat-input-progress-start/goal-strip.html b/plugins/_goal/extensions/webui/chat-input-progress-start/goal-strip.html
index ffb19f19d..d75fd5583 100644
--- a/plugins/_goal/extensions/webui/chat-input-progress-start/goal-strip.html
+++ b/plugins/_goal/extensions/webui/chat-input-progress-start/goal-strip.html
@@ -9,7 +9,7 @@
x-destroy="$store.goalBar.cleanup()">
<template x-if="$store.goalBar && $store.goalBar.visible">
<div class="goal-strip" :class="`is-${$store.goalBar.goal?.status || 'active'}`">
- <span class="material-symbols-outlined goal-strip-icon" x-text="$store.goalBar.statusIcon" aria-hidden="true"></span>
+ <x-icon class="goal-strip-icon" :name="$store.goalBar.statusIcon" aria-hidden="true"></x-icon>
<template x-if="!$store.goalBar.editing">
<div class="goal-strip-copy">
@@ -28,26 +28,26 @@
@keydown.escape.prevent="$store.goalBar.cancelEdit()"
aria-label="Goal objective" />
<button type="button" class="goal-strip-action" title="Save goal" @click="$store.goalBar.saveEdit()" :disabled="$store.goalBar.saving">
- <span class="material-symbols-outlined" aria-hidden="true">check</span>
+ <x-icon aria-hidden="true" name="check"></x-icon>
</button>
<button type="button" class="goal-strip-action" title="Cancel" @click="$store.goalBar.cancelEdit()" :disabled="$store.goalBar.saving">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</div>
</template>
<div class="goal-strip-actions" x-show="!$store.goalBar.editing">
<button type="button" class="goal-strip-action" title="Edit goal" @click="$store.goalBar.startEdit()" :disabled="$store.goalBar.saving">
- <span class="material-symbols-outlined" aria-hidden="true">edit</span>
+ <x-icon aria-hidden="true" name="edit"></x-icon>
</button>
<button type="button" class="goal-strip-action"
:title="$store.goalBar.goal?.status === 'active' ? 'Pause goal' : 'Resume goal'"
@click="$store.goalBar.pauseOrResume()"
:disabled="$store.goalBar.saving">
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.goalBar.goal?.status === 'active' ? 'pause_circle' : 'play_circle'"></span>
+ <x-icon aria-hidden="true" :name="$store.goalBar.goal?.status === 'active' ? 'pause_circle' : 'play_circle'"></x-icon>
</button>
<button type="button" class="goal-strip-action" title="Delete goal" @click="$confirmClick($event, () => $store.goalBar.deleteGoal())" :disabled="$store.goalBar.saving">
- <span class="material-symbols-outlined" aria-hidden="true">delete</span>
+ <x-icon aria-hidden="true" name="delete"></x-icon>
</button>
</div>
</div>
diff --git a/plugins/_memory/extensions/webui/_sidebar-quick-actions-main-start/memory-entry.html b/plugins/_memory/extensions/webui/_sidebar-quick-actions-main-start/memory-entry.html
index 9c23a667a..7a2dc9898 100644
--- a/plugins/_memory/extensions/webui/_sidebar-quick-actions-main-start/memory-entry.html
+++ b/plugins/_memory/extensions/webui/_sidebar-quick-actions-main-start/memory-entry.html
@@ -2,6 +2,6 @@
<div x-data>
<button x-move-after=".config-button#dashboard" class="config-button" id="memory-dash" @click="openModal('/plugins/_memory/webui/memory-dashboard.html')"
title="Memory">
- <span class="material-symbols-outlined">psychology</span>
+ <x-icon name="psychology"></x-icon>
</button>
</div>
\ No newline at end of file
diff --git a/plugins/_memory/extensions/webui/sidebar-quick-actions-dropdown-start/memory-entry.html b/plugins/_memory/extensions/webui/sidebar-quick-actions-dropdown-start/memory-entry.html
index 93d060401..72ed87f02 100644
--- a/plugins/_memory/extensions/webui/sidebar-quick-actions-dropdown-start/memory-entry.html
+++ b/plugins/_memory/extensions/webui/sidebar-quick-actions-dropdown-start/memory-entry.html
@@ -6,7 +6,7 @@
id="memory-dash-dropdown"
title="Memory"
@click="openModal('/plugins/_memory/webui/memory-dashboard.html'); dropdownOpen = false">
- <span class="material-symbols-outlined">psychology</span>
+ <x-icon name="psychology"></x-icon>
<span>Memory</span>
</button>
</div>
diff --git a/plugins/_memory/webui/memory-dashboard.html b/plugins/_memory/webui/memory-dashboard.html
index f58154610..c9a99de4d 100644
--- a/plugins/_memory/webui/memory-dashboard.html
+++ b/plugins/_memory/webui/memory-dashboard.html
@@ -87,7 +87,7 @@
<div class="data-status-bar" x-show="!$store.memoryDashboardStore.loading">
<div class="status-info">
<span class="status-item">
- <span class="material-symbols-outlined">database</span>
+ <x-icon name="database"></x-icon>
Total: <strong x-text="$store.memoryDashboardStore.totalDbCount"></strong>
</span>
<span class="status-separator">•</span>
@@ -108,7 +108,7 @@
<div class="status-pagination" x-show="$store.memoryDashboardStore.totalPages > 1">
<button class="btn btn-icon" @click="$store.memoryDashboardStore.prevPage()"
:disabled="$store.memoryDashboardStore.currentPage === 1" title="Previous Page">
- <span class="material-symbols-outlined">chevron_left</span>
+ <x-icon name="chevron_left"></x-icon>
</button>
<div class="page-input-group">
<label>Page</label>
@@ -123,7 +123,7 @@
<button class="btn btn-icon" @click="$store.memoryDashboardStore.nextPage()"
:disabled="$store.memoryDashboardStore.currentPage === $store.memoryDashboardStore.totalPages"
title="Next Page">
- <span class="material-symbols-outlined">chevron_right</span>
+ <x-icon name="chevron_right"></x-icon>
</button>
</div>
</div>
@@ -137,27 +137,27 @@
<div class="mass-actions">
<button class="btn btn-mass copy" @click="$store.memoryDashboardStore.bulkCopyMemories()"
title="Copy Selected Content">
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
Copy
</button>
<button class="btn btn-mass export"
@click="$store.memoryDashboardStore.bulkExportMemories()"
title="Export Selected Memories">
- <span class="material-symbols-outlined">download</span>
+ <x-icon name="download"></x-icon>
Export
</button>
<button class="btn btn-mass delete"
@click="$confirmClick($event, () => $store.memoryDashboardStore.bulkDeleteMemories())"
title="Delete Selected Memories">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
Delete
</button>
<button class="btn btn-mass clear" @click="$store.memoryDashboardStore.clearSelection()"
title="Clear Selection">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
Clear
</button>
</div>
@@ -232,13 +232,13 @@
<button class="btn btn-action copy"
@click="$store.memoryDashboardStore.copyToClipboard($store.memoryDashboardStore.formatMemoryForCopy(memory))"
title="Copy Memory">
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
</button>
<button class="btn btn-action delete"
@click="$confirmClick($event, () => $store.memoryDashboardStore.deleteMemory(memory))"
title="Delete Memory">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
</td>
@@ -260,27 +260,27 @@
<div class="mass-actions">
<button class="btn btn-mass copy" @click="$store.memoryDashboardStore.bulkCopyMemories()"
title="Copy Selected Content">
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
Copy
</button>
<button class="btn btn-mass export"
@click="$store.memoryDashboardStore.bulkExportMemories()"
title="Export Selected Memories">
- <span class="material-symbols-outlined">download</span>
+ <x-icon name="download"></x-icon>
Export
</button>
<button class="btn btn-mass delete"
@click="$confirmClick($event, () => $store.memoryDashboardStore.bulkDeleteMemories())"
title="Delete Selected Memories">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
Delete
</button>
<button class="btn btn-mass clear" @click="$store.memoryDashboardStore.clearSelection()"
title="Clear Selection">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
Clear
</button>
</div>
@@ -291,7 +291,7 @@
<div class="data-status-bar data-status-bar-bottom" x-show="!$store.memoryDashboardStore.loading">
<div class="status-info">
<span class="status-item">
- <span class="material-symbols-outlined">database</span>
+ <x-icon name="database"></x-icon>
Total: <strong x-text="$store.memoryDashboardStore.totalDbCount"></strong>
</span>
<span class="status-separator">•</span>
@@ -312,7 +312,7 @@
<div class="status-pagination" x-show="$store.memoryDashboardStore.totalPages > 1">
<button class="btn btn-icon" @click="$store.memoryDashboardStore.prevPage()"
:disabled="$store.memoryDashboardStore.currentPage === 1" title="Previous Page">
- <span class="material-symbols-outlined">chevron_left</span>
+ <x-icon name="chevron_left"></x-icon>
</button>
<div class="page-input-group">
<label>Page</label>
@@ -327,7 +327,7 @@
<button class="btn btn-icon" @click="$store.memoryDashboardStore.nextPage()"
:disabled="$store.memoryDashboardStore.currentPage === $store.memoryDashboardStore.totalPages"
title="Next Page">
- <span class="material-symbols-outlined">chevron_right</span>
+ <x-icon name="chevron_right"></x-icon>
</button>
</div>
</div>
diff --git a/plugins/_memory/webui/memory-detail-modal.html b/plugins/_memory/webui/memory-detail-modal.html
index 06ef01da1..e072107b4 100644
--- a/plugins/_memory/webui/memory-detail-modal.html
+++ b/plugins/_memory/webui/memory-detail-modal.html
@@ -24,20 +24,20 @@
<button class="btn btn-action-header copy-all" @click="$store.memoryDashboardStore.copyToClipboard($store.memoryDashboardStore.formatMemoryForCopy($store.memoryDashboardStore.detailMemory))"
title="Copy Complete Memory with Metadata">
- <span class="material-symbols-outlined">copy_all</span> All
+ <x-icon name="copy_all"></x-icon> All
</button>
<button class="btn btn-action-header copy-content" @click="$store.memoryDashboardStore.copyToClipboard($store.memoryDashboardStore.detailMemory?.content_full)"
title="Copy Content Only">
- <span class="material-symbols-outlined">content_copy</span> Content
+ <x-icon name="content_copy"></x-icon> Content
</button>
<div style="width:2em"></div>
<button class="btn btn-action-header edit" @click="$store.memoryDashboardStore.enableEditMode()"
title="Edit Memory">
- <span class="material-symbols-outlined">edit_document</span>
+ <x-icon name="edit_document"></x-icon>
</button>
<button class="btn btn-action-header delete danger" @click="$confirmClick($event, () => $store.memoryDashboardStore.deleteMemory($store.memoryDashboardStore.detailMemory))"
title="Delete Memory">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
</template>
@@ -46,11 +46,11 @@
<div style="display: flex; gap: 0.5rem;">
<button class="btn btn-action-header cancel" @click="$store.memoryDashboardStore.cancelEditMode()"
title="Cancel Edit">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<button class="btn btn-action-header confirm" @click="$store.memoryDashboardStore.confirmEditMode()"
title="Confirm Changes">
- <span class="material-symbols-outlined">check</span>
+ <x-icon name="check"></x-icon>
</button>
</div>
diff --git a/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html b/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
index 1d552e914..d8464428c 100644
--- a/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
+++ b/plugins/_model_config/extensions/webui/chat-input-progress-start/model-switcher.html
@@ -21,10 +21,10 @@
<button class="btn-icon-action model-switcher-btn"
:class="{ 'has-override': !!$store.modelConfig.switcherOverride }"
@click="showDropdown = !showDropdown; showProfileDropdown = false">
- <span class="material-symbols-outlined" style="font-size: 16px;">neurology</span>
+ <x-icon style="font-size: 16px;" name="neurology"></x-icon>
<span class="model-switcher-label" x-text="$store.modelConfig.getSwitcherLabel()"></span>
- <span class="material-symbols-outlined" style="font-size: 0.7rem;"
- x-text="showDropdown ? 'expand_less' : 'expand_more'"></span>
+ <x-icon style="font-size: 0.7rem;"
+ :name="showDropdown ? 'expand_less' : 'expand_more'"></x-icon>
</button>
<!-- Dropdown (opens upward) -->
<div class="model-switcher-dropdown" x-show="showDropdown" x-transition.opacity style="display: none;">
@@ -34,7 +34,7 @@
$store.modelConfig.clearOverrideSwitch($store.chats?.selected || '');
showDropdown = false;
">
- <span class="material-symbols-outlined" style="font-size: 15px;">undo</span>
+ <x-icon style="font-size: 15px;" name="undo"></x-icon>
<span>Use scoped preset</span>
</div>
</template>
@@ -98,7 +98,7 @@
);
showDropdown = false;
">
- <span class="material-symbols-outlined" style="font-size: 14px;">tune</span>
+ <x-icon style="font-size: 14px;" name="tune"></x-icon>
<span>Edit Presets</span>
</div>
</div>
@@ -110,11 +110,11 @@
<button class="btn-icon-action agent-profile-btn"
title="Active agent profile"
@click="showProfileDropdown = !showProfileDropdown; showDropdown = false">
- <span class="material-symbols-outlined" style="font-size: 15px;">assignment_ind</span>
+ <x-icon style="font-size: 15px;" name="assignment_ind"></x-icon>
<span class="agent-profile-label"
x-text="$store.chats.selectedContext.agent_profile_label || $store.chats.selectedContext.agent_profile"></span>
- <span class="material-symbols-outlined" style="font-size: 0.7rem;"
- x-text="showProfileDropdown ? 'expand_less' : 'expand_more'"></span>
+ <x-icon style="font-size: 0.7rem;"
+ :name="showProfileDropdown ? 'expand_less' : 'expand_more'"></x-icon>
</button>
<div class="agent-profile-dropdown" x-show="showProfileDropdown" x-transition.opacity style="display: none;">
@@ -122,7 +122,7 @@
$store.modelConfig.createAgentProfileChat($store.chats?.selected || '')
.then(ok => { if (ok) showProfileDropdown = false; });
">
- <span class="material-symbols-outlined" style="font-size: 15px;">add</span>
+ <x-icon style="font-size: 15px;" name="add"></x-icon>
<span>Create new Agent Profile</span>
</button>
@@ -155,7 +155,7 @@
openModal('settings/settings.html');
showProfileDropdown = false;
">
- <span class="material-symbols-outlined" style="font-size: 14px;">settings</span>
+ <x-icon style="font-size: 14px;" name="settings"></x-icon>
<span>Agent Config</span>
</button>
</div>
diff --git a/plugins/_model_config/webui/api-keys.html b/plugins/_model_config/webui/api-keys.html
index 4de040c5b..497a79171 100644
--- a/plugins/_model_config/webui/api-keys.html
+++ b/plugins/_model_config/webui/api-keys.html
@@ -55,12 +55,12 @@
</div>
<div x-show="error" class="plugin-settings-error" style="margin-top: 1rem;">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="error"></span>
</div>
<div x-show="loading" style="text-align:center; padding: 20px;">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
</div>
<div x-show="!loading">
@@ -76,14 +76,14 @@
autocomplete="off"
@input="$store.modelConfig.setApiKeyValue(provider.value, $el.value)"
style="padding-right:32px;" />
- <span class="material-symbols-outlined eye-toggle"
+ <x-icon class="eye-toggle"
@click="
showKey = !showKey;
if (showKey && !$store.modelConfig.apiKeyValues[provider.value] && provider.has_key) {
reveal(provider.value);
}
"
- x-text="showKey ? 'visibility' : 'visibility_off'"></span>
+ :name="showKey ? 'visibility' : 'visibility_off'"></x-icon>
</div>
</div>
</template>
diff --git a/plugins/_model_config/webui/main.html b/plugins/_model_config/webui/main.html
index 00f9ca9a3..ca2a0960e 100644
--- a/plugins/_model_config/webui/main.html
+++ b/plugins/_model_config/webui/main.html
@@ -35,13 +35,13 @@
</select>
</label>
<button type="button" class="button" @click="addPreset()">
- <span class="icon material-symbols-outlined">add</span>
+ <x-icon class="icon" name="add"></x-icon>
Add
</button>
<button type="button" class="button"
x-show="canDeleteSelected"
@click="$confirmClick($event, () => removeSelectedPreset())">
- <span class="icon material-symbols-outlined">delete</span>
+ <x-icon class="icon" name="delete"></x-icon>
Delete
</button>
</div>
@@ -96,12 +96,12 @@
<div class="preset-editor-secondary-actions">
<button type="button" class="text-button" @click="$store.modelConfig.openApiKeysFromSummary()">
- <span class="material-symbols-outlined">key</span>
+ <x-icon name="key"></x-icon>
API Keys
</button>
<button type="button" class="text-button"
@click="$confirmClick($event, () => resetPresets())">
- <span class="material-symbols-outlined">restart_alt</span>
+ <x-icon name="restart_alt"></x-icon>
Restore bundled presets
</button>
</div>
diff --git a/plugins/_model_config/webui/model-field.html b/plugins/_model_config/webui/model-field.html
index ece344c21..e88b905f8 100644
--- a/plugins/_model_config/webui/model-field.html
+++ b/plugins/_model_config/webui/model-field.html
@@ -59,8 +59,8 @@
:disabled="searching"
title="Search available models"
aria-label="Search available models">
- <span class="material-symbols-outlined" :style="searching && 'opacity:0'">search</span>
- <span class="material-symbols-outlined model-search-spinner" :style="!searching && 'opacity:0'">progress_activity</span>
+ <x-icon :style="searching && 'opacity:0'" name="search"></x-icon>
+ <x-icon class="model-search-spinner" :style="!searching && 'opacity:0'" name="progress_activity"></x-icon>
</button>
<div class="model-search-results" x-show="open && results.length > 0" x-transition.opacity>
<template x-for="m in grouped().matched" :key="'m_'+m">
@@ -91,7 +91,7 @@
autocomplete="off"
@input="$store.modelConfig.setApiKeyValue(_prov, $el.value)"
style="padding-right:32px;" />
- <span class="material-symbols-outlined eye-toggle"
+ <x-icon class="eye-toggle"
@click="
showKey = !showKey;
const prov = _prov;
@@ -99,7 +99,7 @@
$store.modelConfig.revealApiKey(prov).then(v => { if (v) $store.modelConfig.apiKeyValues[prov] = v; });
}
"
- x-text="showKey ? 'visibility' : 'visibility_off'"></span>
+ :name="showKey ? 'visibility' : 'visibility_off'"></x-icon>
</div>
</div>
</template>
@@ -115,7 +115,7 @@
<input :type="showKey ? 'text' : 'password'" x-model="model.api_key" autocomplete="off"
:placeholder="$store.modelConfig.apiKeyStatus[_prov] ? '&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;&#x2022;' : ''"
style="padding-right:32px;" />
- <span class="material-symbols-outlined eye-toggle"
+ <x-icon class="eye-toggle"
@click="
showKey = !showKey;
if (showKey && !model.api_key && $store.modelConfig.apiKeyStatus[_prov]) {
@@ -125,7 +125,7 @@
model.api_key = ''; _revealed = '';
}
"
- x-text="showKey ? 'visibility' : 'visibility_off'"></span>
+ :name="showKey ? 'visibility' : 'visibility_off'"></x-icon>
</div>
</div>
</template>
@@ -162,9 +162,9 @@
<!-- Advanced Settings (collapsed by default) -->
<div class="advanced-section" x-data="{ advOpen: false }">
<div class="advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''"
- >chevron_right</span>
+ <x-icon class="advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"
+ ></x-icon>
<span>Advanced Settings</span>
</div>
diff --git a/plugins/_model_config/webui/models-summary.html b/plugins/_model_config/webui/models-summary.html
index 9a1d11f76..60e25a49e 100644
--- a/plugins/_model_config/webui/models-summary.html
+++ b/plugins/_model_config/webui/models-summary.html
@@ -19,7 +19,7 @@
x-data="$store.modelConfig.createGlobalPresetSelector()"
x-init="await init($store.chats?.selected || '')">
<div x-show="loading" class="settings-model-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
Loading model preset...
</div>
<div x-show="!loading">
diff --git a/plugins/_model_config/webui/preset-overview.html b/plugins/_model_config/webui/preset-overview.html
index 893489376..a77467fa4 100644
--- a/plugins/_model_config/webui/preset-overview.html
+++ b/plugins/_model_config/webui/preset-overview.html
@@ -18,7 +18,7 @@
<div class="model-preset-rows" aria-live="polite">
<template x-for="model in modelRows" :key="model.title">
<div class="model-preset-row">
- <span class="material-symbols-outlined model-preset-icon" x-text="model.icon"></span>
+ <x-icon class="model-preset-icon" :name="model.icon"></x-icon>
<span class="model-preset-role" x-text="model.title"></span>
<span class="model-preset-identity">
<span class="model-preset-provider" x-text="model.provider"></span>
@@ -31,15 +31,15 @@
<div class="model-preset-actions">
<button type="button" class="button" @click="editPresets()">
- <span class="icon material-symbols-outlined">tune</span>
+ <x-icon class="icon" name="tune"></x-icon>
Edit Presets
</button>
<button type="button" class="button" @click="apiKeys()">
- <span class="icon material-symbols-outlined">key</span>
+ <x-icon class="icon" name="key"></x-icon>
API Keys
</button>
<button type="button" class="button" x-show="showScopedSettings" @click="scopedSettings()">
- <span class="icon material-symbols-outlined">account_tree</span>
+ <x-icon class="icon" name="account_tree"></x-icon>
Per-project / agent
</button>
</div>
diff --git a/plugins/_oauth/webui/config.html b/plugins/_oauth/webui/config.html
index 5df9c6415..cebd2814a 100644
--- a/plugins/_oauth/webui/config.html
+++ b/plugins/_oauth/webui/config.html
@@ -22,7 +22,7 @@
<p>Each account can be connected independently.</p>
</div>
<button class="oauth-icon-button" type="button" @click="$store.oauthConfig.loadStatus()" title="Refresh status" aria-label="Refresh status">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
</button>
</div>
@@ -34,7 +34,7 @@
@click="$store.oauthConfig.selectProvider(card.provider_id)"
>
<span class="oauth-mark" :class="{ connected: card.connected }">
- <span class="material-symbols-outlined" x-text="card.connected ? 'check' : card.mark"></span>
+ <x-icon :name="card.connected ? 'check' : card.mark"></x-icon>
</span>
<div class="oauth-provider-row-copy">
<strong x-text="card.display_name"></strong>
@@ -49,7 +49,7 @@
:disabled="$store.oauthConfig.providerPrimaryDisabled(card.provider_id)"
x-show="!card.connected"
>
- <span class="material-symbols-outlined" x-text="$store.oauthConfig.connectingProvider === card.provider_id ? 'progress_activity' : ($store.oauthConfig.providerSetupReady(card.provider_id) ? 'login' : 'tune')"></span>
+ <x-icon :name="$store.oauthConfig.connectingProvider === card.provider_id ? 'progress_activity' : ($store.oauthConfig.providerSetupReady(card.provider_id) ? 'login' : 'tune')"></x-icon>
<span x-text="$store.oauthConfig.providerPrimaryLabel(card.provider_id)"></span>
</button>
<button
@@ -59,7 +59,7 @@
:disabled="$store.oauthConfig.disconnectingProvider === card.provider_id"
x-show="card.connected"
>
- <span class="material-symbols-outlined" x-text="$store.oauthConfig.disconnectingProvider === card.provider_id ? 'progress_activity' : 'link_off'"></span>
+ <x-icon :name="$store.oauthConfig.disconnectingProvider === card.provider_id ? 'progress_activity' : 'link_off'"></x-icon>
<span x-text="$store.oauthConfig.disconnectingProvider === card.provider_id ? 'Disconnecting' : 'Disconnect'"></span>
</button>
</div>
@@ -165,7 +165,7 @@
<span>Enter this code</span>
<strong x-text="$store.oauthConfig.providerDevice(card.provider_id)?.user_code"></strong>
<button class="text-button" type="button" @click="$store.oauthConfig.cancelConnect(card.provider_id)">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
<span>Cancel</span>
</button>
</div>
@@ -177,11 +177,11 @@
placeholder="Paste callback URL, query string, or code"
/>
<button type="button" class="oauth-connect secondary" @click="$store.oauthConfig.submitManualCallback(card.provider_id)">
- <span class="material-symbols-outlined">check</span>
+ <x-icon name="check"></x-icon>
<span>Submit</span>
</button>
<button type="button" class="oauth-connect secondary" @click="$store.oauthConfig.cancelConnect(card.provider_id)">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
<span>Cancel</span>
</button>
</div>
@@ -189,7 +189,7 @@
<div class="oauth-auth-attempt" x-show="$store.oauthConfig.providerDevice(card.provider_id) && !$store.oauthConfig.providerDevice(card.provider_id)?.user_code && !card.supports_manual_callback">
<span>Sign-in started</span>
<button class="text-button" type="button" @click="$store.oauthConfig.cancelConnect(card.provider_id)">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
<span>Cancel</span>
</button>
</div>
@@ -219,7 +219,7 @@
<template x-for="slot in $store.oauthConfig.modelSlots" :key="slot.key">
<div class="oauth-model-card">
<div class="oauth-model-head">
- <span class="oauth-model-icon material-symbols-outlined" x-text="slot.icon"></span>
+ <x-icon class="oauth-model-icon" :name="slot.icon"></x-icon>
<div class="oauth-model-title">
<strong x-text="slot.title"></strong>
<span x-show="$store.oauthConfig.slotStatusLabel(slot.key)" x-text="$store.oauthConfig.slotStatusLabel(slot.key)"></span>
@@ -233,7 +233,7 @@
x-show="slot.key === 'utility_model' && $store.oauthConfig.slotUsesOauth('chat_model')"
@click="$store.oauthConfig.copyMainToUtility()"
>
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
</button>
</div>
</div>
@@ -270,7 +270,7 @@
@click="$store.oauthConfig.openModelDropdown(slot.key, $el)"
:disabled="!$store.oauthConfig.slotCanUseModels(slot.key) || $store.oauthConfig.loadingModelsProvider === $store.oauthConfig.modelSlot(slot.key).provider"
>
- <span class="material-symbols-outlined" x-text="$store.oauthConfig.loadingModelsProvider === $store.oauthConfig.modelSlot(slot.key).provider ? 'progress_activity' : 'search'"></span>
+ <x-icon :name="$store.oauthConfig.loadingModelsProvider === $store.oauthConfig.modelSlot(slot.key).provider ? 'progress_activity' : 'search'"></x-icon>
</button>
</div>
diff --git a/plugins/_office/extensions/webui/lib/document-actions.js b/plugins/_office/extensions/webui/lib/document-actions.js
index 0b8327e9a..6e93f05fb 100644
--- a/plugins/_office/extensions/webui/lib/document-actions.js
+++ b/plugins/_office/extensions/webui/lib/document-actions.js
@@ -143,9 +143,9 @@ export function buildDocumentFileCard(document = {}) {
card.setAttribute("aria-label", canvasActionTitle(document));
card.setAttribute("title", canvasActionTitle(document));
- const icon = globalThis.document.createElement("span");
- icon.className = "material-symbols-outlined document-file-card-icon";
- icon.textContent = documentIcon(document);
+ const icon = globalThis.document.createElement("x-icon");
+ icon.className = "document-file-card-icon";
+ icon.name = documentIcon(document);
card.appendChild(icon);
const meta = globalThis.document.createElement("span");
@@ -205,17 +205,16 @@ export function createDocumentActionButton(icon, label, handler = null, options
button.setAttribute("title", options.title || label);
if (icon) {
- const iconEl = globalThis.document.createElement("span");
- iconEl.className = "material-symbols-outlined";
- iconEl.textContent = icon;
+ const iconEl = globalThis.document.createElement("x-icon");
+ iconEl.name = icon;
button.appendChild(iconEl);
}
if (typeof handler === "function") {
button.addEventListener("click", async (event) => {
event.stopPropagation();
- const iconEl = button.querySelector(".material-symbols-outlined");
- const originalIcon = iconEl?.textContent || "";
+ const iconEl = button.querySelector("x-icon");
+ const originalIcon = iconEl?.name || "";
try {
await handler();
if (originalIcon) showButtonFeedback(button, true, originalIcon);
diff --git a/plugins/_office/webui/office-panel.html b/plugins/_office/webui/office-panel.html
index f2c067d32..785556df4 100644
--- a/plugins/_office/webui/office-panel.html
+++ b/plugins/_office/webui/office-panel.html
@@ -10,7 +10,7 @@
<div class="office-panel" x-create="$store.office.onMount($el, xAttrs($el) || {})" x-destroy="$store.office.cleanup()">
<div class="office-shell">
<div class="office-state-line" x-show="$store.office.message || $store.office.error || $store.office.loading" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.office.loading }" x-text="$store.office.loading ? 'progress_activity' : ($store.office.error ? 'error' : 'check_circle')"></span>
+ <x-icon :class="{ spinning: $store.office.loading }" :name="$store.office.loading ? 'progress_activity' : ($store.office.error ? 'error' : 'check_circle')"></x-icon>
<span x-text="$store.office.error || $store.office.message || 'Working'"></span>
</div>
@@ -18,19 +18,19 @@
<div class="office-empty" x-show="!$store.office.loading" style="display: none;">
<div class="office-empty-actions">
<button type="button" class="office-icon-button office-command-button" @click="$store.office.runNewMenuAction('open')">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span class="office-button-label">Open</span>
</button>
<button type="button" class="office-icon-button office-command-button" @click="$store.office.runNewMenuAction('writer')">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span class="office-button-label">Writer</span>
</button>
<button type="button" class="office-icon-button office-command-button" @click="$store.office.runNewMenuAction('spreadsheet')">
- <span class="material-symbols-outlined" aria-hidden="true">table_chart</span>
+ <x-icon aria-hidden="true" name="table_chart"></x-icon>
<span class="office-button-label">Calc</span>
</button>
<button type="button" class="office-icon-button office-command-button" @click="$store.office.runNewMenuAction('presentation')">
- <span class="material-symbols-outlined" aria-hidden="true">co_present</span>
+ <x-icon aria-hidden="true" name="co_present"></x-icon>
<span class="office-button-label">Impress</span>
</button>
</div>
diff --git a/plugins/_office/webui/office-store.js b/plugins/_office/webui/office-store.js
index e264604ce..4ee4aa729 100644
--- a/plugins/_office/webui/office-store.js
+++ b/plugins/_office/webui/office-store.js
@@ -197,25 +197,25 @@ const model = {
root.className = "office-header-actions";
root.innerHTML = `
<button type="button" class="office-header-new-button" aria-haspopup="menu" aria-expanded="false">
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
<span>New</span>
- <span class="material-symbols-outlined office-new-chevron" aria-hidden="true">expand_more</span>
+ <x-icon class="office-new-chevron" aria-hidden="true" name="expand_more"></x-icon>
</button>
<div class="office-new-menu" role="menu" hidden>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="open">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<span>Open</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="writer">
- <span class="material-symbols-outlined" aria-hidden="true">description</span>
+ <x-icon aria-hidden="true" name="description"></x-icon>
<span>Writer</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="spreadsheet">
- <span class="material-symbols-outlined" aria-hidden="true">table_chart</span>
+ <x-icon aria-hidden="true" name="table_chart"></x-icon>
<span>Spreadsheet</span>
</button>
<button type="button" class="office-new-menu-item" role="menuitem" data-office-new-action="presentation">
- <span class="material-symbols-outlined" aria-hidden="true">co_present</span>
+ <x-icon aria-hidden="true" name="co_present"></x-icon>
<span>Presentation</span>
</button>
</div>
diff --git a/plugins/_onboarding/webui/onboarding.html b/plugins/_onboarding/webui/onboarding.html
index e95f09527..e5a99273e 100644
--- a/plugins/_onboarding/webui/onboarding.html
+++ b/plugins/_onboarding/webui/onboarding.html
@@ -615,7 +615,7 @@
:class="{ active: $store.onboarding.providerMode === 'cloud' }"
:aria-selected="$store.onboarding.providerMode === 'cloud' ? 'true' : 'false'"
@click="$store.onboarding.setProviderMode('cloud')">
- <span class="material-symbols-outlined" aria-hidden="true">cloud</span>
+ <x-icon aria-hidden="true" name="cloud"></x-icon>
<span class="mode-copy">
<span class="mode-title">Cloud</span>
<span class="mode-sub">Connect with an API key</span>
@@ -628,7 +628,7 @@
:class="{ active: $store.onboarding.providerMode === 'account' }"
:aria-selected="$store.onboarding.providerMode === 'account' ? 'true' : 'false'"
@click="$store.onboarding.setProviderMode('account')">
- <span class="material-symbols-outlined" aria-hidden="true">account_circle</span>
+ <x-icon aria-hidden="true" name="account_circle"></x-icon>
<span class="mode-copy">
<span class="mode-title">Account</span>
<span class="mode-sub">Codex, Copilot, Gemini, Grok</span>
@@ -640,7 +640,7 @@
:class="{ active: $store.onboarding.providerMode === 'local' }"
:aria-selected="$store.onboarding.providerMode === 'local' ? 'true' : 'false'"
@click="$store.onboarding.setProviderMode('local')">
- <span class="material-symbols-outlined" aria-hidden="true">memory</span>
+ <x-icon aria-hidden="true" name="memory"></x-icon>
<span class="mode-copy">
<span class="mode-title">Local</span>
<span class="mode-sub">Runs on your machine</span>
@@ -667,7 +667,7 @@
<template x-for="provider in $store.onboarding.oauthProviderCards()" :key="`account-${provider.provider_id}`">
<button type="button" class="oauth-account-card" :class="{ connected: provider.connected }" @click="$store.onboarding.selectOAuthProvider(provider.provider_id)">
<span class="oauth-account-mark" :class="{ connected: provider.connected }">
- <span class="material-symbols-outlined" x-text="$store.onboarding.oauthMark(provider)"></span>
+ <x-icon :name="$store.onboarding.oauthMark(provider)"></x-icon>
</span>
<span class="oauth-account-copy">
<span class="oauth-account-title" x-text="$store.onboarding.oauthCardTitle(provider)"></span>
@@ -724,7 +724,7 @@
title="Refresh model list"
@click="$store.onboarding.loadModels('chat_model')"
:disabled="$store.onboarding.modelDropdown.chat_model.loading">
- <span class="material-symbols-outlined" x-text="$store.onboarding.modelDropdown.chat_model.loading ? 'progress_activity' : 'search'"></span>
+ <x-icon :name="$store.onboarding.modelDropdown.chat_model.loading ? 'progress_activity' : 'search'"></x-icon>
</button>
<div class="model-dropdown" x-show="$store.onboarding.modelDropdown.chat_model.open && !$store.onboarding.modelDropdown.chat_model.loading" x-transition.opacity>
<template x-for="model in $store.onboarding.filteredModels('chat_model')" :key="model">
@@ -740,7 +740,7 @@
<div class="oauth-connect-main">
<div class="oauth-status-group">
<span class="oauth-status-mark" :class="{ connected: $store.onboarding.oauthConnected($store.onboarding.selectedProviderId) }">
- <span class="material-symbols-outlined" x-text="$store.onboarding.oauthConnected($store.onboarding.selectedProviderId) ? 'check_circle' : $store.onboarding.oauthMark($store.onboarding.oauthProviderStatus($store.onboarding.selectedProviderId))"></span>
+ <x-icon :name="$store.onboarding.oauthConnected($store.onboarding.selectedProviderId) ? 'check_circle' : $store.onboarding.oauthMark($store.onboarding.oauthProviderStatus($store.onboarding.selectedProviderId))"></x-icon>
</span>
<span class="oauth-status-copy">
<span class="oauth-status-label" x-text="$store.onboarding.selectedProviderName()"></span>
@@ -755,7 +755,7 @@
</button>
<button type="button" class="btn btn-cancel" x-show="$store.onboarding.oauthConnecting" @click="$store.onboarding.cancelOauthConnect()">Cancel</button>
<span class="status-pill connected" x-show="$store.onboarding.oauthConnected($store.onboarding.selectedProviderId)">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
<span>Connected</span>
</span>
</div>
@@ -781,7 +781,7 @@
</label>
</div>
<div class="oauth-device-note" x-show="$store.onboarding.oauthDevice">
- <span class="material-symbols-outlined">key</span>
+ <x-icon name="key"></x-icon>
<span x-show="$store.onboarding.oauthDevice?.user_code">Device code: <b x-text="$store.onboarding.oauthDevice?.user_code"></b></span>
<span x-show="!$store.onboarding.oauthDevice?.user_code">Finish sign-in in the opened browser tab.</span>
</div>
@@ -840,7 +840,7 @@
title="Refresh model list"
@click="$store.onboarding.loadModels('utility_model')"
:disabled="$store.onboarding.modelDropdown.utility_model.loading">
- <span class="material-symbols-outlined" x-text="$store.onboarding.modelDropdown.utility_model.loading ? 'progress_activity' : 'search'"></span>
+ <x-icon :name="$store.onboarding.modelDropdown.utility_model.loading ? 'progress_activity' : 'search'"></x-icon>
</button>
<div class="model-dropdown" x-show="$store.onboarding.modelDropdown.utility_model.open && !$store.onboarding.modelDropdown.utility_model.loading" x-transition.opacity>
<template x-for="model in $store.onboarding.filteredModels('utility_model')" :key="model">
@@ -861,7 +861,7 @@
<div class="onboarding-advanced-link" x-show="!$store.onboarding.isStep('ready')">
<button type="button" class="advanced-settings-toggle" @click="$store.onboarding.openAdvancedSettings()">
<span>Advanced Settings</span>
- <span class="material-symbols-outlined">keyboard_arrow_right</span>
+ <x-icon name="keyboard_arrow_right"></x-icon>
</button>
</div>
</div>
diff --git a/plugins/_orchestrator/webui/config.html b/plugins/_orchestrator/webui/config.html
index 939aae704..7193cf5fc 100644
--- a/plugins/_orchestrator/webui/config.html
+++ b/plugins/_orchestrator/webui/config.html
@@ -242,7 +242,7 @@
:disabled="$store.orchestratorStore.loading"
@click="$store.orchestratorStore.refresh()"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.orchestratorStore.loading ? 'progress_activity' : 'refresh'"></span>
+ <x-icon aria-hidden="true" :name="$store.orchestratorStore.loading ? 'progress_activity' : 'refresh'"></x-icon>
</button>
</div>
@@ -263,7 +263,7 @@
x-show="agent.installed && !agent.auth?.connected && agent.supports_device_login && (!$store.orchestratorStore.login || $store.orchestratorStore.login.agentId !== agent.id)"
@click.stop="$store.orchestratorStore.startLogin(agent.id)"
>
- <span class="material-symbols-outlined" aria-hidden="true">login</span>
+ <x-icon aria-hidden="true" name="login"></x-icon>
<span>Connect</span>
</button>
<button
@@ -273,10 +273,10 @@
:disabled="$store.orchestratorStore.disconnectingAgent === agent.id"
@click.stop="$store.orchestratorStore.disconnect(agent.id)"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.orchestratorStore.disconnectingAgent === agent.id ? 'progress_activity' : 'link_off'"></span>
+ <x-icon aria-hidden="true" :name="$store.orchestratorStore.disconnectingAgent === agent.id ? 'progress_activity' : 'link_off'"></x-icon>
<span x-text="$store.orchestratorStore.disconnectingAgent === agent.id ? 'Disconnecting' : 'Disconnect'"></span>
</button>
- <span class="material-symbols-outlined ta-expand" aria-hidden="true">expand_more</span>
+ <x-icon class="ta-expand" aria-hidden="true" name="expand_more"></x-icon>
</div>
</summary>
diff --git a/plugins/_pin_to_top/extensions/webui/sidebar-row-actions-menu/pin-to-top.html b/plugins/_pin_to_top/extensions/webui/sidebar-row-actions-menu/pin-to-top.html
index edcba3459..ec529c0cd 100644
--- a/plugins/_pin_to_top/extensions/webui/sidebar-row-actions-menu/pin-to-top.html
+++ b/plugins/_pin_to_top/extensions/webui/sidebar-row-actions-menu/pin-to-top.html
@@ -8,8 +8,8 @@
<div x-data x-init="$store.pinToTop.init()">
<button type="button" class="dropdown-item" role="menuitem"
@click="$store.pinToTop.toggleFromMenu($store.sidebar.rowMenuOpenId, $store.sidebar.rowMenuKind); $store.sidebar.rowMenuClose()">
- <span class="material-symbols-outlined"
- x-text="$store.pinToTop.isMenuItemPinned($store.sidebar.rowMenuOpenId, $store.sidebar.rowMenuKind) ? 'keep_off' : 'push_pin'"></span>
+ <x-icon
+ :name="$store.pinToTop.isMenuItemPinned($store.sidebar.rowMenuOpenId, $store.sidebar.rowMenuKind) ? 'keep_off' : 'push_pin'"></x-icon>
<span
x-text="$store.pinToTop.isMenuItemPinned($store.sidebar.rowMenuOpenId, $store.sidebar.rowMenuKind) ? 'Unpin from Top' : 'Pin to Top'"></span>
</button>
diff --git a/plugins/_plugin_installer/extensions/webui/plugins-list-dropdown-end/plugin-hub-button.html b/plugins/_plugin_installer/extensions/webui/plugins-list-dropdown-end/plugin-hub-button.html
index c918fe7bf..310787c62 100644
--- a/plugins/_plugin_installer/extensions/webui/plugins-list-dropdown-end/plugin-hub-button.html
+++ b/plugins/_plugin_installer/extensions/webui/plugins-list-dropdown-end/plugin-hub-button.html
@@ -4,7 +4,7 @@
class="dropdown-item"
title="Open in Plugin Hub"
@click="$store.pluginInstallStore.openPluginHubDetailByKey(plugin.pluginHub.key); actionsOpen = false">
- <span class="material-symbols-outlined">storefront</span>
+ <x-icon name="storefront"></x-icon>
<span>Plugin Hub</span>
</button>
</template>
diff --git a/plugins/_plugin_installer/extensions/webui/plugins-list-header-buttons/install-buttons.html b/plugins/_plugin_installer/extensions/webui/plugins-list-header-buttons/install-buttons.html
index 926876896..64be6e0c3 100644
--- a/plugins/_plugin_installer/extensions/webui/plugins-list-header-buttons/install-buttons.html
+++ b/plugins/_plugin_installer/extensions/webui/plugins-list-header-buttons/install-buttons.html
@@ -6,6 +6,6 @@
<button type="button"
class="button confirm"
@click="openModal('/plugins/_plugin_installer/webui/main.html')">
- <span class="icon material-symbols-outlined">add</span> Install
+ <x-icon class="icon" name="add"></x-icon> Install
</button>
</span>
diff --git a/plugins/_plugin_installer/webui/install-detail.html b/plugins/_plugin_installer/webui/install-detail.html
index 6a42bc345..ef59dfce1 100644
--- a/plugins/_plugin_installer/webui/install-detail.html
+++ b/plugins/_plugin_installer/webui/install-detail.html
@@ -17,7 +17,7 @@
@error="$store.pluginInstallStore.detailThumbnailUrl = null">
</template>
<template x-if="!$store.pluginInstallStore.getDetailThumbnailUrl()">
- <span class="material-symbols-outlined pi-hero-placeholder">extension</span>
+ <x-icon class="pi-hero-placeholder" name="extension"></x-icon>
</template>
</div>
<div class="pi-hero-info">
@@ -27,7 +27,7 @@
<div class="pi-status-badges">
<template x-if="$store.pluginInstallStore.selectedPlugin.suspended">
<span class="pi-card-suspended-pill">
- <span class="material-symbols-outlined">priority_high</span>
+ <x-icon name="priority_high"></x-icon>
<span>Suspended</span>
</span>
</template>
@@ -46,7 +46,7 @@
</span>
</template>
<span class="pi-hero-stars">
- <span class="material-symbols-outlined">star</span>
+ <x-icon name="star"></x-icon>
<span x-text="($store.pluginInstallStore.selectedPlugin.stars || 0)"></span>
<template x-if="$store.pluginInstallStore.selectedPlugin.github">
<a :href="$store.pluginInstallStore.selectedPlugin.github"
@@ -69,36 +69,36 @@
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_main_screen">
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenPlugin()">
- <span class="icon material-symbols-outlined">dashboard</span> Open
+ <x-icon class="icon" name="dashboard"></x-icon> Open
</button>
</template>
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_config_screen">
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenConfig()">
- <span class="icon material-symbols-outlined">settings</span> Config
+ <x-icon class="icon" name="settings"></x-icon> Config
</button>
</template>
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_readme">
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenDoc('readme')">
- <span class="icon material-symbols-outlined">description</span> README
+ <x-icon class="icon" name="description"></x-icon> README
</button>
</template>
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_license">
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenDoc('license')">
- <span class="icon material-symbols-outlined">gavel</span> License
+ <x-icon class="icon" name="gavel"></x-icon> License
</button>
</template>
<template x-if="$store.pluginInstallStore.installedPluginInfo.has_execute_script">
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenExecute()">
- <span class="icon material-symbols-outlined">terminal</span> Script
+ <x-icon class="icon" name="terminal"></x-icon> Script
</button>
</template>
<button type="button" class="button"
@click="$store.pluginInstallStore.handleOpenInfo()">
- <span class="icon material-symbols-outlined">info</span> Info
+ <x-icon class="icon" name="info"></x-icon> Info
</button>
</div>
</template>
@@ -108,7 +108,7 @@
<template x-if="$store.pluginInstallStore.selectedPlugin.suspended">
<div class="pi-suspension-banner">
- <span class="material-symbols-outlined">priority_high</span>
+ <x-icon name="priority_high"></x-icon>
<div class="pi-suspension-banner-copy">
<div class="pi-suspension-banner-title">Plugin has been suspended for the following reasons:</div>
<div class="pi-suspension-banner-explanation"
@@ -144,7 +144,7 @@
</span>
</template>
<template x-if="!$store.pluginInstallStore.loading">
- <span class="material-symbols-outlined">download</span>
+ <x-icon name="download"></x-icon>
</template>
<template x-if="!$store.pluginInstallStore.loading">
<span>Install</span>
@@ -162,7 +162,7 @@
</span>
</template>
<template x-if="!$store.pluginInstallStore.loading">
- <span class="material-symbols-outlined">system_update</span>
+ <x-icon name="system_update"></x-icon>
</template>
<template x-if="!$store.pluginInstallStore.loading">
<span>Update</span>
@@ -178,7 +178,7 @@
<span x-text="$store.pluginInstallStore.loadingMessage || 'Uninstalling...'"></span>
</span>
<span x-show="!$store.pluginInstallStore.loading">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</span>
<span x-show="!$store.pluginInstallStore.loading">
<span>Uninstall</span>
@@ -187,7 +187,7 @@
</template>
<template x-if="$store.pluginInstallStore.selectedPlugin.discussion">
<a :href="$store.pluginInstallStore.selectedPlugin.discussion" target="_blank" class="pi-btn-discussion">
- <span class="material-symbols-outlined">forum</span>
+ <x-icon name="forum"></x-icon>
<span>Discussion</span>
</a>
</template>
@@ -252,19 +252,19 @@
<div class="pi-developer-links">
<template x-if="$store.pluginInstallStore.selectedPlugin.github">
<a :href="$store.pluginInstallStore.selectedPlugin.github" target="_blank" class="pi-dev-link">
- <span class="material-symbols-outlined">code</span>
+ <x-icon name="code"></x-icon>
<span>GitHub Repository</span>
</a>
</template>
<template x-if="$store.pluginInstallStore.selectedPlugin.key">
<a :href="$store.pluginInstallStore.getIndexUrl($store.pluginInstallStore.selectedPlugin.key)" target="_blank" class="pi-dev-link">
- <span class="material-symbols-outlined">inventory_2</span>
+ <x-icon name="inventory_2"></x-icon>
<span>Plugin Index</span>
</a>
</template>
<template x-if="$store.pluginInstallStore.getReportUrl($store.pluginInstallStore.selectedPlugin)">
<a :href="$store.pluginInstallStore.getReportUrl($store.pluginInstallStore.selectedPlugin)" target="_blank" class="pi-dev-link pi-report-link">
- <span class="material-symbols-outlined">report</span>
+ <x-icon name="report"></x-icon>
<span>Report malicious plugin</span>
</a>
</template>
diff --git a/plugins/_plugin_installer/webui/install-git.html b/plugins/_plugin_installer/webui/install-git.html
index 29796770e..92d5f46c4 100644
--- a/plugins/_plugin_installer/webui/install-git.html
+++ b/plugins/_plugin_installer/webui/install-git.html
@@ -39,7 +39,7 @@
</template>
<template x-if="!$store.pluginInstallStore.loading">
<span>
- <span class="icon material-symbols-outlined">terminal</span> Clone & Install
+ <x-icon class="icon" name="terminal"></x-icon> Clone & Install
</span>
</template>
</button>
@@ -48,7 +48,7 @@
<div x-show="$store.pluginInstallStore.result" class="pi-result">
<div class="pi-result-icon">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
</div>
<div class="pi-result-text">
<strong x-text="'Plugin installed: ' + ($store.pluginInstallStore.result?.title || $store.pluginInstallStore.result?.plugin_name || '')"></strong>
diff --git a/plugins/_plugin_installer/webui/install-index.html b/plugins/_plugin_installer/webui/install-index.html
index 8b4062987..be4f53bb1 100644
--- a/plugins/_plugin_installer/webui/install-index.html
+++ b/plugins/_plugin_installer/webui/install-index.html
@@ -23,7 +23,7 @@
<div class="pi-index-toolbar">
<label class="pi-search-field">
- <span class="material-symbols-outlined">search</span>
+ <x-icon name="search"></x-icon>
<input type="text"
class="pi-search-input"
x-model="$store.pluginInstallStore.search"
@@ -47,7 +47,7 @@
title="Reload Plugin Hub"
@click="$store.pluginInstallStore.reloadIndex()"
:disabled="$store.pluginInstallStore.loading">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
</button>
</div>
@@ -68,7 +68,7 @@
</div>
<div x-show="$store.pluginInstallStore.loading" class="pi-state-card pi-state-loading">
- <span class="material-symbols-outlined">progress_activity</span>
+ <x-icon name="progress_activity"></x-icon>
<div>
<div class="pi-state-title">Loading Plugin Hub</div>
<div class="pi-state-text" x-text="$store.pluginInstallStore.loadingMessage || 'Loading plugins...'"></div>
@@ -85,7 +85,7 @@
<img :src="plugin.thumbnail" :alt="plugin.title" loading="lazy">
</template>
<template x-if="!plugin.thumbnail">
- <span class="material-symbols-outlined pi-card-placeholder">extension</span>
+ <x-icon class="pi-card-placeholder" name="extension"></x-icon>
</template>
</div>
@@ -97,7 +97,7 @@
</div>
<span class="pi-card-stars">
- <span class="material-symbols-outlined">star</span>
+ <x-icon name="star"></x-icon>
<span x-text="plugin.stars || 0"></span>
</span>
@@ -118,7 +118,7 @@
<div class="pi-card-bubbles pi-card-bubbles-tags">
<template x-if="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)">
<span class="pi-card-bubble pi-card-bubble-tag">
- <span class="material-symbols-outlined">sell</span>
+ <x-icon name="sell"></x-icon>
<span class="pi-card-bubble-text"
x-text="$store.pluginInstallStore.getBrowsePrimaryTag(plugin)"></span>
</span>
@@ -128,25 +128,25 @@
<div class="pi-card-bubbles pi-card-bubbles-status">
<template x-if="plugin.suspended">
<span class="pi-card-bubble pi-card-bubble-suspended">
- <span class="material-symbols-outlined">priority_high</span>
+ <x-icon name="priority_high"></x-icon>
<span class="pi-card-bubble-text">Suspended</span>
</span>
</template>
<template x-if="plugin.installed">
<span class="pi-card-bubble pi-card-bubble-installed">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
<span class="pi-card-bubble-text">Installed</span>
</span>
</template>
<template x-if="plugin.has_update">
<span class="pi-card-bubble pi-card-bubble-update">
- <span class="material-symbols-outlined">update</span>
+ <x-icon name="update"></x-icon>
<span class="pi-card-bubble-text">New version</span>
</span>
</template>
<template x-if="$store.pluginInstallStore.isNewPlugin(plugin)">
<span class="pi-card-bubble pi-card-bubble-new">
- <span class="material-symbols-outlined">new_releases</span>
+ <x-icon name="new_releases"></x-icon>
<span class="pi-card-bubble-text">New</span>
</span>
</template>
@@ -159,7 +159,7 @@
<div x-show="$store.pluginInstallStore.index && !$store.pluginInstallStore.loading && $store.pluginInstallStore.filteredPlugins.length === 0"
class="pi-state-card pi-state-empty">
- <span class="material-symbols-outlined">search_off</span>
+ <x-icon name="search_off"></x-icon>
<div>
<div class="pi-state-title">No plugins match this view</div>
<div class="pi-state-text">
@@ -172,7 +172,7 @@
<button class="button"
:disabled="$store.pluginInstallStore.page <= 1"
@click="$store.pluginInstallStore.setPage($store.pluginInstallStore.page - 1)">
- <span class="material-symbols-outlined">chevron_left</span>
+ <x-icon name="chevron_left"></x-icon>
</button>
<span class="pi-page-info"
x-text="'Page ' + $store.pluginInstallStore.page + ' of ' + $store.pluginInstallStore.totalPages">
@@ -180,7 +180,7 @@
<button class="button"
:disabled="$store.pluginInstallStore.page >= $store.pluginInstallStore.totalPages"
@click="$store.pluginInstallStore.setPage($store.pluginInstallStore.page + 1)">
- <span class="material-symbols-outlined">chevron_right</span>
+ <x-icon name="chevron_right"></x-icon>
</button>
</div>
</div>
diff --git a/plugins/_plugin_installer/webui/install-zip.html b/plugins/_plugin_installer/webui/install-zip.html
index 229940fc6..d5babe996 100644
--- a/plugins/_plugin_installer/webui/install-zip.html
+++ b/plugins/_plugin_installer/webui/install-zip.html
@@ -13,7 +13,7 @@
<div class="pi-upload-section">
<label for="plugin-zip-file" class="pi-upload-btn button confirm"
:class="{ 'pi-has-file': $store.pluginInstallStore.zipFile }">
- <span class="icon material-symbols-outlined">upload_file</span>
+ <x-icon class="icon" name="upload_file"></x-icon>
<span x-text="$store.pluginInstallStore.zipFileName || 'Select Plugin ZIP File'"></span>
</label>
<input type="file" id="plugin-zip-file" accept=".zip" style="display:none"
@@ -27,7 +27,7 @@
<button class="button confirm"
@click="$store.pluginInstallStore.installZip()"
:disabled="$store.pluginInstallStore.loading">
- <span class="icon material-symbols-outlined">download</span> Install Plugin
+ <x-icon class="icon" name="download"></x-icon> Install Plugin
</button>
<x-extension id="install-zip-actions"></x-extension>
</div>
@@ -38,7 +38,7 @@
<div x-show="$store.pluginInstallStore.result" class="pi-result">
<div class="pi-result-icon">
- <span class="material-symbols-outlined">check_circle</span>
+ <x-icon name="check_circle"></x-icon>
</div>
<div class="pi-result-text">
<strong x-text="'Plugin installed: ' + ($store.pluginInstallStore.result?.title || $store.pluginInstallStore.result?.plugin_name || '')"></strong>
diff --git a/plugins/_plugin_installer/webui/main.html b/plugins/_plugin_installer/webui/main.html
index c352e8d1c..cf806c9d0 100644
--- a/plugins/_plugin_installer/webui/main.html
+++ b/plugins/_plugin_installer/webui/main.html
@@ -16,19 +16,19 @@
<li class="nav-item" role="presentation">
<button class="nav-link" :class="{ active: $store.pluginInstallStore.activeTab === 'store' }"
type="button" role="tab" @click="$store.pluginInstallStore.setTab('store')">
- <span class="material-symbols-outlined pi-tab-icon">store</span> Browse
+ <x-icon class="pi-tab-icon" name="store"></x-icon> Browse
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" :class="{ active: $store.pluginInstallStore.activeTab === 'git' }"
type="button" role="tab" @click="$store.pluginInstallStore.setTab('git')">
- <span class="material-symbols-outlined pi-tab-icon">terminal</span> Git
+ <x-icon class="pi-tab-icon" name="terminal"></x-icon> Git
</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" :class="{ active: $store.pluginInstallStore.activeTab === 'zip' }"
type="button" role="tab" @click="$store.pluginInstallStore.setTab('zip')">
- <span class="material-symbols-outlined pi-tab-icon">upload_file</span> ZIP
+ <x-icon class="pi-tab-icon" name="upload_file"></x-icon> ZIP
</button>
</li>
</ul>
diff --git a/plugins/_plugin_validator/extensions/webui/install-git-actions/validate-button.html b/plugins/_plugin_validator/extensions/webui/install-git-actions/validate-button.html
index 6d27458c4..f2b4823b2 100644
--- a/plugins/_plugin_validator/extensions/webui/install-git-actions/validate-button.html
+++ b/plugins/_plugin_validator/extensions/webui/install-git-actions/validate-button.html
@@ -8,6 +8,6 @@
title="Validate this plugin repository before installing"
@click="$store.pluginValidator.openModal({ source: 'git', gitUrl: ($store.pluginInstallStore.gitUrl || '').trim() })"
:disabled="$store.pluginInstallStore.loading || !($store.pluginInstallStore.gitUrl || '').trim()">
- <span class="icon material-symbols-outlined">fact_check</span> Validate
+ <x-icon class="icon" name="fact_check"></x-icon> Validate
</button>
</span>
diff --git a/plugins/_plugin_validator/extensions/webui/install-zip-actions/validate-button.html b/plugins/_plugin_validator/extensions/webui/install-zip-actions/validate-button.html
index ce88f5964..a267cd933 100644
--- a/plugins/_plugin_validator/extensions/webui/install-zip-actions/validate-button.html
+++ b/plugins/_plugin_validator/extensions/webui/install-zip-actions/validate-button.html
@@ -8,6 +8,6 @@
title="Validate this ZIP plugin before installing"
@click="$store.pluginValidator.openModal({ source: 'zip', zipFile: $store.pluginInstallStore.zipFile, zipFileName: $store.pluginInstallStore.zipFileName })"
:disabled="$store.pluginInstallStore.loading || !$store.pluginInstallStore.zipFile">
- <span class="icon material-symbols-outlined">fact_check</span> Validate
+ <x-icon class="icon" name="fact_check"></x-icon> Validate
</button>
</span>
diff --git a/plugins/_plugin_validator/webui/plugin-validator.html b/plugins/_plugin_validator/webui/plugin-validator.html
index b3311d099..54653a488 100644
--- a/plugins/_plugin_validator/webui/plugin-validator.html
+++ b/plugins/_plugin_validator/webui/plugin-validator.html
@@ -20,7 +20,7 @@
:aria-selected="$store.pluginValidator.source === 'local'"
aria-controls="plugin-validator-local-panel"
@click="$store.pluginValidator.setSource('local')">
- <span class="material-symbols-outlined pv-tab-icon">folder</span> Local
+ <x-icon class="pv-tab-icon" name="folder"></x-icon> Local
</button>
</li>
<li class="nav-item" role="presentation">
@@ -32,7 +32,7 @@
:aria-selected="$store.pluginValidator.source === 'git'"
aria-controls="plugin-validator-git-panel"
@click="$store.pluginValidator.setSource('git')">
- <span class="material-symbols-outlined pv-tab-icon">terminal</span> Git
+ <x-icon class="pv-tab-icon" name="terminal"></x-icon> Git
</button>
</li>
<li class="nav-item" role="presentation">
@@ -44,7 +44,7 @@
:aria-selected="$store.pluginValidator.source === 'zip'"
aria-controls="plugin-validator-zip-panel"
@click="$store.pluginValidator.setSource('zip')">
- <span class="material-symbols-outlined pv-tab-icon">upload_file</span> ZIP
+ <x-icon class="pv-tab-icon" name="upload_file"></x-icon> ZIP
</button>
</li>
</ul>
@@ -88,7 +88,7 @@
<label for="plugin-validator-zip-file"
class="pv-upload-btn button confirm"
:class="{ 'pv-has-file': $store.pluginValidator.zipFile }">
- <span class="icon material-symbols-outlined">upload_file</span>
+ <x-icon class="icon" name="upload_file"></x-icon>
<span x-text="$store.pluginValidator.zipFileName || 'Select Plugin ZIP File'"></span>
</label>
<input type="file"
diff --git a/plugins/_skills/extensions/webui/initFw_end/skills-menu-injector.js b/plugins/_skills/extensions/webui/initFw_end/skills-menu-injector.js
index fc28cbd65..51b975800 100644
--- a/plugins/_skills/extensions/webui/initFw_end/skills-menu-injector.js
+++ b/plugins/_skills/extensions/webui/initFw_end/skills-menu-injector.js
@@ -11,7 +11,7 @@ function buildButton() {
button.className = "chat-bottom-menu-item";
button.id = BUTTON_ID;
button.innerHTML = `
- <span class="material-symbols-outlined" aria-hidden="true">menu_book</span>
+ <x-icon aria-hidden="true" name="menu_book"></x-icon>
<span>Skills</span>
`;
diff --git a/plugins/_skills/webui/config.html b/plugins/_skills/webui/config.html
index 6965c0e18..1a39b7dcc 100644
--- a/plugins/_skills/webui/config.html
+++ b/plugins/_skills/webui/config.html
@@ -17,7 +17,7 @@
<div class="skills-toolbar">
<label class="skills-search">
- <span class="material-symbols-outlined">search</span>
+ <x-icon name="search"></x-icon>
<input
type="text"
x-model.trim="search"
@@ -27,7 +27,7 @@
<div class="skills-actions">
<button type="button" class="button" @click="loadCatalog()" :disabled="loadingCatalog || mutatingChat">
- <span class="icon material-symbols-outlined">refresh</span>
+ <x-icon class="icon" name="refresh"></x-icon>
Refresh
</button>
</div>
@@ -56,7 +56,7 @@
aria-label="Open skill"
@click="openSkill(entry)"
>
- <span class="icon material-symbols-outlined">article</span>
+ <x-icon class="icon" name="article"></x-icon>
</button>
</div>
</div>
@@ -71,7 +71,7 @@
<div class="skills-panel-subtitle" x-text="allSkillsSubtitle()"></div>
<div class="skills-loading" x-show="loadingCatalog">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading skills...</span>
</div>
@@ -116,7 +116,7 @@
:disabled="isVisibilityDisabled()"
@click.prevent.stop="toggleVisibility(skill)"
>
- <span class="icon material-symbols-outlined" x-text="visibilityButtonIcon(skill)"></span>
+ <x-icon class="icon" :name="visibilityButtonIcon(skill)"></x-icon>
</button>
<button
type="button"
@@ -125,7 +125,7 @@
aria-label="Open skill"
@click.prevent.stop="openSkill(skill)"
>
- <span class="icon material-symbols-outlined">article</span>
+ <x-icon class="icon" name="article"></x-icon>
</button>
</div>
</div>
diff --git a/plugins/_telegram_integration/webui/config.html b/plugins/_telegram_integration/webui/config.html
index dd3f57edd..ab7fed42a 100644
--- a/plugins/_telegram_integration/webui/config.html
+++ b/plugins/_telegram_integration/webui/config.html
@@ -37,10 +37,10 @@
x-text="$store.telegramConfig.botStatusLabel(bot)"></span>
<button class="btn btn-action delete"
@click.stop="$confirmClick($event, () => $store.telegramConfig.removeBot(idx))" title="Remove bot">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
- <span class="material-symbols-outlined tg-card-chevron"
- :class="{ 'is-open': $store.telegramConfig.editing === idx }">expand_more</span>
+ <x-icon class="tg-card-chevron"
+ :class="{ 'is-open': $store.telegramConfig.editing === idx }" name="expand_more"></x-icon>
</div>
</div>
@@ -264,8 +264,8 @@
<details class="tg-advanced">
<summary>
<span>Advanced</span>
- <span class="material-symbols-outlined tg-advanced-chevron"
- aria-hidden="true">keyboard_arrow_down</span>
+ <x-icon class="tg-advanced-chevron"
+ aria-hidden="true" name="keyboard_arrow_down"></x-icon>
</summary>
<div class="tg-advanced-body">
<div class="field" x-show="bot.mode === 'webhook'">
diff --git a/plugins/_time_travel/extensions/webui/sidebar-quick-actions-dropdown-start/time-travel-entry.html b/plugins/_time_travel/extensions/webui/sidebar-quick-actions-dropdown-start/time-travel-entry.html
index 709771766..e4b143e19 100644
--- a/plugins/_time_travel/extensions/webui/sidebar-quick-actions-dropdown-start/time-travel-entry.html
+++ b/plugins/_time_travel/extensions/webui/sidebar-quick-actions-dropdown-start/time-travel-entry.html
@@ -6,7 +6,7 @@
id="time-travel-dropdown"
title="Time Travel"
@click="$store.timeTravel?.onOpen?.(); ensureModalOpen('/plugins/_time_travel/webui/main.html'); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">history</span>
+ <x-icon name="history"></x-icon>
<span>Time Travel</span>
</button>
</div>
diff --git a/plugins/_time_travel/webui/time-travel-panel.html b/plugins/_time_travel/webui/time-travel-panel.html
index b69e66613..11b64cdba 100644
--- a/plugins/_time_travel/webui/time-travel-panel.html
+++ b/plugins/_time_travel/webui/time-travel-panel.html
@@ -10,7 +10,7 @@
<div class="time-travel-shell">
<div class="time-travel-toolbar">
<div class="time-travel-workspace-picker" :title="$store.timeTravel.workspacePath || $store.timeTravel.workspaceOptionLabel($store.timeTravel.selectedWorkspace())">
- <span class="material-symbols-outlined" aria-hidden="true">folder_open</span>
+ <x-icon aria-hidden="true" name="folder_open"></x-icon>
<select
aria-label="Workspace"
:value="$store.timeTravel.selectedWorkspaceId"
@@ -29,21 +29,21 @@
</div>
<span class="time-travel-spacer"></span>
<button type="button" class="time-travel-icon-button" title="Snapshot" aria-label="Snapshot" @click="$store.timeTravel.manualSnapshot()" :disabled="$store.timeTravel.busy || $store.timeTravel.loading || $store.timeTravel.isLocked()">
- <span class="material-symbols-outlined">add_a_photo</span>
+ <x-icon name="add_a_photo"></x-icon>
</button>
<button type="button" class="time-travel-icon-button" title="Refresh" aria-label="Refresh" @click="$store.timeTravel.refresh({ keepSelection: true, reloadWorkspaces: true })" :disabled="$store.timeTravel.loading">
- <span class="material-symbols-outlined" :class="{ spinning: $store.timeTravel.loading }">refresh</span>
+ <x-icon :class="{ spinning: $store.timeTravel.loading }" name="refresh"></x-icon>
</button>
</div>
<div class="time-travel-status" x-show="$store.timeTravel.loading || $store.timeTravel.error || $store.timeTravel.busy" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.timeTravel.loading || $store.timeTravel.busy }" x-text="$store.timeTravel.error ? 'error' : 'progress_activity'"></span>
+ <x-icon :class="{ spinning: $store.timeTravel.loading || $store.timeTravel.busy }" :name="$store.timeTravel.error ? 'error' : 'progress_activity'"></x-icon>
<span x-text="$store.timeTravel.error || ($store.timeTravel.busy ? 'Working...' : 'Loading history...')"></span>
</div>
<template x-if="$store.timeTravel.isLocked() && !$store.timeTravel.loading">
<div class="time-travel-locked">
- <span class="material-symbols-outlined">lock</span>
+ <x-icon name="lock"></x-icon>
<strong>Unavailable</strong>
<span x-text="$store.timeTravel.payload?.workspace?.error || 'Time Travel is available only inside /a0/usr.'"></span>
</div>
@@ -53,7 +53,7 @@
<div class="time-travel-body">
<aside class="time-travel-timeline">
<div class="time-travel-filter">
- <span class="material-symbols-outlined">filter_list</span>
+ <x-icon name="filter_list"></x-icon>
<input
type="search"
placeholder="Filter files"
@@ -72,7 +72,7 @@
:title="row.message"
>
<span class="time-travel-row-mark">
- <span class="material-symbols-outlined" x-text="row.kind === 'present' ? (row.dirty ? 'edit_note' : 'check_circle') : (row.is_current ? 'radio_button_checked' : 'commit')"></span>
+ <x-icon :name="row.kind === 'present' ? (row.dirty ? 'edit_note' : 'check_circle') : (row.is_current ? 'radio_button_checked' : 'commit')"></x-icon>
</span>
<span class="time-travel-row-main">
<span class="time-travel-row-title" x-text="row.message"></span>
@@ -84,7 +84,7 @@
</div>
<button type="button" class="time-travel-load-more" x-show="$store.timeTravel.payload?.has_more" style="display: none;" @click="$store.timeTravel.loadMore()" :disabled="$store.timeTravel.loading">
- <span class="material-symbols-outlined">expand_more</span>
+ <x-icon name="expand_more"></x-icon>
<span>More</span>
</button>
</aside>
@@ -97,11 +97,11 @@
</div>
<div class="time-travel-actions" x-show="$store.timeTravel.selectedCommit()" style="display: none;">
<button type="button" class="time-travel-tool-button" title="Travel" @click="$store.timeTravel.openPreview('travel')" :disabled="$store.timeTravel.selectedCommit()?.is_current || $store.timeTravel.busy">
- <span class="material-symbols-outlined">move_down</span>
+ <x-icon name="move_down"></x-icon>
<span>Travel</span>
</button>
<button type="button" class="time-travel-tool-button" title="Revert" @click="$store.timeTravel.openPreview('revert')" :disabled="$store.timeTravel.busy">
- <span class="material-symbols-outlined">undo</span>
+ <x-icon name="undo"></x-icon>
<span>Revert</span>
</button>
</div>
@@ -111,7 +111,7 @@
<section class="time-travel-files">
<template x-if="$store.timeTravel.selectedFiles().length === 0">
<div class="time-travel-empty">
- <span class="material-symbols-outlined">hourglass_empty</span>
+ <x-icon name="hourglass_empty"></x-icon>
<span>No file changes</span>
</div>
</template>
@@ -138,28 +138,28 @@
<span class="time-travel-diff-path" :title="$store.timeTravel.fileTitle($store.timeTravel.selectedFile())" x-text="$store.timeTravel.fileTitle($store.timeTravel.selectedFile()) || 'Diff'"></span>
<span class="time-travel-spacer"></span>
<button type="button" class="time-travel-icon-button is-small" title="Open containing folder" aria-label="Open containing folder" @click="$store.timeTravel.openContainingFolder($store.timeTravel.selectedFile())" :disabled="!$store.timeTravel.selectedFile()">
- <span class="material-symbols-outlined">folder_open</span>
+ <x-icon name="folder_open"></x-icon>
</button>
<button type="button" class="time-travel-icon-button is-small" title="Copy path" aria-label="Copy path" @click="$store.timeTravel.copyPath($store.timeTravel.selectedFile())" :disabled="!$store.timeTravel.selectedFile()">
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
</button>
</div>
<div class="time-travel-diff-status" x-show="$store.timeTravel.diffLoading || $store.timeTravel.diffError" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.timeTravel.diffLoading }" x-text="$store.timeTravel.diffError ? 'error' : 'progress_activity'"></span>
+ <x-icon :class="{ spinning: $store.timeTravel.diffLoading }" :name="$store.timeTravel.diffError ? 'error' : 'progress_activity'"></x-icon>
<span x-text="$store.timeTravel.diffError || 'Loading diff...'"></span>
</div>
<template x-if="$store.timeTravel.selectedDiff?.binary">
<div class="time-travel-empty">
- <span class="material-symbols-outlined">data_object</span>
+ <x-icon name="data_object"></x-icon>
<span>Binary file changed</span>
</div>
</template>
<template x-if="$store.timeTravel.selectedDiff?.too_large && !$store.timeTravel.selectedDiff?.binary">
<div class="time-travel-empty">
- <span class="material-symbols-outlined">text_snippet</span>
+ <x-icon name="text_snippet"></x-icon>
<span>Diff exceeds the 1 MB render limit</span>
</div>
</template>
@@ -183,15 +183,15 @@
<div class="time-travel-preview-backdrop" x-show="$store.timeTravel.previewOpen" style="display: none;">
<section class="time-travel-preview" role="dialog" aria-modal="true" aria-label="Time Travel preview">
<header>
- <span class="material-symbols-outlined" x-text="$store.timeTravel.preview?.operation === 'travel' ? 'move_down' : 'undo'"></span>
+ <x-icon :name="$store.timeTravel.preview?.operation === 'travel' ? 'move_down' : 'undo'"></x-icon>
<strong x-text="$store.timeTravel.preview?.operation === 'travel' ? 'Travel Preview' : 'Revert Preview'"></strong>
<button type="button" class="time-travel-icon-button is-small" title="Close" aria-label="Close" @click="$store.timeTravel.closePreview()" :disabled="$store.timeTravel.busy">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</header>
<div class="time-travel-preview-body">
<div class="time-travel-preview-status" x-show="$store.timeTravel.previewLoading || $store.timeTravel.previewError" style="display: none;">
- <span class="material-symbols-outlined" :class="{ spinning: $store.timeTravel.previewLoading }" x-text="$store.timeTravel.previewError ? 'error' : 'progress_activity'"></span>
+ <x-icon :class="{ spinning: $store.timeTravel.previewLoading }" :name="$store.timeTravel.previewError ? 'error' : 'progress_activity'"></x-icon>
<span x-text="$store.timeTravel.previewError || 'Building preview...'"></span>
</div>
<div class="time-travel-preview-summary">
@@ -214,11 +214,11 @@
</div>
<footer>
<button type="button" class="time-travel-tool-button" @click="$store.timeTravel.closePreview()" :disabled="$store.timeTravel.busy">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
<span>Cancel</span>
</button>
<button type="button" class="time-travel-tool-button is-primary" @click="$store.timeTravel.confirmPreview()" :disabled="Boolean($store.timeTravel.busy || $store.timeTravel.previewLoading || $store.timeTravel.previewError)">
- <span class="material-symbols-outlined" :class="{ spinning: $store.timeTravel.busy }" x-text="$store.timeTravel.busy ? 'progress_activity' : ($store.timeTravel.preview?.operation === 'travel' ? 'move_down' : 'undo')"></span>
+ <x-icon :class="{ spinning: $store.timeTravel.busy }" :name="$store.timeTravel.busy ? 'progress_activity' : ($store.timeTravel.preview?.operation === 'travel' ? 'move_down' : 'undo')"></x-icon>
<span x-text="$store.timeTravel.preview?.operation === 'travel' ? 'Travel' : 'Revert'"></span>
</button>
</footer>
diff --git a/plugins/_whatsapp_integration/webui/config.html b/plugins/_whatsapp_integration/webui/config.html
index ca42afcfc..1cb47bb92 100644
--- a/plugins/_whatsapp_integration/webui/config.html
+++ b/plugins/_whatsapp_integration/webui/config.html
@@ -264,8 +264,8 @@
<details class="wa-advanced">
<summary>
<span>Advanced</span>
- <span class="material-symbols-outlined wa-advanced-chevron"
- aria-hidden="true">keyboard_arrow_down</span>
+ <x-icon class="wa-advanced-chevron"
+ aria-hidden="true" name="keyboard_arrow_down"></x-icon>
</summary>
<div class="wa-advanced-body">
<div class="wa-info-box">
diff --git a/tests/test_sidebar_row_actions.py b/tests/test_sidebar_row_actions.py
index 07d3173a7..2ead70044 100644
--- a/tests/test_sidebar_row_actions.py
+++ b/tests/test_sidebar_row_actions.py
@@ -11,7 +11,7 @@ def test_chat_rows_have_hover_scoped_overflow_actions() -> None:
assert html.count('aria-label="More chat actions"') == 2
assert 'class="btn-icon-action chat-list-action-btn"' in html
- assert "<span class=\"material-symbols-outlined\">more_vert</span>" in html
+ assert '<x-icon name="more_vert"></x-icon>' in html
assert html.count("$store.sidebar.rowMenuToggle(") == 2
diff --git a/tests/test_webui_icons.py b/tests/test_webui_icons.py
new file mode 100644
index 000000000..aa45f66d9
--- /dev/null
+++ b/tests/test_webui_icons.py
@@ -0,0 +1,111 @@
+import re
+from pathlib import Path
+
+
+PROJECT_ROOT = Path(__file__).resolve().parents[1]
+WEBUI_ROOT = PROJECT_ROOT / "webui"
+PLUGINS_ROOT = PROJECT_ROOT / "plugins"
+LEGACY_ICON_SPAN = re.compile(
+ r"<span\b(?=[^>]*\b(?:material-symbols-outlined|material-icons-outlined)\b)",
+ re.IGNORECASE,
+)
+
+
+def first_party_icon_sources() -> list[Path]:
+ roots = [WEBUI_ROOT]
+ roots.extend(
+ path
+ for path in sorted(PLUGINS_ROOT.iterdir())
+ if path.is_dir() and path.name.startswith("_")
+ )
+ return [
+ path
+ for root in roots
+ for path in root.rglob("*")
+ if path.is_file()
+ and path.suffix in {".html", ".js"}
+ and not {"vendor", "node_modules"}.intersection(path.relative_to(root).parts)
+ ]
+
+
+def iter_x_icons(source: str):
+ cursor = 0
+ while True:
+ start = source.find("<x-icon", cursor)
+ if start < 0:
+ return
+
+ quote = ""
+ end = start + len("<x-icon")
+ while end < len(source):
+ char = source[end]
+ if quote:
+ if char == quote and source[end - 1] != "\\":
+ quote = ""
+ elif char in {'"', "'"}:
+ quote = char
+ elif char == ">":
+ break
+ end += 1
+
+ close = source.find("</x-icon>", end + 1)
+ assert end < len(source) and close >= 0
+ yield source[start : end + 1], source[end + 1 : close]
+ cursor = close + len("</x-icon>")
+
+
+def test_first_party_webui_uses_empty_named_x_icon_elements() -> None:
+ legacy_offenders: list[str] = []
+ malformed: list[str] = []
+ icon_count = 0
+
+ for path in first_party_icon_sources():
+ source = path.read_text(encoding="utf-8")
+ if LEGACY_ICON_SPAN.search(source):
+ legacy_offenders.append(str(path.relative_to(PROJECT_ROOT)))
+
+ for start_tag, content in iter_x_icons(source):
+ icon_count += 1
+ if (
+ content.strip()
+ or re.search(r"\sx-text\s*=", start_tag)
+ or not re.search(r"(?:^|\s)(?::name|name)\s*=", start_tag)
+ ):
+ malformed.append(
+ f"{path.relative_to(PROJECT_ROOT)}: {start_tag[:160]}"
+ )
+
+ assert icon_count >= 500
+ assert legacy_offenders == []
+ assert malformed == []
+
+
+def test_x_icon_is_font_backed_and_keeps_legacy_plugin_compatibility() -> None:
+ icons_js = (WEBUI_ROOT / "js" / "icons.js").read_text(encoding="utf-8")
+ icon_css = (WEBUI_ROOT / "vendor" / "google" / "google-icons.css").read_text(
+ encoding="utf-8"
+ )
+ index_html = (WEBUI_ROOT / "index.html").read_text(encoding="utf-8")
+
+ assert '<script type="module" src="/js/icons.js"></script>' in index_html
+ assert 'customElements.define(' in icons_js
+ assert 'return ["name"]' in icons_js
+ assert 'this.classList.add("material-symbols-outlined")' in icons_js
+ assert ".material-symbols-outlined" in icons_js
+ assert ".material-icons-outlined" in icons_js
+ assert "maskImage" not in icons_js
+ assert "/vendor/icons/" not in icons_js
+
+ assert "x-icon," in icon_css
+ assert ".material-symbols-outlined," in icon_css
+ assert ".material-icons-outlined" in icon_css
+ assert "width: 1em !important" in icon_css
+ assert "overflow: hidden !important" in icon_css
+ assert (
+ "document.fonts.load('24px \"Material Symbols Outlined\"')"
+ in index_html
+ )
+ assert (
+ 'document.addEventListener("DOMContentLoaded", loadMaterialIcons, { once: true })'
+ in index_html
+ )
diff --git a/tests/test_webui_message_window.py b/tests/test_webui_message_window.py
index 4d5ea753c..a7644150f 100644
--- a/tests/test_webui_message_window.py
+++ b/tests/test_webui_message_window.py
@@ -17,6 +17,7 @@ PROCESS_GROUP_DOM_JS = (
/ "process-group"
/ "process-group-dom.js"
)
+MESSAGE_COLLAPSE_JS = PROJECT_ROOT / "webui" / "js" / "message-collapse.js"
def test_message_window_keeps_tail_and_pages_bidirectionally():
@@ -223,6 +224,9 @@ def test_user_messages_share_collapse_behavior_without_clipping_attachments():
assert 'contentSelector = ":scope > .message-body"' in messages
assert 'collapseContent?.classList.add("message-collapse-content")' in messages
+ assert 'refreshCollapsibleMessageOverflow(history)' in messages
+ assert 'refreshCollapsibleMessageOverflow(entry.target)' in messages
+ assert 'measureMessageCollapseOverflow(collapseContent' in messages
assert '":scope > .message-text",\n );' in messages
assert "attachmentsContainer.classList.add(\"attachments-container\")" in messages
assert ".message.message-collapsible .message-collapse-content" in message_css
@@ -232,6 +236,69 @@ def test_user_messages_share_collapse_behavior_without_clipping_attachments():
assert "order: 1" in action_button_css
+def test_message_collapse_ignores_hidden_replay_geometry_and_real_short_text():
+ if not shutil.which("node"):
+ pytest.skip("Node.js is required to execute the collapse regression.")
+
+ source = MESSAGE_COLLAPSE_JS.read_bytes()
+ module_url = "data:text/javascript;base64," + base64.b64encode(source).decode(
+ "ascii"
+ )
+ script = f"""
+import {{ measureMessageCollapseOverflow }} from {module_url!r};
+
+function assert(condition, message) {{
+ if (!condition) throw new Error(message);
+}}
+
+let historyWidth = 0;
+const history = {{
+ get clientWidth() {{ return historyWidth || 24; }},
+}};
+const content = {{
+ isConnected: true,
+ clientWidth: 210,
+ clientHeight: 34,
+ scrollHeight: 280,
+ getBoundingClientRect: () => ({{ width: 210 }}),
+ closest: (selector) => selector === "#chat-history" ? history : null,
+}};
+globalThis.getComputedStyle = (element) => ({{
+ fontSize: "16px",
+ paddingLeft: element === history ? "12px" : "0px",
+ paddingRight: element === history ? "12px" : "0px",
+}});
+
+assert(
+ measureMessageCollapseOverflow(content) === null,
+ "zero-width replay staging must not mark short text as overflowing",
+);
+
+historyWidth = 800;
+content.scrollHeight = 34;
+assert(
+ measureMessageCollapseOverflow(content) === false,
+ "a laid-out one-line message must not expose Show More",
+);
+
+content.clientHeight = 240;
+content.scrollHeight = 420;
+assert(
+ measureMessageCollapseOverflow(content) === true,
+ "a body taller than the collapsed preview must expose Show More",
+);
+assert(
+ measureMessageCollapseOverflow(content, {{ expanded: true }}) === true,
+ "expanded long bodies must retain their Show Less control",
+);
+"""
+ subprocess.run(
+ ["node", "--input-type=module", "-e", script],
+ check=True,
+ text=True,
+ )
+
+
def test_process_groups_are_atomic_and_page_steps_in_fifties():
messages = (PROJECT_ROOT / "webui" / "js" / "messages.js").read_text(
encoding="utf-8"
@@ -260,6 +327,12 @@ def test_process_groups_are_atomic_and_page_steps_in_fifties():
assert ".show-utility-messages .process-group.utility-only" in group_css
assert ".process-group.utility-only[hidden]" not in group_css
assert ".process-group-show-more" in group_css
+ show_more_css = group_css.split(".process-group-show-more {", 1)[1].split(
+ "}", 1
+ )[0]
+ assert "text-decoration: none" in show_more_css
+ assert "opacity: 0.7" in show_more_css
+ assert "text-decoration: underline" not in show_more_css
def test_detail_preferences_await_materialization_and_select_current_step():
diff --git a/tests/test_webui_offline_assets.py b/tests/test_webui_offline_assets.py
index c9eb1e9a8..539e32c2e 100644
--- a/tests/test_webui_offline_assets.py
+++ b/tests/test_webui_offline_assets.py
@@ -142,6 +142,9 @@ def test_material_icon_font_is_preloaded_and_layout_stable() -> None:
assert "height: 1em !important" in icon_css
assert "overflow: hidden !important" in icon_css
assert "html:not(.material-icons-ready)" in icon_css
+ assert "x-icon," in icon_css
+ assert ".material-symbols-outlined," in icon_css
+ assert ".material-icons-outlined" in icon_css
preload = (
'<link rel="preload" href="/vendor/google/google-icons.woff2" '
'as="font" type="font/woff2" crossorigin>'
diff --git a/tests/test_webui_startup_assets.py b/tests/test_webui_startup_assets.py
index c7a61ac69..644f682e3 100644
--- a/tests/test_webui_startup_assets.py
+++ b/tests/test_webui_startup_assets.py
@@ -107,6 +107,7 @@ def test_only_the_icon_guard_stylesheet_blocks_application_paint() -> None:
assert index_html.count('<link rel="stylesheet"') == 1
assert '<link rel="stylesheet" href="vendor/google/google-icons.css">' in index_html
+ assert '<script type="module" src="/js/icons.js"></script>' in index_html
assert index_html.count('rel="preload" as="style"') == 19
assert index_html.count("onload=\"this.onload=null;this.rel='stylesheet'\"") == 19
assert 'id="startup-splash"' not in index_html
@@ -129,6 +130,10 @@ def test_startup_splash_is_handed_to_the_index_and_fades_when_ready() -> None:
assert 'document.addEventListener("webui-extensions-loaded"' in index_html
assert 'overlay.classList.add("startup-transition-leaving")' in index_html
assert 'document.fonts.load(\'24px "Material Symbols Outlined"\')' in index_html
+ assert (
+ 'document.addEventListener("DOMContentLoaded", loadMaterialIcons, { once: true })'
+ in index_html
+ )
assert 'localStorage.getItem("darkMode") === "false"' in index_html
assert "webuiExtensions: {{webui_extension_manifest}}" in index_html
assert 'manifestExtensionPaths("html", extensionPoint)' in extensions_js
diff --git a/webui/AGENTS.md b/webui/AGENTS.md
index 434d52b88..eed27c186 100644
--- a/webui/AGENTS.md
+++ b/webui/AGENTS.md
@@ -24,7 +24,7 @@
- Frontend extension breakpoints use `<x-extension id="...">` and are loaded through `/js/extensions.js`.
- `sw.js` owns same-origin HTML/CSS/JavaScript caching. The self-contained splash fetches `/ui/index` and the gzip-compressed `/ui/asset-bundle` in parallel, installs the versioned worker, waits until the bundle is usable in memory, and then installs the rendered index into the current `/` document without navigation. The worker persists the whole prepared bundle as one Cache Storage response in the background and removes obsolete version caches. Eligible text bodies up to 512 KiB each may be embedded; unknown or runtime-computed text URLs use one ordinary backend request and are cached as the native response when their transferred body is at most 256 KiB. The worker does not parse imports, call a secondary graph endpoint, or perform compression. Worker, cache, bundle, and timeout failures fall through to the already-started backend document or ordinary backend asset request. Media, images, fonts, and manifests use normal browser HTTP caching.
- `splash.html` keeps its logo, styling, and bootstrap logic self-contained. Before replacing the document, it carries its current overlay markup into the rendered index. `index.html` owns the matching inline critical overlay style and fades that same visual overlay after initial component/extension readiness, with a bounded failure timeout; it must not contain duplicate static overlay markup. Icon-font preloading begins when the index is placed behind the overlay, continues independently behind square transparent placeholders, and must neither compete with the startup bundle nor delay the application reveal. `safe.html` must remain self-contained: its first phase unregisters all service workers for the origin, then replaces itself with the directly rendered `/safe` phase without fetching the bundle or registering a worker. The direct phase repeats unregistration defensively but does not initialize a worker; returning to `/` may install the current worker again. The rendered index removes only the internal safe-mode query marker from `/safe` in browser history. Except for the tiny blocking icon guard stylesheet needed to prevent ligature layout shifts, initial application stylesheets remain non-render-blocking.
-- Material Symbols use the local WOFF2 font with a TTF fallback. Their shared vendor CSS constrains every ligature box to a clipped 1:1 em square and keeps it transparent until the font is confirmed, so slow or failed fonts cannot expose icon-name text or shift surrounding layout.
+- `js/icons.js` owns the native `<x-icon>` element. First-party WebUI and bundled-plugin markup must use `<x-icon name="lowercase_snake_case"></x-icon>` for static Material Symbols and `:name="expression"` for Alpine-driven names; do not put ligature text inside the element or author new `.material-symbols-outlined` spans. The element uses the single local WOFF2 font rather than per-icon SVG requests, validates names, defaults unlabeled icons to `aria-hidden="true"`, and retains the legacy Material class internally so established selectors continue to apply. The shared vendor CSS constrains both `<x-icon>` and legacy ligature spans to a clipped 1:1 em square and keeps them transparent until the icon face is confirmed after the installed application document finishes parsing. `.material-symbols-outlined` and `.material-icons-outlined` spans remain supported for third-party plugin compatibility but are not the first-party authoring API.
- Component HTML loaded by the shared loader may include `<title>`, module scripts, body content, and scoped styles; modal content uses the same loader path.
- Do not bypass WebSocket origin/auth/CSRF assumptions from frontend code.
- Avoid editing vendored files unless intentionally updating the vendor asset.
diff --git a/webui/components/AGENTS.md b/webui/components/AGENTS.md
index 606f4ab65..2eeb16e11 100644
--- a/webui/components/AGENTS.md
+++ b/webui/components/AGENTS.md
@@ -27,6 +27,7 @@
- Store state can be read as `$store.name` in templates and through direct module imports in JavaScript; avoid `window.Alpine.store()` lookups in component code.
- Use `globalThis.xAttrs(element)` only for explicit parent `<x-component>` attribute inheritance.
- Use shared API, modal, notification, confirmation, and store helpers instead of ad hoc globals.
+- Author Material Symbols as empty `<x-icon name="lowercase_snake_case"></x-icon>` elements. Bind changing icons through `:name`, keep accessible text on the owning control, and do not add new ligature-text spans or `x-text` icon bindings.
- Components that use polling directives may use `x-every-second`, `x-every-minute`, or `x-every-hour` only while mounted.
- Use `$confirmClick` for destructive two-click confirmations where the existing UI pattern fits.
- Name component files `feature-name.html` and stores `feature-store.js` or `feature-name-store.js`.
diff --git a/webui/components/canvas/right-canvas.html b/webui/components/canvas/right-canvas.html
index fc4a9a575..08b26e4d3 100644
--- a/webui/components/canvas/right-canvas.html
+++ b/webui/components/canvas/right-canvas.html
@@ -35,7 +35,7 @@
:aria-pressed="$store.rightCanvas.isOpen.toString()"
@click="$store.rightCanvas.toggleCanvas()"
>
- <span class="material-symbols-outlined">dock_to_right</span>
+ <x-icon name="dock_to_right"></x-icon>
</button>
<div class="right-canvas-rail-separator" aria-hidden="true"></div>
@@ -53,7 +53,7 @@
<img class="right-canvas-surface-image" :src="surface.image" alt="" aria-hidden="true">
</template>
<template x-if="!surface.image">
- <span class="material-symbols-outlined" x-text="surface.icon"></span>
+ <x-icon :name="surface.icon"></x-icon>
</template>
</button>
</template>
@@ -79,7 +79,7 @@
<img class="right-canvas-surface-image" :src="surface.image" alt="" aria-hidden="true">
</template>
<template x-if="!surface.image">
- <span class="material-symbols-outlined" aria-hidden="true" x-text="surface.icon"></span>
+ <x-icon aria-hidden="true" :name="surface.icon"></x-icon>
</template>
<span class="right-canvas-tab-label" x-text="surface.title"></span>
</button>
@@ -97,7 +97,7 @@
x-show="$store.rightCanvas.currentSurfaceCanUndock()"
@click="$store.rightCanvas.undockActiveSurface()"
>
- <span class="material-symbols-outlined">open_in_new</span>
+ <x-icon name="open_in_new"></x-icon>
</button>
<button
type="button"
@@ -106,7 +106,7 @@
aria-label="Close canvas"
@click="$store.rightCanvas.close()"
>
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<x-extension id="right-canvas-toolbar-end"></x-extension>
</div>
@@ -117,7 +117,7 @@
<template x-if="$store.rightCanvas.panelSurfaces.length === 0">
<div class="right-canvas-empty-state">
<x-extension id="right-canvas-empty-state"></x-extension>
- <span class="material-symbols-outlined">space_dashboard</span>
+ <x-icon name="space_dashboard"></x-icon>
<span>Canvas</span>
</div>
</template>
diff --git a/webui/components/chat/input/bottom-actions.html b/webui/components/chat/input/bottom-actions.html
index bc8bc254f..6243028af 100644
--- a/webui/components/chat/input/bottom-actions.html
+++ b/webui/components/chat/input/bottom-actions.html
@@ -45,7 +45,7 @@
class="chat-bottom-menu-item"
@click.stop="$refs.chatFolderInput?.click()"
>
- <span class="material-symbols-outlined" aria-hidden="true">drive_folder_upload</span>
+ <x-icon aria-hidden="true" name="drive_folder_upload"></x-icon>
<span>Attach folder</span>
</button>
@@ -54,7 +54,7 @@
class="chat-bottom-menu-item"
@click="$store.mcpServersStore.openFromComposer($store.chats.selectedContext?.project?.name || ''); $store.chatInput.closeChatMoreMenu()"
>
- <span class="material-symbols-outlined" aria-hidden="true">hub</span>
+ <x-icon aria-hidden="true" name="hub"></x-icon>
<span>MCP Servers</span>
</button>
@@ -64,7 +64,7 @@
@click="$confirmClick($event, () => { $store.chats.resetChat(); $store.chatInput.closeChatMoreMenu() })"
:disabled="!$store.chats.selected"
>
- <span class="material-symbols-outlined" aria-hidden="true">delete_sweep</span>
+ <x-icon aria-hidden="true" name="delete_sweep"></x-icon>
<span>Clear Chat</span>
</button>
diff --git a/webui/components/chat/input/chat-bar-input.html b/webui/components/chat/input/chat-bar-input.html
index 51f34e53f..1d4abab0b 100644
--- a/webui/components/chat/input/chat-bar-input.html
+++ b/webui/components/chat/input/chat-bar-input.html
@@ -17,7 +17,7 @@
@keydown.escape.window="$store.chatInput.closeChatMoreMenu()">
<button type="button" class="chat-more-trigger" @click.stop="$store.chatInput.toggleChatMoreMenu()"
:aria-expanded="$store.chatInput.chatMoreMenuOpen.toString()" aria-label="More actions">
- <span class="material-symbols-outlined" aria-hidden="true">add</span>
+ <x-icon aria-hidden="true" name="add"></x-icon>
</button>
<div class="chat-more-panel" x-show="$store.chatInput.chatMoreMenuOpen" x-transition style="display: none;">
<x-component path="chat/input/bottom-actions.html"></x-component>
@@ -39,7 +39,7 @@
:class="{ 'progress-active': $store.chatInput.progressActive }" aria-hidden="true" style="display: none;">
</div>
<button id="expand-button" @click="$store.fullScreenInputModal.openModal()" aria-label="Expand input">
- <span class="material-symbols-outlined" aria-hidden="true">fullscreen</span>
+ <x-icon aria-hidden="true" name="fullscreen"></x-icon>
</button>
</div>
@@ -48,7 +48,7 @@
<button class="chat-button" id="send-button" @click="$store.chatInput.activateSendButton()"
:class="$store.chatInput.sendButtonClass" :title="$store.chatInput.sendButtonTitle"
:aria-label="$store.chatInput.sendButtonTitle">
- <span class="material-symbols-outlined" x-text="$store.chatInput.sendButtonIcon"></span>
+ <x-icon :name="$store.chatInput.sendButtonIcon"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/chat/input/input-store.js b/webui/components/chat/input/input-store.js
index a06cd6e7e..2ffe47875 100644
--- a/webui/components/chat/input/input-store.js
+++ b/webui/components/chat/input/input-store.js
@@ -37,8 +37,8 @@ function convertIconMarkersToHtml(value) {
html += escapeHTML(text.slice(lastIndex, offset));
const tooltip = unescapeIconTooltip(tooltipBlock) || iconName;
html += (
- `<span class="icon material-symbols-outlined chat-input-progress-icon" ` +
- `title="${escapeHTML(tooltip)}">${escapeHTML(iconName)}</span>`
+ `<x-icon class="icon chat-input-progress-icon" ` +
+ `title="${escapeHTML(tooltip)}" name="${escapeHTML(iconName)}"></x-icon>`
);
lastIndex = offset + match.length;
return match;
diff --git a/webui/components/chat/input/progress.html b/webui/components/chat/input/progress.html
index 051e3398d..6f9711df0 100644
--- a/webui/components/chat/input/progress.html
+++ b/webui/components/chat/input/progress.html
@@ -35,7 +35,7 @@
x-show="speaking"
>
<span id="stop-speech" @click="window.ttsService?.stop?.()" style="cursor: pointer" title="Stop Speech" aria-label="Stop Speech">
- <span class="icon material-symbols-outlined">volume_off</span>
+ <x-icon class="icon" name="volume_off"></x-icon>
</span>
</h4>
<x-extension id="chat-nav-after"></x-extension>
diff --git a/webui/components/chat/message-queue/message-queue.html b/webui/components/chat/message-queue/message-queue.html
index 6a6b9b0f4..b17dd6a2b 100644
--- a/webui/components/chat/message-queue/message-queue.html
+++ b/webui/components/chat/message-queue/message-queue.html
@@ -14,10 +14,10 @@
</span>
<div class="queue-header-actions">
<button class="queue-header-btn" @click="$store.messageQueue.sendAll()" title="Send all">
- <span class="material-symbols-outlined">keyboard_double_arrow_right</span>
+ <x-icon name="keyboard_double_arrow_right"></x-icon>
</button>
<button class="queue-header-btn delete" @click="$store.messageQueue.clearQueue()" title="Clear all">
- <span class="material-symbols-outlined">delete_sweep</span>
+ <x-icon name="delete_sweep"></x-icon>
</button>
</div>
</div>
@@ -47,10 +47,10 @@
</div>
<div class="queue-item-actions">
<button class="queue-action-btn send" @click="$store.messageQueue.sendItem(item.id)" title="Send now">
- <span class="material-symbols-outlined">send</span>
+ <x-icon name="send"></x-icon>
</button>
<button class="queue-action-btn delete" @click="$store.messageQueue.removeItem(item.id)" title="Remove">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/chat/model-setup-gate.html b/webui/components/chat/model-setup-gate.html
index a0e5c7bce..b9b3d76ee 100644
--- a/webui/components/chat/model-setup-gate.html
+++ b/webui/components/chat/model-setup-gate.html
@@ -10,7 +10,7 @@
<section class="model-gate" x-create="$store.modelGate.onCardCreate()">
<template x-if="$store.modelGate.connected">
<div class="model-gate-chip">
- <span class="material-symbols-outlined" aria-hidden="true">check_circle</span>
+ <x-icon aria-hidden="true" name="check_circle"></x-icon>
<span x-text="$store.modelGate.introText"></span>
</div>
</template>
@@ -25,7 +25,7 @@
class="model-gate-option"
@click="$store.modelGate.openAdvancedModelConfiguration()">
<span class="model-gate-option-title">
- <span class="material-symbols-outlined" aria-hidden="true">tune</span>
+ <x-icon aria-hidden="true" name="tune"></x-icon>
<span>Choose models</span>
</span>
<span class="model-gate-option-sub">Select Main and Utility models</span>
@@ -38,7 +38,7 @@
:class="{ selected: $store.modelGate.choice === 'cloud' }"
@click="$store.modelGate.openOnboarding('cloud')">
<span class="model-gate-option-title">
- <span class="material-symbols-outlined" aria-hidden="true">cloud</span>
+ <x-icon aria-hidden="true" name="cloud"></x-icon>
<span>Cloud provider</span>
</span>
<span class="model-gate-option-sub">Connect with an API key</span>
@@ -48,7 +48,7 @@
:class="{ selected: $store.modelGate.choice === 'account' }"
@click="$store.modelGate.openOnboarding('account')">
<span class="model-gate-option-title">
- <span class="material-symbols-outlined" aria-hidden="true">account_circle</span>
+ <x-icon aria-hidden="true" name="account_circle"></x-icon>
<span>AI account</span>
</span>
<span class="model-gate-option-sub">Codex, Copilot, Gemini, Grok</span>
@@ -58,7 +58,7 @@
:class="{ selected: $store.modelGate.choice === 'local' }"
@click="$store.modelGate.openOnboarding('local')">
<span class="model-gate-option-title">
- <span class="material-symbols-outlined" aria-hidden="true">memory</span>
+ <x-icon aria-hidden="true" name="memory"></x-icon>
<span>Local model</span>
</span>
<span class="model-gate-option-sub">Runs on your machine</span>
diff --git a/webui/components/messages/AGENTS.md b/webui/components/messages/AGENTS.md
index d2f71c1d9..6c5b93130 100644
--- a/webui/components/messages/AGENTS.md
+++ b/webui/components/messages/AGENTS.md
@@ -21,6 +21,7 @@
- Preference-driven process detail modes must await the same materialization path as manual expansion and accept an explicit chat-history target for off-screen window staging. `STEP` opens only the current non-utility step at the live tail; historical windows must not invent a current step at their boundary.
- Keep oversized standalone replay bodies and key/value tables in a bounded preview state until the user expands them; collapsing must remove the full body again.
- Message-window boundaries must not split process groups. Groups with more than 50 steps initially render their newest 50 steps and prepend earlier steps in 50-step increments through the group-local `Show more` control while retaining stable full-group header metrics.
+- The process-group `Show more` paging control uses the same understated, non-underlined typography and hover-opacity treatment as message-body expansion controls.
- A root response may attach only to a substantive process render unit. Utility-prefixed units remain visible even while utility steps are hidden; standalone utility-only groups remain separate and hidden while utility messages are disabled, and completed groups must not absorb later utility records. Determine this from full-log render metadata, not partially mounted DOM children.
## Work Guidance
diff --git a/webui/components/messages/action-buttons/simple-action-buttons.js b/webui/components/messages/action-buttons/simple-action-buttons.js
index 57d595984..3a1fe03c0 100644
--- a/webui/components/messages/action-buttons/simple-action-buttons.js
+++ b/webui/components/messages/action-buttons/simple-action-buttons.js
@@ -1,5 +1,7 @@
// Message Action Buttons - DOM helpers for message action buttons
+import { ICON_SELECTOR, setIconName } from "/js/icons.js";
+
const ACTION_ICON_MAP = {
detail: "open_in_full",
speak: "volume_up",
@@ -45,14 +47,14 @@ export async function copyToClipboard(text) {
* Show visual feedback on a button (success/error state)
*/
export function showButtonFeedback(button, success, originalIcon) {
- const icon = button.querySelector(".material-symbols-outlined");
+ const icon = button.querySelector(ICON_SELECTOR);
if (!icon) return;
- icon.textContent = success ? "check" : "error";
+ setIconName(icon, success ? "check" : "error");
button.classList.add(success ? "success" : "error");
setTimeout(() => {
- icon.textContent = originalIcon;
+ setIconName(icon, originalIcon);
button.classList.remove("success", "error");
}, 1000);
}
@@ -78,7 +80,9 @@ export function createActionButton(icon, text = "", handler = null) {
}
if (iconName) {
- button.innerHTML = `<span class="material-symbols-outlined">${iconName}</span>`;
+ const iconElement = document.createElement("x-icon");
+ iconElement.name = iconName;
+ button.appendChild(iconElement);
} else if (text) {
button.textContent = text;
}
diff --git a/webui/components/messages/process-group/process-group.css b/webui/components/messages/process-group/process-group.css
index 0ae778933..662863d62 100644
--- a/webui/components/messages/process-group/process-group.css
+++ b/webui/components/messages/process-group/process-group.css
@@ -388,6 +388,8 @@
.process-group-show-more {
align-self: flex-start;
appearance: none;
+ display: inline-flex;
+ align-items: center;
border: 0;
background: transparent;
color: var(--color-text-muted);
@@ -395,13 +397,14 @@
font-family: var(--font-family-main);
font-size: var(--font-size-xs);
padding: var(--spacing-xs) 0;
- text-decoration: underline;
- text-underline-offset: 0.15em;
+ opacity: 0.7;
+ text-decoration: none;
+ transition: opacity 0.15s ease;
}
.process-group-show-more:hover,
.process-group-show-more:focus-visible {
- color: var(--color-text);
+ opacity: 1;
}
/* Individual Process Step */
diff --git a/webui/components/modals/file-browser/file-browser.html b/webui/components/modals/file-browser/file-browser.html
index 9ce09a0a7..f9fa46164 100644
--- a/webui/components/modals/file-browser/file-browser.html
+++ b/webui/components/modals/file-browser/file-browser.html
@@ -45,7 +45,7 @@
aria-label="Navigate up"
title="Navigate up"
>
- <span class="material-symbols-outlined" aria-hidden="true">arrow_upward</span>
+ <x-icon aria-hidden="true" name="arrow_upward"></x-icon>
<span class="nav-button-label">Up</span>
</button>
<div class="path-input-shell" :class="{ 'has-error': $store.fileBrowser.pathError }">
@@ -67,7 +67,7 @@
:disabled="$store.fileBrowser.isPathSubmitting || $store.fileBrowser.isLoading"
aria-label="Go to directory"
>
- <span class="material-symbols-outlined">arrow_forward</span>
+ <x-icon name="arrow_forward"></x-icon>
</button>
</div>
</form>
@@ -77,7 +77,7 @@
</div>
<div class="file-browser-toolbar">
<div class="file-search-shell">
- <span class="material-symbols-outlined file-search-icon" aria-hidden="true">search</span>
+ <x-icon class="file-search-icon" aria-hidden="true" name="search"></x-icon>
<input
type="search"
class="file-search-input"
@@ -94,7 +94,7 @@
aria-label="Clear search"
title="Clear search"
>
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
@@ -107,7 +107,7 @@
aria-label="New file"
title="New file"
>
- <span class="material-symbols-outlined" aria-hidden="true">note_add</span>
+ <x-icon aria-hidden="true" name="note_add"></x-icon>
</button>
<button
type="button"
@@ -117,7 +117,7 @@
aria-label="New folder"
title="New folder"
>
- <span class="material-symbols-outlined" aria-hidden="true">create_new_folder</span>
+ <x-icon aria-hidden="true" name="create_new_folder"></x-icon>
</button>
</div>
</div>
@@ -125,7 +125,7 @@
<div class="data-status-bar data-status-bar-standalone file-status-bar">
<div class="status-info">
<span class="status-item">
- <span class="material-symbols-outlined">folder</span>
+ <x-icon name="folder"></x-icon>
Total: <strong x-text="$store.fileBrowser.browser.entries.length"></strong>
</span>
<span class="status-separator">•</span>
@@ -154,7 +154,7 @@
:disabled="$store.fileBrowser.isBulkBusy"
title="Copy Selected Paths"
>
- <span class="material-symbols-outlined">content_copy</span>
+ <x-icon name="content_copy"></x-icon>
Copy Paths
</button>
@@ -165,7 +165,7 @@
:disabled="$store.fileBrowser.isBulkBusy"
title="Download Selected Items"
>
- <span class="material-symbols-outlined">folder_zip</span>
+ <x-icon name="folder_zip"></x-icon>
Download ZIP
</button>
@@ -176,7 +176,7 @@
:disabled="$store.fileBrowser.isBulkBusy"
title="Delete Selected Items"
>
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
Delete
</button>
@@ -187,7 +187,7 @@
:disabled="$store.fileBrowser.isBulkBusy"
title="Clear Selection"
>
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
Clear
</button>
</div>
@@ -240,7 +240,7 @@
:title="$store.fileBrowser.surfaceActionTitle(file)"
aria-label="Open in Editor"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.fileBrowser.surfaceActionIcon(file)"></span>
+ <x-icon aria-hidden="true" :name="$store.fileBrowser.surfaceActionIcon(file)"></x-icon>
</button>
<!-- Secondary single-item actions (Rename/...) are grouped under a dropdown -->
@@ -257,7 +257,7 @@
aria-label="More actions"
title="More actions"
>
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
<template x-teleport="body">
@@ -276,7 +276,7 @@
@click="$store.fileBrowser.openInSurface(file)"
:title="$store.fileBrowser.surfaceActionTitle(file)"
>
- <span class="material-symbols-outlined" x-text="$store.fileBrowser.surfaceActionIcon(file)"></span>
+ <x-icon :name="$store.fileBrowser.surfaceActionIcon(file)"></x-icon>
<span x-text="$store.fileBrowser.surfaceActionLabel(file)"></span>
</button>
@@ -286,7 +286,7 @@
x-show="!file.is_dir && file.size <= 1048576 && !$store.fileBrowser.canOpenInSurface(file)"
@click="$store.fileBrowser.openFileEditor(file)"
>
- <span class="material-symbols-outlined">file_open</span>
+ <x-icon name="file_open"></x-icon>
<span>Edit</span>
</button>
@@ -296,7 +296,7 @@
x-show="file.is_dir"
@click="$store.fileBrowser.downloadFile(file)"
>
- <span class="material-symbols-outlined">folder_zip</span>
+ <x-icon name="folder_zip"></x-icon>
<span>Download ZIP</span>
</button>
@@ -306,7 +306,7 @@
x-show="!file.is_dir && $store.fileBrowser.isArchive(file.name)"
@click="$store.fileBrowser.extractArchive(file)"
>
- <span class="material-symbols-outlined">unarchive</span>
+ <x-icon name="unarchive"></x-icon>
<span>Extract</span>
</button>
@@ -315,17 +315,17 @@
class="dropdown-item"
@click="$store.fileBrowser.openRenameModal(file)"
>
- <span class="material-symbols-outlined">drive_file_rename_outline</span>
+ <x-icon name="drive_file_rename_outline"></x-icon>
<span>Rename</span>
</button>
</div>
</template>
</div>
<button class="btn-icon-action" x-show="!file.is_dir" @click.stop="$store.fileBrowser.downloadFile(file)" title="Download file">
- <span class="material-symbols-outlined">download</span>
+ <x-icon name="download"></x-icon>
</button>
<button class="btn-icon-action danger" @click.stop="$confirmClick($event, () => $store.fileBrowser.deleteFile(file))" title="Delete item">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
</div>
@@ -340,7 +340,7 @@
<div class="no-files">
<div>No matching files found</div>
<button class="btn btn-cancel btn-clear-search" @click="$store.fileBrowser.clearSearch()">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
Clear
</button>
</div>
@@ -358,7 +358,7 @@
<div class="file-browser-picker-actions" x-show="$store.fileBrowser.isPickerMode()" style="display: none;">
<template x-if="$store.fileBrowser.isSaveAsPicker()">
<div class="picker-filename-field">
- <span class="material-symbols-outlined" aria-hidden="true">article</span>
+ <x-icon aria-hidden="true" name="article"></x-icon>
<input
type="text"
class="picker-filename-input"
diff --git a/webui/components/modals/image-viewer/image-viewer.html b/webui/components/modals/image-viewer/image-viewer.html
index 9fd5e02e4..d461ce1cc 100644
--- a/webui/components/modals/image-viewer/image-viewer.html
+++ b/webui/components/modals/image-viewer/image-viewer.html
@@ -45,13 +45,13 @@
<!-- Fixed zoom controls - OUTSIDE the canvas -->
<div class="zoom-controls">
<button type="button" @click="$store.imageViewer.zoomOut()" class="button zoom-btn">
- <span class="icon material-symbols-outlined">zoom_out</span>
+ <x-icon class="icon" name="zoom_out"></x-icon>
</button>
<button type="button" @click="$store.imageViewer.resetZoom()" class="button zoom-btn">
- <span class="icon material-symbols-outlined">home</span>
+ <x-icon class="icon" name="home"></x-icon>
</button>
<button type="button" @click="$store.imageViewer.zoomIn()" class="button zoom-btn">
- <span class="icon material-symbols-outlined">zoom_in</span>
+ <x-icon class="icon" name="zoom_in"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/modals/markdown/markdown-modal.html b/webui/components/modals/markdown/markdown-modal.html
index b692e1515..e588f2b45 100644
--- a/webui/components/modals/markdown/markdown-modal.html
+++ b/webui/components/modals/markdown/markdown-modal.html
@@ -14,7 +14,7 @@
class="md-modal-root">
<div x-show="$store.markdownModal.error" class="md-modal-error">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="$store.markdownModal.error"></span>
</div>
diff --git a/webui/components/modals/process-step-detail/process-step-detail.html b/webui/components/modals/process-step-detail/process-step-detail.html
index 6bf1accc6..0b31004c6 100644
--- a/webui/components/modals/process-step-detail/process-step-detail.html
+++ b/webui/components/modals/process-step-detail/process-step-detail.html
@@ -26,18 +26,18 @@
<button class="btn btn-action-header copy-all"
@click.stop="$store.stepDetail.copyToClipboard($store.stepDetail.formatStepForCopy($store.stepDetail.selectedStepForDetail))"
title="Copy Complete Step with Metadata">
- <span class="material-symbols-outlined">copy_all</span> All
+ <x-icon name="copy_all"></x-icon> All
</button>
<button class="btn btn-action-header copy-content"
@click.stop="$store.stepDetail.copyToClipboard($store.stepDetail.getStepPrimaryContent($store.stepDetail.selectedStepForDetail))"
title="Copy Raw LLM Response">
- <span class="material-symbols-outlined">content_copy</span> Content
+ <x-icon name="content_copy"></x-icon> Content
</button>
<button class="btn btn-action-header toggle-raw"
@click.stop="showRaw = !showRaw"
:class="{ 'active': showRaw }"
title="Toggle Raw JSON View">
- <span class="material-symbols-outlined">data_object</span>
+ <x-icon name="data_object"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/modals/scheduler/scheduler-task-editor.html b/webui/components/modals/scheduler/scheduler-task-editor.html
index 761e445a7..bd09a126f 100644
--- a/webui/components/modals/scheduler/scheduler-task-editor.html
+++ b/webui/components/modals/scheduler/scheduler-task-editor.html
@@ -143,7 +143,7 @@
<span x-text="$store.schedulerStore.formatDate(time)"></span>
<button @click.prevent="$store.schedulerStore.editingTask.plan.todo.splice(index, 1)"
class="scheduler-todo-remove">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</template>
@@ -159,7 +159,7 @@
placeholder="Select date and time">
<button @click.prevent="$store.schedulerStore.addPlannedTime('create')"
class="btn btn-ok scheduler-add-todo-button">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
Add Time
</button>
</div>
@@ -180,7 +180,7 @@
<button class="btn btn-action generate-token"
@click="$store.schedulerStore.editingTask.token = $store.schedulerStore.generateRandomToken()"
title="Generate Token">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
Generate
</button>
</div>
@@ -348,7 +348,7 @@
<span x-text="$store.schedulerStore.formatDate(time)"></span>
<button @click.prevent="$store.schedulerStore.editingTask.plan.todo.splice(index, 1)"
class="scheduler-todo-remove">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</template>
@@ -364,7 +364,7 @@
placeholder="Select date and time">
<button @click.prevent="$store.schedulerStore.addPlannedTime('edit')"
class="btn btn-ok scheduler-add-todo-button">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
Add Time
</button>
</div>
@@ -385,7 +385,7 @@
<button class="btn btn-action generate-token"
@click="$store.schedulerStore.editingTask.token = $store.schedulerStore.generateRandomToken()"
title="Generate Token">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
Generate
</button>
</div>
diff --git a/webui/components/modals/scheduler/scheduler-task-list.html b/webui/components/modals/scheduler/scheduler-task-list.html
index 5e39b5b3a..2f6a4c9dc 100644
--- a/webui/components/modals/scheduler/scheduler-task-list.html
+++ b/webui/components/modals/scheduler/scheduler-task-list.html
@@ -34,7 +34,7 @@
</div>
<button class="btn btn-ok btn-new-task" @click="$store.schedulerStore.startCreateTask()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
New Task
</button>
</div>
@@ -43,7 +43,7 @@
<div class="data-status-bar" x-show="!$store.schedulerStore.isLoading">
<div class="status-info">
<span class="status-item">
- <span class="material-symbols-outlined">schedule</span>
+ <x-icon name="schedule"></x-icon>
Total: <strong x-text="$store.schedulerStore.tasks.length"></strong>
</span>
<span class="status-separator">•</span>
@@ -56,7 +56,7 @@
<div class="status-pagination" x-show="$store.schedulerStore.totalPages > 1">
<button class="btn btn-icon" @click="$store.schedulerStore.prevPage()"
:disabled="$store.schedulerStore.currentPage === 1" title="Previous Page">
- <span class="material-symbols-outlined">chevron_left</span>
+ <x-icon name="chevron_left"></x-icon>
</button>
<div class="page-input-group">
<label>Page</label>
@@ -71,7 +71,7 @@
<button class="btn btn-icon" @click="$store.schedulerStore.nextPage()"
:disabled="$store.schedulerStore.currentPage === $store.schedulerStore.totalPages"
title="Next Page">
- <span class="material-symbols-outlined">chevron_right</span>
+ <x-icon name="chevron_right"></x-icon>
</button>
</div>
</div>
@@ -81,7 +81,7 @@
x-show="!$store.schedulerStore.isLoading && $store.schedulerStore.filteredTasks.length === 0">
<div>No tasks found</div>
<button class="btn btn-ok" @click="$store.schedulerStore.startCreateTask()">
- <span class="material-symbols-outlined">add</span>
+ <x-icon name="add"></x-icon>
Create your first task
</button>
</div>
@@ -135,19 +135,19 @@
<div class="actions-wrapper">
<button class="btn btn-action"
@click="$store.schedulerStore.runTask(task.uuid)" title="Run Task">
- <span class="material-symbols-outlined">play_arrow</span>
+ <x-icon name="play_arrow"></x-icon>
</button>
<button class="btn btn-action"
@click="$store.schedulerStore.resetTaskState(task.uuid)" title="Reset State">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
</button>
<button class="btn btn-action"
@click="$store.schedulerStore.startEditTask(task.uuid)" title="Edit Task">
- <span class="material-symbols-outlined">edit</span>
+ <x-icon name="edit"></x-icon>
</button>
<button class="btn btn-action delete"
@click="$confirmClick($event, () => $store.schedulerStore.deleteTask(task.uuid))" title="Delete Task">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
</button>
</div>
</td>
@@ -162,7 +162,7 @@
x-show="!$store.schedulerStore.isLoading && $store.schedulerStore.paginatedTasks.length > 5 && $store.schedulerStore.totalPages > 1">
<div class="status-info">
<span class="status-item">
- <span class="material-symbols-outlined">schedule</span>
+ <x-icon name="schedule"></x-icon>
Total: <strong x-text="$store.schedulerStore.tasks.length"></strong>
</span>
<span class="status-separator">•</span>
@@ -174,7 +174,7 @@
<div class="status-pagination">
<button class="btn btn-icon" @click="$store.schedulerStore.prevPage()"
:disabled="$store.schedulerStore.currentPage === 1" title="Previous Page">
- <span class="material-symbols-outlined">chevron_left</span>
+ <x-icon name="chevron_left"></x-icon>
</button>
<div class="page-input-group">
<label>Page</label>
@@ -189,7 +189,7 @@
<button class="btn btn-icon" @click="$store.schedulerStore.nextPage()"
:disabled="$store.schedulerStore.currentPage === $store.schedulerStore.totalPages"
title="Next Page">
- <span class="material-symbols-outlined">chevron_right</span>
+ <x-icon name="chevron_right"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/notifications/notification-icons.html b/webui/components/notifications/notification-icons.html
index 2beb22e5f..68aef89ff 100644
--- a/webui/components/notifications/notification-icons.html
+++ b/webui/components/notifications/notification-icons.html
@@ -16,7 +16,7 @@
@click="$store.notificationStore.openModal()"
title="View Notifications">
<div class="notification-icon">
- <span class="material-symbols-outlined">notifications</span>
+ <x-icon name="notifications"></x-icon>
</div>
<span x-show="$store.notificationStore.unreadPrioCount > 0"
class="notification-badge"
diff --git a/webui/components/notifications/notification-modal.html b/webui/components/notifications/notification-modal.html
index f36e3747a..d301d653c 100644
--- a/webui/components/notifications/notification-modal.html
+++ b/webui/components/notifications/notification-modal.html
@@ -17,7 +17,7 @@
<button class="notification-action" @click="$store.notificationStore?.clearAll()"
:disabled="!$store.notificationStore || $store.notificationStore.getDisplayNotifications().length === 0"
title="Clear All">
- <span class="material-symbols-outlined">delete</span> Clear All
+ <x-icon name="delete"></x-icon> Clear All
</button>
</div>
</div>
@@ -71,7 +71,7 @@
<div class="notification-empty"
x-show="!$store.notificationStore || $store.notificationStore.getDisplayNotifications().length === 0">
<div class="notification-empty-icon">
- <span class="material-symbols-outlined">notifications</span>
+ <x-icon name="notifications"></x-icon>
</div>
<p>No notifications to display</p>
</div>
diff --git a/webui/components/notifications/notification-store.js b/webui/components/notifications/notification-store.js
index 24e61b9b4..db1f5d712 100644
--- a/webui/components/notifications/notification-store.js
+++ b/webui/components/notifications/notification-store.js
@@ -451,7 +451,7 @@ const model = {
progress: "hourglass_empty",
};
const iconName = icons[type] || "info";
- return `<span class="material-symbols-outlined">${iconName}</span>`;
+ return `<x-icon name="${iconName}"></x-icon>`;
},
// Create notification via backend (will appear via polling)
diff --git a/webui/components/notifications/notification-toast-stack.html b/webui/components/notifications/notification-toast-stack.html
index 019d8d073..862f811fe 100644
--- a/webui/components/notifications/notification-toast-stack.html
+++ b/webui/components/notifications/notification-toast-stack.html
@@ -44,7 +44,7 @@
<button class="toast-dismiss"
@click.stop="$store.notificationStore.dismissToast(toast.toastId)"
title="Dismiss">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</template>
diff --git a/webui/components/plugins/list/plugin-execute-modal.html b/webui/components/plugins/list/plugin-execute-modal.html
index 76e127af9..03763c16b 100644
--- a/webui/components/plugins/list/plugin-execute-modal.html
+++ b/webui/components/plugins/list/plugin-execute-modal.html
@@ -14,7 +14,7 @@
<div class="plugin-execute-idle"
x-show="!$store.pluginExecuteStore.running && $store.pluginExecuteStore.exitCode === null && !$store.pluginExecuteStore.output">
- <span class="material-symbols-outlined idle-icon">terminal</span>
+ <x-icon class="idle-icon" name="terminal"></x-icon>
<div class="idle-text">
<span class="idle-headline">Press <strong>Run</strong> to execute <strong x-text="$store.pluginExecuteStore.pluginDisplayName"></strong></span>
<span class="idle-sub">This will run the plugin's <code>execute.py</code> script.</span>
@@ -35,15 +35,14 @@
</div>
<div class="plugin-execute-status" x-show="$store.pluginExecuteStore.running">
- <span class="material-symbols-outlined spin">progress_activity</span>
+ <x-icon class="spin" name="progress_activity"></x-icon>
<span>Running execute.py...</span>
</div>
<div class="plugin-execute-exit" x-show="!$store.pluginExecuteStore.running && $store.pluginExecuteStore.exitCode !== null">
- <span class="material-symbols-outlined"
+ <x-icon
:class="$store.pluginExecuteStore.exitCode === 0 ? 'exit-ok' : 'exit-err'"
- x-text="$store.pluginExecuteStore.exitCode === 0 ? 'check_circle' : 'error'">
- </span>
+ :name="$store.pluginExecuteStore.exitCode === 0 ? 'check_circle' : 'error'"></x-icon>
<span x-text="$store.pluginExecuteStore.exitCode === 0 ? 'Completed successfully (exit 0)' : 'Exited with code ' + $store.pluginExecuteStore.exitCode"></span>
</div>
@@ -59,7 +58,7 @@
x-data
:disabled="$store.pluginExecuteStore?.running"
@click="$store.pluginExecuteStore?.run()">
- <span class="icon material-symbols-outlined">play_arrow</span>
+ <x-icon class="icon" name="play_arrow"></x-icon>
<span x-text="$store.pluginExecuteStore?.exitCode !== null || $store.pluginExecuteStore?.output ? 'Rerun' : 'Run'">Run</span>
</button>
<button class="btn btn-cancel footer-btn" @click="window.closeModal?.()">Close</button>
diff --git a/webui/components/plugins/list/plugin-list.html b/webui/components/plugins/list/plugin-list.html
index 67797ae95..e5e95966d 100644
--- a/webui/components/plugins/list/plugin-list.html
+++ b/webui/components/plugins/list/plugin-list.html
@@ -45,7 +45,7 @@
aria-controls="plugins-plugin-hub"
:aria-selected="$store.pluginListStore.activeTab === 'pluginHub'"
@click="$store.pluginListStore.setTab('pluginHub')">
- <span class="material-symbols-outlined pi-tab-icon">store</span> Browse
+ <x-icon class="pi-tab-icon" name="store"></x-icon> Browse
</button>
</li>
</ul>
@@ -65,7 +65,7 @@
title="Refresh"
@click="$store.pluginListStore.refresh()"
:disabled="$store.pluginListStore.loading">
- <span class="icon material-symbols-outlined">refresh</span> Refresh
+ <x-icon class="icon" name="refresh"></x-icon> Refresh
</button>
<x-extension id="plugins-list-header-buttons"></x-extension>
@@ -102,7 +102,7 @@
class="button"
title="Open"
@click="$store.pluginListStore.openPlugin(plugin)">
- <span class="icon material-symbols-outlined">dashboard</span> Open
+ <x-icon class="icon" name="dashboard"></x-icon> Open
</button>
</template>
<template x-if="plugin.has_config_screen">
@@ -110,7 +110,7 @@
class="button"
title="Config"
@click="$store.pluginListStore.openPluginConfig(plugin)">
- <span class="icon material-symbols-outlined">settings</span> Config
+ <x-icon class="icon" name="settings"></x-icon> Config
</button>
</template>
<template x-if="plugin.has_execute_script">
@@ -118,7 +118,7 @@
class="button"
title="Execute"
@click="$store.pluginListStore.openPluginExecute(plugin)">
- <span class="icon material-symbols-outlined">terminal</span> Execute
+ <x-icon class="icon" name="terminal"></x-icon> Execute
</button>
</template>
<button type="button"
@@ -126,7 +126,7 @@
title="Info"
aria-label="Info"
@click="$store.pluginListStore.openPluginInfo(plugin)">
- <span class="icon material-symbols-outlined">info</span>
+ <x-icon class="icon" name="info"></x-icon>
</button>
<div class="dropdown plugin-actions-dropdown"
@click.outside="actionsOpen = false"
@@ -137,7 +137,7 @@
aria-label="More actions"
@click.stop="actionsOpen = !actionsOpen"
:aria-expanded="actionsOpen.toString()">
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
<div class="dropdown-menu"
x-show="actionsOpen"
@@ -149,7 +149,7 @@
class="dropdown-item"
title="README"
@click="$store.pluginListStore.openPluginDoc(plugin, 'readme'); actionsOpen = false">
- <span class="material-symbols-outlined">description</span>
+ <x-icon name="description"></x-icon>
<span>README</span>
</button>
</template>
@@ -158,7 +158,7 @@
class="dropdown-item"
title="License"
@click="$store.pluginListStore.openPluginDoc(plugin, 'license'); actionsOpen = false">
- <span class="material-symbols-outlined">gavel</span>
+ <x-icon name="gavel"></x-icon>
<span>License</span>
</button>
</template>
@@ -168,7 +168,7 @@
class="dropdown-item plugin-dropdown-delete"
title="Delete"
@click="$confirmClick($event, () => { $store.pluginListStore.deletePlugin(plugin); actionsOpen = false; })">
- <span class="material-symbols-outlined">delete</span>
+ <x-icon name="delete"></x-icon>
<span>Delete</span>
</button>
</template>
diff --git a/webui/components/plugins/plugin-configs.html b/webui/components/plugins/plugin-configs.html
index 5715d73c0..61446a5c2 100644
--- a/webui/components/plugins/plugin-configs.html
+++ b/webui/components/plugins/plugin-configs.html
@@ -17,12 +17,12 @@
<div x-create="context.loadConfigList()" class="plugin-configs-container">
<div x-show="context.configsError" class="plugin-configs-error">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="context.configsError"></span>
</div>
<div x-show="context.isListingConfigs" class="plugin-configs-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading configurations...</span>
</div>
@@ -49,11 +49,11 @@
<div class="plugin-configs-actions">
<button type="button" class="button" @click="context.switchToConfig(cfg.project_name || '', cfg.agent_profile || '')">
- <span class="icon material-symbols-outlined">list</span>
+ <x-icon class="icon" name="list"></x-icon>
Show
</button>
<button type="button" class="button cancel icon-button" title="Delete" @click="$confirmClick($event, () => context.deleteConfig(cfg.project_name || '', cfg.agent_profile || ''))">
- <span class="icon material-symbols-outlined">delete</span>
+ <x-icon class="icon" name="delete"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/plugins/plugin-info.html b/webui/components/plugins/plugin-info.html
index 428f3a0fb..10d78be3a 100644
--- a/webui/components/plugins/plugin-info.html
+++ b/webui/components/plugins/plugin-info.html
@@ -83,7 +83,7 @@
aria-expanded="false"
aria-controls="plugin-info-readme-collapse">
<span>README</span>
- <span class="material-symbols-outlined plugin-info-readme-toggle-icon">expand_more</span>
+ <x-icon class="plugin-info-readme-toggle-icon" name="expand_more"></x-icon>
</button>
<div class="collapse" id="plugin-info-readme-collapse">
<div class="plugin-info-readme-body">
@@ -110,14 +110,14 @@
class="button"
title="Open plugin files"
@click="$store.pluginListStore.openPluginFolder($store.pluginListStore.selectedPlugin)">
- <span class="icon material-symbols-outlined">folder_open</span> Files
+ <x-icon class="icon" name="folder_open"></x-icon> Files
</button>
<template x-if="$store.pluginListStore.selectedPlugin.pluginHub?.key">
<button type="button"
class="button"
title="Open in Plugin Hub"
@click="$store.pluginListStore.openPluginHub($store.pluginListStore.selectedPlugin)">
- <span class="icon material-symbols-outlined">storefront</span> Hub
+ <x-icon class="icon" name="storefront"></x-icon> Hub
</button>
</template>
</div>
diff --git a/webui/components/plugins/plugin-settings.html b/webui/components/plugins/plugin-settings.html
index 75c22f0e5..49251f57c 100644
--- a/webui/components/plugins/plugin-settings.html
+++ b/webui/components/plugins/plugin-settings.html
@@ -88,27 +88,27 @@
</label>
<button type="button" class="button plugin-settings-toolbar-button" title="Show existing configurations" @click="context.openConfigListModal()">
- <span class="icon material-symbols-outlined">list</span>
+ <x-icon class="icon" name="list"></x-icon>
</button>
</div>
</div>
<div x-show="context.scopeMismatchMessage" class="plugin-settings-scope-info">
- <span class="material-symbols-outlined">info</span>
+ <x-icon name="info"></x-icon>
<span x-text="context.scopeMismatchMessage"></span>
</div>
</div>
<!-- Error -->
<div x-show="context.error" class="plugin-settings-error">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="context.error"></span>
</div>
<!-- Loading -->
<div x-show="context.isLoading" class="plugin-settings-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading settings...</span>
</div>
diff --git a/webui/components/plugins/toggle/plugin-toggles.html b/webui/components/plugins/toggle/plugin-toggles.html
index 5f45caca4..8f22e82fd 100644
--- a/webui/components/plugins/toggle/plugin-toggles.html
+++ b/webui/components/plugins/toggle/plugin-toggles.html
@@ -11,12 +11,12 @@
<div x-create="$store.pluginToggle.loadConfigs()" class="plugin-configs-container">
<div x-show="$store.pluginToggle.error" class="plugin-configs-error">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="$store.pluginToggle.error"></span>
</div>
<div x-show="$store.pluginToggle.isLoading" class="plugin-configs-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading configurations...</span>
</div>
@@ -47,11 +47,11 @@
<div class="plugin-configs-actions">
<button type="button" class="button" @click="$store.pluginToggle.switchToConfig(cfg.project_name || '', cfg.agent_profile || '')">
- <span class="icon material-symbols-outlined">edit</span>
+ <x-icon class="icon" name="edit"></x-icon>
Edit
</button>
<button type="button" class="button cancel icon-button" title="Delete" @click="$confirmClick($event, () => $store.pluginToggle.deleteConfig(cfg.path))">
- <span class="icon material-symbols-outlined">delete</span>
+ <x-icon class="icon" name="delete"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/projects/project-edit-basic-data.html b/webui/components/projects/project-edit-basic-data.html
index bd43678cf..7ebd1c96d 100644
--- a/webui/components/projects/project-edit-basic-data.html
+++ b/webui/components/projects/project-edit-basic-data.html
@@ -21,7 +21,7 @@
<div class="projects-input-with-button-wrapper">
<input class="projects-form-input projects-disabled" type="text" x-model="$store.projects.selectedProject.name" disabled>
<button class="button icon-button" @click="$store.projects.browseSelected()">
- <span class="icon material-symbols-outlined">folder</span>
+ <x-icon class="icon" name="folder"></x-icon>
<span>Browse</span>
</button>
</div>
@@ -63,7 +63,7 @@
<template x-if="!$store.projects.selectedProject._meta.creating && $store.projects.selectedProject.git_status?.is_git_repo">
<div class="projects-form-group git-status-section">
<label class="projects-form-label">
- <span class="material-symbols-outlined git-icon">commit</span>
+ <x-icon class="git-icon" name="commit"></x-icon>
Git Status
</label>
<div class="git-status-card">
@@ -71,13 +71,13 @@
<template x-if="$store.projects.selectedProject.git_status.remote_url">
<div class="git-status-row">
<span class="git-status-label">
- <span class="material-symbols-outlined">link</span>
+ <x-icon name="link"></x-icon>
Repository
</span>
<div class="git-status-value-with-action">
<span class="git-status-value git-url" x-text="$store.projects.selectedProject.git_status.remote_url"></span>
<a class="git-action-link" :href="$store.projects.selectedProject.git_status.remote_url" target="_blank" rel="noopener noreferrer" title="Open in browser">
- <span class="material-symbols-outlined">open_in_new</span>
+ <x-icon name="open_in_new"></x-icon>
</a>
</div>
</div>
@@ -86,7 +86,7 @@
<!-- Branch -->
<div class="git-status-row">
<span class="git-status-label">
- <span class="material-symbols-outlined">fork_right</span>
+ <x-icon name="fork_right"></x-icon>
Branch
</span>
<span class="git-status-value git-branch" x-text="$store.projects.selectedProject.git_status.current_branch"></span>
@@ -95,7 +95,7 @@
<!-- Status -->
<div class="git-status-row">
<span class="git-status-label">
- <span class="material-symbols-outlined">info</span>
+ <x-icon name="info"></x-icon>
Status
</span>
<span class="git-status-value"
@@ -118,7 +118,7 @@
<template x-if="$store.projects.selectedProject.git_status.last_commit">
<div class="git-status-row">
<span class="git-status-label">
- <span class="material-symbols-outlined">history</span>
+ <x-icon name="history"></x-icon>
Last Commit
</span>
<div class="git-commit-info">
diff --git a/webui/components/projects/project-edit-file-structure.html b/webui/components/projects/project-edit-file-structure.html
index 63652067a..7bc86e0eb 100644
--- a/webui/components/projects/project-edit-file-structure.html
+++ b/webui/components/projects/project-edit-file-structure.html
@@ -85,7 +85,7 @@
</div>
<button class="button icon-button" x-on:click="$store.projects.testFileStructure()">
- <span class="icon material-symbols-outlined">account_tree</span>
+ <x-icon class="icon" name="account_tree"></x-icon>
<span>Test output</span>
</button>
diff --git a/webui/components/projects/project-edit-instructions.html b/webui/components/projects/project-edit-instructions.html
index f76c7a64d..66c09cffc 100644
--- a/webui/components/projects/project-edit-instructions.html
+++ b/webui/components/projects/project-edit-instructions.html
@@ -55,7 +55,7 @@
<span class="projects-form-description">Currently there are <strong><span
x-text="$store.projects.selectedProject.instruction_files_count || 0"></span></strong> instruction files.</span>
<button class="button icon-button" x-on:click="$store.projects.browseInstructionFiles()">
- <span class="icon material-symbols-outlined">folder</span>
+ <x-icon class="icon" name="folder"></x-icon>
<span>Browse</span>
</button>
</div>
diff --git a/webui/components/projects/project-edit-llm.html b/webui/components/projects/project-edit-llm.html
index e657c5608..a96587a5c 100644
--- a/webui/components/projects/project-edit-llm.html
+++ b/webui/components/projects/project-edit-llm.html
@@ -23,7 +23,7 @@
</select>
<button type="button" class="button icon-button project-llm-edit-presets"
@click="$store.projects.editSelectedProjectPresets()">
- <span class="icon material-symbols-outlined">tune</span>
+ <x-icon class="icon" name="tune"></x-icon>
<span>Edit Presets</span>
</button>
</div>
diff --git a/webui/components/projects/project-edit-mcp.html b/webui/components/projects/project-edit-mcp.html
index 1154ab6ea..457aa9fd2 100644
--- a/webui/components/projects/project-edit-mcp.html
+++ b/webui/components/projects/project-edit-mcp.html
@@ -21,7 +21,7 @@
</p>
</div>
<button type="button" class="button" @click="$store.mcpServersStore.openProjectConfig($store.projects.selectedProject)">
- <span class="icon material-symbols-outlined">hub</span>
+ <x-icon class="icon" name="hub"></x-icon>
MCP Servers
</button>
</div>
diff --git a/webui/components/projects/project-edit-skills.html b/webui/components/projects/project-edit-skills.html
index d62ffad9b..fdf050029 100644
--- a/webui/components/projects/project-edit-skills.html
+++ b/webui/components/projects/project-edit-skills.html
@@ -16,11 +16,11 @@
<div class="skills-actions">
<button type="button" class="button" @click="$store.projects.openSelectedProjectSkillsImport()">
- <span class="icon material-symbols-outlined">upload</span>
+ <x-icon class="icon" name="upload"></x-icon>
Import Skills
</button>
<button type="button" class="button" @click="$store.projects.openSelectedProjectSkillsFolder()">
- <span class="icon material-symbols-outlined">folder_open</span>
+ <x-icon class="icon" name="folder_open"></x-icon>
Open Folder
</button>
</div>
diff --git a/webui/components/projects/project-edit.html b/webui/components/projects/project-edit.html
index 70e787a72..db8f64d6e 100644
--- a/webui/components/projects/project-edit.html
+++ b/webui/components/projects/project-edit.html
@@ -35,8 +35,8 @@
<div class="settings-advanced-section project-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/projects/project-list.html b/webui/components/projects/project-list.html
index 27a8bd77a..501571227 100644
--- a/webui/components/projects/project-list.html
+++ b/webui/components/projects/project-list.html
@@ -23,15 +23,15 @@
<strong x-text="$store.chats.selectedContext?.project?.name"></strong>
</span>
<button type="button" class="button cancel icon-button" title="Deactivate" @click="$store.projects.deactivateProject()">
- <span class="icon material-symbols-outlined">close</span>
+ <x-icon class="icon" name="close"></x-icon>
</button>
<button type="button" class="button icon-button" title="Edit" @click="$store.projects.openEditModal($store.chats.selectedContext?.project?.name)">
- <span class="icon material-symbols-outlined">edit</span>
+ <x-icon class="icon" name="edit"></x-icon>
</button>
</div>
<button @click="$store.projects.openCreateModal()" type="button"
class="button projects-create-btn-top">
- <span class="icon material-symbols-outlined">add</span> Create project
+ <x-icon class="icon" name="add"></x-icon> Create project
</button>
</div>
@@ -48,21 +48,21 @@
<div class="projects-project-card-actions">
<template x-if="$store.chats.selectedContext && project.name === $store.chats.selectedContext?.project?.name">
<button type="button" class="button cancel projects-project-card-state-action" title="Deactivate" @click="$store.projects.deactivateProject()">
- <span class="icon material-symbols-outlined">close</span>
+ <x-icon class="icon" name="close"></x-icon>
<span class="projects-project-card-action-text">Deactivate</span>
</button>
</template>
<template x-if="$store.chats.selectedContext && project.name !== $store.chats.selectedContext?.project?.name">
<button type="button" class="button confirm projects-project-card-state-action" title="Activate" @click="$store.projects.activateProject(project.name)">
- <span class="icon material-symbols-outlined">play_arrow</span>
+ <x-icon class="icon" name="play_arrow"></x-icon>
<span class="projects-project-card-action-text">Activate</span>
</button>
</template>
<button type="button" class="button icon-button" title="Edit" @click="$store.projects.openEditModal(project.name)">
- <span class="icon material-symbols-outlined">edit</span>
+ <x-icon class="icon" name="edit"></x-icon>
</button>
<button type="button" class="button cancel icon-button" title="Delete" @click="$confirmClick($event, () => $store.projects.deleteProject(project.name))">
- <span class="icon material-symbols-outlined">delete</span>
+ <x-icon class="icon" name="delete"></x-icon>
</button>
</div>
</div>
@@ -75,7 +75,7 @@
<div class="projects-project-card-title">There are no projects yet</div>
<div class="projects-no-projects-actions">
<button @click="$store.projects.openCreateModal()" type="button"
- class="button"><span class="icon material-symbols-outlined">add</span>Create project</button>
+ class="button"><x-icon class="icon" name="add"></x-icon>Create project</button>
</div>
</div>
</template>
diff --git a/webui/components/projects/project-selector.html b/webui/components/projects/project-selector.html
index 605e2678d..64a2a1205 100644
--- a/webui/components/projects/project-selector.html
+++ b/webui/components/projects/project-selector.html
@@ -15,29 +15,29 @@
<button @click="open = !open" type="button" class="button project-dropdown-button">
<span class="project-color-ball" :style="$store.chats.selectedContext.project.color ? { backgroundColor: $store.chats.selectedContext.project.color } : { border: '1px solid var(--color-border)' }"></span>
<span x-text="$store.chats.selectedContext.project.title"></span>
- <span class="icon material-symbols-outlined">arrow_drop_down</span>
+ <x-icon class="icon" name="arrow_drop_down"></x-icon>
</button>
</template>
<template x-if="!$store.chats.selectedContext.project?.name">
<button @click="open = !open" type="button" class="button project-dropdown-button">
No project
- <span class="icon material-symbols-outlined">arrow_drop_down</span>
+ <x-icon class="icon" name="arrow_drop_down"></x-icon>
</button>
</template>
<div x-show="open" x-init="$store.projects.loadProjectsList()" class="dropdown-menu" style="display: none;" x-transition>
<button type="button" @click="$store.projects.openProjectsModal(); open = false;" class="dropdown-item">
- <span class="icon material-symbols-outlined">snippet_folder</span>
+ <x-icon class="icon" name="snippet_folder"></x-icon>
<span>Projects</span>
</button>
<button type="button" x-show="$store.chats.selectedContext.project?.name" @click="$store.projects.editActiveProject(); open = false;" class="dropdown-item">
- <span class="icon material-symbols-outlined">edit</span>
+ <x-icon class="icon" name="edit"></x-icon>
<span>Edit <span x-text="$store.chats.selectedContext.project?.title"></span></span>
</button>
<button type="button" x-show="$store.chats.selectedContext.project?.name" @click="$store.projects.deactivateProject(); open = false;" class="dropdown-item">
- <span class="icon material-symbols-outlined">close</span>
+ <x-icon class="icon" name="close"></x-icon>
<span>Deactivate</span>
</button>
diff --git a/webui/components/settings/agent/agent-settings.html b/webui/components/settings/agent/agent-settings.html
index 4baecfcb3..b07337c9b 100644
--- a/webui/components/settings/agent/agent-settings.html
+++ b/webui/components/settings/agent/agent-settings.html
@@ -35,19 +35,19 @@
</li>
<li>
<a href="#section-locale">
- <span class="material-symbols-outlined" aria-hidden="true">language</span>
+ <x-icon aria-hidden="true" name="language"></x-icon>
<span>Locale</span>
</a>
</li>
<li>
<a href="#section-interface">
- <span class="material-symbols-outlined" aria-hidden="true">dashboard_customize</span>
+ <x-icon aria-hidden="true" name="dashboard_customize"></x-icon>
<span>Interface</span>
</a>
</li>
<li>
<a href="#section-agent-plugins">
- <span class="material-symbols-outlined" aria-hidden="true">extension</span>
+ <x-icon aria-hidden="true" name="extension"></x-icon>
<span>Plugins</span>
</a>
</li>
diff --git a/webui/components/settings/agent/agent.html b/webui/components/settings/agent/agent.html
index 6e2494f35..9f8978a6f 100644
--- a/webui/components/settings/agent/agent.html
+++ b/webui/components/settings/agent/agent.html
@@ -30,8 +30,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/agent/interface.html b/webui/components/settings/agent/interface.html
index ae540c12c..db66c5868 100644
--- a/webui/components/settings/agent/interface.html
+++ b/webui/components/settings/agent/interface.html
@@ -16,7 +16,7 @@
<template x-for="control in $store.settings.uiControls" :key="control.id">
<div class="ui-visibility-row">
<div class="ui-visibility-control">
- <span class="material-symbols-outlined" aria-hidden="true" x-text="control.icon"></span>
+ <x-icon aria-hidden="true" :name="control.icon"></x-icon>
<div>
<div class="field-title" x-text="control.label"></div>
<div class="ui-visibility-state" x-text="$store.settings.uiControlVisibilityLabel(control.id)"></div>
@@ -33,7 +33,7 @@
:title="$store.settings.isUiControlVisible(control.id, 'mobile') ? 'Shown on mobile' : 'Hidden on mobile'"
@click="$store.settings.toggleUiControl(control.id, 'mobile')"
>
- <span class="material-symbols-outlined" aria-hidden="true">smartphone</span>
+ <x-icon aria-hidden="true" name="smartphone"></x-icon>
<span>Mobile</span>
</button>
<button
@@ -45,7 +45,7 @@
:title="$store.settings.isUiControlVisible(control.id, 'desktop') ? 'Shown on desktop' : 'Hidden on desktop'"
@click="$store.settings.toggleUiControl(control.id, 'desktop')"
>
- <span class="material-symbols-outlined" aria-hidden="true">desktop_windows</span>
+ <x-icon aria-hidden="true" name="desktop_windows"></x-icon>
<span>Desktop</span>
</button>
</div>
diff --git a/webui/components/settings/agent/workdir.html b/webui/components/settings/agent/workdir.html
index cb165eb15..7cc349b59 100644
--- a/webui/components/settings/agent/workdir.html
+++ b/webui/components/settings/agent/workdir.html
@@ -61,8 +61,8 @@
<template x-if="$store.settings.settings.workdir_show">
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/backup/self-update.html b/webui/components/settings/backup/self-update.html
index 3f01b7082..3e2d15042 100644
--- a/webui/components/settings/backup/self-update.html
+++ b/webui/components/settings/backup/self-update.html
@@ -21,8 +21,8 @@
<div class="settings-update-card"
:class="{'settings-update-card-attention': $store.settings.hasUpdateAttention}">
<div class="settings-update-card-icon" aria-hidden="true">
- <span class="material-symbols-outlined"
- x-text="$store.settings.hasUpdateAttention ? 'release_alert' : 'system_update_alt'"></span>
+ <x-icon
+ :name="$store.settings.hasUpdateAttention ? 'release_alert' : 'system_update_alt'"></x-icon>
</div>
<div class="settings-update-card-copy">
<div class="settings-update-card-title" x-text="$store.settings.updateAttentionTitle"></div>
diff --git a/webui/components/settings/developer/dev.html b/webui/components/settings/developer/dev.html
index 0d6c0f786..5de973564 100644
--- a/webui/components/settings/developer/dev.html
+++ b/webui/components/settings/developer/dev.html
@@ -56,8 +56,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/external/auth.html b/webui/components/settings/external/auth.html
index dbb568cfa..dad9fb47e 100644
--- a/webui/components/settings/external/auth.html
+++ b/webui/components/settings/external/auth.html
@@ -39,8 +39,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/external/external-settings.html b/webui/components/settings/external/external-settings.html
index 8eca3d8d0..30fd1c798 100644
--- a/webui/components/settings/external/external-settings.html
+++ b/webui/components/settings/external/external-settings.html
@@ -47,7 +47,7 @@
</li>
<li>
<a href="#section-external-plugins">
- <span class="material-symbols-outlined" aria-hidden="true">extension</span>
+ <x-icon aria-hidden="true" name="extension"></x-icon>
<span>Plugins</span>
</a>
</li>
diff --git a/webui/components/settings/external/litellm.html b/webui/components/settings/external/litellm.html
index 9c18ec163..747cb3ca9 100644
--- a/webui/components/settings/external/litellm.html
+++ b/webui/components/settings/external/litellm.html
@@ -14,8 +14,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/external/secrets.html b/webui/components/settings/external/secrets.html
index 396afe9fa..8e6da805d 100644
--- a/webui/components/settings/external/secrets.html
+++ b/webui/components/settings/external/secrets.html
@@ -14,8 +14,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/external/self-update-modal.html b/webui/components/settings/external/self-update-modal.html
index c822642ec..9a8baa549 100644
--- a/webui/components/settings/external/self-update-modal.html
+++ b/webui/components/settings/external/self-update-modal.html
@@ -92,11 +92,10 @@
</div>
<div class="self-update-quick-arrow" :class="$store.selfUpdateStore.quickComparisonIconClass" aria-hidden="true">
- <span
- class="material-symbols-outlined"
+ <x-icon
:class="{ spinning: $store.selfUpdateStore.isCheckingStatus }"
- x-text="$store.selfUpdateStore.quickComparisonIcon"
- ></span>
+ :name="$store.selfUpdateStore.quickComparisonIcon"
+ ></x-icon>
</div>
<div class="self-update-quick-version-card self-update-quick-version-card-accent">
@@ -212,7 +211,7 @@
aria-controls="self-update-howto-collapse"
>
<span>How it works?</span>
- <span class="material-symbols-outlined self-update-panel-toggle-icon">expand_more</span>
+ <x-icon class="self-update-panel-toggle-icon" name="expand_more"></x-icon>
</button>
<div class="collapse" id="self-update-howto-collapse">
<div class="self-update-panel-body self-update-copy">
@@ -261,7 +260,7 @@
:class="$store.selfUpdateStore.getLastStatusBadgeClass($store.selfUpdateStore.info?.last_status?.status)"
x-text="$store.selfUpdateStore.getLastStatusLabel($store.selfUpdateStore.info?.last_status?.status)"
></span>
- <span class="material-symbols-outlined self-update-panel-toggle-icon">expand_more</span>
+ <x-icon class="self-update-panel-toggle-icon" name="expand_more"></x-icon>
</span>
</button>
<div class="collapse" id="self-update-last-attempt-collapse">
diff --git a/webui/components/settings/mcp/client/mcp-server-scan.html b/webui/components/settings/mcp/client/mcp-server-scan.html
index b631bb1de..03d13bb8e 100644
--- a/webui/components/settings/mcp/client/mcp-server-scan.html
+++ b/webui/components/settings/mcp/client/mcp-server-scan.html
@@ -69,8 +69,8 @@
<div class="mcp-scan-result" x-show="$store.mcpServersStore.scanResult">
<div class="mcp-scan-heading">
- <span class="material-symbols-outlined" aria-hidden="true"
- x-text="$store.mcpServersStore.scanResult?.risk_level === 'ok' ? 'verified' : ($store.mcpServersStore.scanResult?.risk_level === 'error' ? 'error' : 'warning')"></span>
+ <x-icon aria-hidden="true"
+ :name="$store.mcpServersStore.scanResult?.risk_level === 'ok' ? 'verified' : ($store.mcpServersStore.scanResult?.risk_level === 'error' ? 'error' : 'warning')"></x-icon>
<span x-text="$store.mcpServersStore.scanRiskLabel"></span>
</div>
<div class="mcp-scan-warnings">
diff --git a/webui/components/settings/mcp/client/mcp-server-tools.html b/webui/components/settings/mcp/client/mcp-server-tools.html
index 337a7a28e..ea755da2d 100644
--- a/webui/components/settings/mcp/client/mcp-server-tools.html
+++ b/webui/components/settings/mcp/client/mcp-server-tools.html
@@ -20,20 +20,20 @@
<div class="mcp-tools-actions">
<span class="mcp-tools-count" x-text="$store.mcpServersStore.serverDetailToolsCountLabel"></span>
<button type="button" class="button confirm" :disabled="$store.mcpServersStore.applying" @click="$store.mcpServersStore.applyNow()">
- <span class="material-symbols-outlined" aria-hidden="true">check</span>
+ <x-icon aria-hidden="true" name="check"></x-icon>
<span x-text="$store.mcpServersStore.applying ? 'Applying' : 'Apply'"></span>
</button>
</div>
</div>
<label class="mcp-tool-search">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input type="search" x-model.debounce.150ms="$store.mcpServersStore.toolSearch" placeholder="Search tools" />
<button type="button" class="mcp-tool-search-clear"
x-show="$store.mcpServersStore.toolSearch"
@click="$store.mcpServersStore.clearToolSearch()"
title="Clear search">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</label>
diff --git a/webui/components/settings/mcp/client/mcp-servers.html b/webui/components/settings/mcp/client/mcp-servers.html
index a9dc7db23..e70cc65a5 100644
--- a/webui/components/settings/mcp/client/mcp-servers.html
+++ b/webui/components/settings/mcp/client/mcp-servers.html
@@ -24,24 +24,24 @@
<div class="mcp-view-tabs">
<button type="button" :class="{ active: $store.mcpServersStore.activeView === 'visual' }"
@click="$store.mcpServersStore.setActiveView('visual')">
- <span class="material-symbols-outlined" aria-hidden="true">dashboard_customize</span>
+ <x-icon aria-hidden="true" name="dashboard_customize"></x-icon>
<span>Manager</span>
</button>
<button type="button" :class="{ active: $store.mcpServersStore.activeView === 'raw' }"
@click="$store.mcpServersStore.setActiveView('raw')">
- <span class="material-symbols-outlined" aria-hidden="true">data_object</span>
+ <x-icon aria-hidden="true" name="data_object"></x-icon>
<span>Raw JSON</span>
</button>
</div>
<label class="mcp-search" x-show="$store.mcpServersStore.activeView === 'visual'" style="display: none;">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input type="search" x-model.debounce.150ms="$store.mcpServersStore.serverSearch" placeholder="Search MCP servers" />
<button type="button" class="mcp-search-clear"
x-show="$store.mcpServersStore.serverSearchActive"
@click="$store.mcpServersStore.clearServerSearch()"
title="Clear search">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</label>
</div>
@@ -49,10 +49,10 @@
<div class="mcp-manager-actions">
<button type="button" class="button" title="Refresh status" @click="$store.mcpServersStore.loadStatus()">
- <span class="material-symbols-outlined" aria-hidden="true">refresh</span>
+ <x-icon aria-hidden="true" name="refresh"></x-icon>
</button>
<button type="button" class="button confirm" :disabled="$store.mcpServersStore.applying" @click="$store.mcpServersStore.applyNow()">
- <span class="material-symbols-outlined" aria-hidden="true">check</span>
+ <x-icon aria-hidden="true" name="check"></x-icon>
<span x-text="$store.mcpServersStore.applying ? 'Applying' : 'Apply'"></span>
</button>
</div>
@@ -81,7 +81,7 @@
</div>
<div class="mcp-config-actions">
<button type="button" class="mcp-icon-button" title="Edit" @click="$store.mcpServersStore.editConfigServer(entry.name)">
- <span class="material-symbols-outlined" aria-hidden="true">edit</span>
+ <x-icon aria-hidden="true" name="edit"></x-icon>
</button>
<div class="mcp-toggle-group">
<label class="toggle plugin-status-toggle mcp-status-toggle"
@@ -97,7 +97,7 @@
<button type="button" class="mcp-icon-button" title="Remove"
:disabled="$store.mcpServersStore.applying"
@click="$confirmClick($event, () => $store.mcpServersStore.removeConfigServer(entry.name))">
- <span class="material-symbols-outlined" aria-hidden="true">delete</span>
+ <x-icon aria-hidden="true" name="delete"></x-icon>
</button>
</div>
</article>
@@ -154,7 +154,7 @@
<div class="mcp-add-header">
<h3>Add MCP server</h3>
<button type="button" class="mcp-icon-button" title="Clear form" @click="$store.mcpServersStore.resetForm()">
- <span class="material-symbols-outlined" aria-hidden="true">backspace</span>
+ <x-icon aria-hidden="true" name="backspace"></x-icon>
</button>
</div>
@@ -206,7 +206,7 @@
</div>
<button type="button" class="mcp-advanced-toggle" @click="$store.mcpServersStore.advancedOpen = !$store.mcpServersStore.advancedOpen">
- <span class="material-symbols-outlined" :style="$store.mcpServersStore.advancedOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon :style="$store.mcpServersStore.advancedOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced settings</span>
</button>
@@ -242,11 +242,11 @@
<div class="mcp-add-actions">
<button type="button" class="button" @click="$store.mcpServersStore.openScanModal()">
- <span class="material-symbols-outlined" aria-hidden="true">radar</span>
+ <x-icon aria-hidden="true" name="radar"></x-icon>
<span>Scan with Agent Zero</span>
</button>
<button type="button" class="button confirm" @click="$store.mcpServersStore.addServerFromForm()">
- <span class="material-symbols-outlined" aria-hidden="true">add_circle</span>
+ <x-icon aria-hidden="true" name="add_circle"></x-icon>
<span>Add to config</span>
</button>
</div>
@@ -259,14 +259,14 @@
<div class="mcp-raw-actions">
<button type="button" class="button" onclick="openModal('settings/mcp/client/example.html')">Examples</button>
<button type="button" class="button" @click="$store.mcpServersStore.formatJson()">
- <span class="material-symbols-outlined" aria-hidden="true">format_indent_increase</span>
+ <x-icon aria-hidden="true" name="format_indent_increase"></x-icon>
<span>Reformat</span>
</button>
<button type="button" class="button" title="Refresh status" @click="$store.mcpServersStore.loadStatus()">
- <span class="material-symbols-outlined" aria-hidden="true">refresh</span>
+ <x-icon aria-hidden="true" name="refresh"></x-icon>
</button>
<button type="button" class="button confirm" :disabled="$store.mcpServersStore.applying" @click="$store.mcpServersStore.applyNow()">
- <span class="material-symbols-outlined" aria-hidden="true">check</span>
+ <x-icon aria-hidden="true" name="check"></x-icon>
<span x-text="$store.mcpServersStore.applying ? 'Applying' : 'Apply'"></span>
</button>
</div>
diff --git a/webui/components/settings/mcp/mcp_client.html b/webui/components/settings/mcp/mcp_client.html
index 46327b554..72d726a66 100644
--- a/webui/components/settings/mcp/mcp_client.html
+++ b/webui/components/settings/mcp/mcp_client.html
@@ -29,8 +29,8 @@
<div class="settings-advanced-section" x-data="{ advOpen: false }">
<button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
- <span class="material-symbols-outlined settings-advanced-toggle-icon"
- :style="advOpen ? 'transform:rotate(90deg)' : ''">chevron_right</span>
+ <x-icon class="settings-advanced-toggle-icon"
+ :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
<span>Advanced Settings</span>
</button>
diff --git a/webui/components/settings/mcp/mcp_server.html b/webui/components/settings/mcp/mcp_server.html
index 5794d3328..9c462bbf7 100644
--- a/webui/components/settings/mcp/mcp_server.html
+++ b/webui/components/settings/mcp/mcp_server.html
@@ -56,10 +56,10 @@
<div class="mcp-internal-tools">
<label class="mcp-internal-search">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input type="search" x-model.debounce.150ms="internalToolSearch" placeholder="Search internal tools" />
<button type="button" x-show="internalToolSearch" @click="internalToolSearch = ''" title="Clear search">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</label>
diff --git a/webui/components/settings/plugins/plugins-subsection.html b/webui/components/settings/plugins/plugins-subsection.html
index eb8c0ed34..2901f97f8 100644
--- a/webui/components/settings/plugins/plugins-subsection.html
+++ b/webui/components/settings/plugins/plugins-subsection.html
@@ -39,7 +39,7 @@
class="button"
title="Config"
@click="context.openPluginConfig(plugin)">
- <span class="icon material-symbols-outlined">settings</span> Config
+ <x-icon class="icon" name="settings"></x-icon> Config
</button>
</div>
</div>
diff --git a/webui/components/settings/settings.html b/webui/components/settings/settings.html
index 2e4b40ba4..2b19a28d5 100644
--- a/webui/components/settings/settings.html
+++ b/webui/components/settings/settings.html
@@ -14,13 +14,13 @@
<!-- Loading state -->
<div x-show="$store.settings.isLoading && !$store.settings.settings" class="settings-loading">
- <span class="material-symbols-outlined spinning">progress_activity</span>
+ <x-icon class="spinning" name="progress_activity"></x-icon>
<span>Loading settings...</span>
</div>
<!-- Error state -->
<div x-show="$store.settings.error && !$store.settings.settings" class="settings-error">
- <span class="material-symbols-outlined">error</span>
+ <x-icon name="error"></x-icon>
<span x-text="$store.settings.error"></span>
<button class="btn btn-retry" @click="$store.settings.onOpen()">Retry</button>
</div>
@@ -30,7 +30,7 @@
<!-- Tab Navigation -->
<aside class="settings-tabs-container" aria-label="Settings categories">
<div class="settings-search" role="search">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input
type="search"
x-model.debounce.100ms="$store.settings.searchQuery"
@@ -46,7 +46,7 @@
@click="$store.settings.clearSearch()"
aria-label="Clear search"
>
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</div>
@@ -67,14 +67,14 @@
'settings-tab-attention': $store.settings.navItemHasAttention(item)
}"
@click="$store.settings.toggleNavGroup(item.id)">
- <span class="material-symbols-outlined" aria-hidden="true" x-text="item.icon"></span>
+ <x-icon aria-hidden="true" :name="item.icon"></x-icon>
<span class="settings-tab-label" x-text="item.label"></span>
<span class="settings-tab-meta">
<span class="settings-attention-dot"
x-show="$store.settings.navItemHasAttention(item)"
aria-hidden="true"></span>
- <span class="material-symbols-outlined settings-tab-chevron"
- aria-hidden="true">expand_more</span>
+ <x-icon class="settings-tab-chevron"
+ aria-hidden="true" name="expand_more"></x-icon>
</span>
</button>
@@ -90,7 +90,7 @@
:aria-current="$store.settings.activeSection === section.id ? 'true' : null"
:href="`#${section.id}`"
@click="$store.settings.scrollToSection(section.id, $event)">
- <span class="material-symbols-outlined" aria-hidden="true" x-text="section.icon"></span>
+ <x-icon aria-hidden="true" :name="section.icon"></x-icon>
<span class="settings-tab-label" x-text="section.label"></span>
<span class="settings-attention-dot"
x-show="$store.settings.sectionItemHasAttention(section)"
diff --git a/webui/components/settings/skills/list.html b/webui/components/settings/skills/list.html
index 30ec18a68..68611b84f 100644
--- a/webui/components/settings/skills/list.html
+++ b/webui/components/settings/skills/list.html
@@ -29,14 +29,14 @@
</label>
<label class="skills-search">
- <span class="material-symbols-outlined" aria-hidden="true">search</span>
+ <x-icon aria-hidden="true" name="search"></x-icon>
<input type="search" x-model.debounce.150ms="$store.skillsListStore.skillSearch"
placeholder="Search skills" />
<button type="button" class="skills-search-clear"
x-show="$store.skillsListStore.skillSearchActive"
@click="$store.skillsListStore.clearSkillSearch()"
title="Clear search">
- <span class="material-symbols-outlined" aria-hidden="true">close</span>
+ <x-icon aria-hidden="true" name="close"></x-icon>
</button>
</label>
@@ -44,7 +44,7 @@
<button type="button" class="button confirm" title="Refresh"
@click="$store.skillsListStore.loadSkills()"
:disabled="$store.skillsListStore.loading">
- <span class="icon material-symbols-outlined">refresh</span> Refresh
+ <x-icon class="icon" name="refresh"></x-icon> Refresh
</button>
</div>
</div>
@@ -79,11 +79,11 @@
<div class="skill-actions">
<button type="button" class="button" title="Open in browser"
@click="$store.skillsListStore.openSkill(skill)">
- <span class="icon material-symbols-outlined">folder_open</span> Open
+ <x-icon class="icon" name="folder_open"></x-icon> Open
</button>
<button type="button" class="button cancel icon-button" title="Delete"
@click="$confirmClick($event, () => $store.skillsListStore.deleteSkill(skill))">
- <span class="icon material-symbols-outlined">delete</span>
+ <x-icon class="icon" name="delete"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/settings/skills/scan.html b/webui/components/settings/skills/scan.html
index dc9d9e5e3..6d4ae3133 100644
--- a/webui/components/settings/skills/scan.html
+++ b/webui/components/settings/skills/scan.html
@@ -26,12 +26,12 @@
<div class="skills-scan-actions">
<button type="button" class="button" @click="$store.skillsScanStore.openForInstalledSkills()"
:disabled="$store.skillsScanStore.sectionLoading">
- <span class="material-symbols-outlined" aria-hidden="true">inventory_2</span>
+ <x-icon aria-hidden="true" name="inventory_2"></x-icon>
<span>Installed Skills</span>
</button>
<button type="button" class="button confirm" @click="$store.skillsScanStore.openForManualTarget()"
:disabled="$store.skillsScanStore.sectionLoading">
- <span class="material-symbols-outlined" aria-hidden="true">radar</span>
+ <x-icon aria-hidden="true" name="radar"></x-icon>
<span>Open Scanner</span>
</button>
</div>
diff --git a/webui/components/settings/skills/skill-scan.html b/webui/components/settings/skills/skill-scan.html
index acb8fad55..be93d1971 100644
--- a/webui/components/settings/skills/skill-scan.html
+++ b/webui/components/settings/skills/skill-scan.html
@@ -46,7 +46,7 @@
<div class="scan-actions">
<button type="button" class="button" @click="$store.skillsScanStore.copyScanPrompt()">
- <span class="material-symbols-outlined" aria-hidden="true">content_copy</span>
+ <x-icon aria-hidden="true" name="content_copy"></x-icon>
<span>Copy Prompt</span>
</button>
<button type="button" class="button confirm" :disabled="$store.skillsScanStore.agentScanning" @click="$store.skillsScanStore.runAgentScan()">
@@ -54,7 +54,7 @@
<span x-show="!$store.skillsScanStore.agentScanning">Run Scan</span>
</button>
<button type="button" class="button" x-show="$store.skillsScanStore.scanCtxId" @click="$store.skillsScanStore.openScanChatInNewWindow()">
- <span class="material-symbols-outlined" aria-hidden="true">open_in_new</span>
+ <x-icon aria-hidden="true" name="open_in_new"></x-icon>
<span>Open in Chat</span>
</button>
</div>
diff --git a/webui/components/settings/skills/skills-settings.html b/webui/components/settings/skills/skills-settings.html
index f67001d2d..f7bfc7446 100644
--- a/webui/components/settings/skills/skills-settings.html
+++ b/webui/components/settings/skills/skills-settings.html
@@ -23,7 +23,7 @@
</li>
<li>
<a href="#section-skills-scan">
- <span class="material-symbols-outlined" aria-hidden="true">radar</span>
+ <x-icon aria-hidden="true" name="radar"></x-icon>
<span>Scan Skills</span>
</a>
</li>
diff --git a/webui/components/settings/tunnel/tunnel-section.html b/webui/components/settings/tunnel/tunnel-section.html
index 806060c17..6722329e7 100644
--- a/webui/components/settings/tunnel/tunnel-section.html
+++ b/webui/components/settings/tunnel/tunnel-section.html
@@ -17,7 +17,7 @@
>
<header class="remote-link-hero">
<div class="remote-link-hero-icon" aria-hidden="true">
- <span class="material-symbols-outlined">share</span>
+ <x-icon name="share"></x-icon>
</div>
<div>
<div class="section-title">Remote Control</div>
@@ -28,7 +28,7 @@
</header>
<div class="remote-link-safety-note">
- <span class="material-symbols-outlined" aria-hidden="true">lock</span>
+ <x-icon aria-hidden="true" name="lock"></x-icon>
<span>Use sign-in before sharing remote control access. The URL can reach your instance while access is active.</span>
</div>
@@ -54,20 +54,20 @@
</div>
<div class="remote-link-loading" x-show="$store.tunnelStore.isLoading" style="display: none;">
- <span class="material-symbols-outlined spin" aria-hidden="true">progress_activity</span>
+ <x-icon class="spin" aria-hidden="true" name="progress_activity"></x-icon>
<span x-text="$store.tunnelStore.loadingText || 'Preparing remote control...'"></span>
</div>
<div class="microsoft-login-box" x-show="$store.tunnelStore.loginActionVisible" x-transition style="display: none;">
<div class="microsoft-login-header">
- <span class="material-symbols-outlined" aria-hidden="true">key</span>
+ <x-icon aria-hidden="true" name="key"></x-icon>
<div>
<div class="microsoft-login-title" x-text="$store.tunnelStore.loginActionTitle"></div>
<div class="microsoft-login-copy" x-text="$store.tunnelStore.loginActionCopy"></div>
</div>
</div>
<a class="microsoft-login-link" x-show="$store.tunnelStore.microsoftLoginUrl" :href="$store.tunnelStore.microsoftLoginUrl" target="_blank" rel="noopener noreferrer">
- <span class="material-symbols-outlined" aria-hidden="true">open_in_new</span>
+ <x-icon aria-hidden="true" name="open_in_new"></x-icon>
<span x-text="$store.tunnelStore.microsoftLoginUrl"></span>
</a>
<div class="microsoft-login-code-row" x-show="$store.tunnelStore.microsoftLoginCode">
@@ -78,7 +78,7 @@
@click="$store.tunnelStore.copyLoginCode()"
:class="$store.tunnelStore.codeCopied ? 'copied' : ''"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.tunnelStore.codeCopied ? 'check' : 'content_copy'"></span>
+ <x-icon aria-hidden="true" :name="$store.tunnelStore.codeCopied ? 'check' : 'content_copy'"></x-icon>
<span x-text="$store.tunnelStore.codeCopied ? 'Copied' : 'Copy code'"></span>
</button>
</div>
@@ -103,7 +103,7 @@
'copy-error': $store.tunnelStore.copyState === 'error'
}"
>
- <span class="material-symbols-outlined" aria-hidden="true" x-text="$store.tunnelStore.copyLinkIcon"></span>
+ <x-icon aria-hidden="true" :name="$store.tunnelStore.copyLinkIcon"></x-icon>
<span x-text="$store.tunnelStore.copyLinkLabel"></span>
</button>
<button
@@ -112,7 +112,7 @@
@click="$store.tunnelStore.refreshLink()"
:disabled="$store.tunnelStore.isLoading"
>
- <span class="material-symbols-outlined" aria-hidden="true">refresh</span>
+ <x-icon aria-hidden="true" name="refresh"></x-icon>
<span>New URL</span>
</button>
</div>
@@ -126,7 +126,7 @@
</div>
</div>
<div class="remote-link-status-panel">
- <span class="material-symbols-outlined" aria-hidden="true">verified</span>
+ <x-icon aria-hidden="true" name="verified"></x-icon>
<div>
<div class="remote-link-status-title">Remote Control is active</div>
<div class="remote-link-status-copy">
@@ -143,14 +143,14 @@
@click="$store.tunnelStore.stopTunnel()"
:disabled="$store.tunnelStore.isLoading"
>
- <span class="material-symbols-outlined" aria-hidden="true">stop_circle</span>
+ <x-icon aria-hidden="true" name="stop_circle"></x-icon>
<span>Stop Remote Control</span>
</button>
</div>
</div>
<div class="remote-link-empty" x-show="!$store.tunnelStore.linkGenerated">
- <span class="material-symbols-outlined" aria-hidden="true">link</span>
+ <x-icon aria-hidden="true" name="link"></x-icon>
<strong>No Remote Control yet</strong>
<span>Create one when you want to reach Agent Zero from another device or share access temporarily.</span>
<button
@@ -159,7 +159,7 @@
@click="$store.tunnelStore.generateLink()"
:disabled="$store.tunnelStore.isLoading"
>
- <span class="material-symbols-outlined" aria-hidden="true">share</span>
+ <x-icon aria-hidden="true" name="share"></x-icon>
<span>Start Remote Control</span>
</button>
</div>
diff --git a/webui/components/sidebar/chats/chats-list.html b/webui/components/sidebar/chats/chats-list.html
index e4d85c949..6caeb4008 100644
--- a/webui/components/sidebar/chats/chats-list.html
+++ b/webui/components/sidebar/chats/chats-list.html
@@ -15,7 +15,7 @@
<h3 class="section-header">Chats</h3>
<!-- New Chat Button -->
<button id="newChat" class="btn-icon-action chat-list-action-btn" @click="$store.chats.newChat()" aria-label="New Chat" title="New Chat" data-bs-placement="top" data-bs-trigger="hover">
- <span class="material-symbols-outlined">chat_add_on</span>
+ <x-icon name="chat_add_on"></x-icon>
</button>
<x-extension id="chats-header-controls"></x-extension>
</div>
@@ -34,8 +34,8 @@
:aria-expanded="$store.chats.isExpanded(context.id)"
:aria-label="$store.chats.isExpanded(context.id) ? 'Collapse chat children' : 'Expand chat children'"
@click.stop="$store.chats.toggleChildren(context.id)">
- <span class="material-symbols-outlined"
- x-text="$store.chats.isExpanded(context.id) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'"></span>
+ <x-icon
+ :name="$store.chats.isExpanded(context.id) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'"></x-icon>
</button>
<div class="chat-list-button">
<span :class="{'project-color-ball': true, 'heartbeat': context.running}"
@@ -44,13 +44,13 @@
x-text="$store.chats.displayName(context)"></span>
</div>
<button class="btn-icon-action chat-list-action-btn" title="Close chat" @click.stop="$confirmClick($event, () => $store.chats.killChat(context.id))">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<button type="button" class="btn-icon-action chat-list-action-btn" title="More chat actions"
aria-label="More chat actions" aria-haspopup="menu"
:aria-expanded="($store.sidebar.rowMenuOpenId === `chat:${context.id}`).toString()"
@click.stop="$store.sidebar.rowMenuToggle(`chat:${context.id}`, 'chat', $event.currentTarget)">
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
</div>
<ul class="chat-child-list" x-show="$store.chats.isExpanded(context.id) && $store.chats.hasChildren(context.id)">
@@ -66,13 +66,13 @@
x-text="$store.chats.displayName(child)"></span>
</div>
<button class="btn-icon-action chat-list-action-btn" title="Close chat" @click.stop="$confirmClick($event, () => $store.chats.killChat(child.id))">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<button type="button" class="btn-icon-action chat-list-action-btn" title="More chat actions"
aria-label="More chat actions" aria-haspopup="menu"
:aria-expanded="($store.sidebar.rowMenuOpenId === `chat:${child.id}`).toString()"
@click.stop="$store.sidebar.rowMenuToggle(`chat:${child.id}`, 'chat', $event.currentTarget)">
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
</div>
</li>
diff --git a/webui/components/sidebar/tasks/tasks-list.html b/webui/components/sidebar/tasks/tasks-list.html
index b470041ea..3a0c77edf 100644
--- a/webui/components/sidebar/tasks/tasks-list.html
+++ b/webui/components/sidebar/tasks/tasks-list.html
@@ -43,20 +43,20 @@
<button class="btn-icon-action"
@click.stop="$store.tasks.openDetail(task.id)"
title="View task details">
- <span class="material-symbols-outlined">Info</span>
+ <x-icon name="info"></x-icon>
</button>
<button class="btn-icon-action" title="Clear task chat"
@click.stop="$confirmClick($event, () => $store.tasks.reset(task.id))">
- <span class="material-symbols-outlined">delete_sweep</span>
+ <x-icon name="delete_sweep"></x-icon>
</button>
<button class="btn-icon-action" title="Delete task" @click.stop="$confirmClick($event, () => $store.tasks.deleteTask(task.id))">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
<button type="button" class="btn-icon-action" title="More task actions"
aria-label="More task actions" aria-haspopup="menu"
:aria-expanded="($store.sidebar.rowMenuOpenId === `task:${task.id}`).toString()"
@click.stop="$store.sidebar.rowMenuToggle(`task:${task.id}`, 'task', $event.currentTarget)">
- <span class="material-symbols-outlined">more_vert</span>
+ <x-icon name="more_vert"></x-icon>
</button>
</div>
</div>
diff --git a/webui/components/sidebar/top-section/header-icons.html b/webui/components/sidebar/top-section/header-icons.html
index 15e219d9f..cc1c1ba6c 100644
--- a/webui/components/sidebar/top-section/header-icons.html
+++ b/webui/components/sidebar/top-section/header-icons.html
@@ -34,19 +34,19 @@
<div class="icons-section" id="hide-button">
<!-- Sidebar Toggle Button -->
<button id="toggle-sidebar" class="toggle-sidebar-button" @click="$store.sidebar.toggle()" aria-label="Toggle Sidebar" aria-expanded="false">
- <span class="material-symbols-outlined" aria-hidden="true">menu</span>
+ <x-icon aria-hidden="true" name="menu"></x-icon>
</button>
<button class="config-button header-action-button" id="header-dashboard" @click="deselectChat()" title="Dashboard" aria-label="Dashboard" tabindex="-1">
- <span class="material-symbols-outlined" aria-hidden="true">home</span>
+ <x-icon aria-hidden="true" name="home"></x-icon>
</button>
<button class="config-button header-action-button" id="header-plugins" @click="openModal('components/plugins/list/plugin-list.html')" title="Plugins" aria-label="Plugins" tabindex="-1">
- <span class="material-symbols-outlined" aria-hidden="true">extension</span>
+ <x-icon aria-hidden="true" name="extension"></x-icon>
</button>
<button class="config-button header-action-button" id="header-settings" @click="openModal('settings/settings.html')" title="Settings" aria-label="Settings" tabindex="-1">
- <span class="material-symbols-outlined" aria-hidden="true">settings</span>
+ <x-icon aria-hidden="true" name="settings"></x-icon>
</button>
<button
@@ -58,7 +58,7 @@
aria-label="More options"
tabindex="-1"
>
- <span class="material-symbols-outlined" aria-hidden="true" :class="$store.sidebar.menuOpen ? 'rotated' : ''">expand_more</span>
+ <x-icon aria-hidden="true" :class="$store.sidebar.menuOpen ? 'rotated' : ''" name="expand_more"></x-icon>
</button>
</div>
@@ -74,37 +74,37 @@
<div class="dropdown-header">Navigation</div>
<button class="dropdown-item" @click="deselectChat(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">home</span>
+ <x-icon name="home"></x-icon>
<span>Dashboard</span>
</button>
<button class="dropdown-item" @click="$store.projects.openProjectsModal(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">snippet_folder</span>
+ <x-icon name="snippet_folder"></x-icon>
<span>Projects</span>
</button>
<button id="sidebar-files-dropdown" class="dropdown-item" @click="$store.chatInput.browseFiles(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">folder</span>
+ <x-icon name="folder"></x-icon>
<span>Files</span>
</button>
<button class="dropdown-item" @click="ensureModalOpen('settings/tunnel/remote-link.html'); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">share</span>
+ <x-icon name="share"></x-icon>
<span>Remote Control</span>
</button>
<button class="dropdown-item" @click="open('https://space-agent.ai/', '_blank', 'noopener,noreferrer'); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">rocket_launch</span>
+ <x-icon name="rocket_launch"></x-icon>
<span>Space Agent</span>
</button>
<button class="dropdown-item" @click="openModal('components/modals/scheduler/scheduler-modal.html'); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">schedule</span>
+ <x-icon name="schedule"></x-icon>
<span>Tasks</span>
</button>
<button class="dropdown-item" @click="openModal('settings/settings.html'); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">settings</span>
+ <x-icon name="settings"></x-icon>
<span>Settings</span>
</button>
@@ -118,30 +118,30 @@
@click="$store.sidebar.toggleSection('chatActions')"
>
<span class="quick-actions-accordion-label">
- <span class="material-symbols-outlined">forum</span>
+ <x-icon name="forum"></x-icon>
<span>Chat Actions</span>
</span>
- <span class="material-symbols-outlined quick-actions-accordion-chevron">expand_more</span>
+ <x-icon class="quick-actions-accordion-chevron" name="expand_more"></x-icon>
</button>
<div class="quick-actions-accordion-panel" x-show="$store.sidebar.isSectionOpen('chatActions')" style="display: none;">
<button class="dropdown-item" @click="$store.chats.newChat(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">chat_add_on</span>
+ <x-icon name="chat_add_on"></x-icon>
<span>New Chat</span>
</button>
<button class="dropdown-item" @click="$store.chats.loadChats(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">folder_open</span>
+ <x-icon name="folder_open"></x-icon>
<span>Load Chat</span>
</button>
<button class="dropdown-item" x-show="$store.chats.selected" @click="$store.chats.saveChat(); $store.sidebar.menuClose()">
- <span class="material-symbols-outlined">save</span>
+ <x-icon name="save"></x-icon>
<span>Save Chat</span>
</button>
<button class="dropdown-item" x-show="$store.chats.selected" @click="$confirmClick($event, () => { $store.chats.resetChat(); $store.sidebar.menuClose() })">
- <span class="material-symbols-outlined">delete_sweep</span>
+ <x-icon name="delete_sweep"></x-icon>
<span>Clear Chat</span>
</button>
</div>
@@ -149,12 +149,12 @@
<div class="dropdown-separator"></div>
<button class="dropdown-item" x-show="$store.chats.loggedIn" @click="$confirmClick($event, () => { $store.chats.logout(); $store.sidebar.menuClose() })">
- <span class="material-symbols-outlined">logout</span>
+ <x-icon name="logout"></x-icon>
<span>Logout</span>
</button>
<button class="dropdown-item" @click="$confirmClick($event, () => { $store.chats.restart(); $store.sidebar.menuClose() })">
- <span class="material-symbols-outlined">restart_alt</span>
+ <x-icon name="restart_alt"></x-icon>
<span>Restart A0</span>
</button>
diff --git a/webui/components/welcome/welcome-screen.html b/webui/components/welcome/welcome-screen.html
index eaf7e36b7..3919b423f 100644
--- a/webui/components/welcome/welcome-screen.html
+++ b/webui/components/welcome/welcome-screen.html
@@ -31,7 +31,7 @@
<template x-for="banner in $store.welcomeStore.sortedBanners" :key="banner.id">
<article class="welcome-banner" :class="$store.welcomeStore.getBannerClass(banner.type)">
<div class="welcome-banner-icon">
- <span class="material-symbols-outlined" x-text="$store.welcomeStore.getBannerIcon(banner.type)"></span>
+ <x-icon :name="$store.welcomeStore.getBannerIcon(banner.type)"></x-icon>
</div>
<div class="welcome-banner-content">
<div class="welcome-banner-title" x-text="banner.title"></div>
@@ -45,7 +45,7 @@
@click.stop="$store.welcomeStore.executeBannerAction(banner.cta_action)"
:aria-label="banner.cta_text">
<span x-text="banner.cta_text"></span>
- <span class="material-symbols-outlined" aria-hidden="true">arrow_forward</span>
+ <x-icon aria-hidden="true" name="arrow_forward"></x-icon>
</button>
<button class="welcome-banner-dismiss"
type="button"
@@ -53,7 +53,7 @@
@click.stop="$store.welcomeStore.dismissBanner(banner.id)"
title="Dismiss"
aria-label="Dismiss">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</article>
</template>
@@ -65,7 +65,7 @@
x-show="$store.welcomeStore.hasDismissedBanners"
:disabled="$store.welcomeStore.bannersLoading"
@click="$store.welcomeStore.undismissBanners()">
- <span class="material-symbols-outlined">undo</span>
+ <x-icon name="undo"></x-icon>
<span>Show dismissed notices</span>
</button>
</section>
@@ -75,60 +75,60 @@
<div class="welcome-actions">
<x-extension id="welcome-actions-start"></x-extension>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('projects')">
- <span class="material-symbols-outlined welcome-action-icon">folder</span>
+ <x-icon class="welcome-action-icon" name="folder"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Projects</span>
<span class="welcome-action-description">Organize and track your work.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('memory')">
- <span class="material-symbols-outlined welcome-action-icon">memory</span>
+ <x-icon class="welcome-action-icon" name="memory"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Memory</span>
<span class="welcome-action-description">Access saved context and knowledge.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('scheduler')">
- <span class="material-symbols-outlined welcome-action-icon">schedule</span>
+ <x-icon class="welcome-action-icon" name="schedule"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Tasks</span>
<span class="welcome-action-description">View and manage your tasks.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('files')">
- <span class="material-symbols-outlined welcome-action-icon">folder_open</span>
+ <x-icon class="welcome-action-icon" name="folder_open"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Files</span>
<span class="welcome-action-description">Search and manage your files.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('settings')">
- <span class="material-symbols-outlined welcome-action-icon">settings</span>
+ <x-icon class="welcome-action-icon" name="settings"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Settings</span>
<span class="welcome-action-description">Configure Agent Zero to your preferences.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card" @click="$store.welcomeStore.executeAction('plugins')">
- <span class="material-symbols-outlined welcome-action-icon">extension</span>
+ <x-icon class="welcome-action-icon" name="extension"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Plugins</span>
<span class="welcome-action-description">Extend Agent Zero with integrations.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">chevron_right</span>
+ <x-icon class="welcome-action-arrow" name="chevron_right"></x-icon>
</button>
<button type="button" class="welcome-action-card is-wide" @click="$store.welcomeStore.executeAction('website')">
- <span class="material-symbols-outlined welcome-action-icon">language</span>
+ <x-icon class="welcome-action-icon" name="language"></x-icon>
<span class="welcome-action-copy">
<span class="welcome-action-title">Visit Website</span>
<span class="welcome-action-description">Explore Agent Zero online and resources.</span>
</span>
- <span class="material-symbols-outlined welcome-action-arrow">open_in_new</span>
+ <x-icon class="welcome-action-arrow" name="open_in_new"></x-icon>
</button>
</div>
</section>
@@ -148,7 +148,7 @@
@click.stop="$store.welcomeStore.refreshBanners(true)"
title="Refresh"
aria-label="Refresh System Resources">
- <span class="material-symbols-outlined">refresh</span>
+ <x-icon name="refresh"></x-icon>
</button>
<button class="welcome-panel-icon-button"
type="button"
@@ -156,7 +156,7 @@
@click.stop="$store.welcomeStore.dismissBanner($store.welcomeStore.systemResourceBanner?.id || 'system-resources')"
title="Dismiss"
aria-label="Dismiss System Resources">
- <span class="material-symbols-outlined">close</span>
+ <x-icon name="close"></x-icon>
</button>
</div>
</header>
diff --git a/webui/index.html b/webui/index.html
index 5e30d6c88..e39af6a0d 100644
--- a/webui/index.html
+++ b/webui/index.html
@@ -62,6 +62,7 @@
<link rel="icon" type="image/svg+xml" href="public/favicon.svg">
<link rel="preload" href="/vendor/google/google-icons.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="vendor/google/google-icons.css">
+ <script type="module" src="/js/icons.js"></script>
<script>
(() => {
const root = document.documentElement
@@ -86,14 +87,25 @@
revealApplication()
}, { once: true })
- const fontLoad = document.fonts?.load
- ? document.fonts.load('24px "Material Symbols Outlined"')
- : Promise.resolve([])
- fontLoad.then((faces) => {
- if (faces.length > 0) root.classList.add("material-icons-ready")
- }).catch((error) => {
- console.warn("Material Symbols font unavailable.", error)
- })
+ const loadMaterialIcons = () => {
+ const fontLoad = document.fonts?.load
+ ? document.fonts.load('24px "Material Symbols Outlined"')
+ : Promise.resolve([])
+ fontLoad.then((faces) => {
+ if (faces.length > 0) root.classList.add("material-icons-ready")
+ }).catch((error) => {
+ console.warn("Material Symbols font unavailable.", error)
+ })
+ }
+
+ // Firefox can resolve FontFaceSet.load() with no matching faces when
+ // it runs while the splash is replacing the document. Wait until
+ // the replacement document is parsed and its font set is stable.
+ if (document.readyState === "loading") {
+ document.addEventListener("DOMContentLoaded", loadMaterialIcons, { once: true })
+ } else {
+ loadMaterialIcons()
+ }
setTimeout(() => revealApplication(true), 8000)
})()
@@ -212,16 +224,16 @@
<!-- Chat Navigation Buttons (floating over chat area) -->
<div id="chat-nav-buttons" aria-label="Chat navigation" x-cloak>
<button class="btn-icon-action" title="Scroll to top" @click="$store.chatNavigation.scrollToTop()">
- <span class="material-symbols-outlined">vertical_align_top</span>
+ <x-icon name="vertical_align_top"></x-icon>
</button>
<button class="btn-icon-action" title="Previous user message" @click="$store.chatNavigation.scrollToPrevUserMessage()">
- <span class="material-symbols-outlined">keyboard_arrow_up</span>
+ <x-icon name="keyboard_arrow_up"></x-icon>
</button>
<button class="btn-icon-action" title="Next user message" @click="$store.chatNavigation.scrollToNextUserMessage()">
- <span class="material-symbols-outlined">keyboard_arrow_down</span>
+ <x-icon name="keyboard_arrow_down"></x-icon>
</button>
<button class="btn-icon-action" title="Scroll to bottom" @click="$store.chatNavigation.scrollToBottom()">
- <span class="material-symbols-outlined">vertical_align_bottom</span>
+ <x-icon name="vertical_align_bottom"></x-icon>
</button>
</div>
</div>
diff --git a/webui/js/AGENTS.md b/webui/js/AGENTS.md
index 136e3186b..61aac5de1 100644
--- a/webui/js/AGENTS.md
+++ b/webui/js/AGENTS.md
@@ -15,7 +15,9 @@
- `modals.js` owns the stacked modal shell, `openModal`, `closeModal`, `scrollModal`, footer relocation, backdrop, and modal z-index behavior.
- `surfaces.js` owns shared surface registration, right-canvas/modal mode routing, surface modal action rails, and reusable draggable/focus modal chrome.
- `initFw.js` owns Alpine bootstrap and custom lifecycle directives such as `x-create`, `x-destroy`, and periodic `x-every-*` hooks.
+- `icons.js` owns `<x-icon>`, icon-name validation, the name property/attribute bridge, and helpers that read or update both the first-party custom element and legacy plugin ligature spans.
- `messages.js` owns native message/process-step rendering, safe Markdown and HTML conversion, and KaTeX delimiter handling.
+- `message-collapse.js` owns the layout-safe overflow measurement shared by collapsible user messages and responses.
- `message-window.js` owns the bounded, tail-first raw-log window used by message rendering.
- `loading-indicators.js` owns reusable DOM factories for shared loading visuals.
- `scroller.js` owns bottom-following snapshots and cancellation of pending scroll effects.
@@ -24,6 +26,7 @@
## Local Contracts
- Use ES modules and browser-compatible JavaScript.
+- Create dynamic Material Symbols with `document.createElement("x-icon")` and assign `.name`; generated HTML uses an empty `<x-icon name="..."></x-icon>`. Shared helpers that can receive third-party plugin DOM must continue accepting legacy `.material-symbols-outlined` and `.material-icons-outlined` spans.
- Route JSON and fetch calls through `api.js` unless a caller has a specific nonstandard transport contract.
- `callJsonApi()` is for JSON request/response flows and must preserve CSRF/auth behavior.
- `fetchApi()` must continue adding CSRF headers, retrying 403 CSRF refresh paths, and redirecting to `/login` when required.
@@ -57,6 +60,7 @@
- Context switches, log GUID resets, and full log snapshots must reset both message DOM and message-window cache state.
- Context switches clear stale history immediately but defer the chat loading splash for 300 ms so fast loads do not flash; slower loads fade it in and dismiss it only after the matching context snapshot finishes rendering. Stale snapshots and timers must not affect a newer switch's splash.
- Long primary-agent responses start collapsed only during chat replay; long user-message text starts collapsed during both live sends and replay. Both use the shared collapsible-message behavior, but user attachments remain outside its clipped content target.
+- Collapse controls must appear only after a measurable message body exceeds the 15em preview. Treat hidden or zero-width chat geometry as indeterminate, remeasure replayed messages after their staging-to-live swap, and remeasure observed groups when their layout changes.
- Info log entries with `kvps.finished` complete the active process group and clear its running treatment.
## Work Guidance
diff --git a/webui/js/confirmClick.js b/webui/js/confirmClick.js
index ff557523b..6cb86c404 100644
--- a/webui/js/confirmClick.js
+++ b/webui/js/confirmClick.js
@@ -1,6 +1,8 @@
// Inline button two-click confirmation for destructive actions.
// First click arms, second click confirms, timeout resets.
+import { ICON_SELECTOR, getIconName, setIconName } from "./icons.js";
+
const CONFIRM_TIMEOUT = 2000;
const CONFIRM_CLASS = 'confirming';
const CONFIRM_ICON = 'check';
@@ -21,13 +23,13 @@ export function confirmClick(event, action) {
buttonStates.delete(button);
action();
} else {
- const iconEl = button.querySelector('.material-symbols-outlined, .material-icons-outlined');
+ const iconEl = button.querySelector(ICON_SELECTOR);
const isIconButton = iconEl && button.textContent.trim() === iconEl.textContent.trim();
const newState = {
confirming: true,
isIconButton,
- originalIcon: iconEl?.textContent?.trim(),
+ originalIcon: getIconName(iconEl),
originalHTML: isIconButton ? null : button.innerHTML,
timeoutId: setTimeout(() => {
resetButton(button, newState);
@@ -40,13 +42,13 @@ export function confirmClick(event, action) {
if (isIconButton && iconEl) {
// Icon-only button: just swap icon
- iconEl.textContent = CONFIRM_ICON;
+ setIconName(iconEl, CONFIRM_ICON);
} else {
// Text button: show icon + optional "Confirm" text
const originalText = button.textContent.trim();
const confirmContent = originalText.length >= 4
- ? `<span class="material-symbols-outlined">${CONFIRM_ICON}</span>${CONFIRM_TEXT}`
- : `<span class="material-symbols-outlined">${CONFIRM_ICON}</span>`;
+ ? `<x-icon name="${CONFIRM_ICON}"></x-icon>${CONFIRM_TEXT}`
+ : `<x-icon name="${CONFIRM_ICON}"></x-icon>`;
button.innerHTML = confirmContent;
}
}
@@ -56,9 +58,9 @@ export function confirmClick(event, action) {
function resetButton(button, state) {
button.classList.remove(CONFIRM_CLASS);
if (state.isIconButton) {
- const iconEl = button.querySelector('.material-symbols-outlined, .material-icons-outlined');
+ const iconEl = button.querySelector(ICON_SELECTOR);
if (iconEl && state.originalIcon) {
- iconEl.textContent = state.originalIcon;
+ setIconName(iconEl, state.originalIcon);
}
} else if (state.originalHTML) {
button.innerHTML = state.originalHTML;
@@ -71,4 +73,3 @@ export function registerAlpineMagic() {
globalThis.Alpine.magic('confirmClick', () => confirmClick);
}
}
-
diff --git a/webui/js/confirmDialog.js b/webui/js/confirmDialog.js
index 6289af608..d599962e0 100644
--- a/webui/js/confirmDialog.js
+++ b/webui/js/confirmDialog.js
@@ -30,7 +30,7 @@ export function showConfirmDialog(options) {
dialog.className = 'confirm-dialog';
dialog.innerHTML = `
<div class="confirm-dialog-header">
- <span class="confirm-dialog-icon material-symbols-outlined" style="color: ${typeConfig.color}">${typeConfig.icon}</span>
+ <x-icon class="confirm-dialog-icon" style="color: ${typeConfig.color}" name="${typeConfig.icon}"></x-icon>
<span class="confirm-dialog-title">${title}</span>
</div>
<div class="confirm-dialog-body">${message}</div>
diff --git a/webui/js/icons.js b/webui/js/icons.js
new file mode 100644
index 000000000..7d0b55ea6
--- /dev/null
+++ b/webui/js/icons.js
@@ -0,0 +1,70 @@
+const ICON_TAG = "x-icon";
+const ICON_NAME_PATTERN = /^[a-z0-9][a-z0-9_]*$/;
+
+export const ICON_SELECTOR = `${ICON_TAG}, .material-symbols-outlined, .material-icons-outlined`;
+
+export function normalizeIconName(value) {
+ const name = String(value ?? "").trim();
+ return ICON_NAME_PATTERN.test(name) ? name : "";
+}
+
+export function getIconName(element) {
+ if (!element) return "";
+ if (element.localName === ICON_TAG) {
+ return normalizeIconName(element.getAttribute("name"));
+ }
+ return normalizeIconName(element.textContent);
+}
+
+export function setIconName(element, value) {
+ if (!element) return;
+ const name = normalizeIconName(value);
+ if (element.localName === ICON_TAG) {
+ if (name) element.setAttribute("name", name);
+ else element.removeAttribute("name");
+ return;
+ }
+ element.textContent = name;
+}
+
+if (!customElements.get(ICON_TAG)) {
+ customElements.define(
+ ICON_TAG,
+ class extends HTMLElement {
+ static get observedAttributes() {
+ return ["name"];
+ }
+
+ get name() {
+ return normalizeIconName(this.getAttribute("name"));
+ }
+
+ set name(value) {
+ setIconName(this, value);
+ }
+
+ connectedCallback() {
+ // Preserve selectors used by older third-party plugin styles while
+ // first-party markup uses the semantic custom element.
+ this.classList.add("material-symbols-outlined");
+ if (
+ !this.hasAttribute("aria-hidden") &&
+ !this.hasAttribute("aria-label") &&
+ !this.hasAttribute("aria-labelledby")
+ ) {
+ this.setAttribute("aria-hidden", "true");
+ }
+ this.render();
+ }
+
+ attributeChangedCallback() {
+ this.render();
+ }
+
+ render() {
+ const name = this.name;
+ if (this.textContent !== name) this.textContent = name;
+ }
+ },
+ );
+}
diff --git a/webui/js/message-collapse.js b/webui/js/message-collapse.js
new file mode 100644
index 000000000..a0bdd6f46
--- /dev/null
+++ b/webui/js/message-collapse.js
@@ -0,0 +1,43 @@
+const COLLAPSE_MAX_HEIGHT_EM = 15;
+const UNMEASURABLE_WIDTH_PX = 1;
+
+function pixels(value) {
+ const parsed = Number.parseFloat(value || "0");
+ return Number.isFinite(parsed) ? parsed : 0;
+}
+
+function hasUsableContentWidth(element, style = getComputedStyle(element)) {
+ const contentWidth =
+ element.clientWidth - pixels(style.paddingLeft) - pixels(style.paddingRight);
+ return contentWidth > UNMEASURABLE_WIDTH_PX;
+}
+
+/**
+ * Measure whether a message body exceeds its collapsed preview.
+ *
+ * Returns null while the surrounding chat has no usable layout. Replay can be
+ * rendered in a hidden or zero-width staging tree, where ordinary text wraps
+ * once per character and would otherwise produce a false overflow result.
+ */
+export function measureMessageCollapseOverflow(
+ content,
+ { expanded = false, lazy = false } = {},
+) {
+ if (lazy) return true;
+ if (!content?.isConnected) return null;
+
+ const history = content.closest?.("#chat-history");
+ if (history && !hasUsableContentWidth(history)) {
+ return null;
+ }
+
+ const style = getComputedStyle(content);
+ if (!hasUsableContentWidth(content, style)) return null;
+
+ const fontSize = Number.parseFloat(style.fontSize || "16") || 16;
+ const maxHeight = expanded
+ ? fontSize * COLLAPSE_MAX_HEIGHT_EM
+ : content.clientHeight;
+
+ return content.scrollHeight > maxHeight;
+}
diff --git a/webui/js/messages.js b/webui/js/messages.js
index 71ec8120e..12ad5aff7 100644
--- a/webui/js/messages.js
+++ b/webui/js/messages.js
@@ -26,6 +26,7 @@ import { callJsExtensions } from "/js/extensions.js";
import { addBlankTargetsToLinks } from "/js/html-links.js";
import { sanitizeHtml } from "/js/safe-markdown.js";
import { createThreeBubbleLoader } from "/js/loading-indicators.js";
+import { measureMessageCollapseOverflow } from "./message-collapse.js";
// Delay before collapsing previous steps when a new step is added
const STEP_COLLAPSE_DELAY = {
@@ -333,6 +334,7 @@ async function renderMessageWindow({
}
await nextAnimationFrame();
+ refreshCollapsibleMessageOverflow(history);
if (anchor) {
anchorRestored = restoreMessageWindowAnchor(history, anchor) ||
anchorRestored;
@@ -888,7 +890,12 @@ function messageWindowNow() {
function refreshMessageWindowResizeObserver(history) {
if (!history || typeof ResizeObserver === "undefined") return;
if (!_messageWindowResizeObserver) {
- _messageWindowResizeObserver = new ResizeObserver(() => {
+ _messageWindowResizeObserver = new ResizeObserver((entries) => {
+ entries.forEach((entry) =>
+ refreshCollapsibleMessageOverflow(entry.target),
+ );
+
+ const liveHistory = getChatHistoryEl();
if (
_messageWindowSuppressScrollEvents ||
_messageWindowRenderPromise ||
@@ -898,9 +905,9 @@ function refreshMessageWindowResizeObserver(history) {
return;
}
- cancelPendingScroll(history);
- history.scrollTop = history.scrollHeight;
- _lastMessageWindowScrollTop = history.scrollTop;
+ cancelPendingScroll(liveHistory);
+ liveHistory.scrollTop = liveHistory.scrollHeight;
+ _lastMessageWindowScrollTop = liveHistory.scrollTop;
});
}
@@ -2929,10 +2936,10 @@ function createProcessGroup(id) {
<span class="group-title">Processing...</span>
<span class="step-badge GEN">GEN</span>
<span class="group-metrics">
- <span class="metric-time" title="Start time"><span class="material-symbols-outlined">schedule</span><span class="metric-value">--:--</span></span>
- <span class="metric-steps display-none" title="Steps"><span class="material-symbols-outlined">footprint</span><span class="metric-value">0</span></span>
- <span class="metric-notifications" title="Warnings/Info/Hint" hidden><span class="material-symbols-outlined">priority_high</span><span class="metric-value">0</span></span>
- <span class="metric-duration display-none" title="Duration"><span class="material-symbols-outlined">timer</span><span class="metric-value">--</span></span>
+ <span class="metric-time" title="Start time"><x-icon name="schedule"></x-icon><span class="metric-value">--:--</span></span>
+ <span class="metric-steps display-none" title="Steps"><x-icon name="footprint"></x-icon><span class="metric-value">0</span></span>
+ <span class="metric-notifications" title="Warnings/Info/Hint" hidden><x-icon name="priority_high"></x-icon><span class="metric-value">0</span></span>
+ <span class="metric-duration display-none" title="Duration"><x-icon name="timer"></x-icon><span class="metric-value">--</span></span>
</span>
`;
@@ -3124,7 +3131,7 @@ export function convertIcons(html, classes = "") {
/icon:\/\/([a-zA-Z0-9_]+)(\[(?:\\.|[^\]])*\])?/g,
(match, iconName, tooltipBlock) => {
if (!tooltipBlock) {
- return `<span class="icon material-symbols-outlined ${classes}">${iconName}</span>`;
+ return `<x-icon class="icon ${classes}" name="${iconName}"></x-icon>`;
}
const tooltipRaw = tooltipBlock
@@ -3135,7 +3142,7 @@ export function convertIcons(html, classes = "") {
const tooltip = escapeHTML(tooltipRaw);
- return `<span class="icon material-symbols-outlined ${classes}" title="${tooltip}" data-bs-placement="top" data-bs-trigger="hover">${iconName}</span>`;
+ return `<x-icon class="icon ${classes}" title="${tooltip}" data-bs-placement="top" data-bs-trigger="hover" name="${iconName}"></x-icon>`;
},
);
}
@@ -3402,20 +3409,35 @@ function setupCollapsible(
actionButtons.filter(Boolean).forEach((b) => container.appendChild(b));
- // Detect overflow after render
+ const refreshOverflow = () => {
+ const hasOverflow = measureMessageCollapseOverflow(collapseContent, {
+ expanded: messageDiv.classList.contains("expanded"),
+ lazy: messageDiv.classList.contains("lazy-content"),
+ });
+ if (hasOverflow === null) return false;
+ messageDiv.classList.toggle("has-overflow", hasOverflow);
+ return true;
+ };
+ messageDiv.__refreshCollapseOverflow = refreshOverflow;
+
+ // Detect overflow after render. Window replays are measured again after the
+ // staged DOM has moved into the live, correctly sized chat history.
requestAnimationFrame(() => {
- const fontSize = parseFloat(
- getComputedStyle(collapseContent || document.documentElement).fontSize ||
- "16",
- );
- const maxHeight = messageDiv.classList.contains("expanded")
- ? fontSize * 15
- : collapseContent?.clientHeight || 0;
- messageDiv.classList.toggle(
- "has-overflow",
- messageDiv.classList.contains("lazy-content") ||
- (collapseContent?.scrollHeight || 0) > maxHeight,
- );
+ if (messageDiv.__refreshCollapseOverflow === refreshOverflow) {
+ refreshOverflow();
+ }
+ });
+}
+
+function refreshCollapsibleMessageOverflow(root) {
+ if (!root) return;
+ const messages = root.matches?.(".message-collapsible")
+ ? [root]
+ : root.querySelectorAll?.(".message-collapsible") || [];
+ messages.forEach((message) => {
+ if (typeof message.__refreshCollapseOverflow === "function") {
+ message.__refreshCollapseOverflow();
+ }
});
}
diff --git a/webui/js/surfaces.js b/webui/js/surfaces.js
index 0f016e8d5..ae89fd7b1 100644
--- a/webui/js/surfaces.js
+++ b/webui/js/surfaces.js
@@ -1,3 +1,5 @@
+import { setIconName } from "./icons.js";
+
export const SURFACE_MODE_DOCKED = "canvas";
export const SURFACE_MODE_FLOATING = "modal";
export const SURFACE_MODAL_GROUP = "surfaces";
@@ -501,8 +503,8 @@ export function setupFloatingSurfaceModalChrome(options = {}) {
focusButton.setAttribute("aria-label", label);
focusButton.setAttribute("title", label);
focusButton.classList.toggle("is-active", active);
- const icon = focusButton.querySelector(".material-symbols-outlined");
- if (icon) icon.textContent = active ? "fullscreen_exit" : "fullscreen";
+ const icon = focusButton.querySelector("x-icon");
+ setIconName(icon, active ? "fullscreen_exit" : "fullscreen");
};
const setFocusMode = (enabled) => {
const active = Boolean(enabled);
@@ -565,7 +567,7 @@ export function setupFloatingSurfaceModalChrome(options = {}) {
focusButton.className = ["surface-button", "surface-modal-focus-button", focusButtonClass]
.filter(Boolean)
.join(" ");
- focusButton.innerHTML = '<span class="material-symbols-outlined" aria-hidden="true">fullscreen</span>';
+ focusButton.innerHTML = '<x-icon aria-hidden="true" name="fullscreen"></x-icon>';
const onFocusClick = () => setFocusMode(!inner.classList.contains("is-focus-mode"));
updateFocusButton(false);
focusButton.addEventListener("click", onFocusClick);
@@ -625,10 +627,9 @@ function createModalSurfaceButton(surface, metadata, modal) {
image.setAttribute("aria-hidden", "true");
button.appendChild(image);
} else {
- const icon = document.createElement("span");
- icon.className = "material-symbols-outlined";
+ const icon = document.createElement("x-icon");
icon.setAttribute("aria-hidden", "true");
- icon.textContent = surface.icon || "web_asset";
+ icon.name = surface.icon || "web_asset";
button.appendChild(icon);
}
@@ -681,7 +682,10 @@ function configureModalDockButton(modal, metadata) {
button.type = "button";
button.className = "surface-dock-button modal-dock-button";
button.setAttribute("aria-label", metadata.title);
- button.innerHTML = `<span class="material-symbols-outlined" aria-hidden="true">${metadata.icon}</span>`;
+ const icon = document.createElement("x-icon");
+ icon.setAttribute("aria-hidden", "true");
+ icon.name = metadata.icon;
+ button.appendChild(icon);
button.addEventListener("click", async () => {
if (button.disabled) return;
button.disabled = true;
diff --git a/webui/vendor/google/AGENTS.md b/webui/vendor/google/AGENTS.md
index 4a13ca703..8320aa42c 100644
--- a/webui/vendor/google/AGENTS.md
+++ b/webui/vendor/google/AGENTS.md
@@ -6,13 +6,14 @@
## Ownership
-- `google-icons.css` owns the font-face and icon class definitions.
+- `google-icons.css` owns the font-face plus the shared `<x-icon>` and legacy icon-class definitions.
- `google-icons.woff2` is the primary compressed font binary; `google-icons.ttf` is its compatibility fallback.
## Local Contracts
- Keep the WOFF2 and TTF fonts equivalent and keep their CSS references synchronized.
-- Icon ligature elements must remain exactly one em wide and high, clip fallback text, and stay transparent until the Font Loading API confirms the Material Symbols face. A failed font may leave a blank square but must never expose a layout-breaking ligature name.
+- `<x-icon>` and legacy icon ligature elements must remain exactly one em wide and high, clip fallback text, and stay transparent until the Font Loading API confirms the Material Symbols face after the application document finishes parsing. A failed font may leave a blank square but must never expose a layout-breaking ligature name.
+- Keep `.material-symbols-outlined` and `.material-icons-outlined` rendering compatible for third-party plugins even though first-party markup uses `<x-icon>`.
- Do not add unrelated remote font assets or tracking references.
## Work Guidance
diff --git a/webui/vendor/google/google-icons.css b/webui/vendor/google/google-icons.css
index 90cba444c..1341be813 100644
--- a/webui/vendor/google/google-icons.css
+++ b/webui/vendor/google/google-icons.css
@@ -8,6 +8,7 @@
url(./google-icons.ttf) format('truetype');
}
+x-icon,
.material-symbols-outlined,
.material-icons-outlined {
font-family: 'Material Symbols Outlined';
@@ -33,6 +34,7 @@
direction: ltr;
}
+html:not(.material-icons-ready) x-icon,
html:not(.material-icons-ready) .material-symbols-outlined,
html:not(.material-icons-ready) .material-icons-outlined {
color: transparent !important;