feat(onboarding): add skip button to integration configuration step
Allow skipping individual integrations during onboarding without filling in the form. Adds an optional onSkip prop to NewIntegrationForm that advances to the next integration or finishes setup.
This commit is contained in:
3 files changed
+9
No files matched your search
@@ -90,6 +90,7 @@ export const InitIntegrations = () => {
|
|||||||
kind={currentKind}
|
kind={currentKind}
|
||||||
onSuccess={advanceOrFinish}
|
onSuccess={advanceOrFinish}
|
||||||
onCancel={backToSelect}
|
onCancel={backToSelect}
|
||||||
|
onSkip={advanceOrFinish}
|
||||||
isOnboarding
|
isOnboarding
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ interface NewIntegrationFormProps {
|
|||||||
initialName?: string;
|
initialName?: string;
|
||||||
onSuccess: () => void;
|
onSuccess: () => void;
|
||||||
onCancel?: () => void;
|
onCancel?: () => void;
|
||||||
|
onSkip?: () => void;
|
||||||
isOnboarding?: boolean;
|
isOnboarding?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,6 +67,7 @@ export const NewIntegrationForm = ({
|
|||||||
initialName,
|
initialName,
|
||||||
onSuccess,
|
onSuccess,
|
||||||
onCancel,
|
onCancel,
|
||||||
|
onSkip,
|
||||||
isOnboarding = false,
|
isOnboarding = false,
|
||||||
}: NewIntegrationFormProps) => {
|
}: NewIntegrationFormProps) => {
|
||||||
const t = useI18n();
|
const t = useI18n();
|
||||||
@@ -215,6 +217,11 @@ export const NewIntegrationForm = ({
|
|||||||
{t("common.action.backToOverview")}
|
{t("common.action.backToOverview")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
{onSkip && (
|
||||||
|
<Button variant="subtle" onClick={onSkip}>
|
||||||
|
{t("common.action.skip")}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
<Button type="submit" loading={isPending}>
|
<Button type="submit" loading={isPending}>
|
||||||
{t("integration.testConnection.action.create")}
|
{t("integration.testConnection.action.create")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1109,6 +1109,7 @@
|
|||||||
"add": "Add",
|
"add": "Add",
|
||||||
"apply": "Apply",
|
"apply": "Apply",
|
||||||
"backToOverview": "Back to overview",
|
"backToOverview": "Back to overview",
|
||||||
|
"skip": "Skip",
|
||||||
"change": "Change",
|
"change": "Change",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
"createAnother": "Create and start over",
|
"createAnother": "Create and start over",
|
||||||
|
|||||||
Reference in new issue
Block a user