Skip to content

Comments

[SDK-248] notification-component#814

Open
lposen wants to merge 8 commits intoloren/embedded/SDK-367-parse-media-for-componentsfrom
loren/embedded/SDK-248-notification-component
Open

[SDK-248] notification-component#814
lposen wants to merge 8 commits intoloren/embedded/SDK-367-parse-media-for-componentsfrom
loren/embedded/SDK-248-notification-component

Conversation

@lposen
Copy link
Contributor

@lposen lposen commented Feb 12, 2026

🔹 JIRA Ticket(s) if any

✏️ Description

Create notification component

Testing

  • Run example app
  • Click on embedded tab
  • Select "notification" as the view type
  • Click "get messages for placement ids" -- the messages should show as notifications
  • Click on the buttons -- they should do whatever they were configured to do when you set the embedded message
  • Click "set view config" and try overriding the styles. EG: set {"backgroundColor":"blue"}
    • The style should update with your overrides
Screen.Recording.2026-02-23.at.6.21.55.PM.mov

@github-actions
Copy link

github-actions bot commented Feb 12, 2026

Lines Statements Branches Functions
Coverage: 63%
63.89% (446/698) 48.7% (150/308) 59.67% (148/248)

@qltysh
Copy link

qltysh bot commented Feb 12, 2026

Qlty

Coverage Impact

⬇️ Merging this pull request will decrease total coverage on loren/embedded/SDK-367-parse-media-for-components by 0.49%.

Modified Files with Diff Coverage (4)

RatingFile% DiffUncovered Line #s
Coverage rating: A Coverage rating: F
src/embedded/hooks/useEmbeddedView/useEmbeddedView.ts0.0%51-61
Coverage rating: A Coverage rating: A
src/embedded/components/IterableEmbeddedView.tsx100.0%
New file Coverage rating: A
...bleEmbeddedNotification/IterableEmbeddedNotification.styles.ts100.0%
New file Coverage rating: A
.../IterableEmbeddedNotification/IterableEmbeddedNotification.tsx100.0%
Total64.7%
🤖 Increase coverage with AI coding...

In the `loren/embedded/SDK-248-notification-component` branch, add test coverage for this new code:

- `src/embedded/hooks/useEmbeddedView/useEmbeddedView.ts` -- Line 51-61

🚦 See full report on Qlty Cloud »

🛟 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.

@qltysh
Copy link

qltysh bot commented Feb 12, 2026

❌ 10 blocking issues (14 total)

Tool Category Rule Count
eslint Lint tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag 10
qlty Structure Function with high complexity (count = 7): IterableEmbeddedNotification 2
qlty Structure Function with many returns (count = 5): IterableEmbeddedView 1
qlty Structure Function with many parameters (count = 4): useEmbeddedView 1

)}
</View>
</Pressable>
);
Copy link

Choose a reason for hiding this comment

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

Function with high complexity (count = 7): IterableEmbeddedNotification [qlty:function-complexity]

* @returns The embedded view.
*
* @example
* const { handleButtonClick, handleMessageClick, media, parsedStyles } = useEmbeddedView(IterableEmbeddedViewType.Notification, {
Copy link

Choose a reason for hiding this comment

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

Found 3 issues:

1. tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag [eslint:tsdoc/syntax]


2. tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" [eslint:tsdoc/syntax]


3. tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" [eslint:tsdoc/syntax]

* config,
* onButtonClick,
* onMessageClick,
* });
Copy link

Choose a reason for hiding this comment

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

tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag [eslint:tsdoc/syntax]

*
* return (
* <View>
* <Text>{media.url}</Text>
Copy link

Choose a reason for hiding this comment

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

Found 2 issues:

1. tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag [eslint:tsdoc/syntax]


2. tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" [eslint:tsdoc/syntax]

* return (
* <View>
* <Text>{media.url}</Text>
* <Text>{media.caption}</Text>
Copy link

Choose a reason for hiding this comment

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

Found 2 issues:

1. tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag [eslint:tsdoc/syntax]


2. tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" [eslint:tsdoc/syntax]

* <View>
* <Text>{media.url}</Text>
* <Text>{media.caption}</Text>
* <Text>{parsedStyles.backgroundColor}</Text>
Copy link

Choose a reason for hiding this comment

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

Found 2 issues:

1. tsdoc-escape-right-brace: The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag [eslint:tsdoc/syntax]


2. tsdoc-malformed-inline-tag: Expecting a TSDoc tag starting with "{@" [eslint:tsdoc/syntax]

config,
onButtonClick = () => {},
onMessageClick = () => {},
}: IterableEmbeddedComponentProps
Copy link

Choose a reason for hiding this comment

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

Function with many parameters (count = 4): useEmbeddedView [qlty:function-parameters]

Base automatically changed from loren/embedded/MOB-12270-new-embedded-view-component to emb-ootb/master February 17, 2026 23:14
… loren/embedded/SDK-248-notification-component
@lposen lposen changed the base branch from emb-ootb/master to loren/embedded/SDK-367-parse-media-for-components February 24, 2026 01:48
@lposen lposen marked this pull request as ready for review February 24, 2026 02:14
@lposen lposen changed the title Loren/embedded/SDK-248-notification-component [SDK-248] notification-component Feb 24, 2026
<Cmp {...props} />
</View>
) : null;
return Cmp ? <Cmp {...props} /> : null;
Copy link

Choose a reason for hiding this comment

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

Found 2 issues:

1. Function with many returns (count = 5): IterableEmbeddedView [qlty:return-statements]


2. Function with high complexity (count = 5): IterableEmbeddedView [qlty:function-complexity]

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