Skip to content

Commit bf9fb27

Browse files
authored
Fix benchmark api calls cost message (#2201)
Fixes OPS-4088. ## Additional Notes <img width="481" height="106" alt="Screenshot 2026-04-07 at 5 34 27 PM" src="https://github.com/user-attachments/assets/a1e35b2f-4a53-436a-b54e-a70fead42709" /> <img width="481" height="106" alt="Screenshot 2026-04-07 at 5 34 48 PM" src="https://github.com/user-attachments/assets/5b36c92d-ca9d-4d49-8642-55d7d8492efe" />
1 parent 3c6b3a1 commit bf9fb27

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

packages/ui-components/src/components/benchmark/benchmark-workflow-list.tsx

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
import { BenchmarkWorkflowBase } from '@openops/shared';
22
import { t } from 'i18next';
33

4+
const getBenchmarkCostMessage = (provider: string): string => {
5+
switch (provider.toLowerCase()) {
6+
case 'azure':
7+
return t(
8+
'* Running the benchmark triggers {provider} API calls, but these calls do not incur any charges.',
9+
{ provider },
10+
);
11+
case 'aws':
12+
return t(
13+
'* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider} (typically not exceeding $0.03 per account).',
14+
{ provider },
15+
);
16+
default:
17+
return t(
18+
'* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider}.',
19+
{ provider },
20+
);
21+
}
22+
};
23+
424
export const BenchmarkWorkflowList = ({
525
workflows,
626
provider,
@@ -18,10 +38,7 @@ export const BenchmarkWorkflowList = ({
1838
))}
1939
</ul>
2040
<p className="text-xs text-muted-foreground mt-3 italic shrink-0">
21-
{t(
22-
'* Running the benchmark triggers {provider} API calls, which may result in a small charge from {provider} (typically not exceeding $0.03 per account).',
23-
{ provider },
24-
)}
41+
{getBenchmarkCostMessage(provider)}
2542
</p>
2643
</div>
2744
);

0 commit comments

Comments
 (0)