Skip to content

WSI patient timeline and pathology presentation child - #9

Closed
raylim wants to merge 28 commits into
codex/wsi-release-hardeningfrom
codex/wsi-viewer-navigation
Closed

raylim wants to merge 28 commits into
codex/wsi-release-hardeningfrom
codex/wsi-viewer-navigation

Conversation

@raylim

@raylim raylim commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Scope

This fork-local child owns patient-facing WSI presentation: timeline and clinical-data pathology associations, event synthesis, counts, dates, filtering, navigation, linkouts, patient-specific availability handling, and tab presentation. It retains only the shared timeline hooks required for patient integration and has no dependency on molecular enrichment or the study child.

Dependency boundary

This PR targets cBioPortal/cbioportal-frontend#5708, branch codex/wsi-release-hardening, at 95ce1ecfd5fabf1cc0ab79fd4c2f33c46e533457.

Published child revision: cef8a029e9c0337f20d3f3615fd0d87ad54bfbbc.

WSI availability is recognized from the v3 clinical attributes used by the patient view. A missing hierarchy is treated as absent pathology data; authorization and server failures remain visible, and ordinary clinical timelines are unchanged. No generic timeline cache or molecular enrichment is included.

Validation evidence

The pinned cross-repository workflow run 36072091129 passed the isolated patient child gate and the authenticated/unauthenticated patient full-stack browser/API scenario. Local checks also passed: patient typecheck, 41 focused patient Jest tests including the clinical-attribute tab gate, and the Playwright TypeScript check.

@raylim raylim added the skip-changelog Do not include in release notes label Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch from 15f406f to 7bb12d8 Compare September 19, 2026 21:46
@raylim raylim changed the title Improve native WSI keyboard navigation WSI viewer keyboard navigation child Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch from 7bb12d8 to 8791fc1 Compare September 19, 2026 22:11
@raylim raylim changed the title WSI viewer keyboard navigation child WSI patient timeline and pathology presentation child Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-molecular-context branch from 012d07f to 29029ad Compare September 19, 2026 22:17
@raylim
raylim changed the base branch from codex/wsi-molecular-context to codex/wsi-release-hardening September 19, 2026 22:38
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch 2 times, most recently from e7468eb to 26d87b8 Compare September 20, 2026 00:18
@raylim
raylim force-pushed the codex/wsi-release-hardening branch from 4e3371c to e982b10 Compare September 21, 2026 15:17
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch from 345577e to afa04e7 Compare September 21, 2026 21:01
@raylim
raylim force-pushed the codex/wsi-release-hardening branch from 1a502be to aa653e9 Compare September 22, 2026 01:55
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch from 2c6a1a5 to 53cb0a3 Compare September 22, 2026 02:01
@raylim
raylim changed the base branch from codex/wsi-release-hardening to master September 22, 2026 02:59
@raylim
raylim changed the base branch from master to codex/wsi-release-hardening September 22, 2026 02:59
@raylim
raylim force-pushed the codex/wsi-viewer-navigation branch 8 times, most recently from 6f59cba to 4332f2f Compare September 23, 2026 18:37
…i-patient-auth-fix

# Conflicts:
#	end-to-end-test-playwright/tests/local/helpers.ts
raylim added a commit that referenced this pull request Sep 30, 2026
Adopts the presentation ideas from the native patient child
(#9) in the resource-data patient views:

- Timeline: the PATHOLOGY SLIDES track sits right after Sequencing and
  splits into one row per stain (H&E, IHC, then other stains, Unknown
  last). Events keep their sample-numbered markers and readable tooltip.
- Clinical Data table: rows with the same procedure day, sample, match
  level and stain are merged, listing specimens once and summing slide
  counts. An Open link for several specimens drops the specimen key and
  scopes the Pathology Slides tab to the procedure day instead.
- Undated slides: viewable slides without a procedure day have no
  timeline event, so the Summary and Clinical Data tabs show a notice
  linking to the Pathology Slides tab filtered to undated slides. It is
  shown only for patients whose WSI_PATIENT_SLIDE_COUNT is positive.
- The Pathology Slides tab reads a timepointDays link param (a day or
  "undated") as the viewer's initial time filter; a #wsi:slide= hash
  still wins.

The package's light entry exports countUndatedViewableSlides and
fetchUndatedViewableSlideCount, which read the hierarchy through the
viewer's shared cache.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@raylim

raylim commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

For reference: the resource-data stack's patient pages are in #21. There the timeline track is built from the WSI hierarchy, since resource-data studies no longer load PATHOLOGY SLIDES events. This PR stays on the native track.

@raylim

raylim commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Superseded by cBioPortal#5732 (navigation) and #28 (Summary timeline).

@raylim raylim closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Do not include in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant