Skip to content
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(general): enhancements and bug fixes #4018

Merged
merged 6 commits into from
Apr 10, 2024
Merged

Conversation

IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Apr 8, 2024

Context

This PR has general bug fixes and enhancements

Changes & Results

  • Allow track measurements dialog to be confirmed using the Enter key
  • Add SplineROI and LivewireContour mappers
  • Center annotation dialog
  • Fix Probe tool to be Probe instead of DragProbe
  • Remove additional FreehandROI tool in toolbar
  • Fix scrollbar gutter in worklist
  • Customizable measurement display text and reports

Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit ce947e7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/66150089101c77000830a205

Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for ohif-platform-docs canceled.

Name Link
🔨 Latest commit ce947e7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/661500893994f7000808a033

@IbrahimCSAE IbrahimCSAE requested a review from sedghi April 8, 2024 20:37
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.37%. Comparing base (dc0b183) to head (ce947e7).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4018   +/-   ##
=======================================
  Coverage   44.37%   44.37%           
=======================================
  Files          80       80           
  Lines        1334     1334           
  Branches      327      327           
=======================================
  Hits          592      592           
  Misses        589      589           
  Partials      153      153           
Files Coverage Δ
...core/src/services/UIViewportDialogService/index.js 25.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc0b183...ce947e7. Read the comment docs.

Copy link

cypress bot commented Apr 8, 2024

Passing run #3801 ↗︎

0 43 0 0 Flakiness 0

Details:

measurement updates
Project: Viewers Commit: ce947e79d5
Status: Passed Duration: 05:55 💡
Started: Apr 9, 2024 8:58 AM Ended: Apr 9, 2024 9:04 AM

Review all test suite changes for PR #4018 ↗︎

@@ -80,7 +81,9 @@ const PlanarFreehandROI = {
* @param {object} annotation
* @returns {object} Report's content from this tool
*/
function getColumnValueReport(annotation) {
function getColumnValueReport(annotation, customizationService) {
const { PlanarFreehandROI } = customizationService.get('cornerstone.measurements');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Custom report

values.push(max, mean, stdDev, unit, area, areaUnit, perimeter);
const stats = data.cachedStats[`imageId:${metadata.referencedImageId}`];

report.forEach(({ name, value }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

report

@@ -122,19 +122,19 @@ function getColumnValueReport(annotation) {
* @param {Object} displaySet - The display set object.
* @returns {string[]} - An array of display text.
*/
function getDisplayText(annotation, displaySet) {
function getDisplayText(annotation, displaySet, customizationService) {
const { PlanarFreehandROI } = customizationService.get('cornerstone.measurements');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

custom display text

displayText.push(`Perimeter: ${perimeterValues.join(', ')} ${modalityUnit}`);
} else {
displayText.push(`Perimeter: ${utils.roundNumber(perimeter)} ${modalityUnit}`);
displayText.forEach(({ displayName, value, type }) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

display text

@IbrahimCSAE IbrahimCSAE requested a review from sedghi April 9, 2024 08:50
@@ -64,6 +64,136 @@ function getCustomizationModule() {
step: 1,
},
},
{
id: 'cornerstone.measurements',
Angle: {
Copy link
Member

Choose a reason for hiding this comment

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

please refactor in another file, we should call this something like cornerstone.measurementStatsDisplay or something

@sedghi sedghi merged commit 2b83393 into master Apr 10, 2024
11 checks passed
thanh-nguyen-dang pushed a commit to uc-cdis/Viewers that referenced this pull request May 1, 2024
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.

None yet

2 participants