Skip to content

[MOB-11551] creates IterableEmbeddedMessageElements class #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: evan/MOB-11550-iterable-embedded-message-button-class
Choose a base branch
from

Conversation

evantk91
Copy link
Contributor

@evantk91 evantk91 commented Jun 9, 2025

🔹 JIRA Ticket(s) if any

✏️ Description

This pull request creates the IterableEmbeddedMessageElements class.

Copy link

github-actions bot commented Jun 9, 2025

Lines Statements Branches Functions
Coverage: 44%
43.73% (227/519) 19.07% (37/194) 37.64% (64/170)

@evantk91 evantk91 changed the title [MOB-11551] iterable embedded message elements class [MOB-11551] creates IterableEmbeddedMessageElements class Jun 9, 2025
Copy link

codeclimate bot commented Jun 9, 2025

❌ 7 blocking issues (10 total)

Tool Category Rule Count
eslint Lint Error loading TSDoc config file:
Error encountered for /home/runner/work/react-native-sdk/tsdoc.json:
Unable to resolve "extends" reference to "typedoc/tsdoc.json": Cannot find module 'typedoc/tsdoc.json' from '/home/runner/work/react-native-sdk'
6
eslint Lint 'text' is already declared in the upper scope on line 74 column 11. 1
qlty Duplication Found 52 lines of similar code in 2 locations (mass = 91) 2
qlty Structure Function with many parameters (count = 7): constructor 1

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

* An interface defining the dictionary object containing the properties for the embedded message default action.
*/
export interface EmbeddedMessageDefaultActionDict {
type: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments to the props

* An interface defining the dictionary object containing the properties for the embedded message elements.
*/
export interface EmbeddedMessageElementsDict {
title?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments to the props

* An interface defining the dictionary object containing the properties for an embedded message text.
*/
export interface EmbeddedMessageTextDict {
id: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add comments to the props

/**
* IterableEmbeddedMessageText represents a text element in an embedded message.
*/
export class IterableEmbeddedMessageText {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like a lot of these don't necessarily need to be classes, and that they could just be interfaces. But I'll have to double check how they all fit together.

Copy link
Contributor

@lposen lposen left a comment

Choose a reason for hiding this comment

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

Please update the comments

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