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

Bm browse view #305

Open
wants to merge 50 commits into
base: dmichaels-20241119-browse-view
Choose a base branch
from
Open

Conversation

Bianca-Morris
Copy link
Collaborator

@Bianca-Morris Bianca-Morris commented Dec 12, 2024

Changelog:

  • In browse.py, added sample_summary.studies=Production&status=released to base query. Removed additional_facets, since defining those in File.json
  • In metadata.py, added status facet support to /peek_metadata
  • In file.json added/re-ordered various facets.
    • Note: There are still a few facets and facet groupings to add. We don't have fields for everything available yet, so I will be adding these as they become available.
  • In App.js:
    • added a scrolledPast460 bit of state + class to body to make styling accommodations for larger space above table on BrowseView.
    • also added context.@atype[0] as a data attribute on body; to make it easier to adjust styling on pages with server render errors
  • In BrowseView.js:
    • Removed a bunch of old CGAP stuff from BrowseView (Note: may be worth re-adding DetailPaneStateCache in future for performance; need to test with more data to see if it'll be necessary)
    • Removed unused filteredFilters method
    • Updated with new layout for browse statistics, table, etc.
      • Note: Some things here are a bit repetitive from benchmarking (Esp. colextmap stuff. Waiting for this to become more stable to merge together into main colextmap.)
    • Reworked component for page title and breadcrumbs
  • Added various components in browse > browse-view for use in BrowseView (I know, very creative naming)
  • Moved a copy of BigDropdownBigLink here from 4DN
    • Did make some changes to this that are smaht-specific... will be worth reviewing BigDropdown in future to see if the edits made across the portals are different enough to justify not putting this in SPC
    • Used this in new version of data tab
  • Made a BrowseViewControllerWithSelections - right now this is basically a copy of TableControllerWithSelections. I anticipate this might change enough in the future to justify having it in a separate component - if that day doesn't come, feel free to merge them.
  • Hid a bunch of BrowseView only facets from benchmarking
  • Broke down benchmarking layout and UI components into generic SlidingSidebarLayout component
  • A variety of styling fixes for weirdness with various error pages and views, usually caused by SlidingSidebarLayout, similar
  • Made some changes in /types/ to add embeds for various fields needed for facets and columns.

Base PR:

  • Adding /browse view. #295
  • NOTE: Set this to @dmichaels-harvard 's branch so that you can get a clearer picture of what I changed in this branch, since I did edit a few things from his branch. We can discuss whether or not it's necessary to merge both of these separately or if we can merge just mine.

Required SPC PRs:

Related Trello Ticket:

Screenshots:
Browse View
Navigation Updates

@Bianca-Morris Bianca-Morris changed the base branch from main to dmichaels-20241119-browse-view December 18, 2024 19:10
@Bianca-Morris Bianca-Morris marked this pull request as ready for review December 18, 2024 19:39
"to": 89,
"label": "80-89"
},
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small note: I think all ages 89 and above will be set to 89, so we may want to have the range be "80-88" and "89 and up" or something similar

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check with Elizabeth; I believe they wanted it to be 90+, but that might have changed.

// File facets used in production browse ui
'access_status',
'donors.display_title',
'donors.age',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Donor Age" and "Donor Sex" facets aren't rendering for me. I'm not sure, but embedding

Suggested change
'donors.age',
"file_sets.libraries.analytes.samples.sample_sources.donor.age",
"file_sets.libraries.analytes.samples.sample_sources.donor.sex",

instead of donors.age and donors.sex may work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting. Can you send a screenshot of what that's looking like for you? It's appearing like this on wolf for me:
Image from Gyazo

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-12-19 at 10 07 24 AM Screenshot 2024-12-19 at 10 07 44 AM For some reason the facet for Donor Age isn't selecting the files, even though they are all from a 47-year-old donor, and for Donor Sex, no value is showing up

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