Skip to content

Add "Grant access to other archives" to share management#385

Merged
flaviahandrea-vsp merged 1 commit into
developfrom
feature/VSP-1759
Jun 9, 2026
Merged

Add "Grant access to other archives" to share management#385
flaviahandrea-vsp merged 1 commit into
developfrom
feature/VSP-1759

Conversation

@flaviahandrea-vsp

Copy link
Copy Markdown
Contributor
  • New flow to grant a record's share access to another archive by searching its owner's email, with a view/contributor/curator/owner role selector.
  • New screens: FindArchiveByEmailPage (email search + results) and GrantArchiveAccessPage (confirm archive + role), wired into ShareManagementContainer via new FIND_ARCHIVE_BY_EMAIL / GRANT_ARCHIVE_ACCESS pages.
  • New entry point section on ShareItemPage ("Find an archive using email" / "Select from past shares" — latter stubbed, out of scope).
  • Backend wiring: search/archiveByEmail endpoint + grantArchiveAccess across IArchiveService, NetworkClient, RequestContainer.addShare, and the Archive/Share repositories.
  • ShareManagementViewModel: email search with validation, normalization, and stale-response guarding; grant-access role state and confirm handler.
  • Reordered the role list in AccessRolesPage (Viewer → … → Owner).
  • Extracted shared ShareManagementComponents (ArchiveThumbnail, AccessRole.iconRes(), GrantAccessEntryRow) to remove duplication; this also fixed a latent MANAGER -> TODO() crash in ArchiveAccessPage.

  - New flow to grant a record's share access to another archive by searching its owner's email, with a view/contributor/curator/owner role selector.
  - New screens: FindArchiveByEmailPage (email search + results) and GrantArchiveAccessPage (confirm archive + role), wired into ShareManagementContainer via new FIND_ARCHIVE_BY_EMAIL / GRANT_ARCHIVE_ACCESS pages.
  - New entry point section on ShareItemPage ("Find an archive using email" / "Select from past shares" — latter stubbed, out of scope).
  - Backend wiring: search/archiveByEmail endpoint + grantArchiveAccess across IArchiveService, NetworkClient, RequestContainer.addShare, and the Archive/Share repositories.
  - ShareManagementViewModel: email search with validation, normalization, and stale-response guarding; grant-access role state and confirm handler.
  - Reordered the role list in AccessRolesPage (Viewer → … → Owner).
  - Extracted shared ShareManagementComponents (ArchiveThumbnail, AccessRole.iconRes(), GrantAccessEntryRow) to remove duplication; this also fixed a latent MANAGER -> TODO() crash in ArchiveAccessPage.
@flaviahandrea-vsp flaviahandrea-vsp merged commit 639a62e into develop Jun 9, 2026
@flaviahandrea-vsp flaviahandrea-vsp deleted the feature/VSP-1759 branch June 9, 2026 11:31
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