Run Use without changes through name, description, and photo so final review never holds an editable field.

This commit is contained in:
adilallo committed 2026-11-24 21:05:40 -07:00
1 parent 53e27ef122
commit 6bf890fa78
13 files changed
+156 -145

No files matched your search

@@ -36,8 +36,9 @@ const blurActiveElement = (): void => {
* {@link parseCreateFlowScreenFromPathname} (flowSteps). Footer Back uses
* {@link resolveCreateFlowBackTarget}: template **Customize** walks values
* then the four decks, and Back from `core-values` returns to
* `/create/review-template/{slug}`. **Use without changes** lands on
* `final-review`; Back from that step returns to the template.
* `/create/review-template/{slug}`. **Use without changes** opens name,
* description, and photo, then `final-review`. Back from name returns to
* the template; Back from final review returns to the photo screen.
*
* Template review footer Back uses {@link buildTemplateReviewHref}’s
* `?fromFlow=1` marker (and persisted `templateReviewEntryFromCreateFlow`) so
@@ -57,9 +57,10 @@ export type UseTemplateReviewActionsResult = {
*/
handleCustomize: () => Promise<void>;
/**
* Use without changes: seed the template's cards and go to final review.
* Direct entry clears leftover identity so the Rule card can collect name,
* photo, and description. In-flow keeps the community answers already given.
* Use without changes: seed the template's cards and go to the name screen,
* then description and photo, then final review. Direct entry clears leftover
* identity. In-flow keeps the community answers already given so those
* screens are pre-filled.
*/
handleUseWithoutChanges: () => Promise<void>;
customizeDialog: TemplateCustomizeDialogModel | null;
@@ -256,7 +257,7 @@ export function useTemplateReviewActions({
: undefined,
}),
);
router.push(createFlowStepPath("final-review"));
router.push(createFlowStepPath("community-name"));
}, [
confirmReplaceDraft,
keepInFlowIdentity,