Skip to content

Commit f0681dc

Browse files
committed
fix(gui): replace question-mark help glyphs
1 parent 1e4eb36 commit f0681dc

4 files changed

Lines changed: 15 additions & 8 deletions

File tree

docs-site/src/assets/dashboard.png

62.8 KB
Loading

gui/src/icons.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const IconPlus = (p: P) => (<svg {...S(p)}><path d="M12 5v14M5 12h14"/></
2121
export const IconRefresh = (p: P) => (<svg {...S(p)}><path d="M21 12a9 9 0 0 1-9 9 9.8 9.8 0 0 1-6.7-2.7L3 16M3 21v-5h5M3 12a9 9 0 0 1 9-9 9.8 9.8 0 0 1 6.7 2.7L21 8M21 3v5h-5"/></svg>);
2222
export const IconTrash = (p: P) => (<svg {...S(p)}><path d="M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6"/></svg>);
2323
export const IconAlert = (p: P) => (<svg {...S(p)}><path d="M10.3 3.7 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.7a2 2 0 0 0-3.4 0Z"/><path d="M12 9v4M12 17h.01"/></svg>);
24+
export const IconInfo = (p: P) => (<svg {...S(p)}><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>);
2425
export const IconSearch = (p: P) => (<svg {...S(p)}><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>);
2526
export const IconArrowUp = (p: P) => (<svg {...S(p)}><path d="M12 19V5M5 12l7-7 7 7"/></svg>);
2627
export const IconArrowDown = (p: P) => (<svg {...S(p)}><path d="M12 5v14M19 12l-7 7-7-7"/></svg>);

gui/src/pages/Dashboard.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useMemo, useState } from "react";
22
import { formatUptime } from "../formatUptime";
3-
import { IconAlert, IconExternal, IconRefresh, IconX } from "../icons";
3+
import { IconAlert, IconExternal, IconInfo, IconRefresh, IconX } from "../icons";
44
import { useI18n, Trans } from "../i18n";
55
import { formatTokens } from "../format-tokens";
66
import { EmptyState, Select } from "../ui";
@@ -377,10 +377,13 @@ export default function Dashboard({ apiBase }: { apiBase: string }) {
377377
<button
378378
type="button"
379379
className="btn btn-ghost btn-sm"
380-
style={{ width: 18, height: 18, padding: 0, borderRadius: 999, fontSize: 11, fontWeight: 700, color: "var(--muted)", lineHeight: 1 }}
380+
style={{ width: 24, height: 24, minWidth: 24, flex: "0 0 24px", padding: 0, borderRadius: 999, color: "var(--muted)" }}
381381
onClick={() => setMaHelpOpen(true)}
382-
aria-label="Help"
383-
>?</button>
382+
aria-label={t("dash.multiAgent")}
383+
aria-haspopup="dialog"
384+
>
385+
<IconInfo width={14} height={14} aria-hidden="true" />
386+
</button>
384387
</div>
385388
<div className="value" style={{ display: "flex", alignItems: "center", justifyContent: "center" }}>
386389
<div role="radiogroup" aria-label={t("dash.multiAgent")} style={{ display: "inline-flex", borderRadius: 999, background: "var(--surface-soft, var(--raised))", padding: 3, gap: 2 }}>

gui/src/pages/Models.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useMemo, useRef, useState } from "react";
22
import { Switch, Notice, EmptyState, Select } from "../ui";
3-
import { IconChevron, IconBoxes } from "../icons";
3+
import { IconChevron, IconBoxes, IconInfo } from "../icons";
44
import { useT } from "../i18n";
55
import { modelLabel } from "../model-display";
66

@@ -361,10 +361,13 @@ export default function Models({ apiBase }: { apiBase: string }) {
361361
<button
362362
type="button"
363363
className="btn btn-ghost btn-sm"
364-
style={{ width: 22, height: 22, padding: 0, borderRadius: 999, fontSize: 12, fontWeight: 700, color: "var(--muted)" }}
364+
style={{ width: 24, height: 24, minWidth: 24, flex: "0 0 24px", padding: 0, borderRadius: 999, color: "var(--muted)" }}
365365
onClick={() => setV2HelpOpen(true)}
366-
aria-label="Help"
367-
>?</button>
366+
aria-label={t("models.v2Label")}
367+
aria-haspopup="dialog"
368+
>
369+
<IconInfo width={14} height={14} aria-hidden="true" />
370+
</button>
368371
{v2.enabled && (
369372
<>
370373
<span className="muted" style={{ fontSize: 13, marginLeft: 8 }}>{t("models.v2ThreadsLabel")}</span>

0 commit comments

Comments
 (0)