:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(settings): keep re-authentication inline in settings (#59603)
Adam Leithf701e2cf2600
diff --git a/frontend/src/lib/components/TimeSensitiveAuthentication/TimeSensitiveAuthentication.tsx b/frontend/src/lib/components/TimeSensitiveAuthentication/TimeSensitiveAuthentication.tsxindex 0d6f7271bbf6..1872188644e7 100644--- a/frontend/src/lib/components/TimeSensitiveAuthentication/TimeSensitiveAuthentication.tsx+++ b/frontend/src/lib/components/TimeSensitiveAuthentication/TimeSensitiveAuthentication.tsx@@ -161,14 +161,22 @@ export function TimeSensitiveAuthenticationArea({ children }: { children: JSX.EluseOnMountEffect(checkReauthentication)return timeSensitiveAuthenticationRequired ? (- <div className="flex-1 bg-primary border border-primary rounded flex flex-col items-center p-6 text-center w-full">- <h2>Re-authentication required</h2>-- <p>This area requires that you re-authenticate.</p>-- <LemonButton type="primary" onClick={() => setDismissedReauthentication(false)}>- Re-authenticate- </LemonButton>+ <div className="w-full">+ <div className="max-w-3xl rounded border border-primary bg-primary p-8">+ <div className="flex flex-col items-start gap-4 text-left">+ <div>+ <h2 className="text-2xl font-semibold m-0 mb-4">Re-authentication required</h2>+ <p className="m-0 text-base text-secondary">+ This settings area contains sensitive information, so we need you to re-authenticate before+ continuing.+ </p>+ </div>++ <LemonButton type="primary" onClick={() => setDismissedReauthentication(false)}>+ Re-authenticate+ </LemonButton>+ </div>+ </div></div>) : (childrendiff --git a/frontend/src/scenes/settings/Settings.tsx b/frontend/src/scenes/settings/Settings.tsxindex bb06b3c72b46..f0eb6b529097 100644--- a/frontend/src/scenes/settings/Settings.tsx+++ b/frontend/src/scenes/settings/Settings.tsx@@ -370,17 +370,19 @@ export function Settings({</div>)}- <AuthenticationAreaComponent>- <div- className={clsx(- 'flex-1 w-full min-w-0 space-y-2 self-start pb-32',- isFullScene && !hideSections && !isCompact && 'pl-[calc(var(--settings-nav-width)+2rem)]'- )}- >- {headerSlot}- <SettingsRenderer {...props} handleLocally={handleLocally} />- </div>- </AuthenticationAreaComponent>+ <div+ className={clsx(+ 'flex-1 w-full min-w-0 self-start pb-32',+ isFullScene && !hideSections && !isCompact && 'pl-[calc(var(--settings-nav-width)+2rem)]'+ )}+ >+ <AuthenticationAreaComponent>+ <div className="space-y-2">+ {headerSlot}+ <SettingsRenderer {...props} handleLocally={handleLocally} />+ </div>+ </AuthenticationAreaComponent>+ </div></div>)}