Skip to content

Study View: chart titles centred on one line, a long one ellipsized (STS-HD-1) - #447

Merged
alisman merged 4 commits into
masterfrom
studyview-chart-titles
Nov 19, 2026
Merged

alisman merged 4 commits into
masterfrom
studyview-chart-titles

Conversation

@alisman

@alisman alisman commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Explore's chart titles now follow the portal's chart header (STS-HD-1).

  • The title is bold, centred and on one line. A long one is cut with an ellipsis ("American Joint Committee on Cancer M…").
  • The clinical chart's tooltip now leads with the whole name, then the attribute id and description, as before.
  • What the chart counts ("sample-level · 1,084 samples", "not narrowed by its own filter") moves to a small line of its own under the title. A long title never hides it, and its leading "·" is dropped.
  • The chart menu stays in the card's corner. The title is padded alike on both sides, so it is neither covered nor pulled off centre.

CSS (.facetgrid > .card > .facettitle), plus the titles whose count line began with "· " (clinical, gene status, derived, mutation types, treatments).

Spec IDs

  • Covered: STS-HD-1 (centred, one line, ellipsized).
  • Kept as ours: the count line under the title. The portal's header has the name only. Ours says what the chart counts, which docs/UI.md asks every screen to answer.

Verification

  • Browser, dev server, brca_tcga_pan_can_atlas_2018:
    • Of 17 chart titles, none runs past two lines (title plus count line).
    • Only the three "American Joint Committee on Cancer …" titles are cut, and no count line is.
    • The menu button sits inside the card.
    • The cut title's tooltip starts with the whole name.
    • Screenshot checked. No page errors.
  • No test reads the title text. The e2e only waits for .facettitle to exist.

Not done / follow-ups

Tracker

Under "Found by the re-measurement of 2026-11-18", this line (docs/PORTAL-PARITY.md:411) is ticked:

Scorecard 30-study-summary.md, row STS-HD-1 (was | STS-HD-1 | 🟡 | B | ↓ displayName + "· sample-level · N samples"; gene tables "Mutated Genes (534 profiled samples)" (#261) ✅; but left-aligned and wrapped over two lines ("American Joint Committee on Cancer Metastasis Stage Code"), not centred and ellipsized (\.facettitle`, `app/globals.css:669`) |`):

| STS-HD-1 | ✅ | B | displayName centred on one line, ellipsized ("American Joint Committee on Cancer M…"), the whole name in the tooltip; gene tables "Mutated Genes (534 profiled samples)" (#261); ours adds a count line under the title ("sample-level · 1,084 samples") |

Preview

/lab?tab=explore&study=brca_tcga_pan_can_atlas_2018: the AJCC charts.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht

alisman and others added 3 commits November 19, 2026 10:28
…STS-HD-1)

As the portal's chart header: the title is bold, centred and one line,
cut with an ellipsis when long ("American Joint Committee on Cancer M…"),
its whole name first in the tooltip. What the chart counts moves to a
line of its own under it, so a long title never hides it; the chart menu
stays in the card's corner, the title padded alike on both sides.

Verified on brca: 17 titles, none over two lines, only the three AJCC
ones cut, no count line cut, the menu inside the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
…hout a leading separator

Their count line now sits under the title, as every chart's does since
the titles change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cbiolab-genie Ready Ready Preview Nov 19, 2026 12:16pm UTC
cbiolab-new Ready Ready Preview Nov 19, 2026 12:16pm UTC
cohort-lab Ready Ready Preview Nov 19, 2026 12:16pm UTC

Request Review

@alisman

alisman commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Review: pass. CSS and markup only. Chart titles are one centred line, with a long title ellipsized and padded on both sides, so the chart menu doesn't cover it (STS-HD-1). The count meta moves to its own line, and the tooltip now always carries the full title, so nothing is lost when it's cut. The leading "·" separators go away with the line break. No numbers change.

With the count line under the title, innerText holds a line break that
textContent does not, so the step's before never equalled what its wait
compared and the wait passed at once. Both now read textContent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
@alisman

alisman commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Re-review: pass. aef88b5 only changes the e2e treatment step. It reads the sample table's title with textContent, as its wait does. With the title now ellipsized, innerText and textContent can differ. No code changes.

@alisman
alisman added this pull request to the merge queue Nov 19, 2026
Merged via the queue into master with commit 7cfe838 Nov 19, 2026
12 checks passed
@alisman
alisman deleted the studyview-chart-titles branch November 19, 2026 12:40

This branch was successfully deployed

1 active deployment
Preview – cohort-lab — aef88b5c Deployed Nov 19, 2026 by vercel[bot]
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.

1 participant