Skip to content

Commit 7f9da49

Browse files
author
Kevin
committed
refactor: update terminology from 'agent' to 'robot' for consistency
1 parent 12e9eb4 commit 7f9da49

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/Status.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,14 @@ export function Status({ id }: { id: number }) {
8484
)
8585
.map((c) => c.id)
8686
.uniq()
87-
.thru(
88-
(ids) =>
89-
`${ids.length > 1 ? "agents" : "agent"} ${ids.join(", ")}`
90-
)
87+
.join(", ")
9188
.value()}`,
9289
}
9390
: { color: colors.success, label: "Active" };
9491
return (
9592
<div className={cls}>
9693
<h4>
97-
Agent {id}{" "}
94+
Robot {id}{" "}
9895
<span>
9996
<Dot color={status.color} /> {status.label}
10097
</span>

src/client/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const useAgentInfo = (i: number) => {
134134
const previous = usePreviousDefined(v1 || initial);
135135
return !v1
136136
? {
137-
value: { ...previous.value, state: "unknown" },
137+
value: { ...previous.value!, state: "unknown" },
138138
isPrevious: true,
139139
}
140140
: previous;

src/leva-controls/Inputs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function Inputs() {
9090
? `Simulating (Step ${length})`
9191
: contents?.count
9292
? `Simulate (${contents.count} ${
93-
contents.count === 1 ? "agent" : "agents"
93+
contents.count === 1 ? "robot" : "robots"
9494
})`
9595
: "Simulate",
9696
},

0 commit comments

Comments
 (0)