Skip to content

fix(inbox): make closed-window send options honor per-flow channel support - #1829

Merged
realcodesiman merged 4 commits into
mainfrom
fix/messaging-window-closed-send-flow-channels
Nov 30, 2026
Merged

realcodesiman merged 4 commits into
mainfrom
fix/messaging-window-closed-send-flow-channels

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

Changes

  • packages/sdk/src/lib/shared/messaging-window.ts: shared closed-window policy
  • packages/business (flow service, conversation service, assert-manual-send-window-open) and flow repository: channel-aware flow listing
  • apps/builder: flows public API/schema, select-flow-dialog, message-input, whatsapp-template-send-tab, conversation resource/query
  • docs/messaging-window.md updated

Test plan

  • pnpm lint
  • pnpm --filter builder check-types
  • pnpm test (sdk, business, builder messaging-window suites)
  • manual: closed window shows only flows supported by the channel

Note: stacked on #1825 (its commit shows here until #1825 merges).

The messaging window now reports `closedSendOptions` (WhatsApp template,
WhatsApp/Messenger template flow) so the composer and the manual-send gate
share one per-channel policy instead of a hardcoded template step list.
Conversation contact inboxes also carry `integrationWhatsappId`.
…pport

Filter the flow picker by the conversation's channel when the messaging
window is closed, and move the closed-window send policy into the shared
sdk helper so the composer, template tab and manual-send guard agree.
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 30, 2026
…ct inbox

The dialog now reads the same contact inbox as the composer, falls back from
a stale template tab, and the closed send options schema is readonly so the
list query no longer copies it. Flow filter docs mention `inboxId`.
Avoids pulling the whole flow-config barrel into the shared messaging-window module.
@realcodesiman
realcodesiman merged commit 714910b into main Nov 30, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the fix/messaging-window-closed-send-flow-channels branch November 30, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant