feat(filters): save worklist query filters to session storage so that they persist between navigation to the viewer and back (#3749)
Co-authored-by: ladeirarodolfo <39910206+ladeirarodolfo@users.noreply.github.com>
This commit is contained in:
1 parent
db395852b6
commit
2a15ef0e44
13 files changed
+322
-9
No files matched your search
@@ -175,7 +175,7 @@ DateRange.propTypes = {
|
||||
/** YYYYMMDD (19921022) */
|
||||
startDate: PropTypes.string,
|
||||
/** YYYYMMDD (19921022) */
|
||||
endDate: PropTypes.object,
|
||||
endDate: PropTypes.string,
|
||||
/** Callback that received { startDate: string(YYYYMMDD), endDate: string(YYYYMMDD)} */
|
||||
onChange: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
@@ -43,6 +43,7 @@ function Header({
|
||||
isReturnEnabled && 'cursor-pointer'
|
||||
)}
|
||||
onClick={onClickReturn}
|
||||
data-cy="return-to-work-list"
|
||||
>
|
||||
{isReturnEnabled && (
|
||||
<Icon
|
||||
|
||||
@@ -52,7 +52,7 @@ const StudyListFilter = ({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex flex-row">
|
||||
<div className="flex h-[34px] flex-row items-center">
|
||||
{/* TODO revisit the completely rounded style of button used for clearing the study list filter - for now use LegacyButton*/}
|
||||
{isFiltering && (
|
||||
<LegacyButton
|
||||
@@ -76,7 +76,7 @@ const StudyListFilter = ({
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="h6"
|
||||
className="text-primary-light self-end pb-1"
|
||||
className="text-primary-light"
|
||||
>
|
||||
{t('Studies')}
|
||||
</Typography>
|
||||
|
||||
@@ -7,10 +7,13 @@ import Icon from '../Icon';
|
||||
|
||||
const StudyListTableRow = props => {
|
||||
const { tableData } = props;
|
||||
const { row, expandedContent, onClickRow, isExpanded } = tableData;
|
||||
const { row, expandedContent, onClickRow, isExpanded, dataCY } = tableData;
|
||||
return (
|
||||
<>
|
||||
<tr className="select-none">
|
||||
<tr
|
||||
className="select-none"
|
||||
data-cy={dataCY}
|
||||
>
|
||||
<td
|
||||
className={classnames('border-0 p-0', {
|
||||
'border-secondary-light bg-primary-dark border-b': isExpanded,
|
||||
@@ -104,6 +107,7 @@ StudyListTableRow.propTypes = {
|
||||
expandedContent: PropTypes.node.isRequired,
|
||||
onClickRow: PropTypes.func.isRequired,
|
||||
isExpanded: PropTypes.bool.isRequired,
|
||||
dataCY: PropTypes.string,
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user