Add button and custom modal flow implemented

This commit is contained in:
adilallo
2026-05-07 21:15:27 -06:00
parent dee2dd800e
commit 26bcd61ea3
43 changed files with 1444 additions and 81 deletions
@@ -113,6 +113,24 @@ export function createFlowStateFromPublishedRule(
out.coreValueDetailsByChipId = coreValueDetailsByChipId;
}
const avatarUrl =
typeof doc.communityAvatarUrl === "string"
? doc.communityAvatarUrl.trim()
: "";
if (avatarUrl.length > 0) {
out.communityAvatarUrl = avatarUrl;
}
const blocksRaw = doc.customMethodCardFieldBlocksById;
if (
blocksRaw &&
typeof blocksRaw === "object" &&
!Array.isArray(blocksRaw)
) {
out.customMethodCardFieldBlocksById =
blocksRaw as NonNullable<CreateFlowState["customMethodCardFieldBlocksById"]>;
}
const msRaw = doc.methodSelections;
if (!msRaw || typeof msRaw !== "object" || Array.isArray(msRaw)) {
out.sections = [];