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.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
The Tasks board has six columns: Done, Merged and Shipped apart (#3381)
harness-for-autonomous[bot]422f47449985
diff --git a/desktop/lib/super_tabs/model.dart b/desktop/lib/super_tabs/model.dartindex 1ba561e6a..fc4488394 100644--- a/desktop/lib/super_tabs/model.dart+++ b/desktop/lib/super_tabs/model.dart@@ -424,6 +424,11 @@ class SuperTabConversation {releasing = row['releasing'] is List? List.unmodifiable((row['releasing'] as List).whereType<String>()): null,+ releasedTags = row['released'] is Map && row['released']['tags'] is List+ ? List.unmodifiable(+ (row['released']['tags'] as List).whereType<String>(),+ )+ : const [],shippedAt = row['shippedAt'] is num? DateTime.fromMillisecondsSinceEpoch((row['shippedAt'] as num).toInt(),@@ -536,6 +541,12 @@ class SuperTabConversation {/// an older server: each reads as released, as it did.final List<String>? releasing;+ /// The release tags (`v1.3.84_desktop`) that carried it to people, once they+ /// have (backend releases.ts `released`): what Shipped names. Empty before,+ /// for work merged before the server recorded releases, and from an older+ /// server.+ final List<String> releasedTags;+/// Its first Done, or its merge once one is recorded: not proof that it merged/// (a pull request card's `merged` is); null until then, and from a server/// that does not say.diff --git a/desktop/lib/super_tabs/task_card.dart b/desktop/lib/super_tabs/task_card.dartindex 284ceda93..8339b61f0 100644--- a/desktop/lib/super_tabs/task_card.dart+++ b/desktop/lib/super_tabs/task_card.dart@@ -36,6 +36,7 @@ class SuperTabTaskCard extends StatefulWidget {this.captionLines = 1,this.tile = false,this.selected = false,+ this.warn = false,this.trailing,});@@ -53,6 +54,9 @@ class SuperTabTaskCard extends StatefulWidget {/// How many lines the caption takes; null takes as many as it needs.final int? captionLines;final bool tile, selected;++ /// The caption is a warning (a merge that has waited too long).+ final bool warn;final Widget? trailing;/// A tile's padding: the spacing scale's 12, between the control and the@@ -188,7 +192,9 @@ class _SuperTabTaskCardState extends State<SuperTabTaskCard> {overflow: w.captionLines == null? TextOverflow.clip: TextOverflow.ellipsis,- style: DesktopChrome.metadata(),+ style: DesktopChrome.metadata(+ color: w.warn ? grid.AppPalette.warn : null,+ ),),),],diff --git a/desktop/lib/super_tabs/task_groups.dart b/desktop/lib/super_tabs/task_groups.dartindex 338efa3a8..df9801287 100644--- a/desktop/lib/super_tabs/task_groups.dart+++ b/desktop/lib/super_tabs/task_groups.dart@@ -29,13 +29,17 @@ class SuperTabProposal {final DateTime at;}-/// The columns of a project's Tasks view, in this order (Dee, task #2569):-/// where each ask is on its way from proposal to shipped.+/// The columns of a project's Tasks view, in this order (Ken's Task Board,+/// task #3812): each is one place where work waits, so where cards pile up is+/// where the flow is stuck. Working holds a task whatever it waits on, with+/// one mark for where it is; Done is finished and waiting to merge; Merged is+/// on main and waiting for a release.enum SuperTabTaskColumn {- proposals('Proposals'),+ proposals('Proposal'),nextUp('Next up'),working('Working'),- waiting('Waiting'),+ done('Done'),+ merged('Merged'),shipped('Shipped');const SuperTabTaskColumn(this.label);@@ -82,11 +86,50 @@ String _parts(List<String> parts) => parts'desktop' => 'Desktop','cli' => 'CLI','web' => 'Web',+ 'backend' => 'Backend',_ => part,},).join(', ');+/// What a release tag carried (`v1.3.84_desktop` is "Desktop 1.3.84"), for+/// every tag of [task]'s that reads so; null when it has none.+String? _versions(List<String> tags) {+ final named = [+ for (final tag in tags)+ if (RegExp(r'^v(\d+\.\d+\.\d+)_(\w+)$').firstMatch(tag) case final m?)+ '${_parts([m[2]!])} ${m[1]}',+ ];+ return named.isEmpty ? null : named.join(', ');+}++/// How long [task], set done, has waited for its merge: since its first Done+/// ([SuperTabConversation.shippedAt]); null when the server did not say.+Duration? superTabMergeWait(SuperTabConversation task, DateTime now) {+ final done = task.shippedAt;+ return done == null ? null : now.difference(done);+}++/// Past this a merge waiting turns to a warning, so a merge bottleneck shows.+const superTabMergeWarnAfter = Duration(hours: 1);++/// Whether [task] is done, not merged, and has waited past the warning.+bool superTabMergeOverdue(SuperTabConversation task, DateTime now) =>+ task.assignment?['status'] == 'done' &&+ !task.closed &&+ !superTabTaskReleasing(task) &&+ !superTabTaskShipped(task) &&+ (superTabMergeWait(task, now) ?? Duration.zero) > superTabMergeWarnAfter;++String _waited(Duration wait) {+ final (hours, minutes) = (wait.inHours, wait.inMinutes % 60);+ return hours == 0+ ? '$minutes min'+ : minutes == 0+ ? '$hours h'+ : '$hours h $minutes min';+}+/// [task]'s place for the reader [readerId] at [now]; null for one that is/// not listed: cancelled, stopped, closed without shipping, or shipped before/// the window. It needs the reader as the sidebar's groups did: tagged@@ -113,14 +156,16 @@ SuperTabTaskPlace? superTabTaskPlaceOf((state == 'waiting' && why == 'person' || status == 'needs_human');SuperTabTaskPlace at(SuperTabTaskColumn column, [String? words]) =>(column: column, needsYou: needsYou, state: words);- SuperTabTaskPlace waiting(String words) =>- at(SuperTabTaskColumn.waiting, words);+ // Where it is, in Working: a wait on review, a person, a machine or a block+ // is a mark on the card, not a column of its own.+ SuperTabTaskPlace mark(String words) => at(SuperTabTaskColumn.working, words);// Merged is Shipped only once a release carries it (#3452): until then it- // waits, whatever else the task is (it is often closed already).+ // waits for one, whatever else the task is (it is often closed already).if (superTabTaskReleasing(task)) {final parts = _parts(task.releasing!);- return waiting(- parts.isEmpty ? 'merged, releasing' : 'merged, releasing ($parts)',+ return at(+ SuperTabTaskColumn.merged,+ parts.isEmpty ? 'waiting for a release' : 'waiting for $parts',);}// Shipped means released; finished with nothing to merge is Done (#2872).@@ -130,14 +175,26 @@ SuperTabTaskPlace? superTabTaskPlaceOf(final old = shipped == null? task.closed: now.difference(shipped) > superTabBacklogShippedWindow;- return old- ? null- : at(SuperTabTaskColumn.shipped, merged ? pullRequest : 'Done');+ if (old) return null;+ return merged+ ? at(+ SuperTabTaskColumn.shipped,+ _versions(task.releasedTags) ?? pullRequest,+ )+ : at(SuperTabTaskColumn.done, 'Done');}if (task.closed || status == 'cancelled' || status == 'stopped') {return null;}- if (status == 'done') return waiting('ready to merge');+ if (status == 'done') {+ final wait = superTabMergeWait(task, now);+ return at(+ SuperTabTaskColumn.done,+ wait == null+ ? 'waiting to merge'+ : 'waiting to merge for ${_waited(wait)}',+ );+ }if (assignment == null) {final date = task.notBefore;return at(@@ -147,23 +204,21 @@ SuperTabTaskPlace? superTabTaskPlaceOf(}return switch ((state, why)) {('waiting', 'starting') => at(SuperTabTaskColumn.working, pullRequest),- ('waiting', 'review') => waiting('in review'),- ('waiting', 'revision') => waiting('changes requested'),- ('waiting', 'person') => waiting(+ ('waiting', 'review') => mark('in review'),+ ('waiting', 'revision') => mark('changes requested'),+ ('waiting', 'person') => mark('${(person == null ? null : personName?.call(person)) ?? 'someone'} to decide',),- ('waiting', 'blocked') => waiting('blocked'),- ('waiting', 'queued') => waiting('waiting for a machine'),- ('quiet', _) => waiting('quiet'),- ('orphaned', _) => waiting('agent lost'),+ ('waiting', 'blocked') => mark('blocked'),+ ('waiting', 'queued') => mark('waiting for a machine'),+ ('quiet', _) => mark('quiet'),+ ('orphaned', _) => mark('agent lost'),_ => switch (status) {- 'review' => waiting('in review'),- 'needs_human' => waiting('someone to decide'),- 'blocked' => waiting('blocked'),- 'lost' => waiting('agent lost'),- _ when assignment['agentId'] is! String => waiting(- 'waiting for a machine',- ),+ 'review' => mark('in review'),+ 'needs_human' => mark('someone to decide'),+ 'blocked' => mark('blocked'),+ 'lost' => mark('agent lost'),+ _ when assignment['agentId'] is! String => mark('waiting for a machine'),_ => at(SuperTabTaskColumn.working, pullRequest),},};@@ -204,8 +259,8 @@ List<SuperTabConversation> superTabQueueOrder(/// The project's Tasks view, read by Board, List and the badges alike: every/// column, in order and empty or not, each listing by priority, P0 first/// (task #3117); within a priority what needs the reader first, then-/// proposals oldest first, Next up in the shared order, Working and Waiting-/// newest first, and Shipped by when it shipped, newest first.+/// proposals oldest first, Next up in the shared order, Working, Done and+/// Merged newest first, and Shipped by when it shipped, newest first.Map<SuperTabTaskColumn, List<SuperTabTaskEntry>> superTabTaskBoard(Iterable<SuperTabConversation> tasks, {Iterable<SuperTabProposal> proposals = const [],diff --git a/desktop/lib/super_tabs/tasks_view.dart b/desktop/lib/super_tabs/tasks_view.dartindex 488ac982b..96016a5cf 100644--- a/desktop/lib/super_tabs/tasks_view.dart+++ b/desktop/lib/super_tabs/tasks_view.dart@@ -464,10 +464,18 @@ class _SuperTabTasksViewState extends State<SuperTabTasksView> {unread: task != null && widget.controller.unreadShown(task),activity: _activity(entry),titleLines: list ? 1 : 3,- // A merged task's release parts are what the card is for: they wrap- // however long, never cut off (task #3452).- captionLines: task != null && superTabTaskReleasing(task) ? null : 1,+ // What a merged task waits on, and how long a done one has waited, are+ // what the card is for: they wrap however long, never cut off (tasks+ // #3452, #3812).+ captionLines:+ task != null &&+ (superTabTaskReleasing(task) ||+ task.assignment?['status'] == 'done' &&+ !superTabTaskShipped(task))+ ? null+ : 1,tile: !list,+ warn: task != null && superTabMergeOverdue(task, now),selected: id == widget.selectedId,onOpen: () =>task == null ? widget.onOpenProposal(id) : widget.onOpenTask(task.id),diff --git a/desktop/test/super_tab_releasing_shots_test.dart b/desktop/test/super_tab_releasing_shots_test.dartindex 4d3743a0b..58b74c73f 100644--- a/desktop/test/super_tab_releasing_shots_test.dart+++ b/desktop/test/super_tab_releasing_shots_test.dart@@ -16,7 +16,7 @@ final shots = Platform.environment['SUPER_TAB_RELEASING_SHOTS'];final _now = DateTime(2026, 11, 5, 12);/// The board and the Backlog as the PR shows them (Dee, task #3452): merged-/// tasks waiting on their release sit in Waiting (Releasing in the Backlog),+/// tasks waiting on their release sit in Merged (Releasing in the Backlog),/// with their parts; released ones, and merges from before the server kept a/// release list, stay in Shipped.void main() {@@ -111,10 +111,17 @@ void main() {),);await tester.pumpAndSettle();- expect(- find.textContaining('merged, releasing'),- view == 'board' ? findsNWidgets(3) : findsNothing,- );+ for (final words in [+ 'waiting for Desktop, CLI',+ 'waiting for a release',+ 'waiting for Backend',+ ]) {+ expect(+ find.textContaining(words),+ view == 'board' ? findsOneWidget : findsNothing,+ reason: words,+ );+ }expect(tester.takeException(), isNull);await captureWindow(tester,diff --git a/desktop/test/super_tab_releasing_test.dart b/desktop/test/super_tab_releasing_test.dartindex 78b160319..81f83b0fd 100644--- a/desktop/test/super_tab_releasing_test.dart+++ b/desktop/test/super_tab_releasing_test.dart@@ -37,20 +37,23 @@ void main() {superTabTaskPlaceOf(task, readerId: 'owner', now: at);group('the Tasks board', () {- test('a merged task still releasing is Waiting, with its parts', () {- final p = place(merged(releasing: ['desktop', 'cli']))!;- expect(p.column, SuperTabTaskColumn.waiting);- expect(p.state, 'merged, releasing (Desktop, CLI)');- });+ test(+ 'a merged task still releasing is Merged, with the parts it waits on',+ () {+ final p = place(merged(releasing: ['desktop', 'cli']))!;+ expect(p.column, SuperTabTaskColumn.merged);+ expect(p.state, 'waiting for Desktop, CLI');+ },+ );test('each part reads as its name', () {expect(place(merged(releasing: ['backend', 'web', 'desktop']))!.state,- 'merged, releasing (backend, Web, Desktop)',+ 'waiting for Backend, Web, Desktop',);});- test('a released task is Shipped, with its pull request', () {+ test('a released task is Shipped, with its version', () {final p = place(merged(released: {@@ -60,17 +63,31 @@ void main() {),)!;expect(p.column, SuperTabTaskColumn.shipped);- expect(p.state, 'PR #7');+ expect(p.state, 'Desktop 1.4.2');});- test('a merge from before releases were recorded stays Shipped', () {- expect(place(merged())!.column, SuperTabTaskColumn.shipped);+ test('a task carried by two releases names both versions', () {+ final p = place(+ merged(+ released: {+ 'at': now,+ 'tags': ['v1.4.20_backend', 'v1.3.84_desktop'],+ },+ ),+ )!;+ expect(p.state, 'Backend 1.4.20, Desktop 1.3.84');+ });++ test('a merge from before releases were recorded stays Shipped, with its pull request', () {+ final p = place(merged())!;+ expect(p.column, SuperTabTaskColumn.shipped);+ expect(p.state, 'PR #7');});test('a list still empty, before the files are read, is releasing', () {final p = place(merged(releasing: []))!;- expect(p.column, SuperTabTaskColumn.waiting);- expect(p.state, 'merged, releasing');+ expect(p.column, SuperTabTaskColumn.merged);+ expect(p.state, 'waiting for a release');});test('the server says it: present means releasing', () {@@ -81,16 +98,16 @@ void main() {'releasing': ['cli'],}),)!;- expect(p.column, SuperTabTaskColumn.waiting);- expect(p.state, 'merged, releasing (CLI)');+ expect(p.column, SuperTabTaskColumn.merged);+ expect(p.state, 'waiting for CLI');});test('a task merged and closed while releasing still waits', () {final p = place(merged(releasing: ['cli'], closed: true))!;- expect(p.column, SuperTabTaskColumn.waiting);+ expect(p.column, SuperTabTaskColumn.merged);});- test('the board lists it under Waiting, not Shipped', () {+ test('the board lists it under Merged, not Shipped', () {final board = superTabTaskBoard([merged(releasing: ['desktop']),@@ -98,7 +115,7 @@ void main() {readerId: 'owner',now: at,);- expect(board[SuperTabTaskColumn.waiting], hasLength(1));+ expect(board[SuperTabTaskColumn.merged], hasLength(1));expect(board[SuperTabTaskColumn.shipped], isEmpty);});diff --git a/desktop/test/super_tab_task_columns_test.dart b/desktop/test/super_tab_task_columns_test.dartindex 96397f56b..e84a5e805 100644--- a/desktop/test/super_tab_task_columns_test.dart+++ b/desktop/test/super_tab_task_columns_test.dart@@ -62,10 +62,11 @@ SuperTabTaskPlace? _place(void main() {test('the columns read in the board\'s order', () {expect(SuperTabTaskColumn.values.map((c) => c.label), [- 'Proposals',+ 'Proposal','Next up','Working',- 'Waiting',+ 'Done',+ 'Merged','Shipped',]);});@@ -112,13 +113,13 @@ void main() {'in review',_task(status: 'review', liveness: _waiting('review')),0,- (column: .waiting, needsYou: false, state: 'in review'),+ (column: .working, needsYou: false, state: 'in review'),),('changes requested',_task(status: 'working', liveness: _waiting('revision')),0,- (column: .waiting, needsYou: false, state: 'changes requested'),+ (column: .working, needsYou: false, state: 'changes requested'),),('waiting on Ken',@@ -127,7 +128,7 @@ void main() {liveness: _waiting('person', personId: 'ken'),),0,- (column: .waiting, needsYou: false, state: 'Ken to decide'),+ (column: .working, needsYou: false, state: 'Ken to decide'),),('waiting on the reader',@@ -136,25 +137,25 @@ void main() {liveness: _waiting('person', personId: 'me'),),0,- (column: .waiting, needsYou: true, state: 'Dee to decide'),+ (column: .working, needsYou: true, state: 'Dee to decide'),),('needs_human, no one named',_task(status: 'needs_human', liveness: _waiting('person')),0,- (column: .waiting, needsYou: true, state: 'someone to decide'),+ (column: .working, needsYou: true, state: 'someone to decide'),),('quiet with a question in its terminal',_task(status: 'working', liveness: {'state': 'quiet', 'since': 1}),1,- (column: .waiting, needsYou: true, state: 'quiet'),+ (column: .working, needsYou: true, state: 'quiet'),),('quiet',_task(status: 'working', liveness: {'state': 'quiet', 'since': 1}),0,- (column: .waiting, needsYou: false, state: 'quiet'),+ (column: .working, needsYou: false, state: 'quiet'),),('a question in a working task\'s terminal',@@ -169,29 +170,49 @@ void main() {liveness: {'state': 'orphaned', 'why': 'lost', 'since': 1},),0,- (column: .waiting, needsYou: false, state: 'agent lost'),+ (column: .working, needsYou: false, state: 'agent lost'),),('queued for a machine',_task(status: 'working', liveness: _waiting('queued')),0,- (column: .waiting, needsYou: false, state: 'waiting for a machine'),+ (column: .working, needsYou: false, state: 'waiting for a machine'),),('blocked',_task(status: 'blocked', liveness: _waiting('blocked')),0,- (column: .waiting, needsYou: false, state: 'blocked'),+ (column: .working, needsYou: false, state: 'blocked'),),('done, its pull request not merged',_task(status: 'done',linked: true,- shippedAt: _now.subtract(const Duration(hours: 1)),+ shippedAt: _now.subtract(const Duration(minutes: 12)),),0,- (column: .waiting, needsYou: false, state: 'ready to merge'),+ (column: .done, needsYou: false, state: 'waiting to merge for 12 min'),+ ),+ (+ 'done 90 minutes ago, still not merged',+ _task(+ status: 'done',+ linked: true,+ shippedAt: _now.subtract(const Duration(minutes: 90)),+ ),+ 0,+ (+ column: .done,+ needsYou: false,+ state: 'waiting to merge for 1 h 30 min',+ ),+ ),+ (+ 'done, its first Done not known',+ _task(status: 'done', linked: true),+ 0,+ (column: .done, needsYou: false, state: 'waiting to merge'),),('finished with no pull request',@@ -200,7 +221,7 @@ void main() {shippedAt: _now.subtract(const Duration(hours: 1)),),0,- (column: .shipped, needsYou: false, state: 'Done'),+ (column: .done, needsYou: false, state: 'Done'),),('merged 2 days ago, archived',@@ -317,6 +338,7 @@ void main() {_task(id: 'new',status: 'done',+ merged: true,shippedAt: _now.subtract(const Duration(hours: 3)),),],diff --git a/desktop/test/super_tab_task_priority_test.dart b/desktop/test/super_tab_task_priority_test.dartindex 17d3d32a0..c2bb79ae9 100644--- a/desktop/test/super_tab_task_priority_test.dart+++ b/desktop/test/super_tab_task_priority_test.dart@@ -184,7 +184,7 @@ void main() {'preview','third',]);- expect(_cardsIn(tester, 'working'), ['crash', 'tag']);+ expect(_cardsIn(tester, 'working'), ['crash', 'test-copy', 'tag']);// The badge leads the caption, which keeps its words.expect(tester.getTopLeft(_in(_card('crash'), 'P0')).dx,diff --git a/desktop/test/super_tab_tasks_shots_test.dart b/desktop/test/super_tab_tasks_shots_test.dartindex 7fdade3a0..5106f679d 100644--- a/desktop/test/super_tab_tasks_shots_test.dart+++ b/desktop/test/super_tab_tasks_shots_test.dart@@ -36,7 +36,10 @@ void main() {testWidgets('screenshots for review ($layout, ${brightness.name})', (tester,) async {- await tester.binding.setSurfaceSize(const Size(1900, 900));+ await tester.binding.setSurfaceSize(+ // Six columns of 280 beside the sidebar: the whole Board in one picture.+ layout == 'list' ? const Size(1900, 1500) : const Size(2300, 900),+ );addTearDown(() => tester.binding.setSurfaceSize(null));final before = grid.AppTheme.brightness.value;grid.AppTheme.brightness.value = brightness;@@ -91,6 +94,62 @@ void main() {pullRequest: 3007,shippedAt: DateTime(2026, 11, 5),),+ // The six columns (task #3812): done and waiting for a merge, one of+ // them past an hour; merged and waiting for a release; released.+ taskFixture(+ 'done-fresh',+ 'Review and test passed',+ 22,+ requester: 'tony',+ status: 'done',+ pullRequest: 3500,+ shippedAt: DateTime.now().subtract(const Duration(minutes: 12)),+ ),+ taskFixture(+ 'done-stuck',+ 'Waiting on the merge train',+ 23,+ requester: 'scholes',+ status: 'done',+ pullRequest: 3501,+ shippedAt: DateTime.now().subtract(const Duration(minutes: 90)),+ ),+ taskFixture(+ 'merged-two',+ 'Dial recap on main',+ 24,+ requester: 'owner',+ status: 'done',+ merged: true,+ pullRequest: 3498,+ shippedAt: DateTime.now().subtract(const Duration(hours: 1)),+ releasing: ['desktop', 'cli'],+ ),+ taskFixture(+ 'merged-backend',+ 'A backend read on main',+ 25,+ requester: 'ken',+ status: 'done',+ merged: true,+ pullRequest: 3499,+ shippedAt: DateTime.now().subtract(const Duration(minutes: 30)),+ releasing: ['backend'],+ ),+ taskFixture(+ 'released',+ 'Chat limits out in a release',+ 26,+ requester: 'scholes',+ status: 'done',+ merged: true,+ pullRequest: 3480,+ shippedAt: DateTime.now().subtract(const Duration(hours: 3)),+ released: {+ 'at': DateTime.now().millisecondsSinceEpoch,+ 'tags': ['v1.3.84_desktop'],+ },+ ),]);final conversations = (server.state['conversations'] as List).cast<Map<String, dynamic>>();diff --git a/desktop/test/super_tab_tasks_view_test.dart b/desktop/test/super_tab_tasks_view_test.dartindex 0b54f1ec9..f841ee606 100644--- a/desktop/test/super_tab_tasks_view_test.dart+++ b/desktop/test/super_tab_tasks_view_test.dart@@ -26,6 +26,7 @@ Map<String, dynamic> taskFixture(bool archived = false,DateTime? shippedAt,List<String>? releasing,+ Map<String, dynamic>? released,}) => {...conversationFixture(id, title),'projectId': 'lead',@@ -54,6 +55,7 @@ Map<String, dynamic> taskFixture(},if (shippedAt != null) 'shippedAt': shippedAt.millisecondsSinceEpoch,'releasing': ?releasing,+ 'released': ?released,};/// The project of the mockup Dee confirmed: a proposal, two tasks nobody is on@@ -224,18 +226,26 @@ List<String> _cardsIn(WidgetTester tester, String column) {/// A project's Tasks view (Dee, task #2569): Board by default, or List, with/// Mine and Search, every ask from proposal to shipped.void main() {- testWidgets('Board shows the five columns in order, each with its count', (+ testWidgets('Board shows the six columns in order, each with its count', (tester,) async {final c = await _show(tester, tasksServer());- final names = ['proposals', 'nextUp', 'working', 'waiting', 'shipped'];+ final names = [+ 'proposals',+ 'nextUp',+ 'working',+ 'done',+ 'merged',+ 'shipped',+ ];final lefts = [for (final n in names) tester.getTopLeft(_column(n)).dx];expect(lefts, orderedEquals([...lefts]..sort()));for (final (name, label, count) in [- ('proposals', 'Proposals', '2'),+ ('proposals', 'Proposal', '2'),('nextUp', 'Next up', '2'),- ('working', 'Working', '1'),- ('waiting', 'Waiting', '1'),+ ('working', 'Working', '2'),+ ('done', 'Done', '0'),+ ('merged', 'Merged', '0'),('shipped', 'Shipped', '1'),]) {final heading = find.byKey(ValueKey('super-tasks-heading-$name'));@@ -259,7 +269,8 @@ void main() {'proposals','nextUp','working',- 'waiting',+ 'done',+ 'merged','shipped',]) {expect(tester.getSize(_column(name)).width, 280, reason: name);@@ -297,7 +308,7 @@ void main() {expect(tester.getTopLeft(_column('shipped')).dx, greaterThan(900));await tester.drag(find.byKey(const ValueKey('super-tasks-board')),- const Offset(-800, 0),+ const Offset(-1200, 0),);await tester.pumpAndSettle();expect(tester.getTopRight(_column('shipped')).dx, lessThanOrEqualTo(900));@@ -426,14 +437,10 @@ void main() {});testWidgets('an empty column keeps its heading with 0', (tester) async {- final server = tasksServer();- (server.state['conversations'] as List).removeWhere(- (g) => (g as Map)['id'] == 'tag',- );- final c = await _show(tester, server);+ final c = await _show(tester, tasksServer());expect(find.descendant(- of: find.byKey(const ValueKey('super-tasks-heading-working')),+ of: find.byKey(const ValueKey('super-tasks-heading-done')),matching: find.text('0'),),findsOneWidget,@@ -483,21 +490,21 @@ void main() {testWidgets('an empty column says No tasks in the caption color', (tester,) async {- final server = tasksServer();- (server.state['conversations'] as List).removeWhere(- (g) => (g as Map)['id'] == 'tag',- );- final c = await _show(tester, server);+ final c = await _show(tester, tasksServer());final empty = find.descendant(- of: _column('working'),+ of: _column('done'),matching: find.text('No tasks'),);expect(empty, findsOneWidget);+ expect(+ find.descendant(of: _column('merged'), matching: find.text('No tasks')),+ findsOneWidget,+ );expect(tester.widget<Text>(empty).style?.color,grid.AppPalette.textSecondary,);- for (final name in ['proposals', 'nextUp', 'waiting', 'shipped']) {+ for (final name in ['proposals', 'nextUp', 'working', 'shipped']) {expect(find.descendant(of: _column(name), matching: find.text('No tasks')),findsNothing,@@ -546,7 +553,7 @@ void main() {),);final c = await _show(tester, server);- expect(_cardsIn(tester, 'waiting'), ['test-copy', 'later']);+ expect(_cardsIn(tester, 'working'), ['test-copy', 'later', 'tag']);expect(find.descendant(of: _card('test-copy'),@@ -593,7 +600,14 @@ void main() {final c = await _show(tester, tasksServer());await tester.tap(find.byKey(const ValueKey('super-tasks-layout-list')));await tester.pumpAndSettle();- final names = ['proposals', 'nextUp', 'working', 'waiting', 'shipped'];+ final names = [+ 'proposals',+ 'nextUp',+ 'working',+ 'done',+ 'merged',+ 'shipped',+ ];final tops = [for (final n in names)tester.getTopLeft(find.byKey(ValueKey('super-tasks-heading-$n'))).dy,@@ -810,7 +824,7 @@ void main() {await dragTo(tester, 'preview', tester.getCenter(_column('working')));expect(moves(server), isEmpty);expect(_cardsIn(tester, 'nextUp'), ['shipped-means', 'preview', 'third']);- expect(_cardsIn(tester, 'working'), ['tag']);+ expect(_cardsIn(tester, 'working'), ['test-copy', 'tag']);await _close(tester, c);});@@ -885,9 +899,9 @@ void main() {});});- testWidgets('a merged task waits in Waiting, as merged, releasing, until its '- 'release; a merge the server has no release list for stays Shipped '- '(task #3452)', (tester) async {+ testWidgets('a merged task waits under Merged, with its parts, until its '+ 'release, in Board and in List; a merge the server has no release list '+ 'for stays Shipped (tasks #3452, #3812)', (tester) async {final server = tasksServer();(server.state['conversations'] as List).addAll(<Map<String, dynamic>>[taskFixture(@@ -914,25 +928,141 @@ void main() {),]);final c = await _show(tester, server);- expect(_cardsIn(tester, 'waiting'), containsAll(['releasing', 'fresh']));+ expect(_cardsIn(tester, 'merged'), containsAll(['releasing', 'fresh']));+ expect(_cardsIn(tester, 'working'), isNot(contains('releasing')));expect(_cardsIn(tester, 'shipped'), ['sender']);expect(find.descendant(of: _card('releasing'),- matching: find.textContaining('merged, releasing (Desktop, CLI)'),+ matching: find.textContaining('waiting for Desktop, CLI'),),findsOneWidget,);expect(find.descendant(of: _card('fresh'),- matching: find.textContaining('merged, releasing'),+ matching: find.textContaining('waiting for a release'),),findsOneWidget,);+ // List agrees: under the Merged heading, above Shipped's.+ await tester.tap(find.byKey(const ValueKey('super-tasks-layout-list')));+ await tester.pumpAndSettle();+ double top(Finder f) => tester.getTopLeft(f).dy;+ final merged = top(+ find.byKey(const ValueKey('super-tasks-heading-merged')),+ );+ final shipped = top(+ find.byKey(const ValueKey('super-tasks-heading-shipped')),+ );+ expect(top(_card('releasing')), inExclusiveRange(merged, shipped));+ expect(top(_card('fresh')), inExclusiveRange(merged, shipped));+ expect(+ find.byKey(const ValueKey('super-tasks-heading-waiting')),+ findsNothing,+ );await _close(tester, c);});+ testWidgets('a task done and waiting for its merge is under Done with how '+ 'long it has waited, a warning past an hour; work with no code stays '+ 'Done (task #3812)', (tester) async {+ final server = tasksServer();+ (server.state['conversations'] as List).addAll(<Map<String, dynamic>>[+ taskFixture(+ 'fresh-done',+ 'Just reviewed',+ 30,+ requester: 'owner',+ status: 'done',+ pullRequest: 3500,+ shippedAt: _now.subtract(const Duration(minutes: 12)),+ ),+ taskFixture(+ 'stuck-done',+ 'Waiting on the merge',+ 31,+ requester: 'owner',+ status: 'done',+ pullRequest: 3501,+ shippedAt: _now.subtract(const Duration(minutes: 90)),+ ),+ taskFixture(+ 'no-code',+ 'A research note',+ 32,+ requester: 'owner',+ status: 'done',+ shippedAt: _now.subtract(const Duration(hours: 2)),+ ),+ ]);+ final c = await _show(tester, server);+ expect(+ _cardsIn(tester, 'done'),+ unorderedEquals(['fresh-done', 'stuck-done', 'no-code']),+ );+ Finder line(String id, String text) =>+ find.descendant(of: _card(id), matching: find.textContaining(text));+ expect(line('fresh-done', 'waiting to merge for 12 min'), findsOneWidget);+ expect(+ tester+ .widget<Text>(line('fresh-done', 'waiting to merge for 12 min'))+ .style+ ?.color,+ isNot(grid.AppPalette.warn),+ );+ final stuck = line('stuck-done', 'waiting to merge for 1 h 30 min');+ expect(stuck, findsOneWidget);+ expect(tester.widget<Text>(stuck).style?.color, grid.AppPalette.warn);+ // How long it has waited is what the column is for: never cut off.+ expect(+ tester.renderObject<RenderParagraph>(stuck).didExceedMaxLines,+ isFalse,+ );+ expect(line('no-code', 'Done'), findsOneWidget);+ // Finished with no pull request waits for no merge: never the warning,+ // however long ago it was done.+ expect(+ tester.widget<Text>(line('no-code', 'Done')).style?.color,+ isNot(grid.AppPalette.warn),+ );+ expect(_cardsIn(tester, 'shipped'), ['sender']);+ await _close(tester, c);+ });++ testWidgets(+ 'a released task is under Shipped with its version (task #3812)',+ (tester) async {+ final server = tasksServer();+ (server.state['conversations'] as List).add(+ taskFixture(+ 'released',+ 'Out in a release',+ 33,+ requester: 'owner',+ status: 'done',+ pullRequest: 3400,+ merged: true,+ shippedAt: _now.subtract(const Duration(hours: 3)),+ released: {+ 'at': _now.millisecondsSinceEpoch,+ 'tags': ['v1.3.84_desktop'],+ },+ ),+ );+ final c = await _show(tester, server);+ expect(_cardsIn(tester, 'shipped'), contains('released'));+ expect(+ find.descendant(+ of: _card('released'),+ matching: find.textContaining('Desktop 1.3.84'),+ ),+ findsOneWidget,+ );+ await _close(tester, c);+ },+ );+for (final scale in [1.0, 1.5]) {testWidgets('all four release parts show in full on a board card, at text ''scale $scale (task #3452)', (tester) async {@@ -958,9 +1088,7 @@ void main() {);final caption = find.descendant(of: _card('all-four'),- matching: find.textContaining(- 'merged, releasing (backend, CLI, Desktop, Web)',- ),+ matching: find.textContaining('waiting for Backend, CLI, Desktop, Web'),);expect(caption, findsOneWidget);expect(diff --git a/docs/plans/2026-11-06-board-six-columns-plan.md b/docs/plans/2026-11-06-board-six-columns-plan.mdnew file mode 100644index 000000000..ca6555633--- /dev/null+++ b/docs/plans/2026-11-06-board-six-columns-plan.md@@ -0,0 +1,83 @@+# The Tasks board's six columns: implementation plan++> Written by the project's Engineer way of working (project instructions, Engineer): plan first, then each task test first,+> the failing test committed before its code. No Execution Handoff.++**Goal:** The Desktop Tasks board reads Proposal → Next up → Working → Done → Merged → Shipped, Board and List alike, so each+column is one place where work waits (task #3812, requested by Huy through Harness; the columns are Ken's decision in the+spec "The Task Board", docs/plans/2026-11-06-buddy-board-final-spec.md).++**Architecture:** `task_groups.dart` already places every task for Board, List and the badge with one function,+`superTabTaskPlaceOf`, and one enum, `SuperTabTaskColumn`. The enum gets the six columns; the function places by them:+Waiting folds into Working (its captions stay as the one mark for where the task is), a task finished and waiting for its+merge is Done with how long it has waited, a merged task still releasing is Merged with the parts it waits on, and a+released one is Shipped with its version. `SuperTabConversation` reads the `released` record the server already sends+(`{at, tags}`, backend model.ts), which is where the version comes from. `tasks_view.dart` draws whatever columns the enum+lists, so Board and List follow with no new layout.++**Tech Stack:** Dart, Flutter widget and unit tests with the fake Swarm of `test/support/super_tab_fixture.dart`.++**Spec:** Task #3812's brief and its scope update; the Task Board table of the final spec.++## Global Constraints++- PR body first line: "Requested by phamngochuy.1989 through Harness."+- Desktop only, no backend change. Owns `desktop/lib/super_tabs/` and `desktop/test/`.+- Light and dark screenshots of the board posted to Huy in this task before merge.+- Desktop tests use a memory store and a fake sign-in. No fixed sleeps.++## Design++- growth, concurrency, read cost, scale, migration: N/A because nothing is stored; the same snapshot is placed differently.+- compatibility: a server that sends no `released` record (work shipped before it) shows the pull request number as today.+- audience, identity: unchanged; the same tasks the reader may read.+- failure: a task whose time is not known shows no waiting time, never a wrong one.+- platforms: Desktop and web, one Dart path.++## What is not built, and why++- "Merged: when the next release is due". The release window and pace are the project's rules on the server and are not sent+ to clients (backend read/views.ts strips them), so Desktop cannot say when. The Merged card shows the parts it waits on,+ as today. Showing a due time needs the server to send it: a proposal for the PM, not built here.+- "Done: the PR is green". CI state is read from GitHub on the reader's own computer for the live cards, not carried in the+ Swarm's state, so the board cannot tell a red PR from a green one. Done is what the Swarm records: review and test passed+ and the task set done. Working keeps its marks for review, changes requested, blocked and a person to decide; "CI red" and+ "testing" need the same data and are not marks here.++## Review Focus++- Every task lands in exactly one column, and Board, List and the red Tasks badge agree.+- Shipped keeps its seven-day window; work with no code that is Done stays Done, never Shipped.++## Task 1: the six columns and the places++**Files:** `desktop/lib/super_tabs/task_groups.dart`, `desktop/test/super_tab_task_columns_test.dart`,+`desktop/test/super_tab_releasing_test.dart`.++- [ ] Failing test: the columns read Proposal, Next up, Working, Done, Merged, Shipped; a task waiting on review, a person,+ a block, a machine or quiet is in Working with its caption; a task set done is in Done; a merged task still releasing is in+ Merged with its parts. Watch it fail. Commit.+- [ ] Change the enum and `superTabTaskPlaceOf`; keep the sorts (Done and Merged by number, newest first). Commit.++## Task 2: how long Done has waited++**Files:** the same, and `tasks_view.dart` for the caption.++- [ ] Failing test: a done task with a pull request reads "waiting to merge for 12 min" from its first Done; past an hour it is a+ warning (`needsAttention`), and a done task with no code reads "Done" and stays in Done.+- [ ] Place it with `shippedAt` (its first Done, before a merge is recorded) and render the warning with the existing tokens.++## Task 3: Shipped shows the version++**Files:** `desktop/lib/super_tabs/model.dart`, the same tests.++- [ ] Failing test: a task whose `released` tags are `v1.3.84_desktop` and `v1.4.20_backend` reads "Desktop 1.3.84, Backend 1.4.20"+ in Shipped; one with no record reads its pull request as before.+- [ ] Read `released` in `SuperTabConversation` and name the tags.++## Task 4: Board and List, screenshots++**Files:** `desktop/test/super_tab_tasks_view_test.dart`, `desktop/test/super_tab_tasks_shots_test.dart`.++- [ ] Widget test: a merged task waiting for its release is under Merged and not Waiting (no Waiting column) in Board and in List.+- [ ] Light and dark screenshots of the six columns, written when the capture directory is set; posted in the task for Huy.diff --git a/mobile/lib/swarm/model.dart b/mobile/lib/swarm/model.dartindex bbcf19c02..e2cb5e8c6 100644--- a/mobile/lib/swarm/model.dart+++ b/mobile/lib/swarm/model.dart@@ -426,6 +426,11 @@ class SuperTabConversation {releasing = row['releasing'] is List? List.unmodifiable((row['releasing'] as List).whereType<String>()): null,+ releasedTags = row['released'] is Map && row['released']['tags'] is List+ ? List.unmodifiable(+ (row['released']['tags'] as List).whereType<String>(),+ )+ : const [],shippedAt = row['shippedAt'] is num? DateTime.fromMillisecondsSinceEpoch((row['shippedAt'] as num).toInt(),@@ -496,6 +501,10 @@ class SuperTabConversation {/// it for its board; the phone carries it as the desktop does).final List<String>? releasing;+ /// The release tags that carried it to people, once they have (backend releases.ts `released`); empty before. Read as the+ /// desktop does; the phone draws no board yet.+ final List<String> releasedTags;+/// Its place in its project's shared Next up and the day before which it/// may not start, as Desktop's Tasks view reads them (task #2569); read here/// for the phone's Tasks view to come.