Skip to content

feat: Add Department links to Federal Sankey diagram spending items - #145

Open
ronakv wants to merge 2 commits into
BuildCanada:mainfrom
ronakv:feature/sankey-hyperlinks-issue-108
Open

feat: Add Department links to Federal Sankey diagram spending items#145
ronakv wants to merge 2 commits into
BuildCanada:mainfrom
ronakv:feature/sankey-hyperlinks-issue-108

Conversation

@ronakv

@ronakv ronakv commented Jul 20, 2025

Copy link
Copy Markdown
  • 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
@aurora-buildcanada

aurora-buildcanada Bot commented Jul 20, 2025

Copy link
Copy Markdown

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

@xrendan xrendan left a comment

Copy link
Copy Markdown
Member

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