Skip to content

feat(bulk): vault-list bulk actions — select, move, delete, share, add-to-team-folder (bulk-actions) - #82

Merged
rubenvdlinde merged 1 commit into
developmentfrom
feat/apply-bulk-actions
Jul 18, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
feat/apply-bulk-actions

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Implements the bulk-actions OpenSpec change.

What

  • Selection (client-only): per-row checkboxes in the vault list, select-all for the current filtered view, shift-click range selection; held in useBulkStore, cleared on vault lock, never persisted.
  • Chunked runner: 25/chunk, cancellable (stops after the current chunk, remainder reported as skipped), per-item report with an exactly-once guarantee, and retry that re-runs ONLY the failed subset (safe on idempotent writes).
  • Bulk action bar + dialogs: Move (metadata-only folderId), Delete (count-named confirmation, typed DELETE <n> above 10, 404 = skipped, explicit irreversible hard delete through the existing cascade), Share, Add-to-team-folder (move + the existing idempotent membership fan-out).
  • Bulk share: per (secret × recipient) decrypt with the session CryptoKey → re-encrypt under the recipient certificate (WebCrypto, ADR-003) → register through the new additive POST /api/v1/shares/register-batch — the server creates the recipient copy from client-encrypted blobs with a per-item owner guard, exists on resume (never double-shares), no_suite skip. Companion GET /api/v1/shares/recipient-certificate. (The specced createBatchShares path presumes pre-existing recipient copies, which no direct-share surface could provide — noted in tasks.md.)
  • Tests: 6 vitest bulk-store tests + 2 PHPUnit registerDirectShares tests.

Gates

  • PHPUnit 629 passed / 1 documented skip; vitest 349 passed
  • phpcs 0 errors; eslint clean on touched files; webpack build OK

🤖 Generated with Claude Code

…d-to-team-folder

Implements openspec change bulk-actions:
- useBulkStore: client-only selection (dedupe, select-all current view,
  shift-range in SecretList, cleared on vault lock, never persisted) +
  chunked runner (25/chunk, cancellable after current chunk, per-item
  report with exactly-once guarantee, retry-failed-only)
- Bulk action bar on the vault list + four dialogs (ADR-004): move
  (metadata-only folderId), delete (count-named confirmation, typed
  confirm >10, 404=skipped, irreversible hard delete via existing
  cascade), share (per-secret decrypt->re-encrypt fan-out, ADR-003),
  add-to-team-folder (move + idempotent membership fan-out)
- ShareService::registerDirectShares + POST /api/v1/shares/register-batch:
  additive idempotent direct-share registration creating recipient copies
  from client-encrypted blobs (per-item owner guard, exists on resume,
  no_suite skip) + GET /api/v1/shares/recipient-certificate
- BulkRunPanel: shared progress + per-item report + retry UI
- Tests: 6 vitest bulk-store tests (exactly-once, cancel, retry-only-failed,
  lock-clears-selection), 2 PHPUnit registerDirectShares tests
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.

1 participant