Skip to content

Commit a196972

Browse files
Feat/new user onboarding flow and UI changes (#1126)
2 parents e40c8be + 465b37f commit a196972

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

apps/web/pages/imports/[id].tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ function ImportDetails() {
130130
id: MODAL_KEYS.WELCOME_IMPORTER,
131131
children: <WelcomeImporterModal onDoWelcomeWidgetAction={onWelcomeImportClick} />,
132132
withCloseButton: false,
133-
closeOnClickOutside: true,
134133
centered: true,
135134
size: 'xl',
135+
onClose() {
136+
clearWelcomeFlag();
137+
},
136138
});
137139
}
138140
}, [showWelcome, onWelcomeImportClick]);

apps/widget/src/hooks/Phase1/usePhase1.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ export function usePhase1({ goNext, texts, onManuallyEnterData }: IUsePhase1Prop
8989
throw new Error(WIDGET_FEATURES_EXCEPTION_MESSAGES.TEXT_CUSTOMIZATION);
9090
}
9191

92-
if (!importConfig.APPEARANCE_CUSTOMIZATION && appearanceCustomizationResult.differences.length > 0) {
92+
if (
93+
!importConfig.APPEARANCE_CUSTOMIZATION &&
94+
appearance &&
95+
appearanceCustomizationResult.differences.length > 0
96+
) {
9397
throw new Error(WIDGET_FEATURES_EXCEPTION_MESSAGES.APPEARANCE_CUSTOMIZATION);
9498
}
9599

libs/shared/src/types/bilablemetric-code/billablemetriccode.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ export enum BILLABLEMETRIC_CODE_ENUM {
1616
FIND_AND_REPLACE = 'FIND_AND_REPLACE',
1717
RUNTIME_SCHEMA = 'RUNTIME_SCHEMA',
1818
DATA_SEEDING = 'DATA_SEEDING',
19+
APPEARANCE_CUSTOMIZATION = 'APPEARANCE_CUSTOMIZATION',
1920
}

0 commit comments

Comments
 (0)