Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ jobs:
prefix = "rtichoke/_vendor/rtichoke_viz/"
required = {
f"{prefix}VENDORED_FROM",
f"{prefix}rtichoke-viz-0.19.0.tar.gz",
f"{prefix}rtichoke-viz-0.20.0.tar.gz",
f"{prefix}rtichoke-viz.js",
f"{prefix}rtichoke-viz.css",
f"{prefix}rtichoke-viz.schema.json",
f"{prefix}rtichoke-viz-v2.schema.json",
f"{prefix}rtichoke-viz-report.schema.json",
}
assert required <= names
assert f"{prefix}rtichoke-viz-0.19.0.tar.gz" not in names
assert f"{prefix}rtichoke-viz-0.14.0.tar.gz" not in names
PY

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/quarto-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- "src/rtichoke/_vendor/rtichoke_viz/**"
- "tests/test_quarto_summary_report_browser.py"
- "tests/test_summary_report_browser.py"
- "tests/test_summary_report_times_browser.py"
- "tests/test_decision_curve_browser_acceptance.py"
- ".github/workflows/quarto-acceptance.yml"
pull_request:
Expand All @@ -27,6 +28,7 @@ on:
- "src/rtichoke/_vendor/rtichoke_viz/**"
- "tests/test_quarto_summary_report_browser.py"
- "tests/test_summary_report_browser.py"
- "tests/test_summary_report_times_browser.py"
- "tests/test_decision_curve_browser_acceptance.py"
- ".github/workflows/quarto-acceptance.yml"
workflow_dispatch:
Expand Down Expand Up @@ -61,3 +63,5 @@ jobs:
uv run --with playwright pytest
tests/test_quarto_summary_report_browser.py
tests/test_decision_curve_browser_acceptance.py
tests/test_summary_report_browser.py
tests/test_summary_report_times_browser.py
8 changes: 4 additions & 4 deletions src/rtichoke/_vendor/rtichoke_viz/VENDORED_FROM
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repository=https://github.com/uriahf/rtichoke_viz
release=v0.19.0
source_commit=26f22617bb34664ad65d6591ce7b20ecc080e739
archive=rtichoke-viz-0.19.0.tar.gz
sha256=bdeb1dd3041f700341730904492c7ab271bcdb9fa3637c7a9fd0a21f183bec70
release=v0.20.0
source_commit=15e9712686650e23d3c79ddea99892bc5836f5e4
archive=rtichoke-viz-0.20.0.tar.gz
sha256=9a89356ffa5e72de3526f343960ad21bbc57475a3515748d846cbd447dee17d1
Binary file not shown.
Binary file not shown.
265 changes: 265 additions & 0 deletions src/rtichoke/_vendor/rtichoke_viz/rtichoke-viz.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,271 @@
margin-left: 0.5rem;
}

/* Performance Table Scoped Styling */
.rtichoke-performance-table {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
font-size: 14px;
line-height: 1.4;
color: #1f2937;
margin: 0;
padding: 0;
}

.rtichoke-performance-table__title {
font-size: 1.1rem;
font-weight: 600;
color: #111827;
margin-bottom: 0.5rem;
}

.rtichoke-performance-table__scroll {
overflow-x: auto;
max-width: 100%;
-webkit-overflow-scrolling: touch;
}

.rtichoke-performance-table__table {
width: 100%;
border-collapse: collapse;
text-align: left;
border-spacing: 0;
}

.rtichoke-performance-table__header {
border-bottom: 2px solid #e5e7eb;
}

.rtichoke-performance-table__header th {
padding: 0.5rem 0.75rem;
font-weight: 600;
font-size: 13px;
color: #374151;
background-color: #f9fafb;
border-bottom: 1px solid #e5e7eb;
white-space: nowrap;
}

.rtichoke-performance-table__spanner {
text-align: center !important;
border-bottom: 1px solid #d1d5db !important;
}

.rtichoke-performance-table__spanner--empty {
background-color: transparent !important;
border-bottom: none !important;
}

.rtichoke-performance-table__table tbody td {
padding: 0.5rem 0.75rem;
border-bottom: 1px solid #f3f4f6;
white-space: nowrap;
position: relative;
}

.rtichoke-performance-table__table tbody tr:hover {
background-color: #f9fafb;
}

.rtichoke-performance-table__model,
.rtichoke-performance-table__population,
.rtichoke-performance-table__evaluation,
.rtichoke-performance-table__identity {
font-weight: 500;
color: #111827;
}

.rtichoke-performance-table__op,
.rtichoke-performance-table__horizon,
.rtichoke-performance-table__context {
color: #4b5563;
}

.rtichoke-performance-table__metric {
font-variant-numeric: tabular-nums;
font-weight: 500;
text-align: right;
min-width: 70px;
}

.rtichoke-performance-table__bar {
position: absolute;
top: 4px;
bottom: 4px;
left: 4px;
right: 4px;
pointer-events: none;
overflow: hidden;
border-radius: 2px;
}

.rtichoke-performance-table__bar-fill {
position: absolute;
top: 0;
bottom: 0;
border-radius: 2px;
opacity: 0.25;
transition: width 0.2s ease;
}

.rtichoke-performance-table__bar-fill--positive {
background-color: #2e7559;
}

.rtichoke-performance-table__bar-fill--negative {
background-color: #dc2626;
}

.rtichoke-performance-table__bar-fill--neutral {
background-color: #6b7280;
}

/* Disclosure column & toggle button */
.rtichoke-performance-table__toggle-header {
width: 28px;
min-width: 28px;
padding: 0.5rem 0.25rem !important;
}

.rtichoke-performance-table__toggle-cell {
width: 28px;
min-width: 28px;
padding: 0.25rem !important;
text-align: center;
}

.rtichoke-performance-table__toggle-btn {
background: transparent;
border: none;
cursor: pointer;
font-size: 12px;
color: #4b5563;
padding: 2px 6px;
border-radius: 4px;
line-height: 1;
transition: background-color 0.15s ease, color 0.15s ease;
}

.rtichoke-performance-table__toggle-btn:hover {
background-color: #e5e7eb;
color: #111827;
}

.rtichoke-performance-table__toggle-btn:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 1px;
}

/* Detail Row & Confusion Matrix Container */
.rtichoke-performance-table__detail-row[hidden] {
display: none !important;
}

.rtichoke-performance-table__detail-cell {
background-color: #f8fafc;
padding: 0.75rem 1rem !important;
border-bottom: 1px solid #e2e8f0 !important;
}

.rtichoke-performance-table__confusion-container {
display: flex;
flex-direction: column;
gap: 0.35rem;
max-width: 480px;
margin: 0.25rem 0;
}

.rtichoke-performance-table__confusion-title {
font-size: 13px;
font-weight: 600;
color: #1e293b;
}

.rtichoke-performance-table__confusion-caption {
font-size: 11px;
color: #64748b;
margin-bottom: 0.25rem;
font-style: italic;
}

/* Confusion Matrix Inner Table */
.rtichoke-performance-table__confusion-table {
border-collapse: collapse;
width: 100%;
font-size: 12px;
background-color: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 4px;
overflow: hidden;
}

.rtichoke-performance-table__confusion-header-empty {
border: none !important;
background-color: transparent !important;
}

.rtichoke-performance-table__confusion-spanner {
text-align: center !important;
background-color: #f1f5f9 !important;
border-bottom: 1px solid #cbd5e1 !important;
font-weight: 600;
color: #334155;
padding: 0.25rem 0.5rem !important;
}

.rtichoke-performance-table__confusion-table th {
padding: 0.35rem 0.5rem;
font-size: 11px;
font-weight: 600;
color: #475569;
background-color: #f8fafc;
border: 1px solid #e2e8f0;
text-align: center;
}

.rtichoke-performance-table__confusion-cell {
padding: 0.35rem 0.5rem;
text-align: center;
border: 1px solid #e2e8f0;
font-variant-numeric: tabular-nums;
line-height: 1.25;
}

.rtichoke-performance-table__confusion-val {
display: block;
font-weight: 600;
color: #0f172a;
}

.rtichoke-performance-table__confusion-pct {
display: block;
font-size: 10.5px;
color: #64748b;
}

/* Subtle Favorable / Unfavorable / Total Color Treatments */
.rtichoke-performance-table__confusion-cell--favorable {
background-color: #f0fdf4;
border-color: #dcfce7;
}

.rtichoke-performance-table__confusion-cell--favorable .rtichoke-performance-table__confusion-val {
color: #166534;
}

.rtichoke-performance-table__confusion-cell--unfavorable {
background-color: #fef2f2;
border-color: #fee2e2;
}

.rtichoke-performance-table__confusion-cell--unfavorable .rtichoke-performance-table__confusion-val {
color: #991b1b;
}

.rtichoke-performance-table__confusion-cell--total {
background-color: #f8fafc;
border-color: #e2e8f0;
}

.rtichoke-report {
display: flex;
flex-direction: column;
Expand Down
Loading
Loading