feat(app): the Needs-you bell joins the Runs app-bar actions

This commit is contained in:
2026-10-23 18:37:01 +01:00
parent 79204859e4
commit a9064b04c2
2 changed files with 28 additions and 25 deletions
+17 -16
View File
@@ -51,9 +51,22 @@ class RunsList extends StatelessWidget {
@override
Widget build(BuildContext context) {
final actions = RunsBarActions(
controller,
).build(context, onStats: () => openRunsStats(context, controller));
final actions = [
// The Needs-you bell sits with the other actions, freeing the row.
NeedsYouRunsHeading(
rows: controller.runs,
frames: controller.repository.gateway.frames,
onOpen: (entry) => onSelected(entry.runId),
syncToken: syncToken,
store: attentionStore,
now: attentionNow,
notifications: notifications,
attention: attention,
),
...RunsBarActions(
controller,
).build(context, onStats: () => openRunsStats(context, controller)),
];
// Outside the app shell (the list on its own) the actions head the list.
if (!ShellBar.available(context)) {
return Column(
@@ -88,19 +101,7 @@ class RunsList extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
if (controller.error != null) _inlineError(context),
RunsFilters(
controller: controller,
action: NeedsYouRunsHeading(
rows: controller.runs,
frames: controller.repository.gateway.frames,
onOpen: (entry) => onSelected(entry.runId),
syncToken: syncToken,
store: attentionStore,
now: attentionNow,
notifications: notifications,
attention: attention,
),
),
RunsFilters(controller: controller),
Expanded(
child: controller.visibleRuns.isEmpty
? const Center(child: Text('No runs found.'))