From 7c328d2b889f9942069fec26f012ff01b934cded Mon Sep 17 00:00:00 2001 From: Yashas Date: Thu, 10 Sep 2026 12:31:16 +0530 Subject: [PATCH] console: mirror the new activities' roles visibleStages hides a queue whose actions this role cannot perform, so without these three entries Needs a Person was an ops-only queue and the underwriter could not see a flag sent to them. Co-Authored-By: Claude Fable 5.1 --- src/api/permissions.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/permissions.js b/src/api/permissions.js index d35525d..dc6c31a 100644 --- a/src/api/permissions.js +++ b/src/api/permissions.js @@ -56,6 +56,14 @@ export const ACTIVITY_ROLES = { 'zk-act-realise': ['ops_admin'], 'zk-act-onboard': ['ops_admin', 'ai_engage'], 'zk-act-resume': ['ops_admin', 'partner_agent', 'bank_rm', 'csr_direct'], + + // The AI's one way of saying "a person should take this". Every employee + // holds it, and so does ops — a person can park a lead for the same reasons. + 'zk-act-flag-review': ['ops_admin', 'ai_intake', 'ai_engage', 'ai_kyc', 'ai_advisor', 'ai_uw_referral'], + // And the two ways back out of Needs a Person. The underwriter is here too: + // a flag they are sent is theirs to route, not only ops'. + 'zk-act-review-resume':['ops_admin', 'sme_underwriter'], + 'zk-act-review-refer': ['ops_admin', 'sme_underwriter'], 'zk-act-drop': ['ops_admin', 'partner_agent', 'bank_rm', 'csr_direct'], // ── The one place this mirror deliberately DISAGREES with the workflow ──