Add workflow VC status batch endpoint - #11
Merged
Conversation
Introduces a new API endpoint `/api/ui/v1/workflows/vc-status` to efficiently retrieve VC status summaries for multiple workflows in a single request. This optimizes performance by reducing the number of individual API calls required when displaying workflow lists or related information. The implementation includes a new handler in `DIDHandler`, a corresponding service method in `VCService`, and storage logic in `VCStorage` and `LocalStorage`. The frontend has been updated to utilize this new batch endpoint in `useWorkflowVCStatuses`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/ui/v1/workflows/vc-statusso the UI can request VC indicators for many workflows at once, including newDIDHandlerentry point plusVCServiceaggregation helpersuseWorkflowVCStatuseshook that falls back to the legacy per-workflow chain lookups when the batch API is absentTesting
./scripts/test-all.shgo test ./...(run fromcontrol-plane/)Checklist
CHANGELOG.md(or this change does not warrant a changelog entry).Screenshots (if UI-related)
N/A – tables reuse the existing VC badge components.
Related issues
None.