Skip to content

feat: add right menu highlight#285

Merged
igoroctaviano merged 24 commits intomasterfrom
feat-add-right-menu-highlight
Jun 20, 2025
Merged

feat: add right menu highlight#285
igoroctaviano merged 24 commits intomasterfrom
feat-add-right-menu-highlight

Conversation

@pedrokohler
Copy link
Collaborator

@pedrokohler pedrokohler commented Mar 24, 2025

Adding highlight to the right menu/panel so that it matches the selected ROIs.

Solves: #196

WARNING: Needs ImagingDataCommons/dicom-microscopy-viewer#175 to be merged first.

@deepsource-io
Copy link

deepsource-io bot commented Mar 24, 2025

Here's the code health analysis summary for commits da17f99..aa46815. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 2 occurences introduced
🎯 3 occurences resolved
View Check ↗

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

@sonarqubecloud
Copy link

Copy link
Collaborator

@igoroctaviano igoroctaviano left a comment

Choose a reason for hiding this comment

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

This looks like a bigger change and involves a good amount of event handling. I'll be testing it later today. Thx.


console.debug(`selected ROI "${selectedRoi.uid}"`)

if (!this.keysDown.has('Shift')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you document why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm allowing the user to select multiple features on the right side panel. If they just click a feature in the right side panel, then the feature is selected but all of the other features are unselected.

However, if they maintain the shift key pressed, they'll just add the clicked feature to the selected list and won't remove the other ones.

It's a UX improvement.

@pedrokohler pedrokohler requested a review from igoroctaviano May 29, 2025 11:55
@igoroctaviano
Copy link
Collaborator

@pedrokohler, it's a big change. Can you describe in the PR how to test it and what to expect? Also, look at deep source issues.

@sonarqubecloud
Copy link

@igoroctaviano igoroctaviano merged commit b3024c2 into master Jun 20, 2025
7 of 8 checks 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