Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ first. The window opens on the Dashboard:
window (for Claude the 5-hour and the weekly window, for Codex the windows its
account has) and when each resets; a bar turns orange at 25% left and red at
10%. At the right end of each line sits the provider's urgency on a small
gauge with the [backfill threshold](#backfill-tasks) as a tick; it turns
gauge with the [backfill threshold](#backfill-tasks) as a tick. The label shows
only the urgency value, without a running-task count; it turns
green while the provider is above it. It is read without spending any usage
(see [How much is left](#how-much-is-left)); the strip says how old the
reading is and **Read now** asks again. An account on an API key has no plan
Expand Down
4 changes: 3 additions & 1 deletion web/src/features/settings/providers/backfill.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ describe('backfill', () => {
expect(backfillThreshold(undefined)).toBe(1.5)
})
it('words the urgency, or the note of a provider that cannot take work', () => {
expect(urgencyText(score({running: 2}))).toBe('Urgency 2.0 · shared by 2 runs')
for (const running of [0, 1, 2]) {
expect(urgencyText(score({running}))).toBe('Urgency 2.0')
}
expect(urgencyText(score({tier: 3, note: 'Out until Monday'}))).toBe('Out until Monday')
})
})
3 changes: 1 addition & 2 deletions web/src/features/settings/providers/backfill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ export function isSpare(u: PoolRanking | undefined, threshold: number): boolean
export function urgencyText(u: PoolRanking | undefined): string {
if (!u) return ''
if (u.tier > 0) return u.note
const shared = u.running ? ` · shared by ${u.running} run${u.running > 1 ? 's' : ''}` : ''
return `Urgency ${u.urgency.toFixed(1)}${shared}`
return `Urgency ${u.urgency.toFixed(1)}`
}
Loading