Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Desktop: People and Agents share one row shape, no ranks, tabs' status marks (Dee) (#2205)

0xken1526d09679756b
diff --git a/desktop/design/desktop-design-system.md b/desktop/design/desktop-design-system.md
index 53a448740..bb309bd65 100644
--- a/desktop/design/desktop-design-system.md
+++ b/desktop/design/desktop-design-system.md
@@ -286,6 +286,10 @@ sized for the widest expected value; names take the remaining width and
truncate first. Row anatomy is the list rule above: rank, identity, name with
its metadata, then trend and the emphasized number at the right.
+The left pane's People and Agents have no rank number (Dee, 2026-10-29):
+people sort by name with their points at the right, and the crown sits after
+the week's top person's name.
+
A place is its numeral; a celebration mark sits beside it and never replaces
it, as [Team and celebration](#team-and-celebration) describes. Color never
carries a trend, a rank or a threshold on its own: the arrow's direction, the
@@ -318,7 +322,8 @@ Never "Great job!", "Awesome!" or praise that would fit anyone. The words
follow the [Naming System](../../docs/naming-system.md) like any other copy.
**Ranks still line up.** The #1 crown sits beside #1's name, after the rank
-numeral; it never replaces the numeral and never moves the columns. Rank,
+numeral where a list has one (the left pane's People has none); it never
+replaces the numeral and never moves the columns. Rank,
points and counts keep [Numbers and rankings](#numbers-and-rankings): tabular
figures, fixed columns, one emphasized number. A row with a crown is exactly
as tall as a row without one.
diff --git a/desktop/lib/super_tabs/leaderboard/member_row.dart b/desktop/lib/super_tabs/leaderboard/member_row.dart
new file mode 100644
index 000000000..d2fdac7e8
--- /dev/null
+++ b/desktop/lib/super_tabs/leaderboard/member_row.dart
@@ -0,0 +1,100 @@
+import 'package:flutter/material.dart';
+
+import '../../shared/theme/app_theme.dart' as grid;
+import '../../widgets/desktop_chrome.dart';
+import '../../widgets/finger_target.dart';
+
+/// The gap between a row's columns, and half of it: the spacing scale's 8
+/// and 4.
+const _gap = grid.AppDesktop.controlGap;
+const _halfGap = _gap / 2;
+
+/// One row of the left pane's People and Agents (Dee, 2026-10-29): the avatar
+/// in one column for both, the name with [trailing] at the right of its line
+/// (a person's points, an agent's status mark), and a quiet [detail] line
+/// beneath that starts where the name does. [selected] fills the viewer's own
+/// row.
+class SuperTabMemberRow extends StatelessWidget {
+ const SuperTabMemberRow({
+ super.key,
+ required this.rowKey,
+ required this.avatar,
+ required this.name,
+ required this.onTap,
+ this.detail,
+ this.trailing,
+ this.onLongPress,
+ this.selected = false,
+ });
+
+ /// The key of the row's tappable surface, where tests and focus find it.
+ final Key rowKey;
+ final Widget avatar, name;
+ final Widget? detail, trailing;
+ final VoidCallback onTap;
+ final VoidCallback? onLongPress;
+ final bool selected;
+
+ @override
+ Widget build(BuildContext context) {
+ final radius = BorderRadius.circular(DesktopChrome.rowRadius);
+ final trailing = this.trailing, detail = this.detail;
+ return Padding(
+ padding: const EdgeInsets.symmetric(horizontal: _gap),
+ child: Material(
+ color: selected ? grid.AppSurface.selectedFill : Colors.transparent,
+ borderRadius: radius,
+ clipBehavior: Clip.antiAlias,
+ child: InkWell(
+ key: rowKey,
+ onTap: onTap,
+ onLongPress: onLongPress,
+ // Hover and focus keep their treatment over the viewer's own fill.
+ hoverColor: grid.AppSurface.hoverFill,
+ focusColor: grid.AppSurface.hoverFill,
+ borderRadius: radius,
+ child: ConstrainedBox(
+ // A phone's row is a finger's height; a mouse keeps a field's.
+ constraints: BoxConstraints(
+ minHeight: fingerHeight(
+ grid.AppControl.heightField,
+ enabled: workspaceIsCompact(context),
+ ),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(
+ horizontal: _gap,
+ vertical: _halfGap,
+ ),
+ child: Row(
+ children: [
+ avatar,
+ const SizedBox(width: _gap),
+ Expanded(
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Row(
+ children: [
+ Expanded(child: name),
+ if (trailing != null)
+ Padding(
+ padding: const EdgeInsets.only(left: _gap),
+ child: trailing,
+ ),
+ ],
+ ),
+ ?detail,
+ ],
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/desktop/lib/super_tabs/leaderboard/person_row.dart b/desktop/lib/super_tabs/leaderboard/person_row.dart
index 7bf89eb72..d2dd3cbaf 100644
--- a/desktop/lib/super_tabs/leaderboard/person_row.dart
+++ b/desktop/lib/super_tabs/leaderboard/person_row.dart
@@ -4,11 +4,11 @@ import 'package:url_launcher/url_launcher.dart';
import '../../shared/theme/app_theme.dart' as grid;
import '../../widgets/desktop_chrome.dart';
-import '../../widgets/finger_target.dart';
import '../identity.dart';
import '../model.dart';
import '../until.dart';
import 'format.dart';
+import 'member_row.dart';
import 'model.dart';
/// The gap between a row's columns, and half of it: the spacing scale's 8
@@ -16,18 +16,11 @@ import 'model.dart';
const _gap = grid.AppDesktop.controlGap;
const _halfGap = _gap / 2;
-/// The avatar the Agents rows below draw, so without a rank column a person's
-/// name starts where an agent's does.
+/// The avatar People and Agents rows both draw, in one column.
const _avatarSize = SuperTabAvatar.rowSize;
-/// Numbers and rankings (desktop design system): the rank a bold numeral in
-/// secondary ink, the points the one emphasized number, every figure in a
-/// column of one width so the column holds row under row.
-TextStyle leaderboardRankStyle() => grid.AppType.label(
- fontWeight: FontWeight.w700,
- color: grid.AppPalette.textSecondary,
- fontFeatures: grid.AppFont.tabularFigures,
-);
+/// Numbers (desktop design system): the points the one emphasized number, in
+/// a column of one width so it holds row under row.
TextStyle leaderboardPointsStyle() => grid.AppType.label(
fontWeight: grid.AppFont.semibold,
color: grid.AppPalette.textPrimary,
@@ -55,57 +48,38 @@ List<String> leaderboardNumbers(SuperTabPersonScore score) {
];
}
-/// The board's fixed numeric columns, each as wide as its widest value at
-/// the current text size, so rank and points line up on every row.
+/// The board's points column, as wide as its widest value at the current text
+/// size, so the points line up on every row.
class LeaderboardColumns {
- const LeaderboardColumns({required this.rank, required this.points});
-
- factory LeaderboardColumns.of(
- BuildContext context,
- List<SuperTabPersonScore> scores,
- ) => LeaderboardColumns.measure(
- context,
- ranks: scores.map((score) => score.rank),
- points: scores.map((score) => score.points),
- );
+ const LeaderboardColumns({required this.points});
- /// The columns for any ranked list: people, agents or models.
factory LeaderboardColumns.measure(
BuildContext context, {
- required Iterable<int> ranks,
required Iterable<int> points,
}) {
- final scaler = MediaQuery.textScalerOf(context);
- double width(String text, TextStyle style) {
- final painter = TextPainter(
- text: TextSpan(text: text, style: style),
- textDirection: TextDirection.ltr,
- textScaler: scaler,
- )..layout();
- final width = painter.width;
- painter.dispose();
- return width;
- }
-
// Digits are of one width, so the longest number is the widest.
- String widest(Iterable<int> values) => values
+ final widest = points
.map((value) => '$value')
.fold('0', (a, b) => b.length > a.length ? b : a);
- return LeaderboardColumns(
- rank: width(widest(ranks), leaderboardRankStyle()),
- points: width(widest(points), leaderboardPointsStyle()),
- );
+ final painter = TextPainter(
+ text: TextSpan(text: widest, style: leaderboardPointsStyle()),
+ textDirection: TextDirection.ltr,
+ textScaler: MediaQuery.textScalerOf(context),
+ )..layout();
+ final width = painter.width;
+ painter.dispose();
+ return LeaderboardColumns(points: width);
}
- final double rank, points;
+ final double points;
}
-/// One person in the Humans section: their rank as a bold numeral in its own
-/// column, avatar, name (number one's with a crown beside it) and status, and
-/// a quiet line of their non-zero numbers beneath; at the right their points,
-/// the one number (Dee, 2026-10-29). The viewer's own row carries the selected
-/// fill. Without a [score] (no board yet, or a server without
-/// one) only the name and status.
+/// One person in the People section, in the row shape the agents share
+/// (Dee, 2026-10-29): avatar, name (number one's with a crown beside it) and
+/// status, their points at the right of that line, and a quiet line of their
+/// non-zero numbers beneath. No rank. The viewer's own row carries the
+/// selected fill. Without a [score] (no board yet, or a server without one)
+/// only the name and status.
class LeaderboardPersonRow extends StatelessWidget {
const LeaderboardPersonRow({
super.key,
@@ -120,7 +94,7 @@ class LeaderboardPersonRow extends StatelessWidget {
final SuperTabPersonScore? score;
final VoidCallback onTap;
- /// The numeric columns, the same on every row; null without a board.
+ /// The points column, the same on every row; null without a board.
final LeaderboardColumns? columns;
/// Whether this is the viewer's own row.
@@ -136,94 +110,36 @@ class LeaderboardPersonRow extends StatelessWidget {
final numbers = score == null
? const <String>[]
: leaderboardNumbers(score);
- final radius = BorderRadius.circular(DesktopChrome.rowRadius);
- Widget column(String kind, double width, Widget? child) => Padding(
- padding: const EdgeInsets.only(left: _gap),
- child: SizedBox(
- key: ValueKey('leaderboard-$kind-${person.id}'),
- width: width,
- child: Align(alignment: Alignment.centerRight, child: child),
- ),
- );
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: _gap),
- child: Material(
- color: own ? grid.AppSurface.selectedFill : Colors.transparent,
- borderRadius: radius,
- clipBehavior: Clip.antiAlias,
- child: InkWell(
- key: ValueKey('super-person-${person.id}'),
- onTap: onTap,
- // Hover and focus keep their treatment over the viewer's own fill.
- hoverColor: grid.AppSurface.hoverFill,
- focusColor: grid.AppSurface.hoverFill,
- borderRadius: radius,
- child: ConstrainedBox(
- // A phone's row is a finger's height; a mouse keeps a field's.
- constraints: BoxConstraints(
- minHeight: fingerHeight(
- grid.AppControl.heightField,
- enabled: workspaceIsCompact(context),
- ),
+ return SuperTabMemberRow(
+ rowKey: ValueKey('super-person-${person.id}'),
+ onTap: onTap,
+ selected: own,
+ avatar: SuperTabAvatar.person(person, size: _avatarSize),
+ name: _name(),
+ detail: numbers.isEmpty
+ ? null
+ : LeaderboardNumbers(
+ key: ValueKey('leaderboard-meta-${person.id}'),
+ parts: numbers,
),
- child: Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: _gap,
- vertical: _halfGap,
- ),
- child: Row(
- children: [
- if (columns != null) ...[
- SizedBox(
- key: ValueKey('leaderboard-rank-${person.id}'),
- width: columns.rank,
- child: score == null
- ? null
- : Text(
- '${score.rank}',
- maxLines: 1,
- textAlign: TextAlign.right,
- style: leaderboardRankStyle(),
- ),
- ),
- const SizedBox(width: _gap),
- ],
- SuperTabAvatar.person(person, size: _avatarSize),
- const SizedBox(width: _gap),
- Expanded(
- child: Column(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- _name(),
- if (numbers.isNotEmpty)
- LeaderboardNumbers(
- key: ValueKey('leaderboard-meta-${person.id}'),
- parts: numbers,
- ),
- ],
- ),
+ trailing: columns == null || score == null
+ ? null
+ : SizedBox(
+ key: ValueKey('leaderboard-points-${person.id}'),
+ width: columns.points,
+ child: Align(
+ alignment: Alignment.centerRight,
+ child: Semantics(
+ label: '${score.points} points',
+ excludeSemantics: true,
+ child: Text(
+ '${score.points}',
+ maxLines: 1,
+ style: leaderboardPointsStyle(),
),
- if (columns != null && score != null)
- column(
- 'points',
- columns.points,
- Semantics(
- label: '${score.points} points',
- excludeSemantics: true,
- child: Text(
- '${score.points}',
- maxLines: 1,
- style: leaderboardPointsStyle(),
- ),
- ),
- ),
- ],
+ ),
),
),
- ),
- ),
- ),
);
}
diff --git a/desktop/lib/super_tabs/roster.dart b/desktop/lib/super_tabs/roster.dart
index 067746a45..ab4379072 100644
--- a/desktop/lib/super_tabs/roster.dart
+++ b/desktop/lib/super_tabs/roster.dart
@@ -12,7 +12,6 @@ import '../state/harness_activity.dart';
import '../terminal/terminal_theme.dart';
import '../terminal/terminal_theme_store.dart';
import '../widgets/desktop_chrome.dart';
-import '../widgets/engine_identity.dart';
import '../widgets/harness_activity_mark.dart';
import 'agent_details.dart';
import 'controller.dart';
@@ -20,6 +19,7 @@ import 'detail_dialog.dart';
import 'dialog_scope.dart';
import 'identity.dart';
import 'leaderboard/format.dart';
+import 'leaderboard/member_row.dart';
import 'leaderboard/model.dart';
import 'leaderboard/person_row.dart';
import 'leaderboard/reader.dart';
@@ -332,17 +332,21 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
},
);
- /// An agent's row: today's identity and status line, and on a board its
- /// [rank] at the start and [points] at the end, in the people's columns.
- /// An agent the board does not score keeps both columns empty.
- Widget _agent(
- SuperTabAgent agent, {
- LeaderboardColumns? columns,
- int? rank,
- int? points,
- }) {
+ /// The mark an agent's row shows, which also orders the list: its activity,
+ /// except that lost work shows the tabs' Offline, since nothing runs it
+ /// (Dee, 2026-10-29).
+ HarnessActivity _shownActivity(SuperTabAgentInfo info) =>
+ info.taskGroup?.assignment?['status'] == 'lost'
+ ? HarnessActivity.offline
+ : info.activity ?? HarnessActivity.unknown;
+
+ /// An agent's row, in the shape the people's rows share (Dee, 2026-10-29):
+ /// avatar, name and role chip, today's one status line beneath, and the
+ /// tabs' status mark at the right. No rank and no points.
+ Widget _agent(SuperTabAgent agent) {
final name = c.snapshot!.agentName(agent.id), activity = _activity(agent);
final info = SuperTabAgentInfo(c, widget.app, agent, activity: activity);
+ final shown = _shownActivity(info);
// One line, readable in a second (Dee, 2026-10-27): state, machine, model and effort. The task is in the tooltip.
final glance = superTabAgentGlance(info);
final project = c.snapshot!.projects
@@ -412,102 +416,35 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
}
}
},
- child: ListTile(
- key: ValueKey('super-member-${agent.id}'),
- dense: true,
- minTileHeight: 48,
- minVerticalPadding: 6,
- contentPadding: const EdgeInsets.symmetric(horizontal: 16),
- title: Row(
- children: [
- if (columns != null) ...[
- SizedBox(
- width: columns.rank,
- child: rank == null
- ? null
- : Text(
- '$rank',
- key: ValueKey('super-member-rank-${agent.id}'),
- maxLines: 1,
- textAlign: TextAlign.right,
- style: leaderboardRankStyle(),
- ),
- ),
- const SizedBox(width: DesktopChrome.controlGap),
- ],
- SuperTabAvatar.agent(
- agent,
- name: name,
- size: SuperTabAvatar.rowSize,
- engineBadge: false,
- ),
- const SizedBox(width: 8),
- Expanded(child: _agentIdentity(name, role, badge)),
- const SizedBox(width: 8),
- EngineMark(engine: agent.engine, size: 14),
- if (columns != null)
- Padding(
- padding: const EdgeInsets.only(
- left: DesktopChrome.controlGap,
- ),
- child: SizedBox(
- width: columns.points,
- child: points == null
- ? null
- : Align(
- alignment: Alignment.centerRight,
- child: Semantics(
- label: plural(points, 'point'),
- excludeSemantics: true,
- child: Text(
- '$points',
- key: ValueKey(
- 'super-member-points-${agent.id}',
- ),
- maxLines: 1,
- style: leaderboardPointsStyle(),
- ),
- ),
- ),
- ),
- ),
- ],
+ child: SuperTabMemberRow(
+ rowKey: ValueKey('super-member-${agent.id}'),
+ onTap: () => unawaited(_details(agent)),
+ onLongPress: () => unawaited(_details(agent)),
+ avatar: SuperTabAvatar.agent(
+ agent,
+ name: name,
+ size: SuperTabAvatar.rowSize,
+ engineBadge: false,
),
- subtitle: Padding(
- padding: EdgeInsets.only(
- left:
- 32 +
- (columns == null
- ? 0
- : columns.rank + DesktopChrome.controlGap),
- ),
- child: Row(
- children: [
- ActivityMark(
- activity: activity,
- tooltip: false,
- showIdle: true,
- color: activityColor(
- activity,
- theme,
- color: appearancePrefsStore.value.prompt.color,
- ),
- ),
- const SizedBox(width: 6),
- Expanded(
- child: Text(
- glance.line,
- key: ValueKey('super-member-line-${agent.id}'),
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: DesktopChrome.metadata(),
- ),
- ),
- ],
+ name: _agentIdentity(name, role, badge),
+ detail: Text(
+ glance.line,
+ key: ValueKey('super-member-line-${agent.id}'),
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: DesktopChrome.metadata(),
+ ),
+ trailing: ActivityMark(
+ key: ValueKey('super-member-mark-${agent.id}'),
+ activity: shown,
+ tooltip: false,
+ showIdle: true,
+ color: activityColor(
+ shown,
+ theme,
+ color: appearancePrefsStore.value.prompt.color,
),
),
- onTap: () => unawaited(_details(agent)),
- onLongPress: () => unawaited(_details(agent)),
),
),
);
@@ -551,53 +488,39 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
final scores = {
for (final score in board?.people ?? const []) score.personId: score,
};
- // Most points first, as the board ranks them; anyone it has no score for after.
- final ranked = [
- ...?board?.people
- .map(
- (score) => people.where((p) => p.id == score.personId).firstOrNull,
- )
- .nonNulls,
- ...people.where((p) => !scores.containsKey(p.id)),
- ];
- // The agents the board scores (the PM; Buddies are not listed here) by
- // their points, ranked among themselves, then the rest in today's order
- // with no rank and no number: a column of zeros means nothing (Lead,
- // 2026-10-29). Matched by id, never by name.
- final agentPoints = {
- for (final score in board?.agents ?? const <SuperTabAgentScore>[])
- score.agentId: score.points,
+ // By name, letter case aside (Dee, 2026-10-29): the points say who leads.
+ String sortName(SuperTabPerson p) =>
+ leaderboardName(p, scores[p.id]).toLowerCase();
+ final sorted = [...people]
+ ..sort((a, b) {
+ final byName = sortName(a).compareTo(sortName(b));
+ return byName != 0 ? byName : a.id.compareTo(b.id);
+ });
+ // Most urgent first, as the tabs order their marks: needs input, working,
+ // idle, offline. Equals keep today's order, the Lead first.
+ final shown = {
+ for (final agent in [...leads, ...agents])
+ agent.id: _shownActivity(
+ SuperTabAgentInfo(c, widget.app, agent, activity: _activity(agent)),
+ ),
};
final listed = [...leads, ...agents];
- final scored = listed.where((a) => agentPoints.containsKey(a.id)).toList();
mergeSort(
- scored,
- compare: (a, b) => agentPoints[b.id]! - agentPoints[a.id]!,
+ listed,
+ compare: (a, b) => shown[a.id]!.index - shown[b.id]!.index,
);
- final agentRanks = <String, int>{};
- for (var i = 0; i < scored.length; i++) {
- final points = agentPoints[scored[i].id]!;
- agentRanks[scored[i].id] =
- i > 0 && points == agentPoints[scored[i - 1].id]
- ? agentRanks[scored[i - 1].id]!
- : i + 1;
- }
final current = leaderboardWeekOf(widget.now());
- // One set of numeric columns for every row, people's and agents'.
- final columns = board == null || (board.people.isEmpty && scored.isEmpty)
+ // One points column for every person's row.
+ final columns = board == null || board.people.isEmpty
? null
: LeaderboardColumns.measure(
context,
- ranks: [...board.people.map((s) => s.rank), ...agentRanks.values],
- points: [
- ...board.people.map((s) => s.points),
- for (final agent in scored) agentPoints[agent.id]!,
- ],
+ points: board.people.map((s) => s.points),
);
final week = weekName(_board.week, current);
return [
SuperTabSectionHeading(
- 'Humans',
+ 'People',
actions: [
if (board != null || _board.week != null)
AppSelectField<int>(
@@ -632,7 +555,7 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
),
child: Text(error, style: DesktopChrome.metadata()),
),
- for (final person in ranked)
+ for (final person in sorted)
LeaderboardPersonRow(
person: person,
score: scores[person.id],
@@ -667,16 +590,7 @@ class _SuperTabRosterState extends State<SuperTabRoster> {
: null,
addTooltip: 'Add agent',
),
- for (final agent in [
- ...scored,
- ...listed.where((a) => !agentPoints.containsKey(a.id)),
- ])
- _agent(
- agent,
- columns: columns,
- rank: agentRanks[agent.id],
- points: agentPoints[agent.id],
- ),
+ for (final agent in listed) _agent(agent),
];
}
diff --git a/desktop/test/super_tab_humans_test.dart b/desktop/test/super_tab_humans_test.dart
index 7791736a4..2cf8fbbd8 100644
--- a/desktop/test/super_tab_humans_test.dart
+++ b/desktop/test/super_tab_humans_test.dart
@@ -16,12 +16,11 @@ import 'support/super_tab_fixture.dart';
/// The leaderboard lives in the right pane's Humans section (Dee, 2026-10-27),
/// built to the desktop design system (2026-10-28): a small week picker, then
-/// everyone, most points first, by display
-/// name. Each row is a bold rank in its own column, avatar, name, a quiet line
-/// of the non-zero numbers in words, and the points as the one number,
-/// right-aligned (Dee, 2026-10-29: one number per person, no team total line).
-/// Number one wears a crown beside their name (People are celebrated, design
-/// system); no cups, trophies or medal colours. A tap shows what the numbers
+/// everyone, by display name (Dee, 2026-10-29: no ranks). Each row is the
+/// avatar, name, a quiet line of the non-zero numbers in words, and the points
+/// as the one number, right-aligned (one number per person, no team total
+/// line). Number one wears a crown beside their name (People are celebrated,
+/// design system); no cups, trophies or medal colours. A tap shows what the numbers
/// are made of. There is no separate leaderboard view.
void main() {
Finder person(String id) => find.byKey(ValueKey('super-person-$id'));
@@ -76,7 +75,41 @@ void main() {
controller.dispose();
}
- testWidgets('lists every person, most points first, with no cut-off', (
+ testWidgets(
+ 'lists every person by name, whatever their points, with no cut-off',
+ (tester) async {
+ final controller = await show(tester, humansSwarm());
+ // Dee, diego, huy, Ken, maximilian…, scholes, Tony: letter case aside.
+ final ids = [
+ 'peer',
+ 'diego',
+ 'huy',
+ 'owner',
+ 'maximilian.alexander.longname',
+ 'scholes',
+ 'tony',
+ ];
+ for (final id in ids) {
+ expect(person(id), findsOneWidget);
+ }
+ expect(find.textContaining('Show '), findsNothing);
+ final tops = [for (final id in ids) tester.getTopLeft(person(id)).dy];
+ expect(tops, [...tops]..sort());
+ await close(tester, controller);
+ },
+ );
+
+ Finder within(String id, String text) =>
+ find.descendant(of: person(id), matching: find.text(text));
+ // Number one's name carries the crown beside it in the same line.
+ Finder nameIn(String id, String name) =>
+ find.descendant(of: person(id), matching: find.textContaining(name));
+ Finder part(String kind, String id) =>
+ find.byKey(ValueKey('leaderboard-$kind-$id'));
+ TextStyle styleOf(WidgetTester tester, Finder text) =>
+ tester.widget<Text>(text).style!;
+
+ testWidgets('shows no rank: each row starts with the avatar, in one column', (
tester,
) async {
final controller = await show(tester, humansSwarm());
@@ -89,65 +122,28 @@ void main() {
'huy',
'maximilian.alexander.longname',
];
+ double avatarLeft(String id) => tester
+ .getTopLeft(
+ find.descendant(
+ of: person(id),
+ matching: find.byType(SuperTabAvatar),
+ ),
+ )
+ .dx;
for (final id in ids) {
- expect(person(id), findsOneWidget);
+ expect(part('rank', id), findsNothing, reason: id);
+ expect(avatarLeft(id), avatarLeft('peer'), reason: id);
}
- expect(find.textContaining('Show '), findsNothing);
- final tops = [for (final id in ids) tester.getTopLeft(person(id)).dy];
- expect(tops, [...tops]..sort());
+ // Nothing stands before the avatar.
+ expect(
+ avatarLeft('peer') - tester.getTopLeft(person('peer')).dx,
+ lessThanOrEqualTo(grid.AppDesktop.controlGap),
+ );
+ // Dee is first with 21, yet no numeral says so.
+ expect(within('peer', '1'), findsNothing);
await close(tester, controller);
});
- Finder within(String id, String text) =>
- find.descendant(of: person(id), matching: find.text(text));
- // Number one's name carries the crown beside it in the same line.
- Finder nameIn(String id, String name) =>
- find.descendant(of: person(id), matching: find.textContaining(name));
- Finder part(String kind, String id) =>
- find.byKey(ValueKey('leaderboard-$kind-$id'));
- TextStyle styleOf(WidgetTester tester, Finder text) =>
- tester.widget<Text>(text).style!;
-
- testWidgets(
- 'ranks each person with a bold numeral in its own right-aligned column',
- (tester) async {
- final controller = await show(tester, humansSwarm());
- final ranks = {
- 'peer': '1',
- 'owner': '2',
- 'tony': '3',
- 'scholes': '4',
- 'diego': '5',
- 'huy': '6',
- 'maximilian.alexander.longname': '6',
- };
- for (final MapEntry(key: id, value: rank) in ranks.entries) {
- expect(
- find.descendant(of: part('rank', id), matching: find.text(rank)),
- findsOneWidget,
- reason: id,
- );
- }
- final right = tester.getTopRight(part('rank', 'peer')).dx;
- for (final id in ranks.keys) {
- expect(tester.getTopRight(part('rank', id)).dx, right, reason: id);
- }
- // The rank stands before the avatar, in its own column.
- final avatar = find.descendant(
- of: person('peer'),
- matching: find.byType(SuperTabAvatar),
- );
- expect(right, lessThanOrEqualTo(tester.getTopLeft(avatar).dx));
- final rank = styleOf(
- tester,
- find.descendant(of: part('rank', 'peer'), matching: find.text('1')),
- );
- expect(rank.fontWeight, FontWeight.w700);
- expect(rank.fontFeatures, grid.AppFont.tabularFigures);
- await close(tester, controller);
- },
- );
-
testWidgets(
'gives each person their points as the one emphasized number, right-aligned',
(tester) async {
@@ -175,12 +171,6 @@ void main() {
expect(points.fontWeight, grid.AppFont.semibold);
expect(points.fontFeatures, grid.AppFont.tabularFigures);
expect(points.color, grid.AppPalette.textPrimary);
- // The rank is quieter than the points.
- final rank = styleOf(
- tester,
- find.descendant(of: part('rank', 'peer'), matching: find.text('1')),
- );
- expect(rank.color, grid.AppPalette.textSecondary);
// A long name is cut short rather than pushing the points out.
final name = tester.widget<Text>(
within(
@@ -276,7 +266,7 @@ void main() {
find.bySemanticsLabel(RegExp('Number one this week')),
findsOneWidget,
);
- // After the name, before the points; the numeral stays.
+ // After the name, before the points.
expect(
tester.getTopLeft(crown('peer')).dx,
greaterThan(tester.getTopLeft(nameIn('peer', 'Dee')).dx),
@@ -285,10 +275,6 @@ void main() {
tester.getTopRight(crown('peer')).dx,
lessThan(tester.getTopLeft(part('points', 'peer')).dx),
);
- expect(
- find.descendant(of: part('rank', 'peer'), matching: find.text('1')),
- findsOneWidget,
- );
// A crowned row is as tall as one without; the columns hold.
expect(
tester.getSize(person('peer')).height,
@@ -414,8 +400,6 @@ void main() {
);
await tester.pumpAndSettle();
expect(tester.takeException(), isNull);
- final right = tester.getTopRight(part('rank', 'peer')).dx;
- expect(tester.getTopRight(part('rank', 'huy')).dx, right);
final points = tester.getTopRight(part('points', 'peer')).dx;
expect(tester.getTopRight(part('points', 'owner')).dx, points);
await close(tester, controller);
@@ -478,7 +462,7 @@ void main() {
});
testWidgets(
- 'keeps a row with no points in rank order, its 0 in the points style',
+ 'keeps a row with no points in name order, its 0 in the points style',
(tester) async {
final controller = await show(tester, humansSwarm());
final zero = styleOf(
diff --git a/desktop/test/super_tab_members_list_test.dart b/desktop/test/super_tab_members_list_test.dart
index b5b6d93b1..f488baef1 100644
--- a/desktop/test/super_tab_members_list_test.dart
+++ b/desktop/test/super_tab_members_list_test.dart
@@ -3,15 +3,16 @@ import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:harness/shared/theme/app_theme.dart' as grid;
import 'package:harness/super_tabs/controller.dart';
+import 'package:harness/super_tabs/identity.dart';
import 'package:harness/super_tabs/view.dart';
import 'support/humans_fixture.dart';
import 'support/super_tab_fixture.dart';
-/// One member list again (Dee, 2026-10-29): Humans ranked under a heading that
-/// carries the week, then the Agents with today's status line, a rank and the
-/// week's points. Only the agents the board scores (the PM, Buddies) are
-/// ranked; the others follow in today's order with no rank and no number.
+/// One member list, one row shape (Dee, 2026-10-29): People under a heading
+/// that carries the week, each with their points, then the Agents with their
+/// status line and the tabs' status mark at the right. No ranks, and no agent
+/// points even where the board scores one.
void main() {
Future<SuperTabController> show(
WidgetTester tester,
@@ -51,30 +52,29 @@ void main() {
Finder member(String id) => find.byKey(ValueKey('super-member-$id'));
Finder rank(String id) => find.byKey(ValueKey('super-member-rank-$id'));
Finder points(String id) => find.byKey(ValueKey('super-member-points-$id'));
- String text(WidgetTester tester, Finder finder) =>
- tester.widget<Text>(finder).data!;
- testWidgets('shows Humans under a heading with the week, and no list pills', (
+ testWidgets('shows People under a heading with the week, and no list pills', (
tester,
) async {
final controller = await show(tester, membersSwarm());
for (final pill in ['humans', 'agents', 'models']) {
expect(find.byKey(ValueKey('leaderboard-tab-$pill')), findsNothing);
}
- expect(find.text('Humans'), findsOneWidget);
+ expect(find.text('People'), findsOneWidget);
+ expect(find.text('Humans'), findsNothing);
final week = find.byKey(const ValueKey('leaderboard-week'));
expect(week, findsOneWidget);
- // The week sits on the Humans heading's line, at its trailing edge.
+ // The week sits on the People heading's line, at its trailing edge.
expect(
- (tester.getCenter(week).dy - tester.getCenter(find.text('Humans')).dy)
+ (tester.getCenter(week).dy - tester.getCenter(find.text('People')).dy)
.abs(),
lessThan(8),
);
expect(
tester.getCenter(week).dx,
- greaterThan(tester.getCenter(find.text('Humans')).dx),
+ greaterThan(tester.getCenter(find.text('People')).dx),
);
- // People ranked as before, then the Agents below them.
+ // People first, then the Agents below them.
expect(find.byKey(const ValueKey('super-person-peer')), findsOneWidget);
expect(
tester.getTopLeft(member('lead-agent')).dy,
@@ -86,56 +86,79 @@ void main() {
});
testWidgets(
- 'ranks the agents the board scores, with their points, and keeps their status line',
+ 'gives an agent the board scores no rank and no points, and keeps its status line',
(tester) async {
final semantics = tester.ensureSemantics();
final controller = await show(tester, membersSwarm());
- expect(text(tester, rank('lead-agent')), '1');
- expect(text(tester, points('lead-agent')), '212');
- expect(find.bySemanticsLabel(RegExp(r'\b212 points')), findsOneWidget);
+ expect(rank('lead-agent'), findsNothing);
+ expect(points('lead-agent'), findsNothing);
+ expect(find.text('212'), findsNothing);
+ expect(find.bySemanticsLabel(RegExp(r'\b212 points')), findsNothing);
+ // Nor does anyone carry a rank column.
+ expect(find.byKey(const ValueKey('leaderboard-rank-peer')), findsNothing);
// Today's one status line stays under the name.
expect(
find.byKey(const ValueKey('super-member-line-lead-agent')),
findsOneWidget,
);
- // The agents' points share the people's column.
- expect(
- tester.getTopRight(points('lead-agent')).dx,
- tester
- .getTopRight(find.byKey(const ValueKey('leaderboard-points-peer')))
- .dx,
- );
semantics.dispose();
await close(tester, controller);
},
);
testWidgets(
- 'lists an agent without a score after the ranked ones, with no rank and no number',
+ 'lines up people and agents: one avatar column, one name column',
(tester) async {
final controller = await show(tester, membersSwarm());
- expect(member('luna'), findsOneWidget);
- expect(rank('luna'), findsNothing);
- expect(points('luna'), findsNothing);
- // A score under another agent's id is not Luna's, though it bears her name.
- expect(
- find.descendant(of: member('luna'), matching: find.text('88')),
- findsNothing,
+ Rect avatar(Finder row) => tester.getRect(
+ find.descendant(of: row, matching: find.byType(SuperTabAvatar)),
);
+ final person = avatar(find.byKey(const ValueKey('super-person-peer')));
+ for (final id in ['lead-agent', 'luna']) {
+ final agent = avatar(member(id));
+ expect(agent.left, person.left, reason: id);
+ expect(agent.width, person.width, reason: id);
+ }
expect(
- find.byKey(const ValueKey('super-member-line-luna')),
- findsOneWidget,
- );
- expect(
- tester.getTopLeft(member('luna')).dy,
- greaterThan(tester.getTopLeft(member('lead-agent')).dy),
+ tester
+ .getTopLeft(
+ find.descendant(of: member('luna'), matching: find.text('Luna')),
+ )
+ .dx,
+ tester
+ .getTopLeft(
+ find.descendant(
+ of: find.byKey(const ValueKey('super-person-peer')),
+ matching: find.textContaining('Dee'),
+ ),
+ )
+ .dx,
);
- // A Buddy is not in the Agents list, so its score shows nowhere.
- expect(member('sparky'), findsNothing);
await close(tester, controller);
},
);
+ testWidgets('lists an agent without a score with no rank and no number', (
+ tester,
+ ) async {
+ final controller = await show(tester, membersSwarm());
+ expect(member('luna'), findsOneWidget);
+ expect(rank('luna'), findsNothing);
+ expect(points('luna'), findsNothing);
+ // A score under another agent's id is not Luna's, though it bears her name.
+ expect(
+ find.descendant(of: member('luna'), matching: find.text('88')),
+ findsNothing,
+ );
+ expect(
+ find.byKey(const ValueKey('super-member-line-luna')),
+ findsOneWidget,
+ );
+ // A Buddy is not in the Agents list, so its score shows nowhere.
+ expect(member('sparky'), findsNothing);
+ await close(tester, controller);
+ });
+
testWidgets('shows nothing of a board answered for another project', (
tester,
) async {
@@ -154,7 +177,10 @@ void main() {
) async {
final server = membersSwarm();
final controller = await show(tester, server);
- expect(points('lead-agent'), findsOneWidget);
+ expect(
+ find.byKey(const ValueKey('leaderboard-points-peer')),
+ findsOneWidget,
+ );
server.state['projects'] = <Object>[];
await controller.refresh();
await tester.pumpAndSettle();
@@ -216,7 +242,7 @@ void main() {
);
await tester.pumpAndSettle();
expect(tester.takeException(), isNull);
- for (final number in ['212', '92%']) {
+ for (final number in ['21', '92%']) {
expect(find.text(number), findsOneWidget, reason: number);
final paragraph = tester.renderObject<RenderParagraph>(find.text(number));
expect(paragraph.didExceedMaxLines, isFalse, reason: number);
diff --git a/desktop/test/super_tab_roster_test.dart b/desktop/test/super_tab_roster_test.dart
index cf4a8a128..550152559 100644
--- a/desktop/test/super_tab_roster_test.dart
+++ b/desktop/test/super_tab_roster_test.dart
@@ -917,21 +917,23 @@ void main() {
await f.close(tester);
});
- testWidgets('an agent row shows its engine icon, not its project name', (
- tester,
- ) async {
- final f = await fixture(tester);
- await f.show(tester);
- EngineMark mark(int i) =>
- tester.widget<EngineMark>(f.inRow(i, find.byType(EngineMark)));
- expect(mark(0).engine, 'codex');
- expect(mark(1).engine, 'claude');
- expect(f.inRow(1, find.text('openharness')), findsNothing);
- f.controller.select('os-lead');
- await tester.pumpAndSettle();
- expect(f.inRow(2, find.text('autonomous-os')), findsNothing);
- await f.close(tester);
- });
+ testWidgets(
+ 'an agent row shows neither an engine icon nor its project name',
+ (tester) async {
+ final f = await fixture(tester);
+ await f.show(tester);
+ // Only the status mark stands at the right (Dee, 2026-10-29); the
+ // model on the second line says which engine runs it.
+ for (final i in [0, 1, 3]) {
+ expect(f.inRow(i, find.byType(EngineMark)), findsNothing);
+ }
+ expect(f.inRow(1, find.text('openharness')), findsNothing);
+ f.controller.select('os-lead');
+ await tester.pumpAndSettle();
+ expect(f.inRow(2, find.text('autonomous-os')), findsNothing);
+ await f.close(tester);
+ },
+ );
testWidgets('a reviewer reads Rev; an agent without a role stays Dev', (
tester,
@@ -1070,7 +1072,7 @@ void main() {
await f.show(tester);
for (final i in [0, 1, 3]) {
expect(f.row(i), findsOneWidget);
- expect(f.inRow(i, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(i, find.byType(ActivityMark)), findsOneWidget);
}
expect(f.row(2), findsNothing);
@@ -1080,14 +1082,14 @@ void main() {
expect(f.row(i), findsNothing);
}
expect(f.row(2), findsOneWidget);
- expect(f.inRow(2, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(2, find.byType(ActivityMark)), findsOneWidget);
expect(f.inRow(2, find.text('PM')), findsOneWidget);
f.controller.select('offline');
await tester.pumpAndSettle();
for (final i in [0, 1, 3]) {
expect(f.row(i), findsOneWidget);
- expect(f.inRow(i, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(i, find.byType(ActivityMark)), findsOneWidget);
}
expect(f.row(2), findsNothing);
await f.close(tester);
@@ -1117,20 +1119,25 @@ void main() {
for (final i in [0, 1, 3]) {
expect(f.inRow(i, find.byType(SuperTabAvatar)), findsOneWidget);
expect(f.inRow(i, find.text(i == 0 ? 'PM' : 'Dev')), findsOneWidget);
- expect(f.inRow(i, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(i, find.byType(ActivityMark)), findsOneWidget);
}
expect(find.text('Join Super Tab roster'), findsNothing);
expect(find.text('Not in this Swarm'), findsNothing);
expect(find.text('Ready'), findsNothing);
final nameX = tester.getTopLeft(f.inRow(0, find.text('Atlas'))).dx;
- final engine = tester.getRect(f.inRow(0, find.byType(EngineMark)));
final name = tester.getRect(f.inRow(0, find.text('Atlas')));
+ final badge = tester.getRect(f.inRow(0, find.text('PM')));
final status = tester.getRect(f.line(0));
final mark = tester.getRect(f.inRow(0, find.byType(ActivityMark)));
- expect(engine.left, greaterThan(name.right));
- expect(engine.center.dy, closeTo(name.center.dy, 2));
- expect(mark.left, nameX);
- expect(status.left, greaterThan(mark.right));
+ // The status mark stands alone at the right, on the name's line (Dee, 2026-10-29); no engine icon.
+ for (final i in [0, 1, 3]) {
+ expect(f.inRow(i, find.byType(EngineMark)), findsNothing);
+ }
+ expect(mark.left, greaterThan(badge.right));
+ expect(mark.right, closeTo(tester.getRect(f.row(0)).right - 8, 1));
+ expect(mark.center.dy, closeTo(name.center.dy, 2));
+ // The second line starts where the name does.
+ expect(status.left, nameX);
expect(status.top, greaterThanOrEqualTo(name.bottom));
expect(tester.getSize(f.row(0)).height, lessThanOrEqualTo(60));
expect(
@@ -1158,7 +1165,7 @@ void main() {
for (final i in [0, 1, 3]) {
expect(f.row(i), findsNothing);
}
- expect(f.inRow(2, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(2, find.byType(ActivityMark)), findsOneWidget);
f.controller.selectDevices();
await tester.pumpAndSettle();
expect(f.controller.devicesSelected, isTrue);
@@ -1167,14 +1174,16 @@ void main() {
expect(tester.getRect(find.text('owner')), people);
f.controller.select('offline');
await tester.pumpAndSettle();
- expect(
- tester.getTopLeft(f.row(0)).dy,
- lessThan(tester.getTopLeft(f.row(1)).dy),
- );
+ // Most urgent first, as the tabs: Sage and Finn, whose status this
+ // computer cannot read, before Atlas, idle; equals keep their order.
expect(
tester.getTopLeft(f.row(1)).dy,
lessThan(tester.getTopLeft(f.row(3)).dy),
);
+ expect(
+ tester.getTopLeft(f.row(3)).dy,
+ lessThan(tester.getTopLeft(f.row(0)).dy),
+ );
await tester.tap(f.row(1));
await tester.pumpAndSettle();
expect(find.byType(AlertDialog), findsOneWidget);
@@ -1210,7 +1219,7 @@ void main() {
expect(f.row(legacyAgent), findsNothing);
f.controller.select('os-lead');
await tester.pumpAndSettle();
- expect(f.inRow(legacyAgent, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(legacyAgent, find.byType(ActivityMark)), findsOneWidget);
await f.close(tester);
},
);
@@ -1227,7 +1236,7 @@ void main() {
});
await f.controller.refresh();
await f.show(tester);
- expect(f.inRow(1, find.byType(EngineMark)), findsOneWidget);
+ expect(f.inRow(1, find.byType(ActivityMark)), findsOneWidget);
f.controller.select('os-lead');
await tester.pumpAndSettle();
expect(f.row(1), findsNothing);
@@ -1491,7 +1500,8 @@ void main() {
final status = tester.getRect(f.line(0));
final mark = tester.getRect(f.inRow(0, find.byType(ActivityMark)));
expect(name.left, tester.getTopLeft(find.text('owner')).dx);
- expect(mark.left, name.left);
+ expect(status.left, name.left);
+ expect(mark.left, greaterThanOrEqualTo(badge.right));
expect(name.right, lessThan(badge.left));
expect(status.top, greaterThanOrEqualTo(name.bottom));
for (final bounds in [name, badge, status, mark]) {
@@ -1522,6 +1532,178 @@ void main() {
}
}
+ testWidgets(
+ 'orders agents most urgent first, as the tabs do, and a lost task shows Offline',
+ (tester) async {
+ final f = await fixture(tester);
+ final agents = f.server.state['agents'] as List;
+ agents.add({
+ ...(agents[3] as Map).cast<String, Object>(),
+ 'id': 'agent-4',
+ 'harnessId': 'a4',
+ 'name': 'Juno',
+ 'displayName': 'Juno',
+ });
+ (f.server.state['conversations'] as List).addAll(<Map<String, dynamic>>[
+ {
+ ...conversationFixture('ask', 'Pick a sign-in page'),
+ 'assignment': {'agentId': 'agent-3', 'status': 'needs_human'},
+ },
+ {
+ ...conversationFixture('gone', 'Old work'),
+ 'assignment': {'agentId': 'agent-4', 'status': 'lost'},
+ },
+ ]);
+ await f.controller.refresh();
+ final machine = f.app.stateOf('m')!;
+ machine.agents = [
+ for (final i in [0, 1, 3, 4])
+ Agent(id: 'a$i', name: 'n$i', engine: 'codex'),
+ ];
+ machine.processingAgentIds.add('a1');
+ await f.show(tester);
+ expect(f.activity(tester, 3), HarnessActivity.needsInput);
+ expect(f.activity(tester, 1), HarnessActivity.working);
+ expect(f.activity(tester, 0), HarnessActivity.idle);
+ // Lost work reads Lost on its line; its mark is the tabs' Offline.
+ expect(f.activity(tester, 4), HarnessActivity.offline);
+ expect(f.lineText(tester, 4), startsWith('Lost'));
+ final tops = [
+ for (final i in [3, 1, 0, 4]) tester.getTopLeft(f.row(i)).dy,
+ ];
+ expect(tops, [...tops]..sort());
+ expect(tops.toSet(), hasLength(4));
+ await f.close(tester);
+ },
+ );
+
+ testWidgets(
+ 'people and agents share one row shape: avatar column, name line, details line',
+ (tester) async {
+ final f = await fixture(tester);
+ await tester.binding.setSurfaceSize(const Size(320, 560));
+ final server = f.server;
+ server.state['people'] = [
+ {'id': 'owner', 'email': '[email protected]', 'role': 'owner'},
+ {
+ 'id': 'dee',
+ 'email': '[email protected]',
+ 'role': 'collaborator',
+ 'status': {'text': 'Coffee break', 'emoji': '☕', 'until': null},
+ },
+ {'id': 'tony', 'email': '[email protected]', 'role': 'collaborator'},
+ ];
+ Map<String, dynamic> score(
+ String id,
+ String name,
+ int points,
+ int rank,
+ int shipped,
+ int unblocked,
+ int lentHours,
+ ) => {
+ 'personId': id,
+ 'displayName': name,
+ 'points': points,
+ 'rank': rank,
+ 'medal': null,
+ 'shipped': {'count': shipped, 'medianAskToShipMs': null},
+ 'unblocked': {'count': unblocked, 'agentMs': 0, 'medianAnswerMs': null},
+ 'lent': {
+ 'machines': lentHours > 0 ? 1 : 0,
+ 'agentMs': lentHours * 3600000,
+ },
+ 'streakDays': 0,
+ };
+ server.leaderboard = {
+ 'projectId': 'lead',
+ 'week': DateTime.utc(2026, 10, 26).millisecondsSinceEpoch,
+ 'people': [
+ score('owner', 'Ken Nguyen', 204, 1, 64, 10, 25),
+ score('dee', 'Dee', 84, 2, 24, 9, 0),
+ score('tony', 'Tony', 72, 3, 19, 15, 0),
+ ],
+ 'waiting': {'total': 0, 'people': <Object>[]},
+ };
+ final agents = server.state['agents'] as List;
+ for (final agent in agents) {
+ (agent as Map)['configuration'] = {
+ 'engine': 'claude',
+ 'model': 'opus',
+ 'effort': 'high',
+ };
+ }
+ agents.add({
+ ...(agents[3] as Map).cast<String, Object>(),
+ 'id': 'agent-4',
+ 'harnessId': 'a4',
+ 'name': 'Juno',
+ 'displayName': 'Juno',
+ });
+ (server.state['conversations'] as List).addAll(<Map<String, dynamic>>[
+ {
+ ...conversationFixture('ask', 'Pick a sign-in page'),
+ 'assignment': {'agentId': 'agent-3', 'status': 'needs_human'},
+ },
+ {
+ ...conversationFixture('gone', 'Old work'),
+ 'assignment': {'agentId': 'agent-4', 'status': 'lost'},
+ },
+ ]);
+ await f.controller.refresh();
+ final machine = f.app.stateOf('m')!;
+ machine.agents = [
+ for (final i in [0, 1, 3, 4])
+ Agent(id: 'a$i', name: 'n$i', engine: 'claude'),
+ ];
+ machine.processingAgentIds.add('a1');
+ final saved = grid.AppTheme.brightness.value;
+ addTearDown(() => grid.AppTheme.brightness.value = saved);
+ for (final brightness in Brightness.values) {
+ // The tokens follow the app's theme, as the app's scope sets them.
+ grid.AppTheme.brightness.value = brightness;
+ await f.show(tester, brightness: brightness);
+ expect(find.text('People'), findsOneWidget);
+ double avatar(Finder row) => tester
+ .getTopLeft(
+ find.descendant(of: row, matching: find.byType(SuperTabAvatar)),
+ )
+ .dx;
+ final column = avatar(find.byKey(const ValueKey('super-person-owner')));
+ for (final row in [
+ find.byKey(const ValueKey('super-person-dee')),
+ find.byKey(const ValueKey('super-person-tony')),
+ for (final i in [0, 1, 3, 4]) f.row(i),
+ ]) {
+ expect(avatar(row), column);
+ }
+ // Points and marks end on one right edge.
+ final right = tester
+ .getTopRight(find.byKey(const ValueKey('leaderboard-points-owner')))
+ .dx;
+ for (final i in [0, 1, 3, 4]) {
+ expect(
+ tester.getTopRight(f.inRow(i, find.byType(ActivityMark))).dx,
+ closeTo(right, 1),
+ );
+ }
+ expect(
+ find.byKey(const ValueKey('leaderboard-crown-owner')),
+ findsOneWidget,
+ );
+ expect(tester.takeException(), isNull);
+ await captureBoundary(
+ tester,
+ f.boundary.currentContext!.findRenderObject()!
+ as RenderRepaintBoundary,
+ captureDir,
+ 'left-pane-people-agents-${brightness.name}',
+ );
+ }
+ await f.close(tester);
+ },
+ );
+
testWidgets('live turns and unread changes update the same status cell', (
tester,
) async {
diff --git a/desktop/test/super_tab_view_test.dart b/desktop/test/super_tab_view_test.dart
index 294911928..38d429b1e 100644
--- a/desktop/test/super_tab_view_test.dart
+++ b/desktop/test/super_tab_view_test.dart
@@ -451,7 +451,7 @@ void main() {
),
);
await tester.pumpAndSettle();
- expect(find.text('Humans'), findsOneWidget);
+ expect(find.text('People'), findsOneWidget);
final member = find.byKey(const ValueKey('super-member-agent-0'));
await tester.scrollUntilVisible(
member,
diff --git a/desktop/test/swarm_projects_test.dart b/desktop/test/swarm_projects_test.dart
index c72faa0ab..21b698013 100644
--- a/desktop/test/swarm_projects_test.dart
+++ b/desktop/test/swarm_projects_test.dart
@@ -70,7 +70,7 @@ void main() {
);
expect(find.text('Leads'), findsNothing);
expect(find.text('Projects'), findsOneWidget);
- expect(find.text('Humans'), findsOneWidget);
+ expect(find.text('People'), findsOneWidget);
// The roster's heading; the leaderboard's Agents pill is the other one.
expect(
find.descendant(
diff --git a/scripts/ui-style-allowlist/desktop.json b/scripts/ui-style-allowlist/desktop.json
index 42c334f0e..1a0e4c94d 100644
--- a/scripts/ui-style-allowlist/desktop.json
+++ b/scripts/ui-style-allowlist/desktop.json
@@ -66,7 +66,7 @@
"edge-insets": 1
},
"desktop/lib/super_tabs/roster.dart": {
- "edge-insets": 4,
+ "edge-insets": 2,
"border-radius": 1
},
"desktop/lib/super_tabs/route_row.dart": {