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:
@@ -45,3 +45,13 @@ describe('useTargetPicker', () => {
|
||||
expect(picker.snippetLabel.value).toBe('Merge into alice’s users.json line')
|
||||
})
|
||||
})
|
||||
|
||||
describe('useTargetPicker kind switch', () => {
|
||||
it('clears targetName when targetKind changes so a stale name cannot leak across kinds', () => {
|
||||
const picker = useTargetPicker(() => ['admins'], () => ['alice'])
|
||||
picker.targetName.value = 'admins'
|
||||
picker.targetKind.value = 'user'
|
||||
expect(picker.targetName.value).toBe('')
|
||||
expect(picker.nameValid.value).toBe(false)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user