Skip to content

🐛 "View In MCP" button uses incorrect URL format #8

@fakebizprez

Description

@fakebizprez

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

Priority

⚠️ This should be treated as a hotfix since it affects core functionality that users interact with regularly.

Metadata

Metadata

Assignees

Labels

codexjuleshand task off to Jules

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions