796: adds two new engagement types to NGO engagement - #923
796: adds two new engagement types to NGO engagement#923DarrellRoberts wants to merge 11 commits into
Conversation
ReviewNice, thorough coverage of the two new engagement types across labels, colors, and icons — and confirms this properly closes the Inconsistency between the two status-map files
[AgentEngagementStatusType.INCONTACT]: "var(--color-green-500)", // ChatsCircleIcon
[AgentEngagementStatusType.TRIED_TO_CONTACT]: "var(--color-grey-200)", // PhoneDisconnectIconBut [AgentEngagementStatusType.NEW]: "var(--color-green-100)", // SparkleIcon
[AgentEngagementStatusType.INCONTACT]: "var(--color-green-100)", // SparkleIcon
[AgentEngagementStatusType.TRIED_TO_CONTACT]: "var(--color-green-100)", // SparkleIconWherever this second file's maps are used (e.g. the Agents list/badges view, matching the "Badges" screenshot in the description), Nothing else stands out — translations read fine in both locales, and no other exhaustive |
…d4deed-org/fe into darrell/feat/new-engagement-statuses
|
thanks for checking @nadavosa & good spot. Have pushed my changes |
arturasmckwcz
left a comment
There was a problem hiding this comment.
Re-review findings (automated).
Simplification: src/components/Dashboard/common/statusMaps.ts and src/components/Dashboard/Profile/common/statusMaps.ts are two hand-maintained, structurally parallel maps both keyed on overlapping AgentEngagementStatusType values with no shared source of truth — which is exactly what let this PR half-update one of them (see inline comment). A single canonical AgentEngagementStatusType → {color, icon} map imported by both consumers would make this class of drift structurally impossible.
| [AgentEngagementStatusType.INCONTACT]: "var(--color-green-100)", | ||
| [AgentEngagementStatusType.TRIED_TO_CONTACT]: "var(--color-green-100)", | ||
| [AgentEngagementStatusType.NEW]: "var(--color-violet-100)", | ||
| [AgentEngagementStatusType.INCONTACT]: "var(--color-green-500)", |
There was a problem hiding this comment.
Correctness: statusIconMap further down in this file was left unchanged for INCONTACT/TRIED_TO_CONTACT (still SparkleIcon, same as NEW), even though this diff gives them distinct colors here, and the sibling Dashboard/Profile/common/statusMaps.ts gives them distinct icons (ChatsCircleIcon/PhoneDisconnectIcon).
Failure scenario: Any future caller of Dashboard/common/StatusBadge.tsx for engagement status will render the new colors paired with the wrong, stale icon, inconsistent with how the same statuses render on the agent profile page. Currently dormant because AgentCard.tsx only feeds volunteerSearch (not engagementStatus) into this specific StatusBadge, so it won't visibly break until that column is wired up — but the next person to consume this map has no reason to suspect the inconsistency.
Description
Adds two new engagement types to NGO engagement:
Currently blocked by
beas new values not expected inengagementStatusvalidationRelated Issues
Addresses #796
Changes
Screenshots / Demos
Badges
Modal
EN
DE
Checklist