diff --git a/src/api/config.js b/src/api/config.js index d379149..738ac1c 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -73,12 +73,19 @@ export const ACTIONS = { 'zk-state-issued': [{ uid: 'zk-act-onboard', label: 'Complete Onboarding', by: 'Ops' }], } -/** The three doors. Each is a separate INIT activity with its own permissions. */ +/** + * Entry points surfaced in the console. + * + * The workflow has THREE INIT activities — direct, bancassurance and agency — + * and all three still work over the API with their own permissions. Only the + * agency door is shown here, because this demo is about the individual agent + * who sources a lead and gets paid when it onboards. + * + * The other two are hidden, not removed: the bancassurance door is what makes + * the cross-channel duplicate story possible, and deleting it would take the + * skip-ahead behaviour with it. + */ export const ENTRY = [ - { uid: 'zk-act-init-direct', label: 'Self-Serve Lead', channel: 'direct', - note: 'Customer or call centre. Self-declared, no KYC.' }, - { uid: 'zk-act-init-bank', label: 'Partner Bank Lead', channel: 'bancassurance', - note: 'Bank RM. Carries the bank’s CKYC, so it starts at Qualified.' }, - { uid: 'zk-act-init-agent', label: 'Partner Agent Lead', channel: 'agency', - note: 'POSP or broker. This is the door the demo is about.' }, + { uid: 'zk-act-init-agent', label: 'Partner Agent Lead', channel: 'agency', + note: 'POSP or broker sourcing a lead. Everything after this happens without them.' }, ] diff --git a/src/screens/AddLead.jsx b/src/screens/AddLead.jsx index 5cf24e9..bc9735c 100644 --- a/src/screens/AddLead.jsx +++ b/src/screens/AddLead.jsx @@ -10,7 +10,8 @@ import './screens.css' * did CKYC. Whichever door is used, everything after it is identical. */ export default function AddLead() { - const [entry, setEntry] = useState(null) + // One door surfaced: skip the chooser entirely rather than show a list of one. + const [entry, setEntry] = useState(ENTRY.length === 1 ? ENTRY[0] : null) const navigate = useNavigate() return ( @@ -39,7 +40,9 @@ export default function AddLead() {
{entry.note}
- + {ENTRY.length > 1 ? ( + + ) : null}