Skip to content

Conversation

lposen
Copy link
Contributor

@lposen lposen commented Sep 5, 2025

🔹 JIRA Ticket(s) if any

✏️ Description

Added inAppManager back onto iterable object

Copy link

github-actions bot commented Sep 5, 2025

Lines Statements Branches Functions
Coverage: 38%
38.64% (182/471) 12.29% (22/179) 32.9% (51/155)

Copy link

qltysh bot commented Sep 5, 2025

Diff Coverage: The code coverage on the diff in this pull request is 100.0%.

Total Coverage: This PR will increase coverage by 0.54%.

File Coverage Changes
Path File Coverage Δ Indirect
src/core/classes/Iterable.ts 1.0
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

This is from Qlty Cloud, the successor to Code Climate Quality. Learn more.

Copy link
Member

@Ayyanchira Ayyanchira left a comment

Choose a reason for hiding this comment

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

Looking great!

// THEN Iterable,inAppManager.getMessages returns the list of in-app messages
return await inAppManager.getMessages().then((messagesObtained) => {
// THEN Iterable.inAppManager.getMessages returns the list of in-app messages
return await Iterable.inAppManager?.getMessages().then((messagesObtained) => {
Copy link
Member

Choose a reason for hiding this comment

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

This approach feels right. Accessing it from Iterable global level.

const inAppManager = new IterableInAppManager();
// THEN Iterable,inAppManager.showMessage returns the simulated clicked url
return await inAppManager.showMessage(message, consume).then((url) => {
return await Iterable.inAppManager?.showMessage(message, consume).then((url) => {
Copy link
Member

Choose a reason for hiding this comment

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

Great to see inAppManager optional(?)

Comment on lines +84 to +85
const { IterableInAppManager } = require('../../inApp/classes/IterableInAppManager');
this._inAppManager = new IterableInAppManager();
Copy link
Member

Choose a reason for hiding this comment

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

Wow! This is insane! Never thought we could conditionally import!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah. it's a little hacky, but it works in things like this.

@lposen lposen merged commit 6325186 into master Sep 9, 2025
11 checks passed
@lposen lposen deleted the MOB-12039-rn-add-in-app-manager-back-onto-iterable-object branch September 9, 2025 17:51
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.

2 participants