-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Inconsistencies and update the style setting on load for embedded styles from codingValues #4599
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ohif-platform-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Viewers Run #4559
Run Properties:
|
Project |
Viewers
|
Branch Review |
fix/style-for-multiple-findingSites
|
Run status |
Passed #4559
|
Run duration | 02m 22s |
Commit |
13f6426e9c: Remove color change on highlight
|
Committer | Bill Wallace |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
2
|
Skipped |
0
|
Passing |
44
|
View all changes introduced in this branch ↗︎ |
@@ -23,28 +23,44 @@ const codingValues = { | |||
'SCT:69536005': { | |||
text: 'Head', | |||
type: 'site', | |||
style: { | |||
color: 'red', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we normalize this to RGB or hex instead of text? What shade of red are we referring to, and what is its brightness?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my only comment please
Context
When the codingValues has a site/style value, and an SR is loaded containing annotations labelled with finding/findingSites values, there are inconsistencies with how the styling is applied, or whether it is applied at all.
This also occurred with styling applied in different orders.
Changes & Results
Added some extra styling for the test codingValues provided so that this can be seen.
Changed the updateMeasurement to apply the provided style first, but otherwise use the first style found from: finding, the first findingSite found.
Added support for multiple findingSites names. This allows differentiation between site data for different uses, but doesn't really deal well with multiple sites yet.
Testing
Draw some annotations in basic test mode
Right click annotations, and use the finding/site sub-menus to apply finding or site values.
Note how the new version is order independent - the finding style always takes precedence if there is one, while the previous version last change to be applied got done.
Save an SR
Load the SR again in basic mode
You should see the annotation styles being applied.
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment