diff --git a/docs/BACKEND/API_GUIDES/V2/mobile-coding-agent-spec.md b/docs/BACKEND/API_GUIDES/V2/mobile-coding-agent-spec.md index 00434924..a369f422 100644 --- a/docs/BACKEND/API_GUIDES/V2/mobile-coding-agent-spec.md +++ b/docs/BACKEND/API_GUIDES/V2/mobile-coding-agent-spec.md @@ -143,6 +143,7 @@ Coverage review payload: Rules: - worker rating happens through `POST /client/coverage/reviews` +- the same endpoint also supports `markAsFavorite` to add or remove a worker from business favorites - blocking a worker is done through the same endpoint using `markAsBlocked` - dispatch ranking order is: 1. `CORE` diff --git a/docs/BACKEND/API_GUIDES/V2/mobile-frontend-implementation-spec.md b/docs/BACKEND/API_GUIDES/V2/mobile-frontend-implementation-spec.md index ce26f3ed..a72f198a 100644 --- a/docs/BACKEND/API_GUIDES/V2/mobile-frontend-implementation-spec.md +++ b/docs/BACKEND/API_GUIDES/V2/mobile-frontend-implementation-spec.md @@ -96,14 +96,16 @@ Payload may include: ```json { + "staffId": "uuid", "assignmentId": "uuid", "rating": 4, - "comment": "Strong performance on the shift", + "feedback": "Strong performance on the shift", + "markAsFavorite": true, "markAsBlocked": false } ``` -If `markAsBlocked` is `true`, backend blocks that worker for that business and rejects future apply or assign attempts until a later review sets `markAsBlocked: false`. +If `markAsFavorite` is `true`, backend adds that worker to the business favorites list. If `markAsFavorite` is `false`, backend removes them from that list. If `markAsBlocked` is `true`, backend blocks that worker for that business and rejects future apply or assign attempts until a later review sets `markAsBlocked: false`. Swap-management rule: diff --git a/docs/BACKEND/API_GUIDES/V2/unified-api.md b/docs/BACKEND/API_GUIDES/V2/unified-api.md index 8f1a62c8..9e160f04 100644 --- a/docs/BACKEND/API_GUIDES/V2/unified-api.md +++ b/docs/BACKEND/API_GUIDES/V2/unified-api.md @@ -92,14 +92,17 @@ Coverage-review request payload may also send: ```json { + "staffId": "uuid", "assignmentId": "uuid", "rating": 2, - "comment": "Worker left the shift early without approval", + "feedback": "Worker left the shift early without approval", + "markAsFavorite": false, + "issueFlags": ["LEFT_EARLY"], "markAsBlocked": true } ``` -If `markAsBlocked` is `true`, backend adds that staff member to the business-level blocked list and future apply or assign attempts are rejected until a later review sends `markAsBlocked: false`. +If `markAsFavorite` is `true`, backend adds that worker to the business favorites list. If `markAsFavorite` is `false`, backend removes them from that list. If `markAsBlocked` is `true`, backend adds that staff member to the business-level blocked list and future apply or assign attempts are rejected until a later review sends `markAsBlocked: false`. Swap-review routes: