WIP: expandable run title (run #224)

This commit is contained in:
2026-11-01 12:43:27 +00:00
parent fea3d770b4
commit 6e6559235f
7 changed files with 210 additions and 59 deletions
+34 -8
View File
@@ -111,6 +111,34 @@ class _RunDetailViewState extends State<RunDetailView> {
final subtitle = detailSubtitle(run);
final openPipeline = _openPipeline(run);
final pipelineName = detailPipeline(run);
final pipelineAction = openPipeline == null
? null
: (cupertino
? Semantics(
button: true,
label: 'Open pipeline $pipelineName',
child: CupertinoButton(
key: runPipelineLinkKey,
padding: EdgeInsets.zero,
minimumSize: Size.zero,
onPressed: openPipeline,
child: const Icon(CupertinoIcons.arrow_branch),
),
)
: Semantics(
button: true,
label: 'Open pipeline $pipelineName',
excludeSemantics: true,
child: GestureDetector(
key: runPipelineLinkKey,
behavior: HitTestBehavior.opaque,
onTap: openPipeline,
child: const Padding(
padding: EdgeInsets.all(12),
child: Icon(Icons.account_tree_outlined),
),
),
));
final more = RunMoreMenu(
run: run,
gateway: widget.gateway,
@@ -124,10 +152,9 @@ class _RunDetailViewState extends State<RunDetailView> {
title: title,
subtitle: subtitle,
onTitlePressed: openPipeline,
titleSemanticLabel: openPipeline == null
? null
: 'Open pipeline $pipelineName',
titleKey: openPipeline == null ? null : runPipelineLinkKey,
expandableTitle: true,
titleAction: pipelineAction,
titleSemanticLabel: 'Run title $title',
onBack: widget.onBack,
actions: [more],
child: detail,
@@ -145,10 +172,9 @@ class _RunDetailViewState extends State<RunDetailView> {
title: title,
subtitle: subtitle,
onTitlePressed: openPipeline,
titleSemanticLabel: openPipeline == null
? null
: 'Open pipeline $pipelineName',
titleKey: openPipeline == null ? null : runPipelineLinkKey,
expandableTitle: true,
titleAction: pipelineAction,
titleSemanticLabel: 'Run title $title',
actions: [more],
),
child: detail,