Repository navigation
Study View filter bar: several ranges of one chart as one pill, as the portal writes them (STV-FB-4) - #471
Conversation
…e portal writes them (STV-FB-4) The user's answer (2026-11-19): copy legacy's single pill. When a chart's filter is two or more ranges, the bar shows one interval from the lowest start to the highest end (each end keeping its bound), though it reads wider than the filter when the ranges have gaps; the filter itself is unchanged. Its × removes the chart's filter, and an edited end makes the filter that one interval, as the portal's edit does. Seen on luad: Diagnosis Age (45, 50] and (60, 65] read "45 < x ≤ 65", 99 patients. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review: pass. This applies the user's answer of 2026-11-19 (Study View Q6, STV-FB-4). A chart filter of two or more ranges is now one pill, from the lowest start to the highest end, each end keeping its own bound (open when any range is open there), as the portal's nit: the test comment "the user's answer of 2026-11-19" records history; the comment should say what the test checks. |
Summary
Several ranges of one chart's filter now read as one pill, as the portal writes them (STV-FB-4,
intervalFiltersDisplayValue). This follows the user's answer of 2026-11-19: copy legacy's single pill.filterGroups,removePill,editIntervalandintervalEndsinlib/study-view-pills.ts; the one pill's leaf isALL_LEAVES.Spec IDs
Verification
Browser, dev server, luad: Diagnosis Age's bars (45, 50] and (60, 65] clicked read one pill, "Diagnosis Age : 45 < x ≤ 65", with ends 45 and 65. The selection stays the two ranges (99 patients). The pill's × clears the filter. No page errors.
e2e: the filter-bar step (one range, its ends edited) is unchanged.
Unit tests:
test/study-view-pills.test.ts:npm test6,956 pass, 0 fail;tsc --noEmitand eslint clean.Coverage: passes.
Planted bugs: 2 in
scripts/mutants/study-view/merged-range-pill.ts(guardunit).Tracker
Under "Study View → filters, actions and tabs", this line (docs/PORTAL-PARITY.md:474):
becomes:
Scorecard
31-study-view-shell.md, row STV-FB-4 (was| STV-FB-4 | 🟡 | B | "50 < x ≤ 60", "a ≤ x ≤ b", "> a", "≤ b", one value; ends edited in place (start > end swaps, start = end and empty refused), and an edit makes custom bins on the chart (#203). Separate ranges are separate pills (portal: one merged interval) |):| STV-FB-4 | ✅ | B | "50 < x ≤ 60", "a ≤ x ≤ b", "> a", "≤ b", one value; ends edited in place (start > end swaps, start = end and empty refused), and an edit makes custom bins on the chart (#203). Several ranges one pill, the first range's start to the last's end, as the portal (an edit makes it that one interval) |
Preview
/lab?tab=explore&study=luad_tcga_pan_can_atlas_2018: click two non-adjacent Diagnosis Age bars.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht