Board view ignores configured funnel stages and displays hardcoded defaults
Description
Custom stage names and ordering appear correctly in the Table and Funnel views, but the Board view still uses the default stages.
Steps to reproduce
- Configure these stages in this order:
- New Customer
- Contacted
- CIBIL Check
- Bank Process
- Sanctioned
- Closed
- Lost
- Open Contacts → Funnel and check the stage labels.
- Open All Contacts → Table and check the stage filter.
- Switch to Board view.
Actual behavior
The Board displays the default columns:
New → Contacted → Engaged → Hot → Enrolled → Cold / Lost
The custom Sanctioned stage is missing. A contact shown as Bank Process in the Table appears under Hot in the Board.
Expected behavior
Board columns should use the same configured stage names and ordering as the Table and Funnel views, including custom stages with no leads.
The New Lead stage selector should also use the configured stages. Non-funnel stages such as Lost can remain separate branches in the Funnel visualization.
Root cause
frontend/src/pages/sales/PipelinePage.jsx uses a hardcoded FUNNEL array and default STAGE_META / STAGE_ORDER, instead of the stages provided by useFunnelConfig.
Suggested fix
Use useFunnelConfig().stages for:
- Board column labels, ordering, and colors
- Empty custom-stage columns
- Funnel versus non-funnel styling
- New Lead stage options
Keep the existing stage keys for API requests and drag-and-drop updates.
Tested fix
A fix is available here:
https://github.com/dinomukesh/ForgeGrowth-OSS/commit/66ee2d71c8627283a4fa129d29b326a06c889fdb
Validation: 7 sales tests passed, targeted lint passed, and the production build passed.
Version
Observed on upstream commit c123e5e5d939d65d7bbb8e1d46545dc11762a8f9.
Screenshots showing the mismatch are attached.