From dcb5fa9ee2f1889bf5328a8716f85848b5cea5b5 Mon Sep 17 00:00:00 2001 From: letiescanciano <45267095+letiescanciano@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:23:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9F=C2=A0=F0=9F=8E=A8=F0=9F=94=A7=20Re?= =?UTF-8?q?move=20oauth=20position=20ff=20(#22304)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🪟 🎨🔧 Remove oauth position ff We validated that having oauth signup methods on top led to better conversion rate. This PR just removes the feature flag we used and set the ouath on top of the signup form. I also took the chance to change the position in the login page for consistency --- .../hooks/services/Experiment/experiments.ts | 1 - .../cloud/views/auth/LoginPage/LoginPage.tsx | 14 ++++++------ .../auth/SignupPage/SignupPage.module.scss | 6 ----- .../views/auth/SignupPage/SignupPage.tsx | 22 +++++-------------- 4 files changed, 13 insertions(+), 30 deletions(-) diff --git a/airbyte-webapp/src/hooks/services/Experiment/experiments.ts b/airbyte-webapp/src/hooks/services/Experiment/experiments.ts index f5cf670c8611..4d10d956e6d7 100644 --- a/airbyte-webapp/src/hooks/services/Experiment/experiments.ts +++ b/airbyte-webapp/src/hooks/services/Experiment/experiments.ts @@ -18,7 +18,6 @@ export interface Experiments { "authPage.signup.hideName": boolean; "authPage.signup.hideCompanyName": boolean; "onboarding.speedyConnection": boolean; - "authPage.oauth.position": "top" | "bottom"; "connection.onboarding.sources": string; "connection.onboarding.destinations": string; "connection.autoDetectSchemaChanges": boolean; diff --git a/airbyte-webapp/src/packages/cloud/views/auth/LoginPage/LoginPage.tsx b/airbyte-webapp/src/packages/cloud/views/auth/LoginPage/LoginPage.tsx index 3550002beeaf..fb93cd15ea18 100644 --- a/airbyte-webapp/src/packages/cloud/views/auth/LoginPage/LoginPage.tsx +++ b/airbyte-webapp/src/packages/cloud/views/auth/LoginPage/LoginPage.tsx @@ -1,4 +1,4 @@ -import { Field, FieldProps, Formik } from "formik"; +import { Field, FieldProps, Formik, Form } from "formik"; import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; import { NavigateOptions, To, useNavigate } from "react-router-dom"; @@ -7,13 +7,14 @@ import * as yup from "yup"; import { LabeledInput, Link } from "components"; import { HeadTitle } from "components/common/HeadTitle"; import { Button } from "components/ui/Button"; +import { FlexContainer } from "components/ui/Flex"; import { PageTrackingCodes, useTrackPage } from "hooks/services/Analytics"; import { useQuery } from "hooks/useQuery"; import { CloudRoutes } from "packages/cloud/cloudRoutePaths"; import { FieldError } from "packages/cloud/lib/errors/FieldError"; import { useAuthService } from "packages/cloud/services/auth/AuthService"; -import { BottomBlock, FieldItem, Form } from "packages/cloud/views/auth/components/FormComponents"; +import { BottomBlock, FieldItem } from "packages/cloud/views/auth/components/FormComponents"; import { FormTitle } from "packages/cloud/views/auth/components/FormTitle"; import styles from "./LoginPage.module.scss"; @@ -35,12 +36,14 @@ export const LoginPage: React.FC = () => { useTrackPage(PageTrackingCodes.LOGIN); return ( -