Closed austenem closed 4 weeks ago
Both the bulk data section and the table of contents are consuming
useProcessedDatasets
and then callingprocessDataLabel
, can we pull the logic intouseProcessedDatasets
for both of them? Or a new hook which wrapsuseProcessedDatasets
might be best.
I think that's a good idea - just added a wrapper hook, let me know if that looks like what you had in mind.
Summary
Fixes bug causing table of contents on EPIC detail pages to show duplicate entries and not link to the correct sections. Processed dataset sections in the table of contents are now labeled with their status if a duplicate analysis is present, and with their HuBMAP ID if both a duplicate analysis and status is present.
Design Documentation/Original Tickets
CAT-979 Jira ticket
Testing
Tested manually by checking linking for datasets with one or several processed datasets, including an EPIC dataset (HBM969.VCBV.738).
Screenshots/Video
HBM969.VCBV.738
Local: ![Screenshot 2024-10-29 at 2 16 22 PM](https://github.com/user-attachments/assets/4179a388-9059-46e2-9b76-09f2f073c93f) Dev: ![Screenshot 2024-10-29 at 2 28 27 PM](https://github.com/user-attachments/assets/a47ee52b-108e-47ba-8e13-eb551af02b04)HBM592.JGSQ.253
Local: ![Screenshot 2024-10-29 at 2 15 57 PM](https://github.com/user-attachments/assets/6aa97cd5-1279-45cf-ad9a-7ed64655b63e) Dev: ![Screenshot 2024-10-29 at 2 28 53 PM](https://github.com/user-attachments/assets/341de7f5-98f2-43fb-8102-81ca3b67bf90)Checklist
CHANGELOG-your-feature-name-here.md
is present in the root directory, describing the change(s) in full sentences.