fix(vscode): replace brain-circuit with book-open-check for training disclosure icon

Aligns the VSCode extension and kilo-ui with the JetBrains plugin, which
replaced the brain-circuit icon with the book-open-check icon for the
'may be used for training data' indicator in the model picker.
This commit is contained in:
kiloconnect[bot]
2026-06-04 14:55:06 +00:00
parent d38c2aaf8c
commit ae91a34525
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ import { Icon as Upstream, type IconProps as Props } from "@opencode-ai/ui/icon"
import { splitProps } from "solid-js"
const icons: Record<string, { path: string; viewBox: string }> = {
"brain-circuit": {
"book-open-check": {
viewBox: "0 0 24 24",
path: `<path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13a4.5 4.5 0 0 0 3-4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.477 10.896a4 4 0 0 1 .585-.396" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 18a4 4 0 0 1-1.967-.516" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 13h4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 18h6a2 2 0 0 1 2 2v1" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 8h8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 8V5a2 2 0 0 1 2-2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/><circle cx="16" cy="13" r=".5" fill="currentColor"/><circle cx="18" cy="3" r=".5" fill="currentColor"/><circle cx="20" cy="21" r=".5" fill="currentColor"/><circle cx="20" cy="8" r=".5" fill="currentColor"/>`,
path: `<path d="M12 21V7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="m16 12 2 2 4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>`,
},
"circuit-board": {
viewBox: "0 0 16 16",
@@ -16,17 +16,17 @@ describe("model preview data collection line", () => {
expect(data).toBeGreaterThanOrEqual(0)
expect(context).toBeGreaterThan(data)
expect(preview).toContain('Icon name="brain-circuit"')
expect(preview).toContain('Icon name="book-open-check"')
expect(preview).toContain("isDataCollectedModel(model())")
expect(preview).toContain('language.t("model.tag.dataCollected")')
expect(styles).toContain(".model-preview-data-line")
})
it("uses the brain circuit icon for all webview model data disclosures", () => {
expect(selector).toContain('Icon name="brain-circuit"')
it("uses the book open check icon for all webview model data disclosures", () => {
expect(selector).toContain('Icon name="book-open-check"')
expect(selector).not.toContain('Icon name="warning"')
expect(agent).toContain('Icon name="brain-circuit"')
expect(agent).toContain('Icon name="book-open-check"')
expect(agent).not.toContain('Icon name="warning"')
expect(icons).toContain('"brain-circuit"')
expect(icons).toContain('"book-open-check"')
})
})
@@ -121,7 +121,7 @@ export const MultiModelSelector: Component<{
<Show when={isDataCollectedModel(model)}>
<Tooltip value={dataLabel()} placement="top">
<span class="am-mm-free-data-icon" aria-label={dataLabel()}>
<Icon name="brain-circuit" size="small" />
<Icon name="book-open-check" size="small" />
</span>
</Tooltip>
</Show>
@@ -96,7 +96,7 @@ export const ModelPreview: Component<Props> = (props) => {
<Show when={isDataCollectedModel(model())}>
<Tooltip value={dataLabel()} placement="top">
<span class="model-preview-free-data-icon" aria-label={dataLabel()}>
<Icon name="brain-circuit" size="small" />
<Icon name="book-open-check" size="small" />
</span>
</Tooltip>
</Show>
@@ -132,7 +132,7 @@ export const ModelPreview: Component<Props> = (props) => {
<Show when={isDataCollectedModel(model())}>
<span class="model-preview-data-line" aria-label={dataLabel()}>
<Icon name="brain-circuit" size="small" />
<Icon name="book-open-check" size="small" />
<span>- {dataLabel()}</span>
</span>
</Show>
@@ -636,7 +636,7 @@ export const ModelSelectorBase: Component<ModelSelectorBaseProps> = (props) => {
<Show when={activeCollectsData()}>
<Tooltip value={dataLabel()} placement="top">
<span class="model-selector-trigger-free-data" aria-label={dataLabel()}>
<Icon name="brain-circuit" size="small" />
<Icon name="book-open-check" size="small" />
</span>
</Tooltip>
</Show>
@@ -836,7 +836,7 @@ export const ModelSelectorBase: Component<ModelSelectorBaseProps> = (props) => {
<Show when={isDataCollectedModel(model)}>
<Tooltip value={dataLabel()} placement="top">
<span class="model-selector-free-data-icon" aria-label={dataLabel()}>
<Icon name="brain-circuit" size="small" />
<Icon name="book-open-check" size="small" />
</span>
</Tooltip>
</Show>