66 collectLimitPools ,
77 cursorUsageWindowDetails ,
88 displayLimitWindows ,
9- formatPaceHeadroom ,
109 formatResetsIn ,
1110 type LimitAccount ,
1211 type LimitPool ,
@@ -29,8 +28,13 @@ import { Button } from "../ui/button";
2928import { OpenAI } from "../Icons" ;
3029import { Alert , AlertTitle } from "../ui/alert" ;
3130import { Popover , PopoverPopup , PopoverTrigger } from "../ui/popover" ;
32- import { Tooltip , TooltipPopup , TooltipTrigger } from "../ui/tooltip" ;
33- import { ResetCreditDialog , barColor , resetCreditsSummary , useResetCredit } from "./UsageLimits" ;
31+ import {
32+ PaceIcon ,
33+ ResetCreditDialog ,
34+ barColor ,
35+ resetCreditsSummary ,
36+ useResetCredit ,
37+ } from "./UsageLimits" ;
3438
3539/** `[email protected] ` → `SE`: enough to tell accounts apart, too little to identify one. */ 3640function accountInitials ( email : string ) : string {
@@ -499,8 +503,7 @@ function PoolBar({
499503
500504/**
501505 * Big pooled number and the segment bar. Accounts keep the same column across
502- * windows; each segment's popover shows its own reset time and share restored,
503- * and the refill beside the number says what the next reset hands back.
506+ * windows; each segment's popover shows its own reset time and share restored.
504507 */
505508function PoolWindowCard ( {
506509 pool,
@@ -521,35 +524,18 @@ function PoolWindowCard({
521524 < div className = "grid items-center gap-x-6 gap-y-3 rounded-lg border border-border/60 p-4 md:grid-cols-[11rem_minmax(0,1fr)]" >
522525 < div className = "flex flex-col gap-1" >
523526 < span className = "text-sm font-medium text-foreground" > { label ?? pool . label } </ span >
524- < span className = "flex flex-wrap items-baseline gap-x -2" >
527+ < span className = "flex items-baseline gap-2" >
525528 < span className = "text-3xl font-semibold text-foreground tabular-nums" >
526529 { pool . remainingPercent } %
527530 </ span >
528- < span className = "text-sm text-muted-foreground" > left</ span >
529- { nextRefill ? (
530- < Tooltip >
531- < TooltipTrigger
532- render = {
533- < span
534- tabIndex = { 0 }
535- className = "rounded-sm text-xs text-muted-foreground tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
536- />
537- }
538- >
539- ↻ +{ nextRefill . restoresPercent } %
540- </ TooltipTrigger >
541- < TooltipPopup side = "top" >
542- Pooled usage +{ nextRefill . restoresPercent } %{ " " }
543- { formatResetsIn ( nextRefill . member . window , now )
544- ?. replace ( "resets in " , "in " )
545- . replace ( "resets now" , "now" ) }
546- </ TooltipPopup >
547- </ Tooltip >
548- ) : null }
531+ < span className = "inline-flex items-center gap-2 text-sm text-muted-foreground" >
532+ < span > left</ span >
533+ { pool . pace ? < PaceIcon pace = { pool . pace } /> : null }
534+ </ span >
549535 </ span >
550- { pool . paceHeadroomPercent !== null ? (
551- < span className = "text-xs text-muted -foreground tabular-nums" >
552- { formatPaceHeadroom ( pool . paceHeadroomPercent ) }
536+ { nextRefill && pool . columns . length > 1 ? (
537+ < span className = "text-xs font-medium text -foreground tabular-nums" >
538+ ↻ + { nextRefill . restoresPercent } %
553539 </ span >
554540 ) : null }
555541 </ div >
0 commit comments