Spaces:
Running
Running
Mandark-droid
commited on
Commit
·
9e00480
1
Parent(s):
eaed1a0
Move run report card to Overview tab to match MockTraceMind layout
Browse files- Remove separate Report Card tab
- Display report card within Overview tab after run metadata
- Add elem_id for download functionality
- Match MockTraceMind structure exactly
app.py
CHANGED
|
@@ -1510,6 +1510,9 @@ with gr.Blocks(title="TraceMind-AI", theme=theme) as app:
|
|
| 1510 |
gr.Markdown("*Run metadata and summary*")
|
| 1511 |
run_metadata_html = gr.HTML("")
|
| 1512 |
|
|
|
|
|
|
|
|
|
|
| 1513 |
with gr.TabItem("✅ Test Cases"):
|
| 1514 |
gr.Markdown("*Individual test case results*")
|
| 1515 |
test_cases_table = gr.Dataframe(
|
|
@@ -1523,10 +1526,6 @@ with gr.Blocks(title="TraceMind-AI", theme=theme) as app:
|
|
| 1523 |
gr.Markdown("*Performance metrics and charts*")
|
| 1524 |
performance_charts = gr.Plot(label="Performance Analysis", show_label=False)
|
| 1525 |
|
| 1526 |
-
with gr.TabItem("📄 Report Card"):
|
| 1527 |
-
gr.Markdown("*Downloadable run summary card*")
|
| 1528 |
-
run_card_html = gr.HTML(label="Run Report Card", value="<p style='text-align: center; color: #666; padding: 40px;'>Select a run to view its report card</p>")
|
| 1529 |
-
|
| 1530 |
# Screen 4: Trace Detail with Sub-tabs
|
| 1531 |
with gr.Column(visible=False) as trace_detail_screen:
|
| 1532 |
with gr.Row():
|
|
|
|
| 1510 |
gr.Markdown("*Run metadata and summary*")
|
| 1511 |
run_metadata_html = gr.HTML("")
|
| 1512 |
|
| 1513 |
+
gr.Markdown("### 📥 Downloadable Run Report Card")
|
| 1514 |
+
run_card_html = gr.HTML(label="Run Report Card", elem_id="run-card-html")
|
| 1515 |
+
|
| 1516 |
with gr.TabItem("✅ Test Cases"):
|
| 1517 |
gr.Markdown("*Individual test case results*")
|
| 1518 |
test_cases_table = gr.Dataframe(
|
|
|
|
| 1526 |
gr.Markdown("*Performance metrics and charts*")
|
| 1527 |
performance_charts = gr.Plot(label="Performance Analysis", show_label=False)
|
| 1528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1529 |
# Screen 4: Trace Detail with Sub-tabs
|
| 1530 |
with gr.Column(visible=False) as trace_detail_screen:
|
| 1531 |
with gr.Row():
|