- {{ formatCost(spentMicros) }}
- {{ formatCost(budgetMicros) }}
+ {{ formatCostDisplay(spentMicros) }}
+ {{ formatCostDisplay(budgetMicros) }}
(() => props.budgetMicros !== null && spentM
:labels="labels"
:datasets="datasets"
:comparison-datasets="comparisonDatasets"
- :value-formatter="formatCost"
+ :value-formatter="formatCostDisplay"
+ :axis-formatter="formatCostAxis"
ariaLabel="Cumulative spend this month against the configured budget"
/>
diff --git a/webui/src/components/ChartCard.vue b/webui/src/components/ChartCard.vue
index 8d0e5bc..6942ee5 100644
--- a/webui/src/components/ChartCard.vue
+++ b/webui/src/components/ChartCard.vue
@@ -59,6 +59,7 @@ const props = withDefaults(
comparisonDatasets?: TimeSeriesComparisonDataset[]
stacked?: boolean
valueFormatter?: (value: number) => string
+ axisFormatter?: (value: number) => string
/** Required whenever `state` can reach 'ready' with the default TimeSeriesChart body (TimeSeriesChart's own ariaLabel doc comment: no safe generic default) — optional here only so a skeleton-only ChartCard is not forced to pass a meaningless placeholder. */
ariaLabel?: string
}>(),
@@ -92,6 +93,7 @@ const props = withDefaults(
:comparison-datasets="comparisonDatasets"
:stacked="stacked"
:value-formatter="valueFormatter"
+ :axis-formatter="axisFormatter"
:ariaLabel="ariaLabel"
/>
@@ -113,6 +115,7 @@ const props = withDefaults(
:comparison-datasets="comparisonDatasets"
:stacked="stacked"
:value-formatter="valueFormatter"
+ :axis-formatter="axisFormatter"
:ariaLabel="ariaLabel"
/>
diff --git a/webui/src/components/ConsumerDirectory.vue b/webui/src/components/ConsumerDirectory.vue
index 5a522b1..2a19f3c 100644
--- a/webui/src/components/ConsumerDirectory.vue
+++ b/webui/src/components/ConsumerDirectory.vue
@@ -25,7 +25,7 @@ import UsageTable from '@/components/UsageTable.vue'
import { useNow } from '@/composables/useNow'
import { useSearchQuery } from '@/composables/useSearchQuery'
import { monthCostProjection, NOT_ENOUGH_DATA, WILL_EXCEED_TITLE } from '@/lib/forecast'
-import { formatCost, formatLimits } from '@/lib/format'
+import { formatCostDisplay, formatLimits } from '@/lib/format'
import { loadState } from '@/lib/load-state'
import { type ExpandState, clearExpandOverrides, computeExpandedItems, toggleItemExpand } from '@/lib/search-expand'
import { budgetRatios } from '@/lib/usage-bars'
@@ -49,6 +49,9 @@ import type { AdminUsageEntryView } from '@/types/api'
* Source column (inline/file, GET /admin/api/consumers) on the flat Users
* table only.
*/
+/** Rows per page in the flat Users table: keeps a 30+ user fleet scannable. */
+const USERS_PAGE_SIZE = 25
+
const dashboard = useDashboardStore()
const consumers = useConsumersStore()
const nav = useNavStore()
@@ -232,7 +235,7 @@ function isGlobPattern(entry: string): boolean {
/** groupCostProjection renders lib/forecast.ts's shared monthCostProjection (reuse-audit.md F7) for one group row as display text. */
function groupCostProjection(entry: AdminUsageEntryView, now: Date): { text: string; willExceed: boolean } {
const projection = monthCostProjection(entry, now)
- return { text: projection.micros === null ? NOT_ENOUGH_DATA : formatCost(projection.micros), willExceed: projection.willExceed }
+ return { text: projection.micros === null ? NOT_ENOUGH_DATA : formatCostDisplay(projection.micros), willExceed: projection.willExceed }
}
/**
* GROUP_DETAIL_FIELDS (reuse-audit.md F6) drives the group accordion's 4
@@ -308,7 +311,7 @@ function groupsCsv(): string {
-
{{ formatCost(usage.total.costPerDayMicroUsd) }}
+
{{ formatCostDisplay(usage.total.costPerDayMicroUsd) }}
@@ -328,7 +331,8 @@ function groupsCsv(): string {
-
+
+ Sort groups by
@@ -345,7 +349,7 @@ function groupsCsv(): string {
req/day
- {{ row.original.storeDown ? '?' : formatCost(row.original.costPerDayMicroUsd) }}/day
+ {{ row.original.storeDown ? '?' : formatCostDisplay(row.original.costPerDayMicroUsd) }}/day
@@ -425,7 +429,7 @@ function groupsCsv(): string {
?
-
{{ row.original.storeDown ? '?' : formatCost(row.original.costPerMonthMicroUsd) }}
+
{{ row.original.storeDown ? '?' : formatCostDisplay(row.original.costPerMonthMicroUsd) }}
Users
- File-backed users load from {{ consumers.data.usersFile }}.
+ File-backed users load from {{ consumers.data.usersFile }}.
@@ -470,6 +474,7 @@ function groupsCsv(): string {
{{ priceableOptions.length === 0 ? 'No priced model served in range to compare against.' : 'Pick a reference model above.' }}
- {{ formatCost(avoidedMicros) }}
+ {{ formatCostDisplay(avoidedMicros) }}