Skip to content

[ISSUE] Merge Individual Permission Requests into Active Group Requests #74

@BraydenLangley

Description

@BraydenLangley

Description

When a group permission request is active and an ensure call is made for a permission that belongs to that group (e.g., via a component like IdentitySearch), the individual request can overlap with the group request.

Problem

This results in multiple modals appearing for the same permissions, creating a confusing UX.

Steps to Reproduce

  1. Clone PeerPay repo (group-perms-support branch)
  2. npm run start
  3. Ensure all permissions are revoked for localhost:
  4. You should see two modals popup (single request, and group)

Expected Behavior

  • If a group permission modal is active, any ensure calls for permissions within that group (same originator) should merge into the existing group request.
  • The outcome of the individual ensure should depend on the user’s response to the group modal (grant or reject).
  • The group permission modal should have a higher Z-index than individual modals.

Additional Information

Applies to permissions grouped under protocol, basket, certificate, and spending.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions