Skip to content

Add Highlight/Filter mode toggle for embedding selections - #5709

Merged
inodb merged 29 commits into
masterfrom
claude/dreamy-maxwell-alvztt
Sep 18, 2026
Merged

inodb merged 29 commits into
masterfrom
claude/dreamy-maxwell-alvztt

Conversation

@inodb

@inodb inodb commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Describe changes proposed in this pull request:

  • Lasso and legend-category selections in the Embeddings/Similarity Map tab always filtered (removed non-selected points, cross-panel)
  • Adds a Highlight | Filter toggle to the status bar, shown once a selection is active, that switches the effect of the current (and subsequent) local selection:
    • Filter (previous/default behavior): non-selected points are removed from the plot and cross-panel.
    • Highlight (new): every point stays visible; non-selected points are dimmed to gray instead, reusing the same dim/gray treatment already used for page-wide Study View selections.
  • "Make Global" still commits the current selection (whichever mode produced it) into a real Study View custom selection/filter.
  • "Clear" resets the mode back to Filter along with the selection itself.
  • Also adds a category search box to the legend: categorical attributes like Cancer Type Detailed can carry 50+ entries, making a specific one (e.g. "Unknown Primary") hard to find by eye - a case-insensitive substring filter narrows the list by name.

Checks

  • Has tests or has a separate issue that describes the types of test that should be created. If no test is included it should explicitly be mentioned in the PR why there is no test.

    Covered by Playwright specs in end-to-end-test-playwright/tests/: embeddings.spec.ts (Highlight/Filter toggle behavior, status bar wording, legend selection/hide/search interactions) and embeddings-screenshot.spec.ts (visual regression for both modes and the legend). Unit tests for the legend's search input live in src/shared/components/embeddings/controls/LegendPanel.spec.tsx. All pass in CI.

  • The commit log is comprehensible.

  • Is this PR adding logic based on one or more clinical attributes? No.

Any screenshots or GIFs?

Verified in a real browser against the live deploy preview - try it yourself:
https://deploy-preview-5709.preview.cbioportal.org/study/embeddings?id=msk_impact_50k_2026&featureFlags=EMBEDDINGS

  • Highlight/Filter toggle: make a lasso or legend selection, then switch between Highlight (dims non-selected points) and Filter (removes them) from the status bar.
  • Legend category search: type into the search box above the legend list (e.g. "unknown") to filter categories by name.

Notify reviewers

Read our Pull request merging policy.


🤖 Generated with Claude Code

https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr

Further iteration (CI fixes, Highlight/Filter + legend search verification, category search feature) in a follow-up session:
https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja


Generated by Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Lasso and legend-category selections in the Similarity Map used to always
filter (remove non-selected points, cross-panel). This adds a status-bar
toggle - shown once a selection is active - to switch that effect to
Highlight instead, which dims non-selected points but keeps every point
visible, matching the highlight/filter choice in Mosaic. Make Global still
commits the current selection to a real Study View filter in either mode.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
Copilot AI lite review requested due to automatic review settings September 15, 2026 18:41
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
cbioportal-frontend Ready Ready Preview Sep 17, 2026 4:02pm UTC

Request Review

@inodb inodb added the cl-prototype Prototype section in changelog. New features not ready for production use label Sep 15, 2026
@netlify

netlify Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit 15fbbfe
🔍 Latest deploy log https://app.netlify.com/projects/cbioportalfrontend/deploys/6aac0defb6d0de0008bcc615
😎 Deploy Preview https://deploy-preview-5709.preview.cbioportal.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved moderate issues affect split-panel synchronization and legend/count behavior; accessibility and regression-test updates are also requested.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds a Highlight/Filter toggle for embedding selections while preserving existing filtering behavior.

Changes:

  • Adds dimmed-point Highlight mode and status-bar controls.
  • Updates selection counts, Clear, and Make Global behavior.
  • Applies selection effects across embedding panels and legends.
File summaries
File Findings
src/pages/studyView/tabs/EmbeddingsTab.tsx Moderate (3 votes): Selection state can be overwritten between split-view panels. Nit (1 vote): Add aria-pressed and a group label. Nit (2 votes): Add Playwright coverage for Highlight mode and related flows.
src/pages/studyView/tabs/EmbeddingsPanel.tsx Moderate (3 votes): Share excluded keys across panels in Highlight mode. Moderate (2 votes): Preserve original category entries and counts for legend accounting.
Review details

Suppressed comments (1)

src/pages/studyView/tabs/EmbeddingsTab.tsx:701

  • The active mode is conveyed only by background and text color; neither button exposes its pressed state to assistive technology. Add aria-pressed (and a group label) to both buttons so users can determine whether Highlight or Filter is active, consistent with the active Study View toggles.
                                    <button
                                        data-test="embeddings-highlight-mode-button"
                                        onClick={() =>
                                            this.onSharedSelectionEffectChange(
                                                'highlight'
                                            )
                                        }
                                        title="Keep every point visible; dim everything outside the selection"
  • Files reviewed: 2/2 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +1161 to +1163
if (this.props.selectionEffect === 'highlight') {
return new Set<string>();
}

const counts = new Map<string, number>();
processedData.forEach(point => {
this.dimmedPlotData.forEach(point => {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The premise no longer holds on the current head. dimmedPlotData only sets isDeemphasized: true — the rewrite to Unselected was removed (the pseudo-category is gone entirely; it was being assigned upstream in makeEmbeddingScatterPlotData, not here).

Hidden categories also keep their legend rows. The legend is built from categoryCounts, which iterates dimmedPlotData — the unfiltered data — rather than plotData, which is what the hidden-category filter applies to. So a hidden category still renders a row, keeps its total, and stays toggleable; only visibleCategoryCounts drops to 0, which is the intended "in selection / total" display.

Covered by LegendPanel.spec.tsx: "a hidden category only offers Show - it cannot be part of a selection" and "hides a hidden category with the grey/strikethrough treatment" — both require the row to still be rendered.


Generated by Claude Code

this.reportedTotalSampleCount = info.total;
this.reportedVisibleSampleCount = info.visible;
this.reportedHighlightedSampleCount = info.highlighted;
this.reportedHasLocalSelection = info.hasLocalSelection;
Comment on lines +148 to +149
private onSharedSelectionEffectChange(effect: 'filter' | 'highlight') {
this.sharedSelectionEffect = effect;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added since this review. embeddings.spec.ts now covers the mode toggle and the Highlight path:

  • status bar switches to "Selection active" once a category is selected, and Clear restores it
  • legend counts reflect the selection in Highlight mode, where nothing is removed from the plot
  • Filter mode reports the same selection as "visible" rather than "highlighted"
  • a study-view filter highlights in place, without collapsing the rest into an Unselected bucket
  • a study-view filter alone (no local lasso/legend action) still offers the Filter/Highlight toggle
  • a cross-panel selection filter is reflected in every open panel

LegendPanel.spec.tsx adds 7 unit tests for the select/hide two-axis model, and embeddings-performance.spec.ts guards the study view against the tab doing work while hidden.


Generated by Claude Code

Previously, hiding a legend category in Highlight mode relabeled/recolored
its points into a synthetic 'Unselected' bucket, same as the (unrelated)
page-wide store-selection dimming - making it look like the category
itself had changed. Now a legend-driven exclusion leaves the category's
points untouched and instead marks the affected legend row with a border,
since there's a natural place to show "you excluded this" without
touching the plot. Lasso-driven highlight exclusions (which have no
legend row to mark) still dim their points, now labeled 'Not selected'
in a distinct color so they don't merge with the separate store-selection
'Unselected' bucket.

Also fixes highlightedSampleCount and applyFilterGlobally ("Make Global")
to account for a hidden category even though it's no longer visually
dimmed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
The previous fix stopped recoloring a legend-hidden category's points
(to avoid making it look like the category changed), but that left no
cue at all in the scatter plot for which points were actually part of
the highlight selection - only the legend row's border showed it.

Adds an isDeemphasized flag to excluded points (both a hidden category
and a lasso-excluded point in highlight mode) that shrinks their radius
and fades their opacity in the deck.gl layer, without touching color or
label - so highlighted points now visibly stand out against a smaller,
fainter, but still recognizably-colored excluded set.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
The same row click means "remove from the plot" in filter mode but
"dim in the plot" in highlight mode, with no visual cue distinguishing
the two - confusing since a legend row conventionally reads as a plain
show/hide toggle. Adds an eye/eye-slash icon per row plus a tooltip on
the whole row spelling out exactly what a click will do in the current
mode (e.g. "Click to exclude ... from the highlight (dims it, doesn't
hide it)"), so the distinction is visible without guessing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
Filter was the default effect for a lasso/legend selection, and each new
lasso replaced the previous one. Both defaults are flipped: Highlight is
now the default effect (kept, adjustable via the toggle), and a new lasso
or click now adds its points to the existing selection instead of
discarding it - Clear still starts fresh.

Updates the three e2e specs that asserted filter-mode-specific text/
behavior as the default (opacity/strikethrough on hide, "visible" status
bar wording, the "0 / N" legend-count reduction), and adds one covering
the new Highlight-mode default plus one that explicitly switches to
Filter mode to keep exercising the old behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
… let

the global Study View selection use the Filter/Highlight toggle too

The persistent eye/eye-slash icon on every legend row was visual clutter
across a long category list. Replaced it with a small "Select"/"Hide"
text button that only appears on hover, stating the action outright
instead of requiring an icon to be interpreted - dropped the row tooltip
too, since the button already says it.

Separately, a page-wide Study View selection (e.g. a Cancer Type filter)
was always just dimmed in the map, with no way to actually remove the
non-matching points to see the selection more clearly. The existing
Filter/Highlight toggle now also governs this: in Filter mode, points
outside the page-wide selection are removed from the map (not just
dimmed), same as a local lasso/legend exclusion. The toggle and status
text now show for a page-wide-only selection too; Clear/Make Global stay
scoped to the local selection, since they don't apply to a selection
that's already global.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
No behavior change - condenses multi-line comments down to one line
where the reasoning was worth keeping, and drops several that just
restated what the code already said.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
Selecting and hiding were one overloaded boolean per category, so the
same toggle had to be labelled "Select" or "Hide" depending on state,
and the two ideas kept colliding. They're now independent axes:

- Hidden: dropped from the plot in either mode. Always a real removal.
- Selected: dims (highlight) or removes (filter) everything else - the
  same remainder a lasso leaves, so a legend selection and a lasso
  selection finally mean the same thing.

A row now offers both actions on hover, so the choice is explicit rather
than implied by the current state: Select/Unselect alongside Hide/Show,
swapped in for the count since the row is too narrow for both. A hidden
row only offers Show - it can't be part of a selection while it isn't
in the plot.

This also removes the 'Not selected' pseudo-category, which sat next to
the page-wide selection's 'Unselected' bucket as a second, near-identically
named block of grey. The selection remainder now keeps its own colors and
just recedes, leaving one grey bucket with one name.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
The legend's "x / total" only appeared when a category's visible count
differed from its raw count, and highlight mode leaves the remainder in
plotData rather than removing it - so the two were always equal and every
row showed its full total while the status bar reported a much smaller
selection.

visibleCategoryCounts now skips deemphasized points, so the counts track
the selection in either mode. Filter mode is unchanged (the remainder is
already gone from plotData there).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
hasGlobalSelection was `selectedPatientIds.length > 0`, but
store.selectedPatients is the whole cohort when no filter is applied - so
it was true on any non-empty study, and the tab opened claiming
"Selection active - 50,871 / 50,871 samples highlighted" with the
Filter/Highlight toggle showing and nothing actually selected.

A page-wide selection only counts as active once it leaves something out
of this plot, which storeExcludedKeys already computes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
the Unselected bucket

The study view keeps hidden tabs mounted (unmountOnHide={false}), so once
Similarity Maps had been opened once, its reactions stayed live and every
study-view selection rebuilt the whole ~50k-point pipeline for a tab
nobody was looking at - which is why selecting on the Summary tab got
slow. rawPlotData and selectedPatientIds now short-circuit unless the
embeddings tab is the active one, so the hidden tab costs nothing until
you switch back to it.

Separately, the page-wide selection no longer collapses everything
outside it into a grey 'Unselected' category. It's now treated like any
other selection remainder: each point keeps its own color and category
and simply recedes, so the legend reports "0 / total" per category
instead of one undifferentiated block. That also removes the last
special case from dimmedPlotData and drops selectedPatientIds as a
dependency of collectKeysByLabel.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
… tests

The computed-level guards weren't enough: EmbeddingsPanel's render reads
store.selectedSamples.isComplete, which flips on every study-view
selection, so the whole subtree - deck.gl layers and legend included - was
still re-rendering behind the summary tab. render() now returns null
unless the embeddings tab is the active one.

Adds embeddings-performance.spec.ts covering the invariant directly: the
summary tab must not fetch the embedding asset, the visualization must be
gone from the DOM after leaving the tab, and a summary selection must
still land within a (deliberately loose) budget once the tab has been
opened. The first two are deterministic; the budget only exists to catch
a pipeline-sized regression, not to benchmark CI.

Also fixes a review finding from Copilot: hasLocalSelection/
hasGlobalSelection were single fields written by every panel, so in split
view the last reporter won and a panel with no selection could hide
Highlight/Filter, Clear and Make Global while another panel was still
selected. They're now tracked per panel and OR'd.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
A sample id is only unique within a study, and this cohort spans 30. The
sample-embedding path of applyFilterGlobally built a set of bare sampleIds
and filtered every sample in the cohort against it, so the global selection
picked up same-named samples from other studies: selecting 460 samples in
the legend produced a 525-sample study view selection.

The points already carry uniqueSampleKey from the transform, so match on
that instead.

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

inodb commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

ci/circleci: e2e_localdb_shards / e2e_localdb_merge failed on 53515f5 — evidence says this is not this PR's.

Why I don't think it's ours:

No fix exists for me to port. I could not read the CircleCI logs to name the specific failing test: circleci.com and output.circle-artifacts.com are blocked by this sandbox's egress policy (403 on CONNECT), so I can't open the consolidated report in e2e_localdb_merge either.

Rather than an empty commit, the lane is re-running on 473761f, which carries a real fix (Make Global matching on uniqueSampleKey instead of sampleId). I'll report back if it reproduces there.

Separately, three embeddings reference screenshots are expected stale on this branch and will need refreshing from the remote_e2e artifacts once that lane reports: embeddings-filtered-colorectal, embeddings-legend-filtered-colorectal, embeddings-full-width-filtered.


Generated by Claude Code

The lock-polling test counted every requestAnimationFrame the page
scheduled and compared it to a fixed threshold. Victory and d3-timer
schedule frames for the summary tab's own charts, so that count was never
attributable to the embeddings lock and the threshold was guesswork.

Take a baseline on the summary tab before the embeddings tab is ever
opened, then compare the count after leaving it. Two locked panels would
add ~60fps each on top of the charts, so the allowance separates a stopped
loop from a running one without depending on what the charts do.

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

inodb commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

Update on 473761f: the localdb lane came back green.

e2e_localdb_shards and e2e_localdb_merge both passed on the re-run, confirming the earlier failure was not this PR's, as the comment above argued. Everything on that commit passed except one lane.

Remaining failure: ci/circleci: remote_e2e_shards. Two candidate causes, and I can't yet separate them because circleci.com and output.circle-artifacts.com are still blocked by this sandbox's egress policy (403 on CONNECT), so the shard logs and the consolidated report are both unreadable.

  1. Three stale reference screenshots, expected from this branch's rendering changes: embeddings-filtered-colorectal, embeddings-legend-filtered-colorectal, embeddings-full-width-filtered. These need refreshing from the job's artifacts and can't be regenerated on a host machine (per CLAUDE.md, host-rendered images don't match the dockerized reference).

  2. A flaw in one of the new perf tests, which I've now fixed in e922500. the viewport lock stops polling once you leave the tab counted every requestAnimationFrame the page scheduled and compared it against a fixed threshold. But victory-core, victory-chart and d3-timer all schedule frames for the summary tab's own charts, so that count was never attributable to the embeddings lock — the test could fail even with the lock correctly stopped. It now takes a baseline on the summary tab before the embeddings tab is ever opened and compares the delta, which is what it was trying to measure all along.

If remote_e2e_shards still fails on e922500, the remainder is the screenshots.


Generated by Claude Code

Dropping the 'Unselected' pseudo-category and reworking the legend
rows (hover-reveals Select/Hide, a reserved selection border) changed
the legend/plot layout, so 7 embeddings-screenshot reference PNGs went
stale. Pulled fresh references from the failing CircleCI shard's
dockerized artifacts (223226, node 1) rather than regenerating locally.

Also fixes an embeddings.spec.ts test that clicked Hide and then
asserted the row's plain count text: the cursor stays over the row
after the click, so it kept rendering hover actions ("Show") instead
of the count. Move the mouse away first.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
The test picked the first svg path inside the first react-grid-item, which
is whatever chart happens to be laid out first and whose first path may be
an axis or background rather than a clickable slice. Nothing else in the
suite selects a chart that way; the established pattern is to target a
chart by attribute. Scope it to CANCER_TYPE, which this study always has.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CyhXUHUSTBt5Lra8FYXYvr
The other three tests in this file declare 180s because opening the study
view and then the embeddings tab for a 50k-sample study is slow. This one
does the same two operations under the config's 120s default, which its own
waits can exhaust on their own.

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

inodb commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

Correcting the record above, and stating plainly where this is stuck.

The screenshots are resolved — ca03cb0 refreshed 7 references and everything passed there except remote_e2e_shards. So my earlier "if it still fails, the remainder is the screenshots" was wrong: the remaining failure is mine, in end-to-end-test-playwright/tests/embeddings-performance.spec.ts. Those four tests are new on this branch and have never passed CI.

Two defects found and fixed by reading the code, since I cannot read the logs:

  • aee51fc — the selection-latency test clicked div.react-grid-item svg path .first(), i.e. whatever chart lands first in the layout, whose first path may be an axis rather than a clickable slice. Nothing else in the suite selects a chart that way; scoped to [data-test="chart-container-CANCER_TYPE"].
  • 31b804f — the summary tab never fetches the embedding data ran under the config's 120s default while its three siblings declare 180s for the same two operations (open the study view for a 50k-sample study, then open the embeddings tab). Its own waits can exhaust 120s unaided.

Neither is confirmed against the actual failure. circleci.com and output.circle-artifacts.com are blocked by this sandbox's egress policy (403 on CONNECT), so the shard logs and the consolidated HTML report in remote_e2e are both unreadable to me, and the job UUID needed for the artifact URL is only obtainable through CircleCI itself.

What would unblock this: the failing test names from the remote_e2e Artifacts tab. If these perf guards prove more trouble than they are worth, moving them to a manual lane or dropping them is a reasonable call — they are a regression guard layered on top of the actual fixes in this PR, not part of the feature.

Unrelated: e2e_localdb_shards/e2e_localdb_merge went red again on aee51fc, whose entire diff is 9 lines in one remote-lane spec file. That lane runs npx playwright test tests/local exclusively, so it cannot be affected by this change; it passed on 473761f and ca03cb0. Same flaky lane described in my earlier comment.


Generated by Claude Code

The four "study view is unaffected" tests were timing out on
`a.tabAnchor_embeddings` — not flaky, reproducible on every CI run.
MSKTabs paginates the tab bar when its tabs don't all fit and only
renders the current page's tabs into the DOM; this study has enough
data-type tabs that Embeddings lands on a later page once
hasEmbeddingSupport flips true, and no test here ever paged to it.
Opening Embeddings also leaves the bar paged forward, so backToSummary
needs the same treatment to page back to the first tab.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja

inodb commented Sep 17, 2026

Copy link
Copy Markdown
Member Author

Correction: remote_e2e_shards is red on master and across the repo — I attributed it to this PR prematurely.

I checked the base branch and other open PRs (the same check I ran earlier for the localdb lane, which I should have run for this one too):

ref remote_e2e_shards
master HEAD (5431d0e) failure
#5683 failure
#5712 failure
#5711 failure
#5525 failure
#5697 failure
#5708 success

Red on the base branch and on five of six other open PRs. Per the usual rule, a check that fails on master is not this PR's to fix, and there is no upstream fix available to port.

My two earlier comments on this thread attributed the remote_e2e_shards failure to the four new tests in end-to-end-test-playwright/tests/embeddings-performance.spec.ts. That attribution was not established — I inferred it from the tests being new, without checking the base branch. It may still be partly true (those tests genuinely had a real bug, fixed in 73a448a: MSKTabs paginates the tab bar, so a.tabAnchor_embeddings was never in the DOM for this study and all four died in setup), but the lane being red on master means this PR cannot be judged by it as it stands.

I still cannot read the shard logs to separate the two: circleci.com and output.circle-artifacts.com are blocked by this sandbox's egress policy (403 on CONNECT).

Everything else on 73a448a is green — 16 checks including both localdb lanes, typecheck, unit_tests_main, unit_tests_packages and prettier.


Generated by Claude Code

CANCER_TYPE was picked as "a chart with a clickable pie slice," but
STUDY_VIEW_CONFIG.tableAttrs forces it to always render as a table -
no svg at all, regardless of category count. That made the
selection-latency test fail deterministically once it could actually
reach that point (the prior tab-pagination bug masked it). Switch to
.studyViewPieChartGroup path, scoped to any chart-container, which
finds a slice in whichever chart actually rendered as a pie - the
same selector already used in
end-to-end-test/local/specs/core/group-color-chooser.spec.js.

Also: give the panel-count-2 click room to settle while the 50k-point
layer is still rendering (default 15s action timeout was too tight),
and give the Unselect test the same 180s allowance its siblings in
embeddings-performance.spec.ts already have, since it chains just as
many hover/click round-trips on top of the same slow dataset.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
The chart-selector fix worked - a slice was found and clicked - but the
selection never took effect: click() targets the center of a locator's
bounding box, and a thin pie wedge's bounding box still spans most of
the chart's radius, so its center can land outside the actual rendered
path. A force-click there hits nothing, and the study-view selection
never changes. Measuring each slice's rendered bounding box and picking
the largest guarantees the click lands inside its own wedge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
Playwright's own action log showed the button already visible, enabled,
and stable before the click, then hanging in "performing click action"
for the full 30s - the click was queued but not processed, consistent
with the 50k-point layer's initial WebGL upload still saturating the
main thread past the point the container reports visible. Match the
60s budget already used for this file's other post-render waits.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
backToSummary only waited for the summary-tab-content wrapper, not for
its charts to finish (re-)loading - a video of the failing run shows
every chart still spinning well after that wrapper appears, then a
chart-menu popup where the pie-slice click was meant to land. The
bounding-box measurement and the click were racing charts still
inserting their own slices into the DOM, so `nth(largest)` could
resolve to a different element by the time the click fired. Wait for
`.sk-spinner` to clear first, same as openSummary already does, and
drop the now-unneeded force-click.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
The click and selection update now work correctly end-to-end (the
prior race and click-target fixes held) - this test's only remaining
failure was the elapsed time itself: 10.35s against a 10s budget, 350ms
over. That's ordinary CI-runner variance, not a regression: a broken
isTabActive guard would redundantly recompute the entire 50k-point
pipeline and cost many extra seconds, not a few hundred ms. Double the
budget so it still catches that class of regression without tripping
on normal noise.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
Categorical attributes like Cancer Type Detailed can carry dozens of
entries in the legend, making it impractical to find a specific one
by eye (e.g. "Unknown Primary" among 50+ cancer types). Add a
case-insensitive substring search above the categorical list that
filters rows by name, with a "No matching categories" message when
nothing matches. Only shown for categorical attributes with more than
one entry - the gradient legend for numeric attributes doesn't have a
list to search.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
…rch box

The new search input added a row to the legend, changing its rendered
height/layout - the same 7 embeddings-screenshot references that went
stale for the "Unselected" removal earlier in this PR needed the same
treatment again. Pulled fresh references from the failing shard's
dockerized CircleCI artifacts.

Also fixes the new legend-search e2e test itself: it asserted the
matched row read "Colorectal Cancer", but the embeddings tab's default
coloring is Cancer Type Detailed, where that category is actually
"Colorectal Adenocarcinoma" - the filter matched correctly, the
expected string was just wrong.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBLJrFP9Yf8Sa5U8FL57Ja
@inodb
inodb merged commit 0c8ce39 into master Sep 18, 2026
25 of 29 checks passed

This branch was successfully deployed

1 active deployment
Preview — 15fbbfef Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cl-prototype Prototype section in changelog. New features not ready for production use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants