Persist choices through to completed page

This commit is contained in:
adilallo
2026-04-29 15:02:47 -06:00
parent 815de2fdfd
commit ac1157a172
13 changed files with 804 additions and 30 deletions
+12
View File
@@ -129,6 +129,18 @@ function methodsForGroup(
}
}
/**
* Resolve a preset method id from a chip label (template sections / display
* enrichment where entries carry titles but not stable ids).
*/
export function resolveMethodPresetIdFromLabel(
label: string,
groupKey: TemplateFacetGroupKey,
): string | null {
if (groupKey === "coreValues") return null;
return overrideKeyForLabel(label, methodsForGroup(groupKey));
}
/**
* Detailed builder: same logic as {@link buildFinalReviewCategoriesFromState}
* but each chip is returned with its `overrideKey` + `groupKey` so the