From aff802a4c3c7997f058535283ab206ff7b8b502b Mon Sep 17 00:00:00 2001 From: Tomer Shvadron Date: Tue, 3 Dec 2024 21:47:11 +0200 Subject: [PATCH 1/3] feat(signup): add job title and additional info to signup form - Introduce optional job title field in signup form schema - Modify user creation logic to include additional information - Update UI to accommodate new form structure (Your signup form is expanding faster than my collection of dad jokes) --- apps/kyb-app/src/common/types/settings.ts | 1 + .../components/layouts/AppShell/AppShell.tsx | 2 +- .../components/layouts/AppShell/Sidebar.tsx | 2 +- .../collection-flow/collection-flow.api.ts | 12 ++++++-- .../pages/CollectionFlow/CollectionFlow.tsx | 11 +++++--- .../components/SignUpForm/SignUpForm.tsx | 15 +++++++--- .../SignUpForm/signup-form-schema.ts | 28 +++++++++++++++++-- .../collection-flow.no-user.controller.ts | 12 ++++++-- .../src/collection-flow/dto/signup.dto.ts | 6 +++- 9 files changed, 71 insertions(+), 18 deletions(-) diff --git a/apps/kyb-app/src/common/types/settings.ts b/apps/kyb-app/src/common/types/settings.ts index d5310f4fb8..b386bd9897 100644 --- a/apps/kyb-app/src/common/types/settings.ts +++ b/apps/kyb-app/src/common/types/settings.ts @@ -8,6 +8,7 @@ export interface ITheme { poweredBy?: boolean; }; signup?: { + showJobTitle?: boolean; companyLogo: { imageSrc?: string; styles?: CSSProperties; diff --git a/apps/kyb-app/src/components/layouts/AppShell/AppShell.tsx b/apps/kyb-app/src/components/layouts/AppShell/AppShell.tsx index cf60de6b5b..bac48a36cf 100644 --- a/apps/kyb-app/src/components/layouts/AppShell/AppShell.tsx +++ b/apps/kyb-app/src/components/layouts/AppShell/AppShell.tsx @@ -10,7 +10,7 @@ interface Props { } export const AppShell = ({ children }: Props) => { - return
{children}
; + return
{children}
; }; AppShell.FormContainer = FormContainer; diff --git a/apps/kyb-app/src/components/layouts/AppShell/Sidebar.tsx b/apps/kyb-app/src/components/layouts/AppShell/Sidebar.tsx index 48baa1ea1c..182f66871b 100644 --- a/apps/kyb-app/src/components/layouts/AppShell/Sidebar.tsx +++ b/apps/kyb-app/src/components/layouts/AppShell/Sidebar.tsx @@ -7,7 +7,7 @@ interface Props { export const Sidebar = ({ children }: Props) => { return (