mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
feat(panel): add 3-tier weekly quota capacity and token estimates
- Add a 3-tier pool burn-rate estimator (rolling median calibration, Theil-Sen net-burn slope, and solo cycle ratio) with cross-reset priced token density tracking to derive full-pool USD and token capacities plus account-wide weeklyCapacityEstimate - Render the Est. Weekly Quota summary banner, preliminary/partial badges, full-pool token equivalents, supplementary weekly fallback rows, and pool header capacity tooltips in QuotaPoolsWidget - Coalesce multi-pool state persistence across 5h/weekly buckets, suppress post-refund idle replica rebounds, and clamp externalUsedPct to physical local-spend bounds
This commit is contained in:
@@ -2394,7 +2394,7 @@ html[data-standalone="true"] .app-shell {
|
||||
position: absolute;
|
||||
top: 38px;
|
||||
left: 12px;
|
||||
width: min(332px, calc(100% - 24px));
|
||||
width: min(352px, calc(100% - 24px));
|
||||
z-index: 45;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -2439,10 +2439,69 @@ html[data-standalone="true"] .app-shell {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.quota-rate-wk-summary {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
padding-bottom: 7px;
|
||||
border-bottom: 1px solid var(--border-hairline);
|
||||
}
|
||||
|
||||
.quota-rate-wk-summary[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.quota-rate-wk-k {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.quota-rate-wk-sub {
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: var(--fs-2xs);
|
||||
font-weight: 400;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.quota-rate-wk-v {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 4px;
|
||||
font-family: var(--font-mono);
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.quota-rate-wk-usd {
|
||||
font-size: var(--fs-md);
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.quota-rate-wk-tok {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 400;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.quota-rate-pop-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-height: min(300px, 58vh);
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
.quota-rate-pool-group {
|
||||
@@ -2573,9 +2632,11 @@ html[data-standalone="true"] .app-shell {
|
||||
|
||||
.quota-rate-eq-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
column-gap: 10px;
|
||||
row-gap: 3px;
|
||||
}
|
||||
|
||||
.quota-rate-eq-grid.is-single {
|
||||
@@ -2603,6 +2664,14 @@ html[data-standalone="true"] .app-shell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.quota-rate-eq-tok {
|
||||
font-size: var(--fs-xs);
|
||||
font-weight: 400;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.quota-rate-pop-empty {
|
||||
font-size: var(--fs-sm);
|
||||
line-height: 1.5;
|
||||
@@ -8793,10 +8862,12 @@ html[data-standalone="true"][data-modern-ui="true"] .app-shell {
|
||||
[data-modern-ui="true"] .step-anomaly-tip-list,
|
||||
[data-modern-ui="true"] .step-anomaly-tip-hint,
|
||||
[data-modern-ui="true"] .quota-rate-pop-head,
|
||||
[data-modern-ui="true"] .quota-rate-wk-summary,
|
||||
[data-modern-ui="true"] .quota-rate-pool-group + .quota-rate-pool-group,
|
||||
[data-modern-ui="true"] .quota-rate-model-row + .quota-rate-model-row,
|
||||
[data-modern-ui="true"] .quota-rate-pop-note,
|
||||
:host([data-modern-ui="true"]) .quota-rate-pop-head,
|
||||
:host([data-modern-ui="true"]) .quota-rate-wk-summary,
|
||||
:host([data-modern-ui="true"]) .quota-rate-pool-group + .quota-rate-pool-group,
|
||||
:host([data-modern-ui="true"]) .quota-rate-model-row + .quota-rate-model-row,
|
||||
:host([data-modern-ui="true"]) .quota-rate-pop-note {
|
||||
|
||||
Reference in New Issue
Block a user