ui: rename learner-facing 'knowledge context' copy to 'graph context' (components + render tests)

This commit is contained in:
amosblomqvist
2026-09-18 18:03:25 +03:00
parent 4f83fd4827
commit cbecb8df03
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ function ActivityBlobRow({
: blob.jobKind === "visual"
? "Figure maker"
: blob.jobKind === "graph-context"
? "Knowledge context"
? "Graph context"
: "Sub-agent";
return (
<div
+1 -1
View File
@@ -23,7 +23,7 @@ const KIND_LABEL: Record<JobKind, string> = {
visual: "Figure agent",
// The injection is server-initiated — it has no tool part, so never a
// dispatch card. The entry exists only for the exhaustive record.
"graph-context": "Knowledge context",
"graph-context": "Graph context",
};
export function DispatchCard({ toolCallId, kind }: { toolCallId: string; kind: JobKind }) {
+1 -1
View File
@@ -45,7 +45,7 @@ export function GraphContextControl({
return (
<div data-testid={testId} className="flex items-center gap-2 text-xs text-muted-foreground">
<BookOpenIcon className="size-3 shrink-0" />
<span className="shrink-0">Knowledge context</span>
<span className="shrink-0">Graph context</span>
<input
type="range"
min={0}
+2 -2
View File
@@ -47,8 +47,8 @@ export function GraphContextMarker({
}, [open]);
const summary = data
? `Knowledge context — ~${formatTokens(data.tokens)} · ${data.propositions.length} propositions`
: "Knowledge context";
? `Graph context — ~${formatTokens(data.tokens)} · ${data.propositions.length} propositions`
: "Graph context";
return (
<div ref={ref} data-testid={testId} className="relative flex items-center justify-center py-1">