feat(usage): 展示压缩操作与进行态请求语义

This commit is contained in:
MMEXA
2026-07-13 22:03:44 +08:00
parent b09d1f1c33
commit 3f86fdd6bc
12 changed files with 188 additions and 14 deletions
@@ -297,6 +297,15 @@ describe('UsageRecordsTable', () => {
expect(root.textContent).toContain('max')
})
it('marks Responses compaction while the record is pending', () => {
const root = mountUsageRecordsTable([buildRecord({
status: 'pending',
request_type: 'compact',
})])
expect(root.textContent).toContain('压缩')
})
it('shows fast badge for priority service tier', () => {
const root = mountUsageRecordsTable([buildRecord({ service_tier: 'priority' })])