feat(ui): note the idle eviction window on the stats page

The stats page now reads idle_ttl from the stats API. It shows
"Cached items not requested for 7 days are removed." in an info alert.
The note stays hidden when idle eviction is off.
This commit is contained in:
2026-11-23 12:50:00 +00:00
parent d6edd40d79
commit 9a44683fbd
5 changed files with 83 additions and 1 deletions
+2
View File
@@ -40,6 +40,8 @@ export interface Stats {
scanned_packages: number
vulnerable_packages: number
blocked_packages: number
/** Seconds a cached item can go unrequested before cleanup removes it; 0 means never. */
idle_ttl?: number
}
export const usePackageStore = defineStore('packages', () => {