Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
refactor(ide): give skills plain work-kind icons instead of sparkles and glows
rubenluetke10-beep5d453d879edc
diff --git a/jarvis/agentic_ide/skill_library.py b/jarvis/agentic_ide/skill_library.pyindex 7fa2769003..d4534f0961 100644--- a/jarvis/agentic_ide/skill_library.py+++ b/jarvis/agentic_ide/skill_library.py@@ -54,22 +54,28 @@ HUES: tuple[str, ...] = (#: Glyph names the UI knows how to draw. Anything else falls back to "auto".ICONS: tuple[str, ...] = ("auto",- "sparkles",+ "doc",+ "plan","code","bug",- "book",- "shield",- "rocket",- "wand",- "brain","flask",- "palette",- "terminal",- "git",+ "review",+ "shield",+ "refactor",+ "book","list",+ "git",+ "terminal",+ "palette",+ "data",+ "perf",+ "rocket",)-_FRONTMATTER_RE = re.compile(r"\A?---[ \t]*\r?\n(.*?)\r?\n---[ \t]*(?:\r?\n|\Z)", re.DOTALL)+#: Glyphs an older library stored, mapped onto today's set when it is read.+_LEGACY_ICONS: dict[str, str] = {"sparkles": "auto", "wand": "refactor", "brain": "plan"}++_FRONTMATTER_RE = re.compile(r"\A\ufeff?---[ \t]*\r?\n(.*?)\r?\n---[ \t]*(?:\r?\n|\Z)", re.DOTALL)_HEADING_RE = re.compile(r"^\s{0,3}#{1,6}\s+(.+?)\s*#*\s*$")@@ -194,6 +200,7 @@ class LibrarySkill:return Nonehue = str(raw.get("hue") or "")icon = str(raw.get("icon") or "auto")+ icon = _LEGACY_ICONS.get(icon, icon)try:uses = max(0, int(raw.get("use_count") or 0))except (TypeError, ValueError):diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsxindex 3aea6d949e..d6df066c5e 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/sidePanelTabs.tsx@@ -1,5 +1,5 @@import type { ReactNode } from "react";-import { Bot, Building2, FileDiff, FolderTree, GitBranch, Library, type LucideIcon } from "lucide-react";+import { Bot, Building2, FileDiff, Files, FolderTree, GitBranch, type LucideIcon } from "lucide-react";import type { SidePanelTabId } from "@/store/ideSidePanel";import { AgentsOverview } from "./AgentsOverview";import { ExplorerPanel } from "./explorer/ExplorerPanel";@@ -51,7 +51,7 @@ export const SIDE_PANEL_TABS: readonly SidePanelTabDef[] = [{id: "skills",labelKey: "ide_side_panel.tabs.skills",- icon: Library,+ icon: Files,render: () => <SkillsTab />,},{diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillCard.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillCard.tsxindex 79591a07fc..90e3e71627 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillCard.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillCard.tsx@@ -166,18 +166,13 @@ export const SkillCard = memo(function SkillCard({className={cn("group/skill relative flex cursor-grab select-none gap-3 overflow-hidden rounded-xl border bg-card/70 p-3 pl-2.5 outline-none","transition-[border-color,box-shadow,opacity,transform] duration-200 ease-out motion-reduce:transition-none",- "hover:border-[hsl(var(--skill)/0.45)] hover:shadow-[0_8px_24px_-16px_hsl(var(--skill)/0.55)]",+ "hover:border-[hsl(var(--skill)/0.45)]","focus-visible:border-[hsl(var(--skill)/0.6)] focus-visible:ring-2 focus-visible:ring-ring","active:cursor-grabbing",landed ? "border-[hsl(var(--skill)/0.7)] shadow-[0_0_0_3px_hsl(var(--skill)/0.18)]" : "border-border",carried && "scale-[0.98] opacity-40",)}>- {/* The hue's light, rising from the seal's corner on hover. */}- <span- aria-hidden- className="pointer-events-none absolute -left-10 -top-12 h-40 w-40 rounded-full bg-[radial-gradient(closest-side,hsl(var(--skill)/0.16),transparent)] opacity-60 transition-opacity duration-300 group-hover/skill:opacity-100"- />{/* The spine: a thin line of the hue down the leading edge. */}<spanaria-hiddendiff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillEditor.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillEditor.tsxindex ac332399c2..2cab5be200 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillEditor.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillEditor.tsx@@ -1,6 +1,6 @@import { useEffect, useMemo, useRef, useState, type DragEvent } from "react";import { createPortal } from "react-dom";-import { ClipboardPaste, CornerDownLeft, FileUp, Loader2, Sparkles, X } from "lucide-react";+import { ClipboardPaste, CornerDownLeft, FileUp, Loader2, X } from "lucide-react";import { fill, useT } from "@/i18n";import { cn } from "@/lib/utils";import { robustPaste } from "@/lib/clipboard";@@ -13,7 +13,6 @@ import {approxTokens,compactCount,lineCount,- skillIconFor,skillStyle,splitSkillFrontmatter,} from "./skillVisuals";@@ -152,7 +151,6 @@ export function SkillEditor({ seed, onClose, onSave, onPaste, targetPane }: {};const words = content.trim() ? content.trim().split(/\s+/).length : 0;- const AutoIcon = skillIconFor("auto", effectiveTitle, description || derivedDescription);return createPortal(<div@@ -188,9 +186,6 @@ export function SkillEditor({ seed, onClose, onSave, onPaste, targetPane }: {onDrop={dropFile}className="relative flex h-[min(820px,100%)] w-full max-w-5xl flex-col overflow-hidden rounded-2xl border border-border-strong bg-card shadow-float outline-none animate-in zoom-in-[0.98] duration-200 motion-reduce:animate-none">- {/* The hue's light across the top edge: the dialog wears the skill. */}- <div aria-hidden className="pointer-events-none absolute inset-x-0 top-0 h-40 bg-[radial-gradient(120%_100%_at_0%_0%,hsl(var(--skill)/0.16),transparent_60%)]" />- <div aria-hidden className="pointer-events-none absolute inset-x-0 top-0 h-px bg-[linear-gradient(90deg,transparent,hsl(var(--skill)/0.7),transparent)]" /><header className="relative flex items-start gap-4 px-5 pb-4 pt-5"><SkillSeal hue={hue} icon={icon} title={effectiveTitle} description={description || derivedDescription} size="lg" />@@ -251,8 +246,27 @@ export function SkillEditor({ seed, onClose, onSave, onPaste, targetPane }: {<div role="radiogroup" aria-label={t("ide_side_panel.skills.icon_label")} className="flex flex-wrap items-center gap-0.5"><span className="mr-1.5 text-xs text-muted-foreground">{t("ide_side_panel.skills.icon_label")}</span>{SKILL_ICONS.map((entry) => {- const Glyph = entry === "auto" ? AutoIcon : SKILL_ICON[entry];const selected = icon === entry;+ if (entry === "auto") {+ // A word, not a glyph: "pick one from my title" is a choice of rule.+ return (+ <button+ key={entry}+ type="button"+ role="radio"+ aria-checked={selected}+ title={t("ide_side_panel.skills.icon.auto")}+ onClick={() => setIcon(entry)}+ className={cn(+ "mr-1 inline-flex h-7 items-center rounded-md px-2 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",+ selected ? "bg-[hsl(var(--skill)/0.14)] text-[hsl(var(--skill))]" : "text-muted-foreground hover:bg-secondary hover:text-foreground",+ )}+ >+ {t("ide_side_panel.skills.icon_auto_short")}+ </button>+ );+ }+ const Glyph = SKILL_ICON[entry];return (<buttonkey={entry}@@ -267,8 +281,7 @@ export function SkillEditor({ seed, onClose, onSave, onPaste, targetPane }: {selected ? "bg-[hsl(var(--skill)/0.16)] text-[hsl(var(--skill))]" : "text-muted-foreground hover:bg-secondary hover:text-foreground",)}>- <Glyph className="h-4 w-4" aria-hidden />- {entry === "auto" && <Sparkles className="absolute -right-0.5 -top-0.5 h-2.5 w-2.5 text-[hsl(var(--skill))]" aria-hidden />}+ <Glyph className="h-4 w-4" strokeWidth={1.75} aria-hidden /></button>);})}@@ -413,7 +426,7 @@ export function SkillEditor({ seed, onClose, onSave, onPaste, targetPane }: {disabled={!canSave}onClick={() => void save()}title="Ctrl+Enter"- className="inline-flex h-8 items-center gap-1.5 rounded-md bg-[hsl(var(--skill))] px-3.5 text-sm font-medium text-background shadow-[0_6px_18px_-8px_hsl(var(--skill)/0.8)] transition-[filter,opacity] hover:brightness-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card disabled:opacity-40 disabled:shadow-none"+ className="inline-flex h-8 items-center gap-1.5 rounded-md bg-[hsl(var(--skill))] px-3.5 text-sm font-medium text-background transition-[filter,opacity] hover:brightness-110 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card disabled:opacity-40">{saving && <Loader2 className="h-3.5 w-3.5 animate-spin" aria-hidden />}{editing ? t("ide_side_panel.skills.save_changes") : t("ide_side_panel.skills.save_new")}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsHero.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsHero.tsxindex b93d75355c..68a46a3565 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsHero.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsHero.tsx@@ -1,4 +1,4 @@-import { ClipboardPaste, FileUp, Plus, Sparkles } from "lucide-react";+import { ClipboardPaste, FileUp, ListPlus, Plus } from "lucide-react";import { useT } from "@/i18n";import { SkillSeal, skillStyle } from "./skillVisuals";@@ -23,14 +23,14 @@ const HERO_CSS = ``;const FAN = [- { hue: "violet", icon: "brain", tilt: "-6deg", x: 0, y: 2, delay: "0s", title: "Plan" },- { hue: "amber", icon: "shield", tilt: "-1deg", x: 14, y: 38, delay: "-1.8s", title: "Review" },+ { hue: "violet", icon: "plan", tilt: "-6deg", x: 0, y: 2, delay: "0s", title: "Plan" },+ { hue: "amber", icon: "review", tilt: "-1deg", x: 14, y: 38, delay: "-1.8s", title: "Review" },{ hue: "rose", icon: "bug", tilt: "5deg", x: 28, y: 74, delay: "-3.6s", title: "Fix" },] as const;function MiniCard({ hue, icon, title }: { hue: string; icon: string; title: string }) {return (- <div style={skillStyle(hue)} className="flex w-[118px] items-center gap-2 rounded-lg border border-[hsl(var(--skill)/0.4)] bg-card p-1.5 shadow-[0_10px_24px_-14px_hsl(var(--skill)/0.7)]">+ <div style={skillStyle(hue)} className="flex w-[118px] items-center gap-2 rounded-lg border border-[hsl(var(--skill)/0.4)] bg-card p-1.5"><SkillSeal hue={hue} icon={icon} title={title} size="sm" /><div className="min-w-0 flex-1 space-y-1"><div className="h-1.5 w-4/5 rounded-full bg-foreground/25" />@@ -45,7 +45,6 @@ function HeroPicture() {return (<div aria-hidden className="relative mx-auto h-[150px] w-[268px]"><style>{HERO_CSS}</style>- <div className="absolute inset-0 rounded-[28px] bg-[radial-gradient(60%_70%_at_30%_30%,hsl(var(--accent)/0.12),transparent_70%)]" />{FAN.map((card) => (<divkey={card.title}@@ -130,7 +129,7 @@ export function SkillsHero({ onNew, onPaste, onImport, onExamples, addingExampleonClick={onExamples}className="mt-1 inline-flex h-8 items-center justify-center gap-1.5 rounded-md text-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50">- <Sparkles className="h-3.5 w-3.5" aria-hidden />+ <ListPlus className="h-3.5 w-3.5" aria-hidden />{t("ide_side_panel.skills.add_examples")}</button></div>diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsTab.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsTab.tsxindex 8bcafa8621..9bc0ab4437 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsTab.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/SkillsTab.tsx@@ -6,7 +6,6 @@ import {Clock3,FileUp,GripVertical,- Library,Loader2,MousePointerClick,Plus,@@ -277,9 +276,6 @@ export function SkillsTab() {<div data-testid="ide-skills-tab" className="relative flex h-full min-h-0 flex-col" {...fileDrag}><div className="shrink-0 space-y-3 px-3 pb-3 pt-3.5"><div className="flex items-start gap-2.5">- <span aria-hidden className="mt-0.5 inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-[linear-gradient(135deg,hsl(var(--accent)/0.22),hsl(var(--viz-reasoning)/0.18))] text-accent shadow-[inset_0_0_0_1px_hsl(var(--accent)/0.25)]">- <Library className="h-4 w-4" />- </span><div className="min-w-0 flex-1"><h2 className="flex items-baseline gap-2 font-display text-base text-foreground-strong">{t("ide_side_panel.tabs.skills")}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillImport.test.ts b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillImport.test.tsindex 501e57b51d..ba3df75921 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillImport.test.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillImport.test.ts@@ -52,7 +52,10 @@ describe("how a skill looks", () => {it("picks a glyph from the words when left on auto", () => {expect(skillIconFor("auto", "Fix the login bug")).toBe(SKILL_ICON.bug);- expect(skillIconFor("auto", "Something else")).toBe(SKILL_ICON.sparkles);+ expect(skillIconFor("auto", "Something else")).toBe(SKILL_ICON.doc);+ expect(skillIconFor("auto", "Review the auth flow")).toBe(SKILL_ICON.shield);+ expect(skillIconFor("auto", "Plan the migration")).toBe(SKILL_ICON.data);+ expect(skillIconFor("auto", "Speed up the slow query", "Find out why and fix it")).toBe(SKILL_ICON.perf);expect(skillIconFor("rocket", "Fix the login bug")).toBe(SKILL_ICON.rocket);});diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillVisuals.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillVisuals.tsxindex 6cb66a61e7..60e0a7e56f 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillVisuals.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/skillVisuals.tsx@@ -1,18 +1,21 @@import type { CSSProperties } from "react";import {BookOpen,- Brain,Bug,- Code2,+ ClipboardList,+ CodeXml,+ Database,+ FileText,FlaskConical,- GitBranch,+ Gauge,+ GitPullRequest,ListChecks,Palette,Rocket,+ ScanSearch,ShieldCheck,- Sparkles,SquareTerminal,- WandSparkles,+ Wrench,type LucideIcon,} from "lucide-react";import { cn } from "@/lib/utils";@@ -47,52 +50,66 @@ export function skillStyle(hue: string): CSSProperties {return { "--skill": `var(${token})` } as CSSProperties;}+/**+ * Every glyph names a KIND OF WORK — plan, review, test, refactor — never a+ * mood. No sparkles, wands or brains: a skill is a Markdown document the user+ * wrote, and its mark says what the document is for. The fallback is that+ * document itself.+ */export const SKILL_ICON: Record<Exclude<SkillIcon, "auto">, LucideIcon> = {- sparkles: Sparkles,- code: Code2,+ doc: FileText,+ plan: ClipboardList,+ code: CodeXml,bug: Bug,- book: BookOpen,- shield: ShieldCheck,- rocket: Rocket,- wand: WandSparkles,- brain: Brain,flask: FlaskConical,- palette: Palette,- terminal: SquareTerminal,- git: GitBranch,+ review: ScanSearch,+ shield: ShieldCheck,+ refactor: Wrench,+ book: BookOpen,list: ListChecks,+ git: GitPullRequest,+ terminal: SquareTerminal,+ palette: Palette,+ data: Database,+ perf: Gauge,+ rocket: Rocket,};/** Keywords that pick a glyph for a skill left on "auto", first match wins. */const AUTO_RULES: readonly [RegExp, Exclude<SkillIcon, "auto">][] = [[/\b(bug|fix|debug|error|crash|trace)/i, "bug"],[/\b(test|spec|qa|tdd|coverage)/i, "flask"],- [/\b(review|audit|secur|check|lint|verify)/i, "shield"],+ [/\b(secur|auth|vulnerab|secret|permission)/i, "shield"],+ [/\b(review|audit|check|lint|verify|inspect)/i, "review"],[/\b(git|commit|branch|merge|pull request|pr)\b/i, "git"],+ [/\b(perf|speed|fast|slow|latency|optimi[sz])/i, "perf"],+ [/\b(sql|database|schema|migration|query|data)\b/i, "data"],[/\b(design|ui|ux|style|css|colou?r|layout|visual)/i, "palette"],[/\b(deploy|release|ship|launch|publish)/i, "rocket"],- [/\b(refactor|clean|simplif|tidy|rename)/i, "wand"],- [/\b(plan|think|architect|brainstorm|idea|strategy)/i, "brain"],+ [/\b(refactor|clean|simplif|tidy|rename)/i, "refactor"],+ [/\b(plan|think|architect|brainstorm|idea|strategy|spec)/i, "plan"],[/\b(shell|cli|terminal|bash|command|script)/i, "terminal"],[/\b(todo|checklist|steps|list|workflow)/i, "list"],- [/\b(doc|readme|write|explain|blog|guide|prompt)/i, "book"],+ [/\b(docs?|readme|explain|blog|guide|tutorial)\b/i, "book"],[/\b(code|function|api|implement|typescript|python)/i, "code"],];/** The glyph a skill wears: its own choice, else one its words suggest. */export function skillIconFor(icon: string, title: string, description = ""): LucideIcon {if (icon !== "auto" && icon in SKILL_ICON) return SKILL_ICON[icon as Exclude<SkillIcon, "auto">];- const words = `${title} ${description}`;- const match = AUTO_RULES.find(([pattern]) => pattern.test(words));- return SKILL_ICON[match ? match[1] : "sparkles"];+ // The title names the job; the description only breaks a tie the title left open.+ const match =+ AUTO_RULES.find(([pattern]) => pattern.test(title)) ??+ AUTO_RULES.find(([pattern]) => pattern.test(description));+ return SKILL_ICON[match ? match[1] : "doc"];}/**- * The skill's seal: its glyph on a lit tile of its hue.+ * The skill's mark: its glyph in its hue on a flat tile.*- * Two soft layers of the hue (a wash and a brighter corner) with a hairline- * rim of the same hue, so the tile reads as made of the colour rather than- * painted on — and stays legible at 4 % dark and on white.+ * Deliberately plain — one quiet wash of the hue and a hairline rim, no+ * gradient, no glow: the colour tells skills apart, the glyph says what each+ * one is for, and nothing else competes with the title beside it.*/export function SkillSeal({ hue, icon, title, description, size = "md", className }: {hue: string;@@ -103,22 +120,20 @@ export function SkillSeal({ hue, icon, title, description, size = "md", classNamclassName?: string;}) {const Icon = skillIconFor(icon, title, description);- const box = size === "lg" ? "h-12 w-12 rounded-xl" : size === "sm" ? "h-7 w-7 rounded-lg" : "h-9 w-9 rounded-[10px]";- const glyph = size === "lg" ? "h-6 w-6" : size === "sm" ? "h-3.5 w-3.5" : "h-[18px] w-[18px]";+ const box = size === "lg" ? "h-11 w-11 rounded-lg" : size === "sm" ? "h-7 w-7 rounded-md" : "h-9 w-9 rounded-lg";+ const glyph = size === "lg" ? "h-5 w-5" : size === "sm" ? "h-3.5 w-3.5" : "h-[18px] w-[18px]";return (<spanaria-hiddenstyle={skillStyle(hue)}className={cn(- "relative inline-flex shrink-0 items-center justify-center overflow-hidden text-[hsl(var(--skill))]",- "bg-[linear-gradient(135deg,hsl(var(--skill)/0.26),hsl(var(--skill)/0.08))]",- "shadow-[inset_0_0_0_1px_hsl(var(--skill)/0.32),inset_0_1px_0_0_hsl(var(--skill)/0.25)]",+ "inline-flex shrink-0 items-center justify-center text-[hsl(var(--skill))]",+ "bg-[hsl(var(--skill)/0.10)] ring-1 ring-inset ring-[hsl(var(--skill)/0.22)]",box,className,)}>- <span className="pointer-events-none absolute -right-2 -top-2 h-2/3 w-2/3 rounded-full bg-[hsl(var(--skill)/0.28)] blur-md" />- <Icon className={cn("relative", glyph)} strokeWidth={1.9} />+ <Icon className={glyph} strokeWidth={1.75} /></span>);}diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/starterSkills.ts b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/starterSkills.tsindex 01de989393..bcfbba6b73 100644--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/starterSkills.ts+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/skills/starterSkills.ts@@ -9,7 +9,7 @@ export const STARTER_SKILLS: readonly IdeSkillDraft[] = [{title: "Plan before coding",hue: "violet",- icon: "brain",+ icon: "plan",content: `# Plan before codingBefore you change any file:@@ -43,7 +43,7 @@ Bug:{title: "Code review checklist",hue: "amber",- icon: "shield",+ icon: "review",content: `# Code review checklistReview the current diff. For each finding give file:line, what is wrong and a concrete fix.diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 60e71730f1..c58fec6491 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -6244,6 +6244,7 @@"close": "Schließen","colour_label": "Farbe","icon_label": "Symbol",+ "icon_auto_short": "Auto","view_label": "Ansicht","view_write": "Schreiben","view_preview": "Vorschau",@@ -6273,20 +6274,23 @@"slate": "Schiefer"},"icon": {- "auto": "Automatisch (aus dem Titel)",- "sparkles": "Funkeln",+ "auto": "Automatisch: aus dem Titel gewählt",+ "doc": "Dokument",+ "plan": "Plan","code": "Code",- "bug": "Bug",- "book": "Buch",- "shield": "Schild",- "rocket": "Rakete",- "wand": "Zauberstab",- "brain": "Gehirn",- "flask": "Kolben",- "palette": "Palette",- "terminal": "Terminal",+ "bug": "Bugfix",+ "flask": "Tests",+ "review": "Review",+ "shield": "Sicherheit",+ "refactor": "Refactoring",+ "book": "Doku",+ "list": "Checkliste","git": "Git",- "list": "Checkliste"+ "terminal": "Shell",+ "palette": "Design",+ "data": "Daten",+ "perf": "Performance",+ "rocket": "Release"}},"office": {diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 858f06e91b..f7197c4df4 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -6277,6 +6277,7 @@"close": "Close","colour_label": "Colour","icon_label": "Icon",+ "icon_auto_short": "Auto","view_label": "View","view_write": "Write","view_preview": "Preview",@@ -6306,20 +6307,23 @@"slate": "Slate"},"icon": {- "auto": "Automatic (from the title)",- "sparkles": "Sparkles",+ "auto": "Automatic: chosen from the title",+ "doc": "Document",+ "plan": "Plan","code": "Code",- "bug": "Bug",- "book": "Book",- "shield": "Shield",- "rocket": "Rocket",- "wand": "Wand",- "brain": "Brain",- "flask": "Flask",- "palette": "Palette",- "terminal": "Terminal",+ "bug": "Bug fix",+ "flask": "Tests",+ "review": "Review",+ "shield": "Security",+ "refactor": "Refactor",+ "book": "Docs",+ "list": "Checklist","git": "Git",- "list": "Checklist"+ "terminal": "Shell",+ "palette": "Design",+ "data": "Data",+ "perf": "Performance",+ "rocket": "Release"}},"office": {diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex b0431533fc..bfeaaadf83 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -6244,6 +6244,7 @@"close": "Cerrar","colour_label": "Color","icon_label": "Icono",+ "icon_auto_short": "Auto","view_label": "Vista","view_write": "Escribir","view_preview": "Vista previa",@@ -6273,20 +6274,23 @@"slate": "Pizarra"},"icon": {- "auto": "Automático (según el título)",- "sparkles": "Destellos",+ "auto": "Automático: elegido por el título",+ "doc": "Documento",+ "plan": "Plan","code": "Código",- "bug": "Error",- "book": "Libro",- "shield": "Escudo",- "rocket": "Cohete",- "wand": "Varita",- "brain": "Cerebro",- "flask": "Matraz",- "palette": "Paleta",- "terminal": "Terminal",+ "bug": "Corrección",+ "flask": "Pruebas",+ "review": "Revisión",+ "shield": "Seguridad",+ "refactor": "Refactorización",+ "book": "Documentación",+ "list": "Lista de control","git": "Git",- "list": "Lista de control"+ "terminal": "Shell",+ "palette": "Diseño",+ "data": "Datos",+ "perf": "Rendimiento",+ "rocket": "Lanzamiento"}},"office": {diff --git a/jarvis/ui/web/frontend/src/lib/ideSkillsApi.ts b/jarvis/ui/web/frontend/src/lib/ideSkillsApi.tsindex 9bedbe85da..d49832f092 100644--- a/jarvis/ui/web/frontend/src/lib/ideSkillsApi.ts+++ b/jarvis/ui/web/frontend/src/lib/ideSkillsApi.ts@@ -6,9 +6,10 @@export const SKILL_HUES = ["blue", "violet", "teal", "amber", "rose", "green", "magenta", "slate"] as const;export type SkillHue = (typeof SKILL_HUES)[number];-/** The glyphs a skill can wear; "auto" picks one from the title. */+/** The glyphs a skill can wear; "auto" picks one from the title. Same order as the backend. */export const SKILL_ICONS = [- "auto", "sparkles", "code", "bug", "book", "shield", "rocket", "wand", "brain", "flask", "palette", "terminal", "git", "list",+ "auto", "doc", "plan", "code", "bug", "flask", "review", "shield", "refactor", "book", "list", "git", "terminal",+ "palette", "data", "perf", "rocket",] as const;export type SkillIcon = (typeof SKILL_ICONS)[number];diff --git a/tests/unit/ui/web/test_ide_skills_routes.py b/tests/unit/ui/web/test_ide_skills_routes.pyindex fc376e5014..6fb7d5c3e7 100644--- a/tests/unit/ui/web/test_ide_skills_routes.py+++ b/tests/unit/ui/web/test_ide_skills_routes.py@@ -1,6 +1,7 @@"""REST route tests for the Agentic IDE skill library (saved Markdown prompts)."""from __future__ import annotations+import jsonfrom pathlib import Pathimport pytest@@ -128,3 +129,23 @@ def test_derive_helpers_skip_fences_and_tables() -> None:text = "# Title\n\n```\ncode\n```\n| a | b |\n> Quoted *lead* line\n"assert derive_title(text) == "Title"assert derive_description(text) == "Quoted *lead* line"+++def test_retired_glyphs_are_read_as_their_successors(+ tmp_path: Path, monkeypatch: pytest.MonkeyPatch+) -> None:+ monkeypatch.setenv("LOCALAPPDATA", str(tmp_path))+ monkeypatch.setenv("HOME", str(tmp_path))+ path = skill_library_path()+ path.parent.mkdir(parents=True, exist_ok=True)+ stored = [+ {"id": f"s{i}", "title": icon, "content": "x", "icon": icon}+ for i, icon in enumerate(["sparkles", "wand", "brain", "unknown"])+ ]+ path.write_text(json.dumps({"version": 1, "skills": stored}), encoding="utf-8")+ icons = [skill.icon for skill in SkillLibrary().list_all()]+ assert icons == ["auto", "refactor", "plan", "auto"]+++def test_bom_before_frontmatter_is_ignored() -> None:+ assert derive_title("\ufeff---\nname: pr-review\n---\nbody") == "pr-review"