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
improvement(ui): add 1Password ignore default to V3 Input and text slot to PageLoader (#8571)
Andrew Huangcacb465c9da0
diff --git a/frontend/src/components/V3_MIGRATION.md b/frontend/src/components/V3_MIGRATION.mdindex c34dff2b8a..579cf3fb49 100644--- a/frontend/src/components/V3_MIGRATION.md+++ b/frontend/src/components/V3_MIGRATION.md@@ -35,7 +35,7 @@ In the table, E is the number of external consumer files and I is the number of| `Card/Card.tsx` | 66 / 2 | V3 Card slots; preserve layout and state-bearing children. | `frontend/src/pages/secret-manager/integrations/SelectIntegrationAuthPage/SelectIntegrationAuthPage.tsx:164` || `Checkbox/Checkbox.tsx` | 11 / 1 | V3 Checkbox + Field; verify controlled/indeterminate state and labels. | `frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx:180` || `ConfirmActionModal/ConfirmActionModal.tsx` | 2 / 0 | V3 `DeleteConfirmDialog` with a non-danger `confirmVariant`; follow the overlay recipe. | `frontend/src/pages/auth/AccountRecoveryResetPage/AccountRecoveryResetPage.tsx:94` |-| `ContentLoader/ContentLoader.tsx` | 12 / 0 | V3 Loader/PageLoader composition; preserve pending boundaries. | `frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx:446` |+| `ContentLoader/ContentLoader.tsx` | 12 / 0 | V3 Loader/PageLoader composition; preserve pending boundaries. Visible copy maps to PageLoader `text`; wrap PageLoader in an `h-screen` container where the page needs full viewport height. | `frontend/src/pages/auth/SelectOrgPage/SelectOrgPage.tsx:446` || `CopyButton/CopyButton.tsx` | 2 / 0 | V3 CopyButton; verify exact copy, failure feedback, and labels. | `frontend/src/pages/cert-manager/CertificateDetailsByIDPage/components/CertificateDetailsSection.tsx:275` || `CreatableSelect/CreatableSelect.tsx` | 0 / 0 | Deleted in first wave; no consumer. | No incoming non-export edge or external symbol reference. || `DatePicker/DatePicker.tsx` | 0 / 0 | Deleted in first wave; no active date contract replaced. | Only its own barrel exported it. |@@ -54,7 +54,7 @@ In the table, E is the number of external consumer files and I is the number of| `HoverCard/HoverCard.tsx` | 0 / 0 | Deleted in first wave; no consumer. | No incoming module edge or external symbol reference. || `HoverCardv2/HoverCardv2.tsx` | 1 / 0 | V3 HoverCard; verify trigger, rich content, placement, and focus access. | `frontend/src/pages/cert-manager/DiscoveryPage/components/DiscoveryJobsTab.tsx:154` || `IconButton/IconButton.tsx` | 40 / 6 | V3 IconButton; preserve accessible names, disabled/pending state and triggers. | `frontend/src/pages/auth/CliRedirectPage/CliRedirectPage.tsx:66` |-| `Input/Input.tsx` | 100 / 4 | V3 Input/InputGroup; preserve refs, validation, type and adornment behavior. | `frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx:58` |+| `Input/Input.tsx` | 100 / 4 | V3 Input/InputGroup; preserve refs, validation, type and adornment behavior. V3 Input applies the V2 `data-1p-ignore` default; an explicit `data-1p-ignore` is needed only where `autoComplete` names an email, password or username. | `frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/MetadataForm.tsx:58` || `Lottie/Lottie.tsx` | 1 / 0 | V3 Loader; remove entry/barrel chunk-order dependency with a production boot proof. | `frontend/src/main.tsx:83` || `Menu/Menu.tsx` | 1 / 0 | One remaining type reference; replace with actual V3 contract, then delete source/exports. | `frontend/src/layouts/OrganizationLayout/components/MenuIconButton/MenuIconButton.tsx:19` || `Modal/Modal.tsx` | 55 / 2 | V3 Dialog/Sheet chosen by form size; follow the overlay recipe for nested overlays, pending close, discard, mutation errors, and focus. | `frontend/src/pages/organization/AccessManagementPage/components/UpgradePrivilegeSystemModal/UpgradePrivilegeSystemModal.tsx:65` |diff --git a/frontend/src/components/v3/generic/Input/Input.stories.tsx b/frontend/src/components/v3/generic/Input/Input.stories.tsxindex 0165cc5134..c931608875 100644--- a/frontend/src/components/v3/generic/Input/Input.stories.tsx+++ b/frontend/src/components/v3/generic/Input/Input.stories.tsx@@ -18,6 +18,11 @@ import { Input } from "./Input";** The component fills its parent's width by design — let the parent (`Field`,* `FieldGroup`, or a custom container) decide how wide the input should be.+ *+ * Input sets `data-1p-ignore` so 1Password does not offer to fill product fields.+ * Fields whose `autoComplete` names an email, password or username (for example+ * `username`, `current-password`, `new-password`) are left fillable. Pass+ * `data-1p-ignore` or `data-1p-ignore={false}` to override the default.*/const meta = {title: "Generic/Input",diff --git a/frontend/src/components/v3/generic/Input/Input.tsx b/frontend/src/components/v3/generic/Input/Input.tsxindex 5a1e891aa9..eb9c32a8a8 100644--- a/frontend/src/components/v3/generic/Input/Input.tsx+++ b/frontend/src/components/v3/generic/Input/Input.tsx@@ -21,16 +21,31 @@ const inputVariants = cva();type InputProps = React.ComponentProps<"input"> &- VariantProps<typeof inputVariants> & { isError?: boolean };+ VariantProps<typeof inputVariants> & { isError?: boolean; "data-1p-ignore"?: boolean };const Input = forwardRef<HTMLInputElement, InputProps>(- ({ className, type, variant = "default", isError, ...props }, ref) => {+ (+ {+ className,+ type,+ variant = "default",+ isError,+ autoComplete,+ "data-1p-ignore": ignorePasswordManager = !/email|password|username/i.test(+ autoComplete ?? ""+ ),+ ...props+ },+ ref+ ) => {return (<inputref={ref}type={type}data-slot="input"data-variant={variant}+ autoComplete={autoComplete}+ data-1p-ignore={ignorePasswordManager || undefined}className={cn(inputVariants({ variant, className }))}aria-invalid={isError}{...props}diff --git a/frontend/src/components/v3/platform/PageLoader/PageLoader.stories.tsx b/frontend/src/components/v3/platform/PageLoader/PageLoader.stories.tsxnew file mode 100644index 0000000000..02ec917d57--- /dev/null+++ b/frontend/src/components/v3/platform/PageLoader/PageLoader.stories.tsx@@ -0,0 +1,69 @@+import type { Meta, StoryObj } from "@storybook/react-vite";++import { PageLoader } from "./PageLoader";++/**+ * `PageLoader` is the route-level pending state: the branded `Loader` centered in+ * a wrapper that fills its parent (`h-full w-full`). It does not set its own+ * viewport height, so the surrounding layout decides how tall the wait is.+ *+ * Pass `text` when the wait needs an explanation, such as an OAuth callback or+ * workspace setup. The text renders below the mark and becomes the loader's+ * accessible label, so screen readers announce it once instead of "Loading".+ *+ * A page that renders outside a layout and needs the full viewport, as V2+ * `ContentLoader` did with `h-screen`, wraps it in its own container:+ * `<div className="h-screen"><PageLoader text="..." /></div>`.+ */+const meta = {+ title: "Platform/Page Loader",+ component: PageLoader,+ parameters: {+ layout: "fullscreen"+ },+ tags: ["autodocs"],+ argTypes: {+ text: {+ control: "text"+ },+ lottieClassName: {+ table: { disable: true }+ }+ },+ decorators: [+ (Story) => (+ <div className="h-96 bg-page">+ <Story />+ </div>+ )+ ]+} satisfies Meta<typeof PageLoader>;++export default meta;+type Story = StoryObj<typeof meta>;++export const Default: Story = {+ parameters: {+ docs: {+ description: {+ story:+ "The mark alone, announced with the default `Loading` label. Use for ordinary route and data waits."+ }+ }+ }+};++export const WithText: Story = {+ name: "Example: With Text",+ args: {+ text: "Creating your GitHub App, please wait..."+ },+ parameters: {+ docs: {+ description: {+ story:+ "Visible copy below the mark for waits that need context. Keep it to one short sentence in sentence case."+ }+ }+ }+};diff --git a/frontend/src/components/v3/platform/PageLoader/PageLoader.tsx b/frontend/src/components/v3/platform/PageLoader/PageLoader.tsxindex 7797bdcc62..a7f03e977d 100644--- a/frontend/src/components/v3/platform/PageLoader/PageLoader.tsx+++ b/frontend/src/components/v3/platform/PageLoader/PageLoader.tsx@@ -3,12 +3,18 @@ import { cn } from "../../utils";type PageLoaderProps = {lottieClassName?: string;+ text?: string;};-export function PageLoader({ lottieClassName }: PageLoaderProps) {+export function PageLoader({ lottieClassName, text }: PageLoaderProps) {return (- <div className="flex h-full w-full items-center justify-center">- <Loader className={cn("w-24", lottieClassName)} />+ <div className="flex h-full w-full flex-col items-center justify-center gap-4">+ <Loader className={cn("w-24", lottieClassName)} label={text || undefined} />+ {text && (+ <p aria-hidden="true" className="text-sm text-muted">+ {text}+ </p>+ )}</div>);}diff --git a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsxindex 406afbdd9e..345267c89e 100644--- a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx+++ b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx@@ -116,6 +116,7 @@ export const LoginLdapPage = () => {value={username}onChange={(e) => setUsername(e.target.value)}type="text"+ autoComplete="username"placeholder="Enter your LDAP username..."requireddisabled={passedUsername !== undefined}