Skip to content
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

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

s-rubenstein
Copy link
Contributor

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.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@s-rubenstein s-rubenstein requested a review from a team as a code owner October 28, 2024 17:58
@s-rubenstein s-rubenstein requested review from rushtong and cinyecai and removed request for a team October 28, 2024 17:58
Copy link
Contributor

@rjohanek rjohanek left a 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.';
Copy link
Contributor

@rushtong rushtong Oct 29, 2024

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.

Copy link
Contributor

@rushtong rushtong left a 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 👍🏽

@s-rubenstein s-rubenstein merged commit 358b65c into develop Oct 30, 2024
9 checks passed
@s-rubenstein s-rubenstein deleted the sr/dt-899-disable-open-and-external-checkbox branch October 30, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants