File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.limits Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -551,6 +551,39 @@ function QuotaRow({
551551 const percentage =
552552 ! isRetentionQuota && quota . limit && quota . limit > 0 ? quota . currentUsage / quota . limit : null ;
553553
554+ // Special handling for Log retention
555+ if ( quota . name === "Log retention" ) {
556+ const canUpgrade = ! isOnTopPlan ;
557+ return (
558+ < TableRow >
559+ < TableCell className = "flex w-full items-center gap-1" >
560+ < span className = "text-sm" > { quota . name } </ span >
561+ < InfoIconTooltip content = { quota . description } disableHoverableContent />
562+ </ TableCell >
563+ < TableCell alignment = "right" className = "font-medium tabular-nums" >
564+ { quota . limit !== null ? `${ formatNumber ( quota . limit ) } days` : "Unlimited" }
565+ </ TableCell >
566+ < TableCell alignment = "right" className = "tabular-nums text-text-dimmed" >
567+ –
568+ </ TableCell >
569+ < TableCell alignment = "right" >
570+ < SourceBadge source = { quota . source } />
571+ </ TableCell >
572+ < TableCell alignment = "right" >
573+ < div className = "flex justify-end" >
574+ { canUpgrade ? (
575+ < LinkButton to = { billingPath } variant = "tertiary/small" >
576+ View plans
577+ </ LinkButton >
578+ ) : (
579+ < span className = "text-xs text-text-dimmed" > Max reached</ span >
580+ ) }
581+ </ div >
582+ </ TableCell >
583+ </ TableRow >
584+ ) ;
585+ }
586+
554587 // Quotas that support upgrade options
555588 const upgradableQuotas = [
556589 "Projects" ,
You can’t perform that action at this time.
0 commit comments