Skip to content

feat: add bulk certificate retirement API and UI (#347)#439

Open
Sammy-Samy wants to merge 1 commit into
AnnabelJoe:mainfrom
Sammy-Samy:feat/issue-347-bulk-retirement
Open

feat: add bulk certificate retirement API and UI (#347)#439
Sammy-Samy wants to merge 1 commit into
AnnabelJoe:mainfrom
Sammy-Samy:feat/issue-347-bulk-retirement

Conversation

@Sammy-Samy
Copy link
Copy Markdown

Summary

Adds POST /api/certificates/retire/bulk for portfolio managers to retire up to 100 certificates in a single request, and updates the certificates UI with multi-select checkboxes and a bulk retire action bar.

Changes

  • apps/web/src/app/api/certificates/retire/bulk/route.ts — new bulk retirement endpoint
  • apps/web/src/app/certificates/page.tsx — checkbox column, select-all, bulk retire bar

Acceptance Criteria

  • POST /api/certificates/retire/bulk accepts array of certificate IDs
  • Processes up to 100 certificates per request
  • Returns per-certificate success/failure status
  • UI allows selecting multiple certificates and retiring in bulk
  • Bulk operation provides clear partial failure handling (best-effort, not atomic)

Type of change

  • New feature

Related issue

Closes #347

Checklist

  • Tests pass
  • No new lint warnings
  • PR targets develop

- POST /api/certificates/retire/bulk accepts array of up to 100 cert IDs
- Processes each certificate independently, returns per-cert success/failure
- Summary includes total/succeeded/failed counts
- Fires certificate.retired webhook for each successful retirement
- UI: checkbox column on certificates table for multi-select
- UI: bulk retire bar appears when certificates are selected
- Partial failure handling: best-effort, not atomic

Closes AnnabelJoe#347
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Sammy-Samy Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add bulk certificate retirement for portfolio managers

1 participant