Skip to content

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

feat(ui): add organization ID copy button (#8385)

Andrew Huanged8241fe7d0a
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgNameChangeSection/OrgNameChangeSection.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgNameChangeSection/OrgNameChangeSection.tsx
index 10142434e9..84fadbdf7b 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgNameChangeSection/OrgNameChangeSection.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgNameChangeSection/OrgNameChangeSection.tsx
@@ -13,12 +13,16 @@ import {
CardDescription,
CardHeader,
CardTitle,
+ CopyButton,
Field,
FieldDescription,
FieldError,
FieldGroup,
FieldLabel,
Input,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupInput,
Select,
SelectContent,
SelectItem,
@@ -133,7 +137,17 @@ export const OrgNameChangeSection = (): JSX.Element => {
/>
<Field>
<FieldLabel htmlFor="org-id">Organization ID</FieldLabel>
- <Input id="org-id" value={currentOrg.id} disabled />
+ <InputGroup>
+ <InputGroupInput id="org-id" value={currentOrg.id} readOnly />
+ <InputGroupAddon align="inline-end">
+ <CopyButton
+ key={currentOrg.id}
+ type="button"
+ value={currentOrg.id}
+ ariaLabel="Copy organization ID"
+ />
+ </InputGroupAddon>
+ </InputGroup>
</Field>
<Controller
defaultValue=""