feat: add river-backed async task queue

This commit is contained in:
2026-05-12 10:11:54 +08:00
parent d69aaed444
commit 7e220b7477
30 changed files with 1342 additions and 200 deletions
+53 -2
View File
@@ -1016,27 +1016,65 @@
}
.platformLimitTable .shTableRow {
grid-template-columns: clamp(150px, 16vw, 220px) minmax(148px, 1fr) minmax(104px, max-content) minmax(136px, max-content) minmax(122px, max-content) minmax(132px, max-content) minmax(128px, max-content);
min-width: 920px;
grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 0.95fr) 150px 170px 140px 132px 132px;
min-width: 1064px;
}
.platformLimitTable .shTableHead,
.platformLimitTable .shTableCell {
display: grid;
align-content: center;
min-height: 68px;
padding-right: 10px;
padding-left: 10px;
}
.platformLimitTable .shTableHead {
min-height: 74px;
}
.platformLimitMetricHead {
display: grid;
align-content: center;
gap: 3px;
white-space: normal;
}
.platformLimitMetricHead small {
overflow: hidden;
color: var(--muted-foreground);
font-size: var(--font-size-xs);
font-weight: var(--font-weight-medium);
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.platformLimitNumberHead,
.platformLimitNumberCell {
justify-items: start;
}
.platformLimitStatusHead,
.platformLimitStatusCell {
justify-items: start;
}
.rateMetricCell,
.rateLoadCell {
display: grid;
min-width: 0;
gap: 4px;
width: 100%;
align-content: start;
font-variant-numeric: tabular-nums;
}
.rateMetricCell strong,
.rateLoadCell strong {
color: var(--text-strong);
font-size: var(--font-size-sm);
line-height: 1.25;
}
.rateMetricCell small {
@@ -1050,6 +1088,7 @@
.rateLoadTrack {
display: block;
height: 6px;
width: min(112px, 100%);
overflow: hidden;
border-radius: 999px;
background: #eef2f6;
@@ -1062,6 +1101,18 @@
background: #0f766e;
}
.rateLoadCell[data-overloaded="true"] strong {
color: var(--destructive);
}
.rateLoadCell[data-overloaded="true"] .rateLoadTrack {
background: #fee2e2;
}
.rateLoadCell[data-overloaded="true"] .rateLoadTrack i {
background: var(--destructive);
}
.platformModelToolbar {
display: grid;
grid-template-columns: minmax(220px, 0.6fr) minmax(260px, 1fr);