-
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-902] Replace DAC Column with Data Use Column in Data Library Dataset Table #2705
Conversation
label: `DAC for dataset ${dataset.datasetId}: ${dataset.dac?.dacName}` | ||
}) | ||
cellStyle: makeHeaderStyle(cellWidths.dataUse), | ||
cellDataFn: (dataset: DatasetTerm) => { |
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.
This whole function reuses the Data Use logic used on the DAC Datasets table (in the file DACDatasetTableCellData.jsx) to maintain consistency in how each table's Data Use column behaves/looks. It's not as clean as the other cellDataFn's in this file so I'm open to feedback/suggestions on what to do here if this isn't the best approach
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.
Update - Adjusted to using helper function instead
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.
I think that's okay. I would rather it be different here than duplicate the logic in multiple places.
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.
this looks fantastic, great job 👍
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.
LGTM
label: `DAC for dataset ${dataset.datasetId}: ${dataset.dac?.dacName}` | ||
}) | ||
cellStyle: makeHeaderStyle(cellWidths.dataUse), | ||
cellDataFn: (dataset: DatasetTerm) => { |
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.
I think that's okay. I would rather it be different here than duplicate the logic in multiple places.
Addresses
https://broadworkbench.atlassian.net/browse/DT-902
Summary
Replaces the DAC column in the Data Library Dataset table with a Data Use column
Column displays Data Use codes (primary and secondary) and has a tooltip explaining each code when you hover over that cell in the table
Screen.Recording.2024-10-31.at.4.19.40.PM.mov
Have you read Terra's Contributing Guide lately? If not, do that first.