Keep a reopened template draft off the setup questions.

This commit is contained in:
adilallo committed 2026-11-09 17:42:04 -07:00
1 parent 6498d52541
commit c7f88e5515
3 files changed
+55 -3

No files matched your search

+14
View File
@@ -96,6 +96,20 @@ function shouldSkipStep(
);
}
/**
* Where to send a template-path draft that reopened on a community setup
* step. Customize resumes at values; Use without changes resumes at final
* review. Deck steps stay put so final-review + Add can open one.
*/
export function templatePathSkippedCommunityRedirect(
currentStep: CreateFlowStep | null | undefined,
mode: CreateFlowNavigationOptions["templatePathMode"],
): CreateFlowStep | null {
if (!currentStep || !mode) return null;
if (!TEMPLATE_PATH_COMMUNITY_SKIP.has(currentStep)) return null;
return mode === "customize" ? "core-values" : "final-review";
}
/**
* Returns the next step in the flow, or null if current is last/invalid
*/