fix(admin-ui): cap user detail cache, gate breakdown on ranking, restore single chevron

The per-user detail cache grew without limit and now keeps the 20 most recently fetched users. Spend refresh built the breakdown from a stale ranking after the ranking failed or was superseded, and now skips that step. The FontAwesome stylesheet overrode Tailwind hidden and showed two accordion chevrons, so it now loads in a low cascade layer.
This commit is contained in:
2026-11-08 02:35:06 +00:00
parent 8c5e4fbcda
commit 3e1750ddb9
8 changed files with 121 additions and 40 deletions
+10
View File
@@ -0,0 +1,10 @@
import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'
describe('main.css', () => {
// Unlayered FontAwesome CSS sets `display` on every icon and beats Tailwind's `hidden`, so both chevrons of an accordion trigger showed.
it('imports the FontAwesome stylesheet inside a cascade layer', () => {
const css = readFileSync(new URL('./main.css', import.meta.url), 'utf8')
expect(css).toMatch(/@import\s+"@fortawesome\/fontawesome-svg-core\/styles\.css"\s+layer\(/)
})
})