mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
fix(admin-ui): page-level loading, stale and form fixes
Fetch the consumers list on the user detail page so admin and grant data show on a deep link. Gate Recent errors, the Spend total and the forecast card on load state instead of showing zeros. Show a stale notice on top lists when a refresh fails. Clear the target name when the target kind changes. Ignore out-of-order config responses. Wrap long group names and event messages, and announce projected budget overruns to screen readers. Regenerate admin_assets_gen.go.
This commit is contained in:
@@ -219,7 +219,7 @@ function retryPricingHealthTable(): Promise<void> {
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<p class="text-xs font-medium text-muted-foreground">{{ SPEND_METRIC_LABEL[metric] }} in range</p>
|
||||
<p class="text-2xl font-semibold tabular-nums">{{ valueFormatter(totalInRange) }}</p>
|
||||
<p class="text-2xl font-semibold tabular-nums">{{ breakdownState === 'ready' ? valueFormatter(totalInRange) : '—' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p v-if="byDisabled" class="text-sm text-muted-foreground">
|
||||
@@ -285,7 +285,7 @@ function retryPricingHealthTable(): Promise<void> {
|
||||
:error="spend.burndownError"
|
||||
:on-retry="spend.refresh"
|
||||
/>
|
||||
<CostForecastCard v-if="forecastAvailable" :mtd-micros="scopeMtdMicros" :limits="scopeLimits" :now="now" />
|
||||
<CostForecastCard v-if="forecastAvailable && dashboard.usage" :mtd-micros="scopeMtdMicros" :limits="scopeLimits" :now="now" />
|
||||
</div>
|
||||
|
||||
<CostAvoidedCard
|
||||
|
||||
Reference in New Issue
Block a user