From 491afaa43d3f8863f7bcc31f2247d6b3d6361c0d Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Thu, 2 Jul 2020 22:41:55 -0300 Subject: [PATCH] fix: UI tweaks to satisfy OHIF-161, OHIF-254, OHIF-167, OHIF-249, OHIF-170, OHIF-162 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add group hover for borderColor * measurements action buttons hover state * fixes and button/buttongroup/iconButton refactor * OHIF-161: Fix Tracked/Untracked Text in Thumbnail's Tooltip * OHIF-254: Format SR series date * OHIF-167 - Fix Study Date Time format * OHIF-249: Fix viewport border thickness and action bar min height * pass viewportIdentificator to SR Thumbnail * show tooltip when hover over the SR thumbnail * OHIF-170: Display tooltip when hovering over an untracked series in the Viewport Action Bar * Undo accidental date change * Sneak in "Create Report" messaging for createReport notifications * Fix text clipping * Add no-select text styles for action bar, thumbnail, and thumbnail no image (sr) * fix for OHIF-162 Modified to remove Viewport Identifier. Text now only reads: “Structured Report”This was partly to address a bug where the Viewport Identifier was incorrect for all but the first displayed SR. Component API changed for ThumbnailNoImage to accomodate any generic “modalityTooltip” * Some ViewportPane resize magic Co-authored-by: dannyrb --- .../src/_shared/createReportAsync.js | 4 +- .../ActionButtons.jsx | 21 +++---- .../PanelStudyBrowserTracking.jsx | 2 +- platform/ui/src/components/Button/Button.jsx | 9 ++- .../components/ButtonGroup/ButtonGroup.jsx | 18 +++++- .../src/components/IconButton/IconButton.jsx | 9 ++- .../ui/src/components/Thumbnail/Thumbnail.jsx | 2 +- .../ThumbnailList/ThumbnailList.jsx | 15 +++++ .../ThumbnailNoImage/ThumbnailNoImage.jsx | 22 ++++++-- .../ThumbnailTracked/ThumbnailTracked.jsx | 7 ++- .../ViewportActionBar/ViewportActionBar.jsx | 55 +++++++++++-------- .../components/ViewportPane/ViewportPane.jsx | 11 +++- .../ui/src/gatsby-theme-docz/tailwind.css | 2 +- platform/ui/tailwind.config.js | 22 ++++++-- 14 files changed, 139 insertions(+), 60 deletions(-) diff --git a/extensions/measurement-tracking/src/_shared/createReportAsync.js b/extensions/measurement-tracking/src/_shared/createReportAsync.js index 326ad249b..baae99cae 100644 --- a/extensions/measurement-tracking/src/_shared/createReportAsync.js +++ b/extensions/measurement-tracking/src/_shared/createReportAsync.js @@ -25,13 +25,13 @@ async function createReportAsync(servicesManager, dataSource, measurements) { madeInClient: true, }); UINotificationService.show({ - title: 'STOW SR', + title: 'Create Report', message: 'Measurements saved successfully', type: 'success', }); } catch (error) { UINotificationService.show({ - title: 'STOW SR', + title: 'Create Report', message: error.message || 'Failed to store measurements', type: 'error', }); diff --git a/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/ActionButtons.jsx b/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/ActionButtons.jsx index 6d239cf81..bdd22bde0 100644 --- a/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/ActionButtons.jsx +++ b/extensions/measurement-tracking/src/panels/PanelMeasurementTableTracking/ActionButtons.jsx @@ -5,27 +5,22 @@ import { Button, ButtonGroup, Icon, IconButton } from '@ohif/ui'; function ActionButtons({ onExportClick, onCreateReportClick }) { return ( - - + +