Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): r1-l1 remove redundant plugin chevron

Josué5444ae09ca1d
diff --git a/control-ui/components/RecipesTab.tsx b/control-ui/components/RecipesTab.tsx
index 6bd929562..c696c40ca 100644
--- a/control-ui/components/RecipesTab.tsx
+++ b/control-ui/components/RecipesTab.tsx
@@ -13,13 +13,12 @@ import { SkeletonTableRows } from './SkeletonTableRows'
import { TableHeaderRow } from './TableHeaderRow'
import type { TableHeaderColumn } from './TableHeaderRow/types'
import { TablePanelHeader } from './TablePanelHeader'
-import { IconChevronRight, IconRefresh } from './icons'
+import { IconRefresh } from './icons'
const RECIPE_COLUMNS: TableHeaderColumn[] = [
{ key: 'name', label: 'Name' },
{ key: 'phase', label: 'Phase' },
{ key: 'created', label: 'Created' },
- { key: 'navigation', ariaLabel: 'Navigation', align: 'right' },
]
type Props = {
@@ -170,9 +169,6 @@ export function RecipesTab({ items, loading, error, onInstall, onRefresh }: Prop
</span>
</td>
<td className="cu-installed-plugin__created">{created}</td>
- <td className="cu-installed-plugin__navigation" aria-hidden="true">
- <IconChevronRight width={18} height={18} />
- </td>
</tr>
)
})}
diff --git a/control-ui/components/__tests__/RecipesTab.test.tsx b/control-ui/components/__tests__/RecipesTab.test.tsx
index ffabc194f..d0d2891ae 100644
--- a/control-ui/components/__tests__/RecipesTab.test.tsx
+++ b/control-ui/components/__tests__/RecipesTab.test.tsx
@@ -44,6 +44,8 @@ describe('RecipesTab — render', () => {
it('shows recipe name in table', () => {
render(<RecipesTab {...DEFAULT_PROPS} />)
expect(screen.getByText('test-recipe')).toBeInTheDocument()
+ expect(screen.getAllByRole('columnheader')).toHaveLength(3)
+ expect(screen.queryByRole('columnheader', { name: 'Navigation' })).not.toBeInTheDocument()
})
it('does not show namespace in the table', () => {
@@ -166,11 +168,11 @@ describe('RecipesTab — render', () => {
expect(screen.getByText('API error 500')).toBeInTheDocument()
})
- it('shows table headers with an unlabeled navigation column', () => {
+ it('shows data headers without a redundant navigation column', () => {
render(<RecipesTab {...DEFAULT_PROPS} />)
expect(screen.getByText('Name')).toBeInTheDocument()
expect(screen.getByText('Created')).toBeInTheDocument()
- expect(screen.getByRole('columnheader', { name: 'Navigation' })).toBeInTheDocument()
+ expect(screen.queryByRole('columnheader', { name: 'Navigation' })).not.toBeInTheDocument()
expect(screen.queryByText('Navigation')).not.toBeInTheDocument()
expect(screen.queryByText('Namespace')).not.toBeInTheDocument()
expect(screen.queryByText('Workloads')).not.toBeInTheDocument()
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 846e74813..2d040f533 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.481",
+ "version": "0.1.482",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.481",
+ "version": "0.1.482",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/frontend-table-system": "file:../packages/frontend-table-system",
diff --git a/control-ui/package.json b/control-ui/package.json
index 35fe8e10b..99b0b5f5c 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.481",
+ "version": "0.1.482",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",