feat(app): run detail tabs are Summary, Timeline, Artifacts and Changes; the graph is a Summary preview that opens full screen
This commit is contained in:
@@ -31,6 +31,8 @@ bool showRunArtifactsAction(JsonMap run) =>
|
||||
|
||||
/// Whether the run is still executing, so the page can say capture pending
|
||||
/// instead of claiming nothing was recorded.
|
||||
bool runDetailExecuting(JsonMap run) => _runExecuting(run);
|
||||
|
||||
bool _runExecuting(JsonMap run) =>
|
||||
run['executing'] == true ||
|
||||
_executingStatuses.contains('${run['status'] ?? ''}'.trim().toLowerCase());
|
||||
|
||||
@@ -50,6 +50,7 @@ class ArtifactGalleryPage extends StatefulWidget {
|
||||
this.fetch = fetchArtifact,
|
||||
this.markdownBuilder = chatMarkdownText,
|
||||
this.fileBridge = const ArtifactFileBridge(),
|
||||
this.embedded = false,
|
||||
});
|
||||
|
||||
final List<JsonMap> steps;
|
||||
@@ -64,6 +65,10 @@ class ArtifactGalleryPage extends StatefulWidget {
|
||||
final ArtifactMarkdownBuilder markdownBuilder;
|
||||
final ArtifactFileBridge fileBridge;
|
||||
|
||||
/// True inside the run detail's Artifacts tab: the list without its own
|
||||
/// page bar, since the detail already names the run.
|
||||
final bool embedded;
|
||||
|
||||
@override
|
||||
State<ArtifactGalleryPage> createState() => _ArtifactGalleryPageState();
|
||||
}
|
||||
@@ -378,6 +383,7 @@ class _ArtifactGalleryPageState extends State<ArtifactGalleryPage> {
|
||||
selectedIdentity: _selectedIdentity,
|
||||
onSelected: _select,
|
||||
);
|
||||
if (widget.embedded) return body;
|
||||
if (usesCupertinoHost(context)) {
|
||||
return CupertinoPageScaffold(
|
||||
// Sections paint the grouped background; the page must match it or a
|
||||
|
||||
Reference in New Issue
Block a user