Skip to content

fix: Address regressions introduced by recent new features & refactoring#334

Merged
igoroctaviano merged 10 commits intomasterfrom
fix/regression-4-sep
Sep 6, 2025
Merged

fix: Address regressions introduced by recent new features & refactoring#334
igoroctaviano merged 10 commits intomasterfrom
fix/regression-4-sep

Conversation

@fedorov
Copy link
Member

@fedorov fedorov commented Sep 5, 2025

@fedorov fedorov requested a review from Copilot September 5, 2025 15:38
@fedorov fedorov linked an issue Sep 5, 2025 that may be closed by this pull request
@deepsource-io
Copy link

deepsource-io bot commented Sep 5, 2025

Here's the code health analysis summary for commits b94fde9..560ed13. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 9 occurences introduced
🎯 10 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses regressions introduced by recent new features by implementing a configurable logger system, updating segmentation handling, and fixing various console calls throughout the codebase.

  • Adds a comprehensive logger utility with configurable log levels and environment-specific settings
  • Removes the generateSegmentColor function and updates getSegmentColor to return null when no metadata color is found
  • Replaces console calls with the new logger system and handles fractional vs binary segmentation types differently

Reviewed Changes

Copilot reviewed 11 out of 16 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/utils/segmentColors.ts Removes color generation function, updates getSegmentColor signature, adds getSegmentationType function
src/utils/logger.ts New configurable logger utility with environment-aware logging levels
src/utils/logger.test.ts Unit tests for the logger functionality
src/utils/tests/segmentColors.test.ts Adds tests for the new getSegmentationType function
src/components/SlideViewer/utils/roiUtils.ts Fixes property access in ROI key generation
src/components/SlideViewer.tsx Replaces console calls with logger, updates segmentation handling logic
src/components/SegmentItem.tsx Conditionally shows color controls based on segmentation type
public/config/*.js Adds logger configuration to all config files
docs/LOGGER_CONFIGURATION.md Documentation for the new logger configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@igoroctaviano igoroctaviano changed the title Address regressions introduced by recent new features fix: Address regressions introduced by recent new features & refactoring Sep 5, 2025
@fedorov
Copy link
Member Author

fedorov commented Sep 5, 2025

@igoroctaviano #330 is still there from what I can tell!

@fedorov
Copy link
Member Author

fedorov commented Sep 5, 2025

@igoroctaviano igoroctaviano marked this pull request as ready for review September 5, 2025 18:03
@igoroctaviano
Copy link
Collaborator

@fedorov have you redeployed and tested 330 again?

@fedorov
Copy link
Member Author

fedorov commented Sep 5, 2025

Did this just now! Great job @igoroctaviano!

You did some updates since I tested - should I redeploy and test again before merging? Or are you still working on this PR?

@igoroctaviano
Copy link
Collaborator

Did this just now! Great job @igoroctaviano!

You did some updates since I tested - should I redeploy and test again before merging? Or are you still working on this PR?

Now I wont make any changes so feel free to test then I'll merge and update idc fork too.

@fedorov
Copy link
Member Author

fedorov commented Sep 5, 2025

Igor, looks good - please proceed with merging!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2025

@igoroctaviano igoroctaviano merged commit f17fe0e into master Sep 6, 2025
7 of 8 checks passed
@fedorov fedorov deleted the fix/regression-4-sep branch November 21, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants