diff --git a/app/_home/query-flow.tsx b/app/_home/query-flow.tsx index df0e925c..f04229c4 100644 --- a/app/_home/query-flow.tsx +++ b/app/_home/query-flow.tsx @@ -2,7 +2,8 @@ // cBioPortal's homepage flow: choose studies, then explore them (the lab's Explore, scoped to them) // or query them by gene (the gene query dialog, whose "Submit query" opens the Results page). The // homepage holds it full width and keeps the selection in its URL; the Results page's "Modify -// query" opens it with what the page queried, the dialog starting from the page's genes. +// query" opens it in a dialog with what the page queried, the gene dialog starting from the page's +// genes, and without the way into Explore. import { useState } from "react"; import { Dna, LayoutDashboard } from "lucide-react"; import { Button } from "../_ui/button"; @@ -25,8 +26,10 @@ const analyzeHref = (id: string): string => "/lab?" + new URLSearchParams({ tab: /** Explore on one study with Custom data → Add data open (the lab reads `custom=add`) */ const addDataHref = (id: string): string => "/lab?" + new URLSearchParams({ tab: "explore", study: id, custom: "add" }).toString(); -export function QueryFlow({ initial, onStudies, queryTitle, className }: { +export function QueryFlow({ initial, onStudies, queryTitle, explore = true, className }: { initial: ResultsTarget; + /** offer "Explore selected studies" beside "Query by gene" */ + explore?: boolean; /** the gene dialog's title when "Query by gene" opens it (the homepage's own wording) */ queryTitle?: string; /** the selection as it changes, for a page that keeps it in its URL */ @@ -47,7 +50,7 @@ export function QueryFlow({ initial, onStudies, queryTitle, className }: {
setAsking(null)} />
-

Select studies to explore or query

+

{explore ? "Select studies to explore or query" : "Select studies to query"}

choose([])} />
{filters.length > 0 && ( @@ -69,10 +72,10 @@ export function QueryFlow({ initial, onStudies, queryTitle, className }: {
- + }