From 84c458d1e3276e0e244d18c63379128500d6f303 Mon Sep 17 00:00:00 2001 From: Jeremy Asuncion Date: Fri, 3 Nov 2023 17:14:20 -0700 Subject: [PATCH] update data sources for run header metadata --- .../app/components/Run/RunHeader.tsx | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/frontend/packages/data-portal/app/components/Run/RunHeader.tsx b/frontend/packages/data-portal/app/components/Run/RunHeader.tsx index fa509e05e..d3cd8aab4 100644 --- a/frontend/packages/data-portal/app/components/Run/RunHeader.tsx +++ b/frontend/packages/data-portal/app/components/Run/RunHeader.tsx @@ -13,6 +13,8 @@ export function RunHeader() { const { run } = useRunById() const drawer = useDrawer() + const tiltSeries = run.tiltseries[0] + return ( @@ -105,12 +117,17 @@ export function RunHeader() { values: ['10.00Å, 13.70Å'], }, { - label: i18n.tiltRange, - values: ['-40 to 58'], + label: i18n.tomogramProcessing, + values: run.tomogram_stats + .flatMap((stats) => stats.tomograms) + .map((tomogram) => tomogram.processing), }, { - label: i18n.tiltScheme, - values: ['Starting tilt to min then max'], + label: i18n.annotatedObjects, + inline: true, + values: run.annotation_stats + .flatMap((stats) => stats.annotations) + .map((annotation) => annotation.object_name), }, ]} />