Skip to content

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

TypeScript

Merge remote-tracking branch 'origin/dev' into HEAD

Alfredo Lopezbef0c1f30399
diff --cc control-ui/components/RecipeSecretsPanel/index.tsx
index eca4d488f,b0c435dfb..510fe480b
--- a/control-ui/components/RecipeSecretsPanel/index.tsx
+++ b/control-ui/components/RecipeSecretsPanel/index.tsx
@@@ -285,33 -276,27 +286,30 @@@ export function RecipeSecretsPanel(
Add
</button>
) : (
- <div style={{ display: 'inline-flex', gap: '0.35rem' }}>
- <button
- type="button"
- className="cu-btn cu-btn--icon cu-btn--toolbar"
- onClick={() => navigateToEdit(row.name, row.namespace)}
- aria-label={`Update recipe secret ${row.name}`}
- >
- <IconPencil width={16} height={16} />
- </button>
- <button
- type="button"
- className="cu-btn cu-btn--icon cu-btn--danger-icon"
- onClick={() => void deleteRow(row)}
- disabled={
- !row.uid ||
- !row.resourceVersion ||
- deletingName === `${row.namespace}/${row.name}`
- }
- aria-label={
- deletingName === `${row.namespace}/${row.name}`
- ? 'Deleting…'
- : `Delete recipe secret ${row.name}`
- }
- >
- <IconX width={16} height={16} />
- </button>
- </div>
+ <RowActionsMenu
+ ariaLabel={`Actions for recipe secret ${row.name}`}
+ horizontalTrigger
+ actions={[
+ {
+ key: 'edit',
+ label: 'Update',
+ onClick: () => navigateToEdit(row.name, row.namespace),
+ },
+ {
+ key: 'delete',
+ label:
+ deletingName === `${row.namespace}/${row.name}`
+ ? 'Deleting…'
+ : 'Delete',
+ danger: true,
- disabled: deletingName === `${row.namespace}/${row.name}`,
- onClick: () => void deleteRow(row.name, row.namespace),
++ disabled:
++ !row.uid ||
++ !row.resourceVersion ||
++ deletingName === `${row.namespace}/${row.name}`,
++ onClick: () => void deleteRow(row),
+ },
+ ]}
+ />
)}
</td>
</tr>
diff --cc control-ui/components/SecretsTable.tsx
index 70f9bf083,f47db7407..a79ba6317
--- a/control-ui/components/SecretsTable.tsx
+++ b/control-ui/components/SecretsTable.tsx
@@@ -930,31 -815,27 +825,30 @@@ export function SecretsTable(
</button>
) : (
<div style={{ display: 'inline-flex', gap: '0.35rem' }}>
- <button
- type="button"
- className="cu-btn cu-btn--icon cu-btn--toolbar"
- onClick={() => navigateToRecipeEdit(row.name, row.namespace)}
- aria-label={`Update recipe secret ${row.name}`}
- >
- <IconPencil width={16} height={16} />
- </button>
- <button
- type="button"
- className="cu-btn cu-btn--icon cu-btn--danger-icon"
- onClick={() => void deleteRecipeSecretRow(row)}
- disabled={
- !row.uid ||
- !row.resourceVersion ||
- recipeDeletingName === `${row.namespace}/${row.name}`
- }
- aria-label={
- recipeDeletingName === `${row.namespace}/${row.name}`
- ? 'Deleting…'
- : `Delete recipe secret ${row.name}`
- }
- >
- <IconX width={16} height={16} />
- </button>
+ <RowActionsMenu
+ ariaLabel={`Actions for recipe secret ${row.name}`}
+ horizontalTrigger
+ actions={[
+ {
+ key: 'update',
+ label: 'Update',
+ onClick: () => navigateToRecipeEdit(row.name, row.namespace),
+ },
+ {
+ key: 'delete',
+ label:
+ recipeDeletingName === `${row.namespace}/${row.name}`
+ ? 'Deleting…'
+ : 'Delete',
+ danger: true,
- disabled: recipeDeletingName === `${row.namespace}/${row.name}`,
- onClick: () => void deleteRecipeSecretRow(row.name, row.namespace),
++ disabled:
++ !row.uid ||
++ !row.resourceVersion ||
++ recipeDeletingName === `${row.namespace}/${row.name}`,
++ onClick: () => void deleteRecipeSecretRow(row),
+ },
+ ]}
+ />
</div>
)}
</td>