Skip to content

fix(flows): correct email template variable and add tiktok integration field - #554

Merged
sung17 merged 1 commit into
mainfrom
fix/email-template-bugs
Jun 9, 2026
Merged

fix(flows): correct email template variable and add tiktok integration field#554
sung17 merged 1 commit into
mainfrom
fix/email-template-bugs

Conversation

@sung17

@sung17 sung17 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix incorrect variable {{page_name}}{{page_user_name}} in email step default footer template
  • Add missing tiktok case to getIntegrationField so TikTok inbox names resolve correctly in variables
  • Add integrationTiktok to InboxWithIntegrations type to support the field lookup

Changes

  • packages/flow-config/src/steps/email.ts — correct variable name in unsubscribe footer
  • packages/variables/src/helpers/integration-fields.ts — add tiktok channel case
  • packages/database/src/types.ts — extend InboxWithIntegrations with integrationTiktok

Test plan

  • pnpm lint
  • pnpm --filter @chatbotx.io/flow-config check-types
  • pnpm --filter @chatbotx.io/variables check-types
  • pnpm --filter @chatbotx.io/database check-types
  • Create an email flow step and verify default footer renders {{page_user_name}}
  • Verify a TikTok inbox's integration name resolves correctly in flow variable context

…n field

- Replace {{page_name}} with {{page_user_name}} in email step default footer
- Add tiktok case to getIntegrationField for inbox name resolution
- Add integrationTiktok to InboxWithIntegrations type
Copilot AI review requested due to automatic review settings June 9, 2026 13:25
@github-actions github-actions Bot added the bug Something isn't working as expected label Jun 9, 2026
@sung17
sung17 merged commit c58e286 into main Jun 9, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a broken email template variable and completes TikTok integration-name resolution in the variables system, ensuring {{page_user_name}} renders correctly across supported inbox channels.

Changes:

  • Update the email step default footer template to use {{page_user_name}} (valid system field) instead of the nonexistent {{page_name}}.
  • Add a missing tiktok channel case in getIntegrationField to return inbox.integrationTiktok?.name.
  • Extend InboxWithIntegrations to include integrationTiktok, matching InboxService.withIntegrations and enabling correct typing for the new lookup.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/variables/src/helpers/integration-fields.ts Adds TikTok channel handling so page_user_name resolves to the TikTok integration name.
packages/flow-config/src/steps/email.ts Fixes the default email footer template variable to {{page_user_name}}.
packages/database/src/types.ts Adds integrationTiktok to InboxWithIntegrations to support typed access in variable resolution.

viethung0o0 pushed a commit that referenced this pull request Sep 7, 2026
…n field (#554)

- Replace {{page_name}} with {{page_user_name}} in email step default footer
- Add tiktok case to getIntegrationField for inbox name resolution
- Add integrationTiktok to InboxWithIntegrations type

Co-authored-by: Deathgiver <anonymous@users.noreply.github.com>
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.

2 participants