Skip to content

Add common bulk-error modal component and preserve form state on partial bulk failure #8300

Description

@ironAiken2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions