From dc3320c244f178938f8480b5440d899c096b5630 Mon Sep 17 00:00:00 2001 From: Sara Vieira Date: Sat, 2 Jul 2022 19:49:48 +0200 Subject: [PATCH 1/5] add google login --- app/auth/login.tsx | 4 ++-- app/routes/login/index.tsx | 8 +++++++- app/services/auth.server.ts | 9 +++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/app/auth/login.tsx b/app/auth/login.tsx index f03e922a89..74375f714b 100644 --- a/app/auth/login.tsx +++ b/app/auth/login.tsx @@ -52,7 +52,7 @@ export const Login = ({ errorMessage }: { errorMessage: string }) => { ) : null}
-
-
-
- {loaderData.devLogin && ( + {loaderData.isDevLogin && ( <> {isDevLogin ? (
diff --git a/app/routes/login/index.tsx b/app/routes/login/index.tsx index 101d8f860d..592b9a3691 100644 --- a/app/routes/login/index.tsx +++ b/app/routes/login/index.tsx @@ -16,10 +16,10 @@ export const loader: LoaderFunction = async ({ request }) => { } return { - devLogin: process.env.DEV_LOGIN === "true", + isDevLogin: process.env.DEV_LOGIN === "true", env, - githubEnabled: process.env.GH_CLIENT_ID && process.env.GH_CLIENT_SECRET, - googleEnabled: + isGithubEnabled: process.env.GH_CLIENT_ID && process.env.GH_CLIENT_SECRET, + isGoogleEnabled: process.env.GOOGLE_CLIENT_ID && process.env.GOOGLE_CLIENT_SECRET, }; }; From 7c83daae055d7e49767ac25b820ba71092655cf1 Mon Sep 17 00:00:00 2001 From: Sara Vieira Date: Tue, 5 Jul 2022 18:42:04 +0200 Subject: [PATCH 5/5] make size of cards readable --- app/auth/login.tsx | 24 +++++++++++-------- app/dashboard/components/card.tsx | 15 ++++++++---- app/shared/design-system/components/card.tsx | 16 ++++++++++--- .../design-system/components/select.tsx | 10 +++++--- 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/app/auth/login.tsx b/app/auth/login.tsx index b4174e5b76..d37bde959a 100644 --- a/app/auth/login.tsx +++ b/app/auth/login.tsx @@ -33,7 +33,7 @@ export const meta: MetaFunction = () => { export const Login = ({ errorMessage }: { errorMessage: string }) => { const [isDevLogin, setIsDevLogin] = useState(false); - const loaderData = useLoaderData(); + const data = useLoaderData(); return ( { align="center" justify="center" > - - - Login + + + Login {errorMessage.length ? ( {errorMessage} @@ -53,31 +53,34 @@ export const Login = ({ errorMessage }: { errorMessage: string }) => {
- {loaderData.isDevLogin && ( + {data.isDevLogin && ( <> {isDevLogin ? (
{ ) : ( diff --git a/app/dashboard/components/card.tsx b/app/dashboard/components/card.tsx index 4289f5f67b..2e42769fcf 100644 --- a/app/dashboard/components/card.tsx +++ b/app/dashboard/components/card.tsx @@ -35,10 +35,13 @@ export const SelectProjectCard = ({ const options = ["", ...projects.map((project) => project.id)]; return ( - - - Select a project + + + + Select a project +