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(panels): responsive thumbnails based on panel size #4709

Closed
wants to merge 8 commits into from

Conversation

IbrahimCSAE
Copy link
Collaborator

@IbrahimCSAE IbrahimCSAE commented Jan 18, 2025

Context

Building on top of @jbocce Joe's PR to make thumbnails respond to panel resizing

Demos

Thumbnail Items only

CleanShot.2025-01-17.at.20.20.45.mp4

List Items only

CleanShot.2025-01-17.at.20.19.47.mp4

Mix of thumbnail items and list items

CleanShot.2025-01-17.at.20.21.52.mp4

jbocce and others added 7 commits January 10, 2025 10:36
…i library.

Added a dependency to react-resizable-panels.
The resizing dependency and logic is contained in the ViewerLayout component.
Added the isExpanded prop to SidePanel so that expanded/collapsed is no
longer tied to the activeTabIndex prop.
Refactored SidePanel so that the border sizing info are props and thus
the resizable panels can calculate their sizes accordingly. The side panel
width sizes were already props.
Removed the open and close transition (animation) for the side panels.
Added options to make either, both or neither side panels resizable.
The tricky part was handling window resizes and converting between
pixels and percentages.
Fixed the triggers for opening the side panels dynamically.
Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit 1e1cca7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/679104a5fb101a0008d40134
😎 Deploy Preview https://deploy-preview-4709--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 18, 2025

Deploy Preview for ohif-dev failed. Why did it fail? →

Name Link
🔨 Latest commit 1e1cca7
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/679104a5b1ee2300082ede57

Copy link

cypress bot commented Jan 18, 2025

Viewers    Run #4743

Run Properties:  status check failed Failed #4743  •  git commit 1e1cca7c6f: Merge branch 'master' into feat/panel-responsive-layout
Project Viewers
Branch Review feat/panel-responsive-layout
Run status status check failed Failed #4743
Run duration 03m 11s
Commit git commit 1e1cca7c6f: Merge branch 'master' into feat/panel-responsive-layout
Committer Ibrahim
View all properties for this run ↗︎

Test results
Tests that failed  Failures 16
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 28
Tests that passed  Passing 0
View all changes introduced in this branch ↗︎

Tests for review

Failed  study-list/OHIFStudyList.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Study List > Desktop resolution > Displays several studies initially Test Replay Screenshots Video
Failed  measurement-tracking/OHIFCornerstoneToolbar.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Cornerstone Toolbar > checks if all primary buttons are being displayed Test Replay Screenshots Video
Failed  measurement-tracking/OHIFMeasurementPanel.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF Measurement Panel > checks if Measurements right panel can be hidden/displayed Test Replay Screenshots Video
Failed  customization/HangingProtocol.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF HP > Should display 3 up Test Replay Screenshots Video
Failed  volume/MPR.spec.js • 1 failed test

View Output Video

Test Artifacts
OHIF MPR > should not go MPR for non reconstructible displaySets Test Replay Screenshots Video

The first 5 failed specs are shown, see all 15 specs in Cypress Cloud.

@IbrahimCSAE IbrahimCSAE requested a review from sedghi January 20, 2025 16:14
@dan-rukas
Copy link
Member

@IbrahimCSAE These behaviors work great especially for the mixed view. They align with each other well as the panel resizes and components reflow in the best way possible (best compromise overall).

Thanks for taking a detailed look!

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.

3 participants