Skip setup questions on the template path and collect name, photo, and description without recommendations.
Customize opens a dialog then walks the template decks; Use without changes lands on final review with Has Name Field. Template cards stay first, the engine is not called, and the catalog no longer shows a recommended tag.
This commit is contained in:
1 parent
53d236d0d5
commit
6498d52541
37 files changed
+1450
-733
No files matched your search
@@ -15,6 +15,7 @@ import { useCreateFlowExit } from "./hooks/useCreateFlowExit";
|
||||
import { usePrefetchMethodFacetRecommendations } from "./hooks/usePrefetchMethodFacetRecommendations";
|
||||
import { useCreateFlowFinalize } from "./hooks/useCreateFlowFinalize";
|
||||
import { useTemplateReviewActions } from "./hooks/useTemplateReviewActions";
|
||||
import { TemplateCustomizeDialog } from "./components/TemplateCustomizeDialog";
|
||||
import { useCompletedRuleShareExport } from "./hooks/useCompletedRuleShareExport";
|
||||
import CreateFlowFooter from "../../components/navigation/CreateFlowFooter";
|
||||
import CreateFlowTopNav from "../../components/navigation/CreateFlowTopNav";
|
||||
@@ -323,6 +324,9 @@ function CreateFlowLayoutContent({
|
||||
setTemplateReviewApplyError,
|
||||
handleCustomize: handleCustomizeTemplate,
|
||||
handleUseWithoutChanges: handleUseTemplateWithoutChanges,
|
||||
customizeDialog,
|
||||
closeCustomizeDialog,
|
||||
confirmCustomizeDialog,
|
||||
} = useTemplateReviewActions({
|
||||
pathname,
|
||||
state,
|
||||
@@ -876,6 +880,25 @@ function CreateFlowLayoutContent({
|
||||
backdropVariant="blurredYellow"
|
||||
ariaLabel={messages.create.topNav.leaveConfirmTitle}
|
||||
/>
|
||||
<TemplateCustomizeDialog
|
||||
isOpen={customizeDialog !== null}
|
||||
templateTitle={customizeDialog?.templateTitle ?? ""}
|
||||
valuesCount={customizeDialog?.valuesCount ?? 0}
|
||||
cardsCount={customizeDialog?.cardsCount ?? 0}
|
||||
initialTitle={typeof state.title === "string" ? state.title : ""}
|
||||
initialDescription={
|
||||
typeof state.communityContext === "string"
|
||||
? state.communityContext
|
||||
: ""
|
||||
}
|
||||
initialLocation={
|
||||
typeof state.communityLocation === "string"
|
||||
? state.communityLocation
|
||||
: ""
|
||||
}
|
||||
onClose={closeCustomizeDialog}
|
||||
onContinue={confirmCustomizeDialog}
|
||||
/>
|
||||
<CreateFlowTopNav
|
||||
hasShare={isCompletedStep}
|
||||
hasExport={isCompletedStep}
|
||||
|
||||
Reference in new issue
Block a user