-
Notifications
You must be signed in to change notification settings - Fork 0
Labels
Description
Bug Description
The "View In MCP" buttons in Slack webhook messages are using an incorrect URL format that doesn't properly link to MyCarrierPackets.
Current Behavior
The current code in utils/formatters.js generates URLs like:
https://mycarrierpackets.com/carriers/${dotNumber}/packets/${packetId}
https://mycarrierpackets.com/carriers/${dotNumber}/vehicles
https://mycarrierpackets.com/carriers/${dotNumber}/users
Expected Behavior
The correct URL format should be:
https://mycarrierpackets.com/CarrierInformation/DOTNumber/{dotNumber}/DocketNumber/{mcNumber}
Example:
https://mycarrierpackets.com/CarrierInformation/DOTNumber/3512566/DocketNumber/MC1163156
Impact
- Users clicking "View In MCP" buttons get broken/incorrect links
- Reduced user experience and workflow efficiency
- May lead to user confusion
Files to Update
utils/formatters.js- Update all URL generation logic for MCP links