Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(control-ui): show provider icons in the LLM Prices provider column
Miguelon Peluchon41adf056f8ec
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex c1f3d9609..bd3f50aa4 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -7679,20 +7679,23 @@ textarea.cu-input {.cu-llm-model-group__toggle,.cu-filter-select__copy,.cu-filter-select__icon,- .cu-chip+ .cu-chip,+ .cu-px-provider).cu-llm-provider-icon[data-provider='openai']img {filter: brightness(0);}-.cu-chip:has(.cu-llm-provider-icon) {+.cu-chip:has(.cu-llm-provider-icon),+.cu-px-provider {display: inline-flex;align-items: center;gap: 0.3rem;}-.cu-chip .cu-llm-provider-icon {+.cu-chip .cu-llm-provider-icon,+.cu-px-provider .cu-llm-provider-icon {width: 0.85rem;height: 0.85rem;flex: 0 0 0.85rem;@@ -7702,7 +7705,8 @@ textarea.cu-input {font-size: 0.6rem;}-.cu-chip .cu-llm-provider-icon img {+.cu-chip .cu-llm-provider-icon img,+.cu-px-provider .cu-llm-provider-icon img {padding: 0;}diff --git a/control-ui/components/LlmPriceTable.tsx b/control-ui/components/LlmPriceTable.tsxindex 678d8d31d..82e2de48f 100644--- a/control-ui/components/LlmPriceTable.tsx+++ b/control-ui/components/LlmPriceTable.tsx@@ -4,6 +4,7 @@ import React, { useMemo, useState } from 'react'import type { LlmModelPrice, UnpricedModel } from '@lib/api'import { getProviderDisplayLabel } from '@lib/llm'import type { LlmPriceTableProps } from './LlmPriceTable.types'+import { LlmProviderIcon } from './LlmProviderIcon'import { MissingPriceWarning } from './MissingPriceWarning'import { SectionSearchInput } from './SectionSearchInput'import { IconPrice } from './Sidebar/icons'@@ -164,11 +165,17 @@ export function LlmPriceTable({const isUnpriced = unpricedItems.some(item =>item.model === price.model &&- (item.provider === null || item.provider === price.provider)+ (item.provider === null || price.provider === item.provider))+ const providerLabel = getProviderDisplayLabel(price.provider)return (<tr key={price.id} className="cu-table__row">- <td>{getProviderDisplayLabel(price.provider)}</td>+ <td>+ <span className="cu-px-provider">+ <LlmProviderIcon provider={price.provider} label={providerLabel} />+ {providerLabel}+ </span>+ </td><td className="cu-px-model"><span className="cu-px-model-content">{price.model}@@ -233,7 +240,17 @@ export function LlmPriceTable({className="cu-table__row cu-px-missing-row"><td>- {item.provider ? getProviderDisplayLabel(item.provider) : 'Any provider'}+ {item.provider ? (+ <span className="cu-px-provider">+ <LlmProviderIcon+ provider={item.provider}+ label={getProviderDisplayLabel(item.provider)}+ />+ {getProviderDisplayLabel(item.provider)}+ </span>+ ) : (+ 'Any provider'+ )}</td><td className="cu-px-model"><span className="cu-px-model-content">diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 619afc85c..237030c69 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.411",+ "version": "0.1.412","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.411",+ "version": "0.1.412","dependencies": {"@clerum/llm-providers": "file:../packages/llm-providers","@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",diff --git a/control-ui/package.json b/control-ui/package.jsonindex f0af4d4bc..21eff9373 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.411",+ "version": "0.1.412","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",