forked from OHIF/Viewers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: responsive study list (OHIF#1068)
* feat: 🎸 Load spinner when selecting gcloud store. Add key on td * feat: 🎸 Code review. Translate loading study status * feat: 🎸 Code review. Minor code refactoring * fix: add missing study and index declerations * Newer version of react-dates (calendar input component) * Add useMedia hook * Add useDebounce hook * Export hooks for consumption * Pull search filter into own component * StudyListWithData to StudyListRoute * Rename pagination component * Rename Toolbar * CustomeDateRangePicker to plain ol' css * Remove unused styles * Misc * Magic to make our "OR" filters work * Play w/ Mobile styles * Fix pagination pushing out max width for viewport * Tidy up small and medium templates * Remove unecessary nesting * Better mobile header and logo styles * Fix studyList font size * Remove unused code * hookup on click * Fix table search selectors * Cypress uses medium width * Remove irrelevant test * Fix primary sort * Fix sort for our smaller displays * fix study list sometimes longer than specified rowsPerPage * Simplify date picker styles * restore study date filters * Fix about table styling * fix take value for search * Fix header sizing for viewer and list route * Remove dead code * Restore isLoading * Update platform/ui/src/components/studyList/StudyList.styl Co-Authored-By: Rodrigo Antinarelli <[email protected]> * Attempt first usage of translations w/ hooks * Pull from react-i18n library * Fit presets on to a single line * add no results message * Show error message in studyList table * Update input selectors for e2e tests * Make sure messages span all columns * fix test selector for table results * Skip hover for result rows * fix imports * Date filtering w/ config * Default export * Pushed to PageComponent * Remove DropZone This previously only worked for null/undefined studies. I'm unable to trigger the state by testing the data. This "might" have happened when using a fresh/empty PACS; but even an empty array of studies would not show
- Loading branch information
Showing
35 changed files
with
1,799 additions
and
1,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
platform/ui/src/components/studyList/CustomDateRangePicker.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* NOTE: the order of these styles DO matter */ | ||
|
||
/* Will edit everything selected including everything between a range of dates */ | ||
.CalendarDay__selected_span { | ||
background: var(--table-text-secondary-color); | ||
color: #fff; | ||
border-color: #e4e7e7; | ||
} | ||
|
||
/* Will edit selected date or the endpoints of a range of dates */ | ||
.CalendarDay__selected { | ||
background: var(--table-text-secondary-color); | ||
color: #fff; | ||
border-color: #e4e7e7; | ||
} | ||
|
||
/* Will edit when hovered over. _span style also has this property */ | ||
.CalendarDay__selected:hover { | ||
background: var(--table-text-secondary-color); | ||
color: #fff; | ||
border-color: #e4e7e7; | ||
} | ||
|
||
/* Will edit when the second date (end date) in a range of dates | ||
is not yet selected. Edits the dates between your mouse and said date */ | ||
.CalendarDay__hovered_span:hover, | ||
.CalendarDay__hovered_span { | ||
background: var(--table-text-secondary-color); | ||
color: #fff; | ||
border-color: #e4e7e7; | ||
} | ||
|
||
/* EXTERIOR INPUT STYLE */ | ||
/* Container - placement */ | ||
.DateRangePicker { | ||
height: 40px; | ||
margin: 0 5px 20px 5px; | ||
cursor: pointer; | ||
border: none; | ||
width: 100%; | ||
} | ||
/* Container - visual */ | ||
.DateRangePickerInput { | ||
width: calc(100% - 10px); /* Just use padding? */ | ||
background-color: var(--input-background-color); | ||
border-color: var(--input-background-color); | ||
color: var(--input-placeholder-color); | ||
height: 40px; | ||
} | ||
|
||
.DateRangePickerInput.DateRangePickerInput__withBorder { | ||
border-radius: 4px; | ||
background-color: var(--input-background-color); | ||
} | ||
|
||
/* Input Container */ | ||
.DateInput { | ||
width: 97px; | ||
height: 38px; | ||
border-radius: 4px; | ||
background-color: var(--input-background-color); | ||
} | ||
|
||
/* Actual Input Element */ | ||
.DateInput > .DateInput_input { | ||
border-color: transparent; | ||
background-color: transparent; | ||
color: var(--input-placeholder-color); | ||
height: 38px; | ||
font-size: 10pt; | ||
padding: 0; | ||
} | ||
|
||
/* PRESETS */ | ||
.PresetDateRangePicker_panel { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.PresetDateRangePicker_button { | ||
margin: 0; | ||
padding: 4px 8px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 0 additions & 84 deletions
84
platform/ui/src/components/studyList/CustomDateRangePicker.styl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,63 @@ | ||
.pagination-area | ||
color: var(--text-secondary-color); | ||
font-size: 13px | ||
font-weight: normal !important | ||
display: flex; | ||
color: var(--text-secondary-color); | ||
font-size: 13px | ||
font-weight: normal !important | ||
|
||
label | ||
font-weight: normal | ||
label | ||
font-weight: normal | ||
|
||
select | ||
margin: 5px | ||
background-color: var(--primary-background-color) | ||
color: white | ||
select | ||
margin: 5px | ||
background-color: var(--primary-background-color) | ||
color: white | ||
|
||
.row | ||
display: flex; | ||
|
||
.rows-dropdown | ||
width: 25%; | ||
padding-right: 15px; | ||
padding-left: 15px; | ||
.rows-dropdown | ||
width: 25%; | ||
padding-right: 15px; | ||
padding-left: 15px; | ||
|
||
.pagination-buttons | ||
width: 75%; | ||
padding-right: 15px; | ||
padding-left: 15px; | ||
.pagination-buttons | ||
width: 75%; | ||
padding-right: 15px; | ||
padding-left: 15px; | ||
|
||
.form-group | ||
margin-bottom: 15px; | ||
.form-group | ||
margin-bottom: 15px; | ||
|
||
.rows-per-page label.wrapperLabel | ||
display: inline-table !important | ||
margin: 0 4px | ||
.rows-per-page label.wrapperLabel | ||
display: inline-table !important | ||
margin: 0 4px | ||
|
||
select | ||
margin: 0px 4px 0px 4px | ||
width: 42px | ||
select | ||
margin: 0px 4px 0px 4px | ||
width: 42px | ||
|
||
.page-buttons | ||
.page-buttons | ||
margin: 0 | ||
text-align: right | ||
font-weight: normal | ||
ul.pagination-control | ||
margin: 0 | ||
text-align: right | ||
font-weight: normal | ||
ul.pagination-control | ||
margin: 0 | ||
|
||
li | ||
display: table-cell | ||
padding: 5px 2px | ||
li | ||
display: table-cell | ||
padding: 5px 2px | ||
|
||
button | ||
padding: 4px 8px | ||
background-color: var(--primary-background-color) | ||
border-color: var(--ui-gray) | ||
color: var(--ui-gray-darkest) | ||
color: white | ||
text-decoration: none | ||
button | ||
padding: 4px 8px | ||
background-color: var(--primary-background-color) | ||
border-color: var(--ui-gray) | ||
color: var(--ui-gray-darkest) | ||
color: white | ||
text-decoration: none | ||
|
||
&:hover:enabled | ||
color: var(--active-color) | ||
&:hover:enabled | ||
color: var(--active-color) | ||
|
||
.active | ||
button | ||
background-color: var(--ui-gray) | ||
border-color: #ddd | ||
color: white | ||
.active | ||
button | ||
background-color: var(--ui-gray) | ||
border-color: #ddd | ||
color: white |
Oops, something went wrong.