Custom add and create flow polish

This commit is contained in:
adilallo
2026-05-08 20:32:24 -06:00
parent 26bcd61ea3
commit 026a1e6d71
68 changed files with 6208 additions and 527 deletions
@@ -0,0 +1,19 @@
import type { CreateFlowState } from "../../app/(app)/create/types";
import type { MethodCardHeaderDraft } from "./methodCardCustomizeSession";
/**
* Merges edited customize header strings into persisted method-card meta.
*/
export function methodCardMetaWithCustomizeHeader(
existing: CreateFlowState["customMethodCardMetaById"],
pendingCardId: string,
header: MethodCardHeaderDraft,
): NonNullable<CreateFlowState["customMethodCardMetaById"]> {
return {
...(existing ?? {}),
[pendingCardId]: {
label: header.title,
supportText: header.description,
},
};
}