Spaces:
Running
Running
Zhu Jiajun (jz28583) Claude Opus 4.7 (1M context) commited on
Commit ·
cf612db
1
Parent(s): 9d28e20
Landing: stack panel header (description above pills); style schema pill green; drop GT loaded badge
Browse files- server/api.py +6 -7
server/api.py
CHANGED
|
@@ -522,15 +522,14 @@ _LANDING_TMPL = r"""<!doctype html>
|
|
| 522 |
/* ---- task panel header ---- */
|
| 523 |
.panel-head {
|
| 524 |
display: flex;
|
| 525 |
-
|
| 526 |
-
|
|
|
|
| 527 |
margin-bottom: 14px;
|
| 528 |
-
flex-wrap: wrap;
|
| 529 |
}
|
| 530 |
.panel-head .meta {
|
| 531 |
color: var(--fg-muted);
|
| 532 |
font-size: 13px;
|
| 533 |
-
flex: 1 1 320px;
|
| 534 |
}
|
| 535 |
.panel-head .meta strong {
|
| 536 |
color: var(--fg);
|
|
@@ -549,6 +548,7 @@ _LANDING_TMPL = r"""<!doctype html>
|
|
| 549 |
white-space: nowrap;
|
| 550 |
}
|
| 551 |
.pill.metric { background: var(--accent-bg); color: var(--accent); }
|
|
|
|
| 552 |
.pill.gt { background: var(--good-bg); color: var(--good); }
|
| 553 |
.pill.warn { background: var(--warn-bg); color: var(--warn); }
|
| 554 |
.pill.muted { background: var(--bg-alt); color: var(--fg-muted); }
|
|
@@ -826,9 +826,8 @@ _LANDING_TMPL = r"""<!doctype html>
|
|
| 826 |
<div class="pills">
|
| 827 |
<span class="pill metric">{{ t.metric }}</span>
|
| 828 |
{% if t.n_rows %}<span class="pill muted">{{ "{:,}".format(t.n_rows) }} test rows</span>{% endif %}
|
| 829 |
-
<span class="pill
|
| 830 |
-
{% if t.gt_present %}<span class="pill
|
| 831 |
-
{% else %}<span class="pill warn">GT missing</span>{% endif %}
|
| 832 |
{% if t.backend != 'gt' %}<span class="pill muted">backend: {{ t.backend }}</span>{% endif %}
|
| 833 |
</div>
|
| 834 |
</div>
|
|
|
|
| 522 |
/* ---- task panel header ---- */
|
| 523 |
.panel-head {
|
| 524 |
display: flex;
|
| 525 |
+
flex-direction: column;
|
| 526 |
+
align-items: stretch;
|
| 527 |
+
gap: 10px;
|
| 528 |
margin-bottom: 14px;
|
|
|
|
| 529 |
}
|
| 530 |
.panel-head .meta {
|
| 531 |
color: var(--fg-muted);
|
| 532 |
font-size: 13px;
|
|
|
|
| 533 |
}
|
| 534 |
.panel-head .meta strong {
|
| 535 |
color: var(--fg);
|
|
|
|
| 548 |
white-space: nowrap;
|
| 549 |
}
|
| 550 |
.pill.metric { background: var(--accent-bg); color: var(--accent); }
|
| 551 |
+
.pill.schema { background: var(--good-bg); color: var(--good); }
|
| 552 |
.pill.gt { background: var(--good-bg); color: var(--good); }
|
| 553 |
.pill.warn { background: var(--warn-bg); color: var(--warn); }
|
| 554 |
.pill.muted { background: var(--bg-alt); color: var(--fg-muted); }
|
|
|
|
| 826 |
<div class="pills">
|
| 827 |
<span class="pill metric">{{ t.metric }}</span>
|
| 828 |
{% if t.n_rows %}<span class="pill muted">{{ "{:,}".format(t.n_rows) }} test rows</span>{% endif %}
|
| 829 |
+
<span class="pill schema">[{{ t.id_col }}, {{ t.pred_col }}]</span>
|
| 830 |
+
{% if not t.gt_present and t.backend == 'gt' %}<span class="pill warn">GT missing</span>{% endif %}
|
|
|
|
| 831 |
{% if t.backend != 'gt' %}<span class="pill muted">backend: {{ t.backend }}</span>{% endif %}
|
| 832 |
</div>
|
| 833 |
</div>
|