Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(pam): move commit/rollback to left toolbar, transaction open indicator to right

bernie-g7ca946008961
diff --git a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
index b98671df73..6e6d9e635c 100644
--- a/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccountAccessPage/PamAccountAccessPage.tsx
@@ -133,13 +133,7 @@ const PageContent = () => {
return <PamDataExplorerPage />;
}
- return (
- <TerminalContent
- accountId={accountId!}
- projectId={projectId!}
- orgId={orgId!}
- />
- );
+ return <TerminalContent accountId={accountId!} projectId={projectId!} orgId={orgId!} />;
};
export const PamAccountAccessPage = () => {
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
index 95f06e7227..ab4204717e 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryPanel.tsx
@@ -168,11 +168,7 @@ export function QueryPanel({
<div className="relative z-0 flex min-h-0 flex-1 flex-col overflow-hidden bg-bunker-800">
<div className="min-h-0 flex-1 overflow-hidden">
- <QueryResultsTable
- result={result}
- error={error}
- isRunning={isRunning}
- />
+ <QueryResultsTable result={result} error={error} isRunning={isRunning} />
</div>
{!isRunning && result && !error && (
<div className="flex shrink-0 items-center border-t border-mineshaft-600 px-3 py-1">
diff --git a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
index 58c8f29729..edb5ae893e 100644
--- a/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
+++ b/frontend/src/pages/pam/PamDataExplorerPage/components/QueryToolbar.tsx
@@ -38,33 +38,35 @@ export function QueryToolbar({
<span className="opacity-60">{isMac ? "⌘" : "Ctrl"} ↵</span>
</Button>
)}
+ {isInTransaction && (
+ <>
+ <Button
+ size="xs"
+ variant="success"
+ onClick={onCommit}
+ isDisabled={isRunning}
+ className="gap-1.5"
+ >
+ <CheckIcon className="size-3" />
+ Commit
+ </Button>
+ <Button
+ size="xs"
+ variant="danger"
+ onClick={onRollback}
+ isDisabled={isRunning}
+ className="gap-1.5"
+ >
+ <RotateCcwIcon className="size-3" />
+ Rollback
+ </Button>
+ </>
+ )}
</div>
{isInTransaction && (
- <div className="flex items-center gap-3">
- <span className="rounded bg-yellow-500/15 px-2 py-0.5 text-xs font-medium text-yellow-400">
- Transaction open
- </span>
- <Button
- size="xs"
- variant="success"
- onClick={onCommit}
- isDisabled={isRunning}
- className="gap-1.5"
- >
- <CheckIcon className="size-3" />
- Commit
- </Button>
- <Button
- size="xs"
- variant="danger"
- onClick={onRollback}
- isDisabled={isRunning}
- className="gap-1.5"
- >
- <RotateCcwIcon className="size-3" />
- Rollback
- </Button>
- </div>
+ <span className="rounded bg-yellow-500/15 px-2 py-0.5 text-xs font-medium text-yellow-400">
+ Transaction open
+ </span>
)}
</div>
);
diff --git a/frontend/src/routes.ts b/frontend/src/routes.ts
index d1dde496fc..4d75233a96 100644
--- a/frontend/src/routes.ts
+++ b/frontend/src/routes.ts
@@ -414,7 +414,6 @@ const pamAccessRoute = route(
"pam/PamAccountAccessPage/route.tsx"
);
-
const organizationRoutes = route("/organizations/$orgId", [
route("/projects", "organization/ProjectsPage/route.tsx"),
route("/access-management", "organization/AccessManagementPage/route.tsx"),