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:
adilallo committed 2026-11-09 17:34:33 -07:00
1 parent 53d236d0d5
commit 6498d52541
37 files changed
+1450 -733

No files matched your search

@@ -4,6 +4,7 @@ import { useEffect, useMemo } from "react";
import { buildFacetQueryString } from "../../../../lib/create/buildFacetQueryString";
import { METHOD_FACET_API_SECTION_IDS } from "../../../../lib/create/customRuleFacets";
import { loadFacetScores } from "../../../../lib/create/facetRecommendationsLoad";
import { isTemplateCreatePath } from "../../../../lib/create/templatePath";
import { useCreateFlow } from "../context/CreateFlowContext";
/**
@@ -18,10 +19,12 @@ export function usePrefetchMethodFacetRecommendations(): void {
[state],
);
const skipEngine = isTemplateCreatePath(state);
useEffect(() => {
if (queryString.length === 0) return;
if (skipEngine || queryString.length === 0) return;
for (const section of METHOD_FACET_API_SECTION_IDS) {
void loadFacetScores(section, queryString);
}
}, [queryString]);
}, [queryString, skipEngine]);
}