Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
style(pam-rdp): eslint autofix
bernie-gcf6e3b65a9fc
diff --git a/frontend/src/hooks/api/pam/session-playback/queries.tsx b/frontend/src/hooks/api/pam/session-playback/queries.tsxindex 9cac268022..f5a9d47f3d 100644--- a/frontend/src/hooks/api/pam/session-playback/queries.tsx+++ b/frontend/src/hooks/api/pam/session-playback/queries.tsx@@ -120,10 +120,7 @@ export const useDecryptedSessionLogs = (const projectId = bundle.projectId ?? "";const sortedChunks = [...bundle.chunks].sort((a, b) => a.chunkIndex - b.chunkIndex);- const totalDurationMs = sortedChunks.reduce(- (max, c) => Math.max(max, c.endElapsedMs),- 0- );+ const totalDurationMs = sortedChunks.reduce((max, c) => Math.max(max, c.endElapsedMs), 0);if (sortedChunks.length > PAM_PLAYBACK_MAX_CHUNKS) {if (!cancelled) {diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsxindex e4eaf7d451..c044a3a38d 100644--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.tsx@@ -110,18 +110,12 @@ export const PamSessionLogsSection = ({ session, scrollToLogIndex }: Props) => {<RdpReplayViewevents={logs as TTerminalEvent[]}isStreaming={isLoading}- totalDurationMs={- isLegacyOrNoChunks ? undefined : playback.totalDurationMs- }+ totalDurationMs={isLegacyOrNoChunks ? undefined : playback.totalDurationMs}/></Suspense>) : isLoading ? (<div className="flex grow flex-col items-center justify-center gap-2">- <Lottie- isAutoPlay- icon="infisical_loading"- className="pointer-events-none size-12"- />+ <Lottie isAutoPlay icon="infisical_loading" className="pointer-events-none size-12" /><span className="text-sm text-muted">Loading session recording</span></div>) : null)}diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/RdpReplayView.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/RdpReplayView.tsxindex 16d4bee710..54d1ee8932 100644--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/RdpReplayView.tsx+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/RdpReplayView.tsx@@ -37,11 +37,7 @@ type Props = {totalDurationMs?: number;};-export const RdpReplayView = ({- events,- isStreaming = false,- totalDurationMs-}: Props) => {+export const RdpReplayView = ({ events, isStreaming = false, totalDurationMs }: Props) => {const canvasRef = useRef<HTMLCanvasElement | null>(null);const playerRef = useRef<RdpReplayPlayer | null>(null);const lastParsedIndexRef = useRef(0);@@ -59,8 +55,7 @@ export const RdpReplayView = ({icon: "play" | "pause";nonce: number;} | null>(null);- const totalMs =- totalDurationMs && totalDurationMs > 0 ? totalDurationMs : lastSeenEventMs;+ const totalMs = totalDurationMs && totalDurationMs > 0 ? totalDurationMs : lastSeenEventMs;const [contentBounds, setContentBounds] = useState({width: CANVAS_W,height: CANVAS_H@@ -205,7 +200,7 @@ export const RdpReplayView = ({type="button"onClick={onPlayPause}aria-label={isPlaying ? "Pause" : "Play"}- className="group relative flex cursor-pointer items-center justify-center overflow-hidden rounded-md border border-border bg-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/30"+ className="group relative flex cursor-pointer items-center justify-center overflow-hidden rounded-md border border-border bg-black focus-visible:ring-2 focus-visible:ring-foreground/30 focus-visible:outline-none"style={{ aspectRatio: `${OUTER_ASPECT_W} / ${OUTER_ASPECT_H}` }}><div@@ -274,7 +269,7 @@ export const RdpReplayView = ({style={{ width: "0%" }}/></div>- <span ref={timeTextRef} className="font-mono text-xs tabular-nums text-muted">+ <span ref={timeTextRef} className="font-mono text-xs text-muted tabular-nums">{formatMs(0)} / {formatMs(totalMs)}</span><IconButton