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

feat(segmentation): Enhanced segmentation panel design for TMTV #3988

Merged
merged 19 commits into from
Apr 3, 2024

Conversation

IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Mar 14, 2024

Context

Addresses issue #3790

Changes & Results

Pending

Screenshots

image

image

image

image

image

Notes

Most work is complete, remaining piece is to switch out the TMTV panel

Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for ohif-platform-docs canceled.

Name Link
🔨 Latest commit 15fb306
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/660cc8fc5d0f8d00082103be

Copy link

netlify bot commented Mar 14, 2024

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit 15fb306
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/660cc8fc6e8d570008f756a8

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.37%. Comparing base (8a335bd) to head (15fb306).
Report is 275 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3988      +/-   ##
==========================================
- Coverage   46.23%   44.37%   -1.87%     
==========================================
  Files          78       80       +2     
  Lines        1276     1334      +58     
  Branches      312      327      +15     
==========================================
+ Hits          590      592       +2     
- Misses        548      589      +41     
- Partials      138      153      +15     

see 10 files with indirect coverage changes


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 e8e2092...15fb306. Read the comment docs.

Copy link

cypress bot commented Mar 14, 2024

Passing run #3787 ↗︎

0 43 0 0 Flakiness 0

Details:

fix build
Project: Viewers Commit: 15fb3069a0
Status: Passed Duration: 05:49 💡
Started: Apr 3, 2024 3:23 AM Ended: Apr 3, 2024 3:29 AM

Review all test suite changes for PR #3988 ↗︎

@IbrahimCSAE IbrahimCSAE requested a review from sedghi March 19, 2024 07:25
Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

see my comments please, great work

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

can we make the scrollbar outside the header

CleanShot 2024-03-27 at 12 22 50@2x

number box is too big
CleanShot 2024-03-27 at 12 23 05@2x


needs to be half

CleanShot 2024-03-27 at 12 23 28@2x

can you add the new segmetnation to the tmtv

CleanShot 2024-03-27 at 12 24 05@2x

fix this toggle as well please

CleanShot 2024-03-27 at 12 27 20@2x

check the design for folded and the i location

CleanShot 2024-03-27 at 12 28 48@2x


if we can make the scrollbar starts after the header that would be great

CleanShot 2024-03-27 at 12 29 25@2x

--

AddSgement should not touch the bottom, it has top padding seems like

CleanShot 2024-03-27 at 12 30 16@2x

this is going overflow hidden for some reason

CleanShot 2024-03-27 at 12 30 43@2x

this thing should be centered

CleanShot 2024-03-27 at 12 31 54@2x


probably wrong padding on bottom

CleanShot 2024-03-27 at 12 32 21@2x

@sedghi sedghi changed the title DRAFT: feat(segmentation): Enhanced segmentation panel design for TMTV feat(segmentation): Enhanced segmentation panel design for TMTV Mar 27, 2024
@IbrahimCSAE
Copy link
Collaborator Author

IbrahimCSAE commented Apr 2, 2024

Fixes:

  1. Scrollbar outside header for dropdown and expanded (I needed to set max height 500px]

image

image

2.number box sizing fixed

image

  1. Reload data patient info size is corrected and smaller

image

  1. Added new segmentation panel to tmtv (some features do not work as I'm not sure how it should function in tmtv)

image

  1. Fixed visibility toggle bug, now it works as expected

  2. fixed I icon location when expanded/unexpanded

image

  1. scroll bars start after header now

8.Fixed add segment padding

image

  1. Tooltips reworked with react portals

  2. centered settings icon

image

  1. Fixed add segmentation padding

image

@sedghi please take a look, we just need to add the tools and fix up panel in tmtv.

@@ -33,16 +31,7 @@ export function Toolbar({ servicesManager }) {
/>
);

return disabled ? (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

duplicate tooltip bug

</svg>
</div>
</div>
{tooltipContainer && ReactDOM.createPortal(tooltipContent, tooltipContainer)}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

react portals

@@ -95,7 +95,7 @@ const toolbarButtons: Button[] = [
{
id: 'Threshold',
icon: 'icon-tool-threshold',
label: 'Eraser',
label: 'Threshold Tool',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix tool name

@IbrahimCSAE IbrahimCSAE requested a review from sedghi April 2, 2024 11:12
@IbrahimCSAE
Copy link
Collaborator Author

image

react portals in action, looks good

Comment on lines 65 to 66
useEffect(() => {
if (isOpen && parentRef.current && tooltipRef.current) {
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

Can you please add a comment on what is happening for future devs, newX, newY, parent ...

Copy link
Member

Choose a reason for hiding this comment

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

if (!isOpen || !parentRef.current || !tooltipRef.current){
return
}

--> less indentation --> more clear

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

Getting there,

Patient info has wrong icon

CleanShot 2024-04-02 at 09 10 35@2x

The dropdown for the modal seems like getting in the div (maybe we need portal here as well?)

CleanShot.2024-04-02.at.09.11.27.mp4

Empty Segmentation should have one segment at least, so we should add segment 1 programmatically

CleanShot.2024-04-02.at.09.12.13.mp4

suv peak display text does not appear for some reason below the segment index

CleanShot.2024-04-02.at.09.13.18.mp4

seems like active segment cannot be ch

CleanShot.2024-04-02.at.09.15.09.mp4

anged

@sedghi sedghi merged commit 9f3235f into master Apr 3, 2024
10 of 11 checks passed
edcheyjr pushed a commit to edcheyjr/Viewers that referenced this pull request Apr 7, 2024
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