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
+14
View File
@@ -161,6 +161,20 @@ export function buildPublishPayload(
document.methodSelections = methodSelections;
}
const avatar =
typeof state.communityAvatarUrl === "string" &&
state.communityAvatarUrl.trim().length > 0
? state.communityAvatarUrl.trim()
: undefined;
if (avatar) {
document.communityAvatarUrl = avatar;
}
const fieldBlocks = state.customMethodCardFieldBlocksById;
if (fieldBlocks && Object.keys(fieldBlocks).length > 0) {
document.customMethodCardFieldBlocksById = fieldBlocks;
}
if (summary !== undefined) {
return { ok: true, title, summary, document };
}