Skip to content

test: trigger all 5 live-notification campaigns from sample app#735

Draft
mahmoud-elmorabea wants to merge 1 commit into
feature/live-notificationsfrom
test/live-notifications-trigger-all
Draft

test: trigger all 5 live-notification campaigns from sample app#735
mahmoud-elmorabea wants to merge 1 commit into
feature/live-notificationsfrom
test/live-notifications-trigger-all

Conversation

@mahmoud-elmorabea

Copy link
Copy Markdown
Contributor

Testing only — do not merge. Branched off feature/live-notifications to exercise the live-notification flows end-to-end from the java_layout sample.

What

Adds a "Trigger all 5 via campaign" button to the live-notification demo. It fires the campaign trigger event once per activity type (each with a unique timestamp → unique Liquid-built activity_id) so a single tap drives all five backend-campaign flows at once.

Refactors the existing single-template paths so they can be reused per type:

  • getStepCount()stepCountFor(template)
  • sendPush()sendFor(template, event, step)
  • new shared fireCampaign(activityType, timestamp) helper used by both the single and "all" triggers.

Why

Manual verification of the rebased feature/live-notifications stack — lets one tap kick off every template variant instead of cycling the dropdown five times.

🤖 Generated with Claude Code

…cation demo

Testing-only helper: fires the campaign trigger event once per activity type
so the backend campaign drives all five live-notification flows at once, each
with a unique timestamp/activity_id. Refactors getStepCount/sendPush into
template-parameterized stepCountFor/sendFor + a shared fireCampaign() helper.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.74%. Comparing base (050f431) to head (f50b7bd).

Additional details and impacted files
@@                       Coverage Diff                        @@
##             feature/live-notifications     #735      +/-   ##
================================================================
- Coverage                         66.80%   66.74%   -0.06%     
  Complexity                         1041     1041              
================================================================
  Files                               177      177              
  Lines                              5711     5711              
  Branches                            786      786              
================================================================
- Hits                               3815     3812       -3     
  Misses                             1607     1607              
- Partials                            289      292       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
  • java_layout: test/live-notifications-trigger-all (1781511340)

@github-actions

Copy link
Copy Markdown
  • kotlin_compose: test/live-notifications-trigger-all (1781511329)

@github-actions

Copy link
Copy Markdown

📏 SDK Binary Size Comparison Report

No changes detected in SDK binary size ✅

@github-actions

Copy link
Copy Markdown

Build available to test
Version: test-live-notifications-trigger-all-SNAPSHOT
Repository: https://central.sonatype.com/repository/maven-snapshots/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant