Skip to content

Conversation

@dippindots
Copy link
Collaborator

@dippindots dippindots commented Sep 29, 2025

Fix cBioPortal/cbioportal#11682

How to test:

  • Please set localStorage.netlify = "deploy-preview-5270--cbioportalfrontend" in the browser console first and refresh the page
  • Study view page
  • Patient view page

Changes Made

Study View - Files & Links Table

  • Made table searchable and downloadable (CSV export)
image
  • Added visual indicators for navigation clarity:

    • User icon (fa-user) with "Open in Patient View" tooltip on "Type Of Resource" column -
      opens resource in Patient View
    • External link icon (fa-external-link) with "Open in new window" text on "Resource URL"
      column - opens URL in new tab
      image
  • Dynamic column naming: When all resources are the same type, "Resources per Patient"
    column header changes to specific type (e.g., "Pathology Reports per Patient")

  • Consistent pluralization: Tab name and header always show plural form when single
    resource type (e.g., "H&E Slides")
    image

  • Show customized text for samples: Since now we only have one link per sample, so we need to change the text to better convey what do we have: e.g. xx H&E Samples with Slides
    image

  • Hide Recources Per Patient column: For the same reason (we only have one link per sample), we should hide this column too

Patient View - Files & Links Table

  • Made table searchable and downloadable (CSV export)
image
  • Added user icon (fa-user) on resource name column to indicate it opens in Patient View

  • Added external link icon (fa-external-link) on "Resource URL" column for external links
    image

  • Dynamic column naming: When all resources are the same type, column shows resource type
    name instead of generic "Resource"
    image

  • Smart tab name pluralization:

    • Single resource: "Pathology Report"
    • Multiple resources: "Pathology Reports (3)"

Patient View - Resource Viewer

  • Added resource counter display: "1 of 3", "2 of 3", etc.
  • Uses pluralized resource names throughout (title and metadata)
  • Helps users track position when navigating through multiple resources
Screenshot 2025-11-06 at 5 28 36 PM

@dippindots dippindots force-pushed the improve-resources-feature branch from b4819eb to 22011aa Compare October 30, 2025 21:29
@dippindots dippindots force-pushed the improve-resources-feature branch 2 times, most recently from 491ff4e to 3bdfd19 Compare November 6, 2025 22:37
@dippindots dippindots marked this pull request as ready for review November 6, 2025 22:37
@dippindots dippindots self-assigned this Nov 6, 2025
- Study View page: make table searchable and downloadable
- Patient View page: make table searchable and downloadable
…art pluralization

  - Study View: Added visual indicators (user icon for Patient View links, external link icon for
  new window links) to clarify navigation destinations
  - Dynamic column headers that adapt based on resource type (e.g., "Pathology Reports per Patient")
  - Patient View: Simplified table by removing URL/Description columns, added resource counter
  (e.g., "1 of 3")
  - Consistent pluralization of resource names across tabs, headers, and metadata
@dippindots dippindots force-pushed the improve-resources-feature branch from 3bdfd19 to df4c5ec Compare November 26, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EPIC] Resources data feature improvement

1 participant