Skip to content

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

fix: move all environments to separate group

Scott Wilson1ba97e034091
diff --git a/frontend/src/components/v3/generic/Command/Command.tsx b/frontend/src/components/v3/generic/Command/Command.tsx
index b8e4e52bc2..431a8d5ec9 100644
--- a/frontend/src/components/v3/generic/Command/Command.tsx
+++ b/frontend/src/components/v3/generic/Command/Command.tsx
@@ -12,7 +12,7 @@ function Command({ className, ...props }: React.ComponentProps<typeof CommandPri
<CommandPrimitive
data-slot="command"
className={cn(
- "text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md bg-popover",
+ "text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md bg-popover outline-0",
className
)}
{...props}
@@ -78,7 +78,7 @@ function CommandList({ className, ...props }: React.ComponentProps<typeof Comman
<CommandPrimitive.List
data-slot="command-list"
className={cn(
- "max-h-[300px] thin-scrollbar scroll-py-1 overflow-x-hidden overflow-y-auto",
+ "max-h-[300px] thin-scrollbar scroll-py-1 overflow-x-hidden overflow-y-auto outline-0",
className
)}
{...props}
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx
index 7fd1f3115a..843ec21678 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/EnvironmentSelect/EnvironmentSelect.tsx
@@ -9,6 +9,7 @@ import {
CommandInput,
CommandItem,
CommandList,
+ CommandSeparator,
Popover,
PopoverContent,
PopoverTrigger,
@@ -116,18 +117,23 @@ export function EnvironmentSelect({ selectedEnvs, setSelectedEnvs }: Props) {
/>
<CommandList>
<CommandEmpty>No environment found.</CommandEmpty>
+ {Boolean(projectEnvs.length) && !inputValue && (
+ <>
+ <CommandGroup>
+ <CommandItem forceMount keywords={[]} onSelect={handleSelectAll}>
+ <CheckIcon
+ className={cn(
+ "mr-2 h-4 w-4",
+ !selectedEnvs.length ? "opacity-100" : "opacity-0"
+ )}
+ />
+ All Environments
+ </CommandItem>
+ </CommandGroup>
+ <CommandSeparator />
+ </>
+ )}
<CommandGroup>
- {Boolean(projectEnvs.length) && !inputValue && (
- <CommandItem onSelect={handleSelectAll}>
- <CheckIcon
- className={cn(
- "mr-2 h-4 w-4",
- !selectedEnvs.length ? "opacity-100" : "opacity-0"
- )}
- />
- All Environments
- </CommandItem>
- )}
{projectEnvs.map((env) => (
<CommandItem
key={env.id}