Skip to content

Heatmap - refactoring and improving errors#16

Merged
LCrossman merged 1 commit intoLCrossman:mainfrom
em-baggie:improve_error_handling_heatmap
Mar 23, 2025
Merged

Heatmap - refactoring and improving errors#16
LCrossman merged 1 commit intoLCrossman:mainfrom
em-baggie:improve_error_handling_heatmap

Conversation

@em-baggie
Copy link
Contributor

CHANGES:

  • Split heatmap functionality into separate modules
  • Standardised error handling in heatmap to consistently return Result<(), JsValue>

The files in the codebase are generally very long and have mixed responsibilities, making them difficult to read. I suggest refactoring these files into into focused, single-responsibility components. I think this refactoring work should be the priority, and should be done prior to adding any further features or improving the error handling.

Copy link
Owner

@LCrossman LCrossman left a comment

Choose a reason for hiding this comment

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

Thanks for the refactoring, newer layout looks clearer & returning the Result<(), JsValue> via .ok_or(JsValue::from_str("...") is nicely consistent

@LCrossman LCrossman merged commit aa3dd51 into LCrossman:main Mar 23, 2025
1 check passed
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