Skip to content

fix: notification added to announce when item is successfully removed from cart#21184

Merged
npapp-dev002 merged 48 commits intodevelopfrom
fix/CXSPA-12118
Apr 1, 2026
Merged

fix: notification added to announce when item is successfully removed from cart#21184
npapp-dev002 merged 48 commits intodevelopfrom
fix/CXSPA-12118

Conversation

@npapp-dev002
Copy link
Copy Markdown
Contributor

Changes:

  • Notification added for successful card removal
  • Feature toggle added to preserve the old behavior

QA steps:

  • Select a product
  • Click on Add to Cart
  • Click on Remove
  • A notification about successful removal should appear
image

@npapp-dev002 npapp-dev002 requested a review from a team as a code owner February 23, 2026 11:22
@github-actions github-actions bot marked this pull request as draft February 23, 2026 11:23
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 23, 2026 12:19
@cypress
Copy link
Copy Markdown

cypress bot commented Feb 23, 2026

spartacus    Run #52550

Run Properties:  status check passed Passed #52550  •  git commit 575b79c479 ℹ️: Merge 554476d10088ef0e901d107e3b5bab5c07a34ff1 into 65b052be3484c32b1ff50a9284aa...
Project spartacus
Branch Review fix/CXSPA-12118
Run status status check passed Passed #52550
Run duration 04m 37s
Commit git commit 575b79c479 ℹ️: Merge 554476d10088ef0e901d107e3b5bab5c07a34ff1 into 65b052be3484c32b1ff50a9284aa...
Committer Norbert Papp
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 101
View all changes introduced in this branch ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@github-actions github-actions bot marked this pull request as draft February 23, 2026 12:52
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 23, 2026 13:30
@github-actions github-actions bot marked this pull request as draft February 23, 2026 20:09
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 24, 2026 08:45
@github-actions github-actions bot marked this pull request as draft February 24, 2026 15:32
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 25, 2026 10:53
@github-actions github-actions bot marked this pull request as draft February 26, 2026 08:38
@npapp-dev002 npapp-dev002 marked this pull request as ready for review February 26, 2026 08:39
@github-actions github-actions bot marked this pull request as draft March 2, 2026 12:07

@Input() promotionLocation: PromotionLocation = PromotionLocation.ActiveCart;

protected globalMessageService = inject(GlobalMessageService);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should inject this as an optional service. So that the call in remove item can also be optional (ie. this.globalMessageService?.add(.... This is because we are introducing the global message service as a new service that might not necessarily be injected already. This is how we can handle the breaking change.

@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 3, 2026 16:41
@npapp-dev002 npapp-dev002 requested a review from Zeyber March 3, 2026 17:13
@github-actions github-actions bot marked this pull request as draft March 4, 2026 08:13
@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 25, 2026 09:52
@github-actions
Copy link
Copy Markdown
Contributor

E2E Tests Failed ❌

📸 Download Screenshots


Commit: 2563e255a23121c8908270bfdc78986a59a2827c

@github-actions
Copy link
Copy Markdown
Contributor

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@github-actions github-actions bot marked this pull request as draft March 25, 2026 10:20
@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 25, 2026 10:21
.remove(payload.userId, payload.cartId, payload.entryNumber)
.pipe(
map(() => {
this.globalMessageService.add(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This method is better. Just remember to inject the service optionally otherwise the method could fail since this is a breaking change.

@github-actions github-actions bot marked this pull request as draft March 30, 2026 12:47
@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 30, 2026 13:08
@github-actions
Copy link
Copy Markdown
Contributor

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@github-actions github-actions bot marked this pull request as draft March 30, 2026 13:12
<span>{{ assistiveMsg | cxTranslate }}</span>
<div class="cx-visually-hidden" aria-live="assertive" aria-atomic="true">
<span
*ngFor="let assistiveMsg of messages[messageType.MSG_TYPE_ASSISTIVE]"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there any reason *ngFor has moved from the div to the span tag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nope. Thanks for noticing. 👍

@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 31, 2026 10:13
@github-actions
Copy link
Copy Markdown
Contributor

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@github-actions github-actions bot marked this pull request as draft March 31, 2026 10:14
@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 31, 2026 10:26
@github-actions github-actions bot marked this pull request as draft March 31, 2026 11:47
@npapp-dev002 npapp-dev002 marked this pull request as ready for review March 31, 2026 11:47
@github-actions
Copy link
Copy Markdown
Contributor

Merge Checks Failed

Please push a commit to re-trigger the build.
To push an empty commit you can use `git commit --allow-empty -m "Trigger Build"`

@npapp-dev002 npapp-dev002 requested a review from Zeyber March 31, 2026 11:48
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