Persist choices through to completed page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user