Skip to content

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

TypeScript

fix(gfs): use x for revoke actions

Miguelon Peluchon8681ff042df8
diff --git a/control-ui/components/GfsGrantPanel.tsx b/control-ui/components/GfsGrantPanel.tsx
index bb161244d..ab2e24eab 100644
--- a/control-ui/components/GfsGrantPanel.tsx
+++ b/control-ui/components/GfsGrantPanel.tsx
@@ -463,7 +463,7 @@ export function GfsGrantPanel({ resource }: GfsGrantPanelProps): React.JSX.Eleme
disabled={actionPending}
onClick={() => void revokeAccess(item)}
>
- Revoke
+ X
</Button>
</li>
)
diff --git a/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx b/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx
index 97b9f1db4..27ae7707d 100644
--- a/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx
+++ b/control-ui/components/__tests__/GfsGrantPanel.bulk.test.tsx
@@ -165,6 +165,7 @@ describe('GfsGrantPanel bulk access', () => {
expect(within(existing).getByText('Direct grant · user')).toBeTruthy()
expect(within(existing).getByText('Read')).toBeTruthy()
expect(within(existing).getByText('Write')).toBeTruthy()
+ expect(within(existing).getByText('X')).toBeTruthy()
fireEvent.click(
within(existing).getByRole('button', { name: 'Remove grant access for Ada Lovelace' })
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 5037093b5..4ac83d4a1 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.449",
+ "version": "0.1.450",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.449",
+ "version": "0.1.450",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/llm-providers": "file:../packages/llm-providers",
diff --git a/control-ui/package.json b/control-ui/package.json
index 40c5592f7..5fef329e3 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.449",
+ "version": "0.1.450",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",
diff --git a/desktop-app/ui/src/gfs/GfsGrantList/index.tsx b/desktop-app/ui/src/gfs/GfsGrantList/index.tsx
index b6eac4279..5760dbd38 100644
--- a/desktop-app/ui/src/gfs/GfsGrantList/index.tsx
+++ b/desktop-app/ui/src/gfs/GfsGrantList/index.tsx
@@ -107,7 +107,7 @@ export function GfsGrantList({
type="button"
variant="outline"
>
- Revoke
+ X
</Button>
</li>
)
@@ -144,7 +144,7 @@ export function GfsGrantList({
type="button"
variant="outline"
>
- Revoke
+ X
</Button>
</li>
)
diff --git a/desktop-app/ui/src/gfs/__tests__/GfsGrantList.test.tsx b/desktop-app/ui/src/gfs/__tests__/GfsGrantList.test.tsx
index c661f9c01..7275a52f0 100644
--- a/desktop-app/ui/src/gfs/__tests__/GfsGrantList.test.tsx
+++ b/desktop-app/ui/src/gfs/__tests__/GfsGrantList.test.tsx
@@ -66,6 +66,7 @@ describe('GfsGrantList', () => {
expect(within(agentRow).getByText('Read')).toBeTruthy()
expect(within(agentRow).getByText('Write')).toBeTruthy()
expect(within(agentRow).getByText('Includes contents')).toBeTruthy()
+ expect(within(agentRow).getByText('X')).toBeTruthy()
const userRow = screen.getByText('Test Two').closest('li')!
expect(within(userRow).getByText('Read')).toBeTruthy()