From 31f1726f28178395387ff997a027cf294d77b6ab Mon Sep 17 00:00:00 2001 From: Adam Wright Date: Fri, 4 Sep 2026 22:46:59 +0000 Subject: [PATCH] fix(analysis): say which component your data hit, so it can be read Curators, re-testing #154: "the components are shown, but an indication of which component is hit in the analysis is missing." It was not missing. Run against a real tissue analysis -- the HPA experiment through /ExperimentDigester, posted exactly as the Tissue form posts it -- every component row carries a marker: 8 popups, 15 rows, none unmarked, and the found/not-found split matches the data. So the report is about what the panel looks like, and on that it is right. Three things made a present indication unreadable: - **The marker was on its own line.** The row is a column flex, so a 7px dot sat above the name rather than beside it, unattached to anything. - **A hollow dot was the entire signal** for a component your data missed. On a row with no values beside it there was nothing else to read. - **The values were three bare numbers.** Which tissue each belonged to was in a tooltip, and nobody hovers a tooltip to discover a column exists. Now: the dot sits against the name it belongs to, with a ring that separates found from not-found at a glance; a missed row says "not in your data" in words; and each value is a chip carrying its sample's name. Also fixes the emphasis that was supposed to mark the sample the diagram is coloured by, and never once did. `state.sample` holds the column's *name* -- `samples()[index]` is what sets it -- so reading it as a number gave NaN for every real analysis. It only appeared to work when no sample was set, where the fallback was the first column anyway. Verified on beta across all four states: tissue expression (chips, current sample emphasised), overrepresentation (markers, no chips), a component the data missed, and no analysis at all (no marker, no text). Refs #154 Co-Authored-By: Claude Opus 5 --- .../entity-popup/entity-popup.component.html | 40 +++++++++----- .../entity-popup/entity-popup.component.scss | 55 ++++++++++++++++--- .../entity-popup/entity-popup.component.ts | 17 +++++- 3 files changed, 89 insertions(+), 23 deletions(-) diff --git a/projects/pathway-browser/src/app/diagram/entity-popup/entity-popup.component.html b/projects/pathway-browser/src/app/diagram/entity-popup/entity-popup.component.html index 6b98139e..ee3093a0 100644 --- a/projects/pathway-browser/src/app/diagram/entity-popup/entity-popup.component.html +++ b/projects/pathway-browser/src/app/diagram/entity-popup/entity-popup.component.html @@ -72,29 +72,43 @@