Skip to content

Comments

refac: Add support for the cost breakdown per org unit (SNT-225)#188

Merged
bramj merged 3 commits intomainfrom
SNT-225-cost-breakdown-per-org-unit
Feb 18, 2026
Merged

refac: Add support for the cost breakdown per org unit (SNT-225)#188
bramj merged 3 commits intomainfrom
SNT-225-cost-breakdown-per-org-unit

Conversation

@bramj
Copy link
Collaborator

@bramj bramj commented Feb 12, 2026

Changes

Notes

This will be needed to be able to render the "Cost per intervention category" when filtering on a province/region/etc (SNT-225)

Related JIRA: https://bluesquare.atlassian.net/browse/SNT-225

How to test

Not really any visual changes here, so testing would be just to make sure nothing broke.
But to lower complexity on the main PR, I decided to do this in a separate one.

@bramj bramj changed the title Snt 225 cost breakdown per org unit refac: Add support for the cost breakdown per org unit (SNT-225) Feb 12, 2026
Copy link
Contributor

@Bewi Bewi left a comment

Choose a reason for hiding this comment

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

LGTM, we could just move the mergeByKey to a utils.

};

/** Group items by key, merging duplicates by summing via `merge`. */
function mergeByKey<T>(
Copy link
Contributor

Choose a reason for hiding this comment

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

We could move this to a share util function, so we can re-use in other places

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry hit merge too quickly there. But I think we can extract that when it becomes necessary, for now it's specific to this component

@bramj bramj merged commit 81c6210 into main Feb 18, 2026
2 checks passed
@bramj bramj deleted the SNT-225-cost-breakdown-per-org-unit branch February 18, 2026 16:02
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.

2 participants