Background
FR-3273 introduced multi-scope bulk permission edit (RoleScopePermissionEditModal). Bulk mutations can partially fail, and per-request errors need proper surfacing. This applies to bulk operations in general, so the error display should be a shared component.
What to do
1. Common bulk-error modal component
Create a reusable modal component that displays bulk request errors in a table view — one row per failed request.
- Each bulk operation has a different response shape, so the component must accept the table column definitions via props (e.g., a
columns-like prop) instead of hardcoding them.
2. Preserve form state on partial failure (separate from the modal)
When some of the bulk requests fail, the existing form must not be reset:
- Keep the form items for the fields that had problems so the user can fix and retry them.
- Fields without problems remain displayed as-is.
JIRA Issue: FR-3334
Background
FR-3273 introduced multi-scope bulk permission edit (
RoleScopePermissionEditModal). Bulk mutations can partially fail, and per-request errors need proper surfacing. This applies to bulk operations in general, so the error display should be a shared component.What to do
1. Common bulk-error modal component
Create a reusable modal component that displays bulk request errors in a table view — one row per failed request.
columns-like prop) instead of hardcoding them.2. Preserve form state on partial failure (separate from the modal)
When some of the bulk requests fail, the existing form must not be reset:
JIRA Issue: FR-3334