diff --git a/dashboard/ui/pages/1_TA1.py b/dashboard/ui/pages/1_TA1.py index fd8f2ae..dc096e2 100644 --- a/dashboard/ui/pages/1_TA1.py +++ b/dashboard/ui/pages/1_TA1.py @@ -20,9 +20,16 @@ st.title("TA1 Integration Dashboard") - report = select_report("ta1") +# Download report button +st.download_button( + label="Download report `json`", + data=json.dumps(report, indent=4).encode('utf-8'), + file_name="report.json", + mime="application/json" +) + st.sidebar.markdown(""" # TA1 diff --git a/dashboard/ui/pages/2_TA3.py b/dashboard/ui/pages/2_TA3.py index 6294fb9..ebd2bc0 100644 --- a/dashboard/ui/pages/2_TA3.py +++ b/dashboard/ui/pages/2_TA3.py @@ -17,6 +17,14 @@ # Let the user select a report based on formatted timestamps report = select_report("ta3") +# Download report button +st.download_button( + label="Download report `json`", + data=json.dumps(report, indent=4).encode('utf-8'), + file_name="report.json", + mime="application/json" +) + report_scenarios = report["scenarios"] services = report["services"]