Skip to content

useSpecMatching ​

Spec matching management composable.

Import ​

typescript
const {
  matches,
  isLoading,
  fetchMatches,
  approveMatch,
  rejectMatch,
  assignSpec,
  removeMatch,
  bulkApprove,
  bulkReject,
} = useSpecMatching(projectId)

Parameters ​

ParameterTypeDescription
projectIdRef<string>Reactive project UUID

Return Values ​

PropertyTypeDescription
matchesRef<Match[]>All matches for the project
isLoadingRef<boolean>Loading state

Methods ​

MethodParametersReturnsDescription
fetchMatchespipItemId?: stringPromise<void>Load matches
approveMatchmatchId: stringPromise<void>Approve a match
rejectMatchmatchId: stringPromise<void>Reject a match
assignSpecpipItemId: string, specId: stringPromise<void>Manually assign spec
removeMatchmatchId: stringPromise<void>Remove a match
bulkApprovematchIds: string[]Promise<void>Bulk approve
bulkRejectmatchIds: string[]Promise<void>Bulk reject

Match Status Flow ​

pending → approved (user approves)
pending → rejected (user rejects)
pending → review (flagged for review)

Source ​

app/composables/useSpecMatching.ts

Built with VitePress