Skip to content

Conversation

@ronakv
Copy link

@ronakv ronakv commented Jul 20, 2025

  • Implement enhanced tooltips with clickable ministry links
  • Add comprehensive department mapping for federal spending categories
  • Fix incorrect social security mapping (was Public Safety, now ESDC)
  • Correct immigration/border security mappings to IRCC
  • Add sticky tooltip behavior with 300ms delay for better UX
  • Map economic development agencies to ISED
  • Add proper ministry name display (e.g., 'Department of National Defence')
  • Remove direct click functionality on blocks, keep tooltip-based navigation
  • Fix eslint errors and warnings

Closes #108

- Implement enhanced tooltips with clickable ministry links
- Add comprehensive department mapping for federal spending categories
- Fix incorrect social security mapping (was Public Safety, now ESDC)
- Correct immigration/border security mappings to IRCC
- Add sticky tooltip behavior with 300ms delay for better UX
- Map economic development agencies to ISED
- Add proper ministry name display (e.g., 'Department of National Defence')
- Remove direct click functionality on blocks, keep tooltip-based navigation
- Fix eslint errors and warnings

Closes BuildCanada#108
@jean-guy-batisseur
Copy link

jean-guy-batisseur bot commented Jul 20, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-07-20 16:36:48 CET

- Created departmentMap.ts with centralized department name and URL mappings
- Refactored SankeyChart.tsx to import and use mappings from config file
- Removed hardcoded mapping logic from component
- Improved maintainability and code organization
@xrendan xrendan self-requested a review July 20, 2025 17:03
Copy link
Member

@xrendan xrendan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ronakv I get an error when trying to access the sankey diagram at:

https://145.canadaspends.apps.canadasbuilding.com/en/spending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More easily discoverable Government Departments

2 participants