WIP: search artifact hit opens the viewer (run #231)
This commit is contained in:
@@ -41,6 +41,7 @@ class ArtifactViewerPage extends StatefulWidget {
|
||||
super.key,
|
||||
required this.groups,
|
||||
required this.selectedIdentity,
|
||||
this.includeExternalDocuments = false,
|
||||
this.configuredEndpoint = '',
|
||||
this.fetch = fetchArtifact,
|
||||
this.markdownBuilder = defaultArtifactMarkdown,
|
||||
@@ -53,6 +54,10 @@ class ArtifactViewerPage extends StatefulWidget {
|
||||
/// [artifactVisitIdentityOf] of the row the operator selected.
|
||||
final String selectedIdentity;
|
||||
|
||||
/// Search can select a turn document that is hidden from the normal gallery,
|
||||
/// including the external-only session export.
|
||||
final bool includeExternalDocuments;
|
||||
|
||||
final String configuredEndpoint;
|
||||
final ArtifactFetch fetch;
|
||||
final ArtifactMarkdownBuilder markdownBuilder;
|
||||
@@ -71,7 +76,10 @@ class _FetchedPreview {
|
||||
}
|
||||
|
||||
class _ArtifactViewerPageState extends State<ArtifactViewerPage> {
|
||||
late final List<PagedArtifact> _pages = pagedArtifacts(widget.groups);
|
||||
late final List<PagedArtifact> _pages = pagedArtifacts(
|
||||
widget.groups,
|
||||
includeExternalDocuments: widget.includeExternalDocuments,
|
||||
);
|
||||
final Map<String, _FetchedPreview> _cache = <String, _FetchedPreview>{};
|
||||
late int _index = _initialIndex();
|
||||
int _generation = 0;
|
||||
|
||||
Reference in New Issue
Block a user