-
Notifications
You must be signed in to change notification settings - Fork 4
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
[DT-899] Disable checkmarks and add tooltips for open or external datasets #2700
[DT-899] Disable checkmarks and add tooltips for open or external datasets #2700
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the commented out code in DatasetSearchTableConstants removed. tool tip text looks good. Overall, I am wondering if this is really a better user experience though? after selection, when access is applied for, the information for each dataset could be given then, instead of here in tooltips. I just wonder if this is the right way to display this information. But, as an incremental improvement I think it makes sense.
sortable: false, | ||
cellStyle: makeHeaderStyle(studyCellWidths.selected), | ||
cellDataFn: datasets => { | ||
const studyDatasetIds = datasets.map(dataset => dataset.datasetId); | ||
const numberSelected = _.intersection(studyDatasetIds, selected).length; | ||
const fullySelected = numberSelected === studyDatasetIds.length; | ||
const indeterminate = numberSelected > 0 && numberSelected < studyDatasetIds.length; | ||
const checkboxId = `${datasets[0].study.studyId}-is-selected-checkbox`; | ||
const isSelectableStudy = datasets.filter(isSelectable).length === datasets.length; | ||
const tooltipText = 'This study contains some open or external datasets. Please select to apply for access on the individual dataset level.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language here threw me for a loop at first. I would suggest something more like ...
This study contains some open or external datasets. Select the 'View By Datasets' tab to apply for access to 'Controlled Access' datasets in this study.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! See minor language comment inline, otherwise 👍🏽
Addresses
Disables open and external datasets, and studies which include at least one open or external dataset. Adds tooltips for these cases.
Summary
Screen.Recording.2024-10-28.at.1.57.11.PM.mov
Have you read Terra's Contributing Guide lately? If not, do that first.