arkaos 3.32.0 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/dashboard/app/pages/budget.vue +27 -5
- package/package.json +1 -1
- package/pyproject.toml +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.33.0
|
|
@@ -73,14 +73,27 @@ const {
|
|
|
73
73
|
{ query: computed(() => ({ period: period.value })) },
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
+
// PR90c v3.33.0 — let the operator pick 7d / 14d / 30d.
|
|
77
|
+
const trendDays = ref<7 | 14 | 30>(7)
|
|
78
|
+
const trendDaysOptions = [
|
|
79
|
+
{ label: '7 days', value: 7 },
|
|
80
|
+
{ label: '14 days', value: 14 },
|
|
81
|
+
{ label: '30 days', value: 30 },
|
|
82
|
+
]
|
|
76
83
|
const {
|
|
77
84
|
data: trend,
|
|
78
85
|
refresh: refreshTrend,
|
|
79
|
-
} = fetchApi<TrendResponse>(
|
|
86
|
+
} = fetchApi<TrendResponse>(
|
|
87
|
+
'/api/llm-costs/trend',
|
|
88
|
+
{ query: computed(() => ({ days: trendDays.value })) },
|
|
89
|
+
)
|
|
80
90
|
|
|
81
91
|
watch(period, async () => {
|
|
82
92
|
await refresh()
|
|
83
93
|
})
|
|
94
|
+
watch(trendDays, async () => {
|
|
95
|
+
await refreshTrend()
|
|
96
|
+
})
|
|
84
97
|
|
|
85
98
|
// ─── View tabs ───────────────────────────────────────────────────────────
|
|
86
99
|
|
|
@@ -248,12 +261,21 @@ async function refreshAll() {
|
|
|
248
261
|
</div>
|
|
249
262
|
</UCard>
|
|
250
263
|
|
|
251
|
-
<!--
|
|
264
|
+
<!-- PR90c v3.33.0 — trend with selectable window -->
|
|
252
265
|
<UCard v-if="trend?.days?.length">
|
|
253
266
|
<div>
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
267
|
+
<div class="flex items-center justify-between mb-4">
|
|
268
|
+
<p class="text-xs font-semibold text-muted uppercase tracking-wider">
|
|
269
|
+
Daily spend
|
|
270
|
+
</p>
|
|
271
|
+
<USelect
|
|
272
|
+
v-model="trendDays"
|
|
273
|
+
:items="trendDaysOptions"
|
|
274
|
+
size="xs"
|
|
275
|
+
class="min-w-24"
|
|
276
|
+
aria-label="Trend window"
|
|
277
|
+
/>
|
|
278
|
+
</div>
|
|
257
279
|
<div class="flex items-end gap-2 h-32">
|
|
258
280
|
<div
|
|
259
281
|
v-for="day in trend.days"
|
package/package.json
CHANGED