Skip to content

VCST-4834: Use platform delete confirmation dialog for fulfillment centers#160

Open
basilkot wants to merge 3 commits intodevfrom
fix/VCST-4834
Open

VCST-4834: Use platform delete confirmation dialog for fulfillment centers#160
basilkot wants to merge 3 commits intodevfrom
fix/VCST-4834

Conversation

@basilkot
Copy link
Contributor

@basilkot basilkot commented Mar 26, 2026

Description

  • Replaced showConfirmationDialog with showDeleteConfirmationDialog in both list and detail views
  • List view shows fulfillment center count; detail view shows entity name
  • Added fulfillment-center count localization key across all 13 languages

Test plan

  • Verify delete dialog from fulfillment center list shows item count
  • Verify delete dialog from fulfillment center detail shows entity name

References

QA-test:

Jira-link:

https://virtocommerce.atlassian.net/browse/VCST-4834

Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Inventory_3.1001.0-pr-160-bfbe.zip


Note

Low Risk
Low risk UI-only change that swaps the delete confirmation modal implementation and adds a name field to the dialog model; deletion behavior and API calls are unchanged.

Overview
Switches fulfillment center deletion prompts in both list and detail blades from showConfirmationDialog to the platform showDeleteConfirmationDialog.

Adds a name field to the dialog payload (item.name / blade.currentEntity.name) so the delete confirmation can display the target entity context.

Written by Cursor Bugbot for commit bfbeb66. This will update automatically on new commits. Configure here.

Copy link
Contributor

@vc-ci vc-ci left a comment

Choose a reason for hiding this comment

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

Test Suite: Test Suites/Modules/module_Assets
Tests: 13
Failures: 0
Errors: 0
Time: 8.519
Timestamp: 26-03-2026T16:03:29

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

}
}
dialogService.showConfirmationDialog(dialog);
dialogService.showDeleteConfirmationDialog(dialog);
Copy link

Choose a reason for hiding this comment

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

List view passes name instead of count to dialog

Medium Severity

The list view delete dialog passes name: item.name, making it behave identically to the detail view. Per the PR description and test plan, the list view dialog is supposed to show a fulfillment center count. The new fulfillment-center localization key (e.g., "{{count}} fulfillment center(s)") was added across all 13 locale files specifically for this purpose, but is never referenced by the JavaScript code. The dialog likely needs a count property and a reference to the fulfillment-center translation key instead of (or in addition to) name.

Additional Locations (1)
Fix in Cursor Fix in Web

@vc-ci
Copy link
Contributor

vc-ci commented Mar 26, 2026

🧪 Katalon Test Report — ✅ PASSED

🔢 Total ✅ Passed ❌ Failed ⏱️ Duration
13 13 0 7.7s

Pass rate: ████████████████████ 100.0%

📋 Suite details
Suite Test Suites/Modules/module_Assets
Failures 0
Errors 0
Timestamp 26-03-2026T17:03:29

🔗 View run · Commit: 85686f7

@sonarqubecloud
Copy link

@vc-ci
Copy link
Contributor

vc-ci commented Mar 26, 2026

🧪 Katalon Test Report — ✅ PASSED

🔢 Total ✅ Passed ❌ Failed ⏱️ Duration
13 13 0 7.5s

Pass rate: ████████████████████ 100.0%

📋 Suite details
Suite Test Suites/Modules/module_Assets
Failures 0
Errors 0
Timestamp 26-03-2026T18:11:59

🔗 View run · Commit: a7f2f67

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