From 84efc3de46ec54ffb6a09a5cb3ed50ffb6760ebd Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Thu, 3 Aug 2023 13:30:22 -0400 Subject: [PATCH] pushed out soem changes --- .../components/signup/InitialSignupStep.tsx | 13 +-- frontend/src/components/v2/Input/Input.tsx | 1 - .../SecretInputRow/SecretInputRow.tsx | 1 - .../components/InitialStep/InitialStep.tsx | 92 +++++++++---------- .../UserInfoSSOStep/UserInfoSSOStep.tsx | 9 +- 5 files changed, 58 insertions(+), 58 deletions(-) diff --git a/frontend/src/components/signup/InitialSignupStep.tsx b/frontend/src/components/signup/InitialSignupStep.tsx index 01ede6411..0a1248b2d 100644 --- a/frontend/src/components/signup/InitialSignupStep.tsx +++ b/frontend/src/components/signup/InitialSignupStep.tsx @@ -3,6 +3,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { faGithub,faGoogle } from "@fortawesome/free-brands-svg-icons"; import { faEnvelope } from "@fortawesome/free-regular-svg-icons"; +import { faLock } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Button } from "../v2"; @@ -26,7 +27,7 @@ export default function InitialSignupStep({ window.close(); }} leftIcon={} - className="h-14 w-full mx-0" + className="h-12 w-full mx-0" > {t("signup.continue-with-google")} @@ -40,7 +41,7 @@ export default function InitialSignupStep({ window.close(); }} leftIcon={} - className="h-14 w-full mx-0" + className="h-12 w-full mx-0" > Continue with GitHub @@ -53,7 +54,7 @@ export default function InitialSignupStep({ setIsSignupWithEmail(true); }} leftIcon={} - className="h-14 w-full mx-0" + className="h-12 w-full mx-0" > Continue with Email @@ -63,10 +64,10 @@ export default function InitialSignupStep({ colorSchema="primary" variant="outline_bg" onClick={() => router.push("/saml-sso")} - isFullWidth - className="h-14 w-full mx-0" + leftIcon={} + className="h-12 w-full mx-0" > - Continue with SAML SSO + Continue with SSO
diff --git a/frontend/src/components/v2/Input/Input.tsx b/frontend/src/components/v2/Input/Input.tsx index 17573e527..7ec540232 100644 --- a/frontend/src/components/v2/Input/Input.tsx +++ b/frontend/src/components/v2/Input/Input.tsx @@ -87,7 +87,6 @@ export const Input = forwardRef( ref ): JSX.Element => { const handleInput = (event: ChangeEvent) => { - console.log(123, props, autoCapitalization) if (autoCapitalization) { // eslint-disable-next-line no-param-reassign event.target.value = event.target.value.toUpperCase(); diff --git a/frontend/src/views/DashboardPage/components/SecretInputRow/SecretInputRow.tsx b/frontend/src/views/DashboardPage/components/SecretInputRow/SecretInputRow.tsx index a2f95e4a4..aba283b27 100644 --- a/frontend/src/views/DashboardPage/components/SecretInputRow/SecretInputRow.tsx +++ b/frontend/src/views/DashboardPage/components/SecretInputRow/SecretInputRow.tsx @@ -281,7 +281,6 @@ export const SecretInputRow = memo( value={editorRef} isVisible={!isSecretValueHidden} onChange={(val, html) => { - console.log(val); onChange(val); setEditorRef(html); }} diff --git a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx index c814cd510..2bee45669 100644 --- a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx +++ b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx @@ -3,6 +3,7 @@ import { useTranslation } from "react-i18next"; import Link from "next/link"; import { useRouter } from "next/router"; import { faGithub,faGoogle } from "@fortawesome/free-brands-svg-icons"; +import { faLock } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import axios from "axios" @@ -116,47 +117,6 @@ export const InitialStep = ({ return (

Login to Infisical

-
-
-
-
- setEmail(e.target.value)} - type="email" - placeholder="Enter your email..." - isRequired - autoComplete="username" - className="h-12" - /> -
-
- setPassword(e.target.value)} - type="password" - placeholder="Enter your password..." - isRequired - autoComplete="current-password" - id="current-password" - className="h-12 select:-webkit-autofill:focus" - /> -
-
- -
- {!isLoading && loginError && } -
-
-
@@ -185,7 +145,7 @@ export const InitialStep = ({ window.close(); }} leftIcon={} - className="h-12 w-full mx-0" + className="h-11 w-full mx-0" > Continue with GitHub @@ -197,12 +157,52 @@ export const InitialStep = ({ onClick={() => { setStep(2); }} - isFullWidth - className="h-12 w-full mx-0" + leftIcon={} + className="h-11 w-full mx-0" > - Continue with SAML SSO + Continue with SSO
+
+
+ or +
+
+
+ setEmail(e.target.value)} + type="email" + placeholder="Enter your email..." + isRequired + autoComplete="username" + className="h-11" + /> +
+
+ setPassword(e.target.value)} + type="password" + placeholder="Enter your password..." + isRequired + autoComplete="current-password" + id="current-password" + className="h-11 select:-webkit-autofill:focus" + /> +
+
+ +
+ {!isLoading && loginError && } { !serverDetails?.inviteOnlySignup ?
diff --git a/frontend/src/views/Signup/components/UserInfoSSOStep/UserInfoSSOStep.tsx b/frontend/src/views/Signup/components/UserInfoSSOStep/UserInfoSSOStep.tsx index fed039467..032552958 100644 --- a/frontend/src/views/Signup/components/UserInfoSSOStep/UserInfoSSOStep.tsx +++ b/frontend/src/views/Signup/components/UserInfoSSOStep/UserInfoSSOStep.tsx @@ -3,7 +3,7 @@ import crypto from "crypto"; import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; -import { faXmark } from "@fortawesome/free-solid-svg-icons"; +import { faInfoCircle, faXmark } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import jsrp from "jsrp"; import nacl from "tweetnacl"; @@ -198,7 +198,7 @@ export const UserInfoSSOStep = ({ localStorage.setItem("orgData.id", orgId); localStorage.setItem("projectData.id", project._id); - setStep(1); + setStep(1); } catch (error) { setIsLoading(false); console.error(error); @@ -256,7 +256,7 @@ export const UserInfoSSOStep = ({ )}
{ setPassword(pass); checkPassword({ @@ -272,6 +272,7 @@ export const UserInfoSSOStep = ({ autoComplete="new-password" id="new-password" /> +
Infisical Password is used as part of the encryption mechanism so that even the authentication provider is not able to access your secrets.
{Object.keys(errors).length > 0 && (
{t("section.password.validate-base")}
@@ -307,7 +308,7 @@ export const UserInfoSSOStep = ({ onClick={signupErrorCheck} size="sm" isFullWidth - className='h-14' + className='h-12' colorSchema="primary" variant="outline_bg" isLoading={isLoading}