From 5e96f79238308c284e73156c32d9ed77a4364724 Mon Sep 17 00:00:00 2001 From: Sultan Iman Date: Mon, 18 Mar 2024 17:36:22 +0100 Subject: [PATCH] Show simple unordered list with pipeline summary --- dlt/helpers/streamlit_app/blocks/pipeline_state.py | 5 ----- dlt/helpers/streamlit_app/widgets/summary.py | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dlt/helpers/streamlit_app/blocks/pipeline_state.py b/dlt/helpers/streamlit_app/blocks/pipeline_state.py index 4a465a8774..efa9f0dd06 100644 --- a/dlt/helpers/streamlit_app/blocks/pipeline_state.py +++ b/dlt/helpers/streamlit_app/blocks/pipeline_state.py @@ -2,15 +2,10 @@ import streamlit as st from dlt.common.destination.reference import WithStateSync -from dlt.helpers.streamlit_app.widgets import tag from dlt.pipeline.state_sync import load_pipeline_state_from_destination def pipeline_state_info(pipeline: dlt.Pipeline) -> None: - st.divider() - tag(pipeline.pipeline_name, label="Pipeline") - tag(pipeline.destination.destination_name, label="Destination") - remote_state = None with pipeline.destination_client() as client: if isinstance(client, WithStateSync): diff --git a/dlt/helpers/streamlit_app/widgets/summary.py b/dlt/helpers/streamlit_app/widgets/summary.py index 9f4d8d9b00..afbefbe608 100644 --- a/dlt/helpers/streamlit_app/widgets/summary.py +++ b/dlt/helpers/streamlit_app/widgets/summary.py @@ -11,8 +11,8 @@ def pipeline_summary(pipeline: dlt.Pipeline) -> None: st.error("🚨 Cannot load data - SqlClient not available") schema_names = ", ".join(sorted(pipeline.schema_names)) - expander = st.expander("Pipeline info", expanded=True) - expander.markdown(f""" + st.subheader("Pipeline info", divider=True) + st.markdown(f""" * pipeline name: **{pipeline.pipeline_name}** * destination: **{str(credentials)}** in **{pipeline.destination.destination_description}** * dataset name: **{pipeline.dataset_name}**