From 3191e6ebb8861a59b436be1f3256011de45af928 Mon Sep 17 00:00:00 2001 From: Jacques Ikot Date: Mon, 19 May 2025 12:36:13 +0100 Subject: [PATCH] fix: show left side auth content when multi-org feature is enabled (#40687) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description This PR fixes an issue where the left side content in the authentication screen wasn't displaying properly when the multi-organization feature was enabled. ## Fix Updated the condition in the `UserAuth` container to correctly display the left side content when the multi-org feature flag is enabled. ## Testing * Verified the left side content appears correctly with multi-org enabled. * Ensured the component still behaves correctly on mobile devices. * Confirmed the UI renders properly with and without branding enabled. ## Automation /ok-to-test tags="@tag.Sanity, @tag.Authentication" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 4f88a93734ff4a6f71b5fed22dd8364a14486093 > Cypress dashboard. > Tags: `@tag.Sanity, @tag.Authentication` > Spec: >
Mon, 19 May 2025 10:38:49 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Refactor** - Updated the conditions for displaying the left side content on the user authentication page, which may change when this content is visible to users based on organization and branding settings. --- app/client/src/pages/UserAuth/Container.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/pages/UserAuth/Container.tsx b/app/client/src/pages/UserAuth/Container.tsx index 911f209760..6ff34e3b19 100644 --- a/app/client/src/pages/UserAuth/Container.tsx +++ b/app/client/src/pages/UserAuth/Container.tsx @@ -52,7 +52,7 @@ function Container(props: ContainerProps) { const brandingEnabled = isBrandingEnabled(featureFlags); const shouldShowLeftSideContent = - cloudHosting && !isMobileDevice && !multiOrgEnabled && brandingEnabled; + cloudHosting && !isMobileDevice && multiOrgEnabled && !brandingEnabled; const isAiAgentInstanceEnabled = useSelector(getIsAiAgentInstanceEnabled); return (