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 <noreply@anthropic.com>
This commit is contained in:
Yashas 2026-09-10 12:31:16 +05:30
parent 3dd482f180
commit 7c328d2b88

View File

@ -56,6 +56,14 @@ export const ACTIVITY_ROLES = {
'zk-act-realise': ['ops_admin'], 'zk-act-realise': ['ops_admin'],
'zk-act-onboard': ['ops_admin', 'ai_engage'], 'zk-act-onboard': ['ops_admin', 'ai_engage'],
'zk-act-resume': ['ops_admin', 'partner_agent', 'bank_rm', 'csr_direct'], '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'], 'zk-act-drop': ['ops_admin', 'partner_agent', 'bank_rm', 'csr_direct'],
// ── The one place this mirror deliberately DISAGREES with the workflow ── // ── The one place this mirror deliberately DISAGREES with the workflow ──