Commit Graph
100 Commits
Author SHA1 Message Date
Gustavo André Lelis e633eb80eb feat: Notification provider and service (#1703)
* Create basic structure for Viewport dialog provier and Dialog component

* Implementation of a UIViewportDialogService

* Update viewportDialogProvider docz

* Create example of use of UIViewportDialogService
2020-05-15 13:59:28 +02:00
Gustavo Lelis 11e58e70f6 Implement tooltip on remaining paces 2020-05-15 13:56:35 +02:00
Gustavo Lelis 08ebfd5865 Update sidePanel to support multiple components 2020-05-15 13:56:09 +02:00
Gustavo Lelis 802a8d5f1b Fix propTypes and update tracked series tag 2020-05-15 13:55:54 +02:00
Gustavo Lelis 928dc9f7b0 Updating mockData 2020-05-15 13:55:12 +02:00
Gustavo Lelis 19aec45797 Rename thumbnailSR 2020-05-15 13:55:12 +02:00
Gustavo Lelis 8ae21a97d8 Refactor Thumbnail component 2020-05-15 13:55:12 +02:00
Gustavo Lelis 61f10f024a Include theme min height 2020-05-15 13:55:12 +02:00
Gustavo Lelis ad6b592a37 ThumbnailTracked component 2020-05-15 13:55:12 +02:00
Gustavo Lelis 947f671ab1 Fix scrollbar on Firefox 2020-05-15 13:54:01 +02:00
Gustavo Lelis 7dccf77c7d Fix: Header shouldn’t be sticky on Viewer Route 2020-05-15 13:53:49 +02:00
Gustavo Lelis 68b8b04a1c Fix: Z-index issue for “annotation tools” overlay Viewport ActionBar “Label” (Checkmark + ‘A’) 2020-05-15 13:53:46 +02:00
Gustavo Lelis f084597f2b Fix: Active Viewport border width discrepancy causes resize 2020-05-15 13:53:28 +02:00
Gustavo Lelis 3c6408b99e Style ficx on tooltip for viewport toolbar 2020-05-15 13:52:47 +02:00
Gustavo Lelis f96f965a76 Small style fixes and implementation of toolbars on viewer docz page 2020-05-15 13:52:44 +02:00
Gustavo Lelis a0662c4883 Fixing eslint issues 2020-05-15 13:52:27 +02:00
Gustavo Lelis 2131cb5abb Update docz after callouts 2020-05-15 13:49:40 +02:00
Gustavo Lelis 993c46022c Docz for context provider 2020-05-15 13:49:40 +02:00
Gustavo Lelis d13c2f6a69 Viewport grid component 2020-05-15 13:49:27 +02:00
Gustavo André Lelis eda99a0bac OHIF-79: Study Browser side panel (#1614)
* Initial code changes for StudyBrowser

* StudyItem component basic strucure

* Adding new icon

* Updates to get StudyItem working

* Small fix on side panel open header

* Adding new icons

* Thumbnail List

* ThumbnailSR WIP

* Thumanil WIP

* Export new components into ohif/ui

* Updates on style

* Update ThumbnailSR style

* Margin updates

* MAke it scrollable

* Make it scrollable

* Style updates

* Fixing tooltip

* Tunning the mock data and testing scenarios

* Update mock data

* make all studies collapsed

* small fix on tooltip

* Removing empty mdx files

* Updating viewer docz page

* Style updates

* Update button font-size

* Fix: Make cancel button only visible on hover

* Fixing callouts

* Fix eslint
2020-05-15 13:49:24 +02:00
Gustavo Lelis da5b4591d0 Updating icons naming and colors 2020-05-15 13:47:15 +02:00
Gustavo Lelis 636f86323a fix border blicking in white on transition 2020-05-15 13:47:15 +02:00
Gustavo Lelis 4668fbfa27 Fix callouts 2020-05-15 13:47:15 +02:00
Gustavo Lelis 0a5009f80b Basci example for SidePanel 2020-05-15 13:47:14 +02:00
Gustavo Lelis 345d136590 Small fixes 2020-05-15 13:47:14 +02:00
Gustavo Lelis f838de8059 Fix viewer's docz page 2020-05-15 13:47:14 +02:00
Gustavo Lelis c8eda21da4 Update icons and small refacto for performance 2020-05-15 13:47:14 +02:00
Gustavo Lelis 1cf286962c Update Docs 2020-05-15 13:47:14 +02:00
Gustavo Lelis 5f695f2e66 Addin new icons 2020-05-15 13:47:14 +02:00
Gustavo Lelis 59dd5820dd Side pannels 2020-05-15 13:47:13 +02:00
Gustavo Lelis a2ff5e9e48 Small style update 2020-05-15 13:47:13 +02:00
Gustavo Lelis 8be7854118 Initial changes for SidePanel 2020-05-15 13:47:11 +02:00
Gustavo André Lelis 056f56f5b4 refactor: StudyListFilter refactor (#1580)
* Creating InputGroup

* Updating Views with new InputGroup

* Creating Docz for InputGroup

* Fixing eslint issues

* Renaming inputGroup props naming to be more generic.
2020-05-15 13:44:33 +02:00
Gustavo André Lelis 5541fb1f4b chore: Header docz page examples (#1586)
* Creating Header example

* Improve NavBag example page

* Fixing callouts
2020-05-15 13:42:32 +02:00
Gustavo Lelis 1150e5a1a4 Updating Docz imports 2020-05-15 13:42:31 +02:00
Gustavo André Lelis de484275e8 Creating combo input with label, naming and input for Text, Select and DateRange (#1553)
* Issues: OHIF-46, OHIF-47, OHIF-48
2020-05-15 13:42:28 +02:00
Gustavo Lelis 01c5456ccf Fixing docz 2020-05-15 13:38:21 +02:00
Gustavo Lelis 69ff46fa5c Adding NavBag into Header 2020-05-15 13:38:21 +02:00
Gustavo Lelis 18ab336df3 Inicial files 2020-05-15 13:38:21 +02:00
Gustavo Lelis 6f198178ac Fix docz import typo 2020-05-15 13:38:20 +02:00
Gustavo André Lelis e54ccd1373 OHIF-43: Modal Context Provider (#1538) 2020-05-15 13:38:20 +02:00
Gustavo André Lelis b7a72f5225 OHIF-32: Wrapping React-select with our style requirements (#1529)
* Custom Select component

* Including inpot section

* Adding missing import sections on docz

* Change cursor once is disabled

* update date range color font
2020-05-15 13:38:18 +02:00
Gustavo André Lelis 11bd7105d6 fix: Issues on StudyList Filter (#1513)
* Fix instances font size

* Fixing sorting style and icons

* Fix clear filters flicking filter parent height

* Make filter size matching with study list table columns

* Addin width for grid24

* Use grid24 instead of 12

* Adding missing borders

* Fix gridCol division
2020-05-15 13:37:41 +02:00
Gustavo André Lelis 2138565990 feat: Study List Filter (#1504)
* Inital changes for study list filters

* Style updates on filter

* Small style changes on filter

* Style changes updates on Input and Label and finish fitler

* Refactor on study list filter

* Remove not used callbackFunction

* Small style change

* Adding underline on Learn more link

* Make sure does not show sortable if have no results

* Some style polish

* Fixing margin on filter

* Adding inherit as color on buttons

* Adding inherit on learn more button color

* Addin border with opacity
2020-05-15 13:37:38 +02:00
Gustavo André Lelis 8c6daf5395 Feat/ui v2 ohif logo svg (#1506)
* Adding new icons

* Introducing Svg component

* Adding ohif logo into header
2020-05-15 13:36:01 +02:00
Gustavo André Lelis a738990675 feat: Study List Header (#1498)
* Initial code for header

* Basic implementation for the header

* Updating icons

* Fix conflicts after latest changes on base branch

* Smnall refactor on header

* Small text-size change

* Remove comment

* Remove link from OHIF logo

* Fix cog/settings icon
2020-05-15 13:36:01 +02:00
f4aea45e01 feat: Icon component (#1499)
* New icons and old strucure of OHIF ui v1

* Export icon

* Removing wrong import and fixing some exports

* Fixing svg loader and svg images to fullCurrent

* Small fixes on docz

* Remove repeated icon

* Update other components to use Icon

* Update platform/ui/src/components/Icon/icon.mdx

Co-Authored-By: Rodrigo Antinarelli <rodrigoantinarelli@gmail.com>

* Fixing callouts

* Move icons to assets and fixing layout on iconButtons

* Fix path of icons

Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
Co-authored-by: Rodrigo Antinarelli <rodrigoantinarelli@gmail.com>
2020-05-15 13:35:57 +02:00
Gustavo Lelis ff90f729ab Move props definitions to end on docz 2020-05-15 13:35:37 +02:00
Gustavo Lelis bc7de7e528 GroupButton component and docz 2020-05-15 13:35:00 +02:00
Gustavo André LelisandDanny Brown 64dfbeab7a fix: GCloud dataset picker dialog broken (#1453)
* Replace class with className

* Start implementing UIDialogService

* Including UIModalService on dicomStorePicker

* Cleanup

* Remove unecessary divs

* Remove props not used

Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
2020-03-02 15:43:39 -05:00
Gustavo André Lelis ebc01a8ca2 feat: #1342 - Window level tab (#1429)
* WindowLevel preset code changes

* Remove localStorage code as its already being saved and some small refactor on reducer/action

* Creating unit tests for preferences reducer

* Fix cypress after class naming change

* Make hidden false as default for tab components

* Remove addUserPreferences

* Small refactor to use commandsManager from getCommandsModule instead of getting it from App.js
2020-02-20 16:25:26 -05:00
Gustavo André Lelis 06a4af06fa fix: Creating 2 commands to activate zoom tool and also to move between displaySets (#1446) 2020-02-14 15:54:08 -05:00
Gustavo André LelisandDanny Brown 7b2d44f2c1 fix: Remove trash data from redux storage after updates (#1358)
* Remove tash data from redux storage after updates

* Imprelemnted more unit tests

* Remove missing comment

Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
2020-02-05 21:54:57 -05:00
Gustavo André Lelis b9a66d4424 fix: 🐛 Metadata is being mistakenly purged (#1360)
Closes: #1326
2020-01-15 09:15:10 -05:00
Gustavo André Lelis 2e215aed4c test: 💍 Updating tests after bug fix (#1324)
Closes: #1167
2019-12-20 19:14:07 -05:00
Gustavo André LelisandDanny Brown 6540e36818 fix: 🐛 1241: Make Plugin switch part of ToolbarModule (#1322)
* fix: 🐛 Make Plugin switch part of ToolbarModule

Closes: #1241

* Move setCornerstoneViewport command into cornerstone extension

* Exposing extensionManager into extension's get modules functions

* Remove Plugin switch

* Updating set cornerstonelayout to work on VIEWER context

* Creating a customComponent for 2D MPR button

* Use extensionManager to show or not buttons
Adding isHidden option into toolbarModules

* Make buttons hidden depending on extension registration

* Fix unit test after changes on extensionManager

* Remove workaround for extensionManager

* Use studyMeatadataManager and remove TODO's

* Remove storeContext not needed

* Moving Exit 2D MPR into cornerstone extension with VTK context

* Remove PluginSwitch files

* Fix E2E tests

* Adding cypress screenshots into gitignore

* Remove extensionManager from getModuleFn functions and moving CustomComponent for VTK button to VTK extension

Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
2019-12-20 15:59:36 -05:00
Gustavo André Lelis 23305cec9c fix: 🐛 Fix drag-n-drop of local files into OHIF (#1319)
* fix: 🐛 Fix drag-n-drop of local files into OHIF

Closes: #1307

* CR Update: Centralize dialogs
2019-12-19 10:14:05 -05:00
Gustavo André Lelis ebe1af8d4f feat: 🎸 DICOM SR STOW on MeasurementAPI (#954)
* feat: 🎸 DICOM SR STOW on MeasurementAPI

Closes: #758

* feat: 🎸 Adding the dataExchance from DICOM SR

* feat: 🎸 Fix some issues and get the retrieve measurements working

* feat: 🎸 Preventing measurement tool helpers to broke because the data is not Number (it comes as string from dcmjs)

* feat: 🎸 Adding a button to start testing SATE functionality

* feat: 🎸Small fixes into the code

* feat: 🎸 MAke sure we get latest SR in the study, even on lazyLoad mode

* Revert "feat: 🎸 Preventing measurement tool helpers to broke because the data is not Number (it comes as string from dcmjs)"

This reverts commit 4b3a1efb5810487d2319826fd59c03d779882b5e.

* feat: 🎸 Make sure after sync we update the viewports and also that annotation tools are set to passive, so it can be drawn in the viewports

* feat: 🎸 Remove console logs and start using OHIF.log

* feat: 🎸 Refactor measurement table to use Snackbar service of messages and make sure we only show save button if server type is dicomWeb

* feat: 🎸 Refactor to remove mocked wadoRoot and use server

* Fix to expose error once we can't save the SR

* Update DCMJS into latest dev version

* Update dcmjs with latest fixes

* Fix PR callouts

* Logging error on MeasurementReport creation

* Preventing from breaking on non supported tools and also warning that some toolType is not sopported

* Small error message update

* Expose better the errors and when we have unsopported tools into the measurements

* Renaming variable

* Expose dcmjs tool support check

* Change the way we warn the unsupportedTools

* Adding style to the button

* Small change on button style

* Fix git conflicts

* Fix after merge with latest master

* Fix after merge with master, btn was not clickable

* Fixing callouts

* Adding util functions into files and refactor with JSDocs

* Refactoring code, adding some basic JSDocs

* Bump dcmjs with latest version and fixes

* JSDocs and small refactors

* yarn lock file after dcmjs update

* Remove unused parameters

* Registering a plain copy of server into measurementAPI

* Small refactor

* Start changing from toolType to toolName

* Rename a function to get instanceMetadata

* Adding error if server is not DICOMWeb on retrieve

* Move snackbar outside of UI component and use UINotificationService

* Refactor and JSDocs

* Small fixes on JSDocs (style)

* Remove unused import

* Improve JSDocs on MeasurementApi

* Remove refactor leftover

* Improve JSDocs and propTypes

* JSDocs and small refactors
2019-12-11 11:14:01 -05:00
Gustavo André Lelis 69b96478cb * fix: 🐛 Enabling workbox to cache webfonts and fonts-stylesheets, add local fonts for UMD build (#906)
* fix: 🐛 commonjs/umd fonts import

Importing font into index-umd.js and creating a simple font css file
with font-face

Closes: #724

* fix: 🐛 Enabling workbox to cache webfonts and fonts-stylesheets

Closes: #724

* fix: 🐛 Adding all type of fonts from google - Roboto

Closes: #724
2019-09-27 11:11:05 +02:00
Gustavo André Lelis 5551f817e3 fix: 🐛 Set series into active viewport by clicking on thumbnail (#945)
* fix: 🐛 Set series into active viewport by clicking on thumbnail

Users should be able to set the series for the active viewport by
clicking it's thumbnail into Study browser

Closes: #895

* fix: 🐛 Set series into active viewport by clicking on thumbnail

Small refactor into onClick data callback and thumbnailClick function

Closes: #895

* fix: 🐛 Refactor thumbnail click code changes

* fix: 🐛 We must clear the sopInstanceUid if we don't update it together with the viewportSpecificData, preventing console warning.

* fix: 🐛  Cleaning up a few more code changes
2019-09-26 10:08:30 -04:00
Gustavo André Lelis 7a9b477609 fix: 🐛 Activating Pan and Zoom on right and middle click by def (#841) 2019-09-02 20:38:48 -04:00
Gustavo André Lelis 727c0d8ba6 fix(labelling): Update naming of configuration to props as cornerstoneTools has also changed (#484) 2019-07-08 21:38:03 +02:00
Gustavo André Lelis 3f4fbd2639 Merge pull request #518 from OHIF/bump-react-viewport
fix(react-viewport): Bump react-cornerstone-viewport
2019-06-04 14:28:47 -03:00
Gustavo Lelis 203303e1e7 fix(react-viewport): Bump react-cornerstone-viewport 2019-06-04 13:41:55 -03:00
Gustavo André Lelis ca98e69a66 Merge pull request #383 from OHIF/bump-react-viewerbase
Bump react-viewerbase version to 0.2.17
2019-04-15 10:12:19 -03:00
Gustavo Lelis ba72350c9e fix(react-viewerbase): Fixing the package version instead of using latest minor 2019-04-15 10:07:28 -03:00
Gustavo Lelis 3077d18ace Bump react-viewerbase version to 0.2.17 2019-04-10 11:05:54 -03:00
Gustavo André Lelis 768db26bfc Merge pull request #375 from OHIF/viewport-custom-props
feat(vewportOverlay): Update the extension to be able to pass custom …
2019-03-29 14:53:28 -03:00
Gustavo Lelis 59c06c886b feat(react-cornerstone-viewport): Bump version 2019-03-29 13:51:16 -03:00
Gustavo Lelis c05c666d72 feat(viewportOverlay): Adding default value on customProps 2019-03-28 17:19:20 -03:00
Gustavo Lelis aacd0c68b8 feat(vewportOverlay): Update the extension to be able to pass custom properties to the viewport 2019-03-27 04:34:23 -03:00
Gustavo Lelis 656b64e9db Update viewerbase, bump ohif-viewer to 0.0.17 2019-02-21 08:10:25 +01:00
Gustavo Lelis e6480594ae fix(cine): Fix tool icon 2019-02-18 10:47:07 +01:00
Gustavo Lelis 6dd9a6ac49 feat(measurementTable): Adding prop-types as peerDependency as we have is also as peer on react-cornerstone-viewport 2019-02-12 03:32:23 -02:00
Gustavo Lelis cb32c299e2 feat(measurementTable): Adding convert measurements into table data function into our reducer 2019-02-12 03:30:25 -02:00
Gustavo Lelis 7c20343912 feat(measurementTable): Providing studyInstanceUids for ConnectedViewer component 2019-02-12 03:30:25 -02:00
Gustavo Lelis de853c9221 feat(measurementTable): Fixing tool naming to match with tools instanciated in the viewer 2019-02-12 03:30:24 -02:00
Gustavo Lelis 0ff4e43315 feat(measurementTable): Add dispatch functions for measurements updates. 2019-02-12 03:30:23 -02:00
Gustavo Lelis 9048dcbc1e Fixing tool naming changes 2018-11-09 13:24:47 -05:00
Gustavo Lelis 875640073e Refator in ToolManager 2018-11-09 13:24:47 -05:00
Gustavo Lelis c30cdbe625 - Fixed by setting all tools to passive mode after instantiate then all
- Fixed the default tool that was not being set correctly.
- Fixed some callouts done by Erik into my PR related with keeping old tool list
2018-11-09 13:24:47 -05:00
Gustavo Lelis 51c5c76eb9 Fix some naming and updating to the correct cornerstone-tools version 2018-11-09 13:24:44 -05:00
Gustavo Lelis 500ca1ec07 Updating to latest version of tools and remving typo 2018-11-09 13:23:43 -05:00
Gustavo Lelis fee6b240a4 Adding cornerstoneTools init() 2018-11-09 13:23:43 -05:00
Gustavo Lelis e5e027f716 WIP: Introducing cornerstoneTools v3 into Viewers 2018-11-09 13:23:43 -05:00
Gustavo André Lelis 53f71aa34c chore(dimse): Migrate from Meteor to NPM package for DIMSE calls (#269) 2018-09-28 08:54:03 +02:00
Gustavo Lelis e7042cafef Fixing tool naming changes 2018-09-24 02:38:24 -03:00
Gustavo Lelis 01739fa70a Refator in ToolManager 2018-09-24 02:38:24 -03:00
Gustavo Lelis 5865f542f8 - Fixed by setting all tools to passive mode after instantiate then all
- Fixed the default tool that was not being set correctly.
- Fixed some callouts done by Erik into my PR related with keeping old tool list
2018-09-24 02:38:24 -03:00
Gustavo Lelis 44cb47f64a Fix some naming and updating to the correct cornerstone-tools version 2018-09-24 02:38:23 -03:00
Gustavo Lelis e3bf0f2852 Updating to latest version of tools and remving typo 2018-09-24 02:38:09 -03:00
Gustavo Lelis ad459a2515 Adding cornerstoneTools init() 2018-09-24 02:37:46 -03:00
Gustavo Lelis da5b755637 WIP: Introducing cornerstoneTools v3 into Viewers 2018-09-24 02:37:46 -03:00
Gustavo André Lelis 2f1a2273a4 BugFix(#183): Avoid adding focus on a viewport that is already activated (#265) 2018-09-06 15:28:26 -03:00
Gustavo André Lelis 2493802dea Adding ArrowAnnotate and simpleAngle into measurement-table (#263) 2018-09-06 08:07:54 -03:00
Gustavo André Lelis 7a47b58729 fix(IE11) Bump version of dcmJS into cornerstone package - fixes #246 (#260) 2018-08-23 18:49:43 -03:00
Gustavo André Lelis ced47c765f feat(export-CSV) Export measurements to CSV file (#209) 2018-07-31 15:02:47 +02:00
Gustavo André Lelis 26b14f1dab feat(STOW-RS) Save DICOM Structured Reports from Measurement Table back to archive (#236)
* Small refactor into Table Class setting events as static object into class

* feature(STOW-SR) : Initial changes to stow when we have Server.

* Improvements into requests and small fix into style

* Small fix for jumpToRow without refheshing page

* Handling STOW-SR once we don't have server

* feature(STOW-SR) Refactor

* Merge request with makeRequest and delete old file

* Expose wadoproxy to client and update measurement-table to start using wadoproxy.getServerUrl

* Move WADOProxy.getServerUrl to Measurement-table package. Fix querystring issue.

* Remove proxy:enabled in favour of requestOptions.requestFromBrowser

* Bcrypt 2.0.0 to fix Travis
2018-07-31 15:01:26 +02:00
Gustavo André Lelis d94f0eec16 feat(measurement-table) Display support for measurements from DICOM Structured Reports (#225) 2018-07-20 12:40:09 +02:00
Gustavo André Lelis bdba814d52 fix(issue#161) Add (empty) for Studies with no PatientName value (#218) 2018-07-05 11:32:06 +02:00