You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8ec6dd4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.test.tsx
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -523,3 +523,30 @@ describe('CredentialDisplay link tag', () => {
523
523
act(()=>root.unmount())
524
524
})
525
525
})
526
+
527
+
describe('UsageUpgradeDisplay',()=>{
528
+
it("shows a job run's own spend cap without an account billing action",()=>{
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.tsx
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3443,6 +3443,39 @@ function MothershipErrorDisplay({ data }: { data: MothershipErrorTagData }) {
3443
3443
}
3444
3444
3445
3445
functionUsageUpgradeDisplay({ data }: {data: UsageUpgradeTagData}){
3446
+
returndata.reason==='job_run_budget' ? (
3447
+
<JobRunBudgetDisplaymessage={data.message}/>
3448
+
) : (
3449
+
<PlanUsageLimitDisplaydata={data}/>
3450
+
)
3451
+
}
3452
+
3453
+
/**
3454
+
* A scheduled job's run reached its own spend cap. The cap belongs to the job, not to the
3455
+
* account, so the card offers no billing action: the next run starts with a fresh cap.
0 commit comments