Skip to content

feat: Gene Page#682

Open
bencap wants to merge 4 commits into
release-2026.2.3from
feature/bencap/283/gene-level-page
Open

feat: Gene Page#682
bencap wants to merge 4 commits into
release-2026.2.3from
feature/bencap/283/gene-level-page

Conversation

@bencap
Copy link
Copy Markdown
Collaborator

@bencap bencap commented May 20, 2026

This pull request introduces several improvements to gene-related UI components and API integration, focusing on enhanced accessibility, better user experience, and improved code organization. Key changes include the addition of a new gene API endpoint, improved gene linking and display in score set rows, better accessibility and customization for collapsible panels, and enhanced feedback for gene sequence copying actions.

Gene Page

  • Adds a new page for viewing gene level identifier information and score sets associated with that gene at /genes/{symbol}.

Gene API Integration:

  • Added a new getGene API function in src/api/mavedb/genes.ts for fetching gene data, and exported it for use in the app. [1] [2]

Score Set Row Enhancements:

  • Updated MvScoreSetRow.vue to display gene targets as links when available, show a "multi-target" pill when appropriate, and refactored computed properties for gene display. [1] [2] [3] [4] [5]

Collapsible Panel Accessibility & Customization:

  • Enhanced MvCollapsible.vue to support an inline-link slot for prominent gene links, added a buttonLabel prop for improved accessibility, and adjusted rendering logic accordingly. [1] [2] [3] [4]

Gene Details & Copy Feedback:

  • Improved the gene details panel to provide user feedback when copying the gene sequence fails (e.g., clipboard API unavailable), and to handle display of offset values more robustly. [1] [2] [3] [4]

New Service Unavailable Component:

  • Added a new MvServiceUnavailable.vue component for consistent handling of service outage messages, including optional retry and navigation actions.

bencap added 4 commits May 20, 2026 16:15
- Add an `inline-link` named slot that, when present, renders a
  separate left-aligned section alongside the toggle button, allowing
  an inline link to coexist with the collapsible header
- Add `buttonLabel` prop to set an accessible `aria-label` on the
  toggle button for improved screen-reader support
…nent

New reusable component for displaying a service/fetch error state with
a customizable title, description, optional retry button, and a
"Back to home" fallback link.
- Add `/genes/:symbol` route and `GeneView` screen component that
  displays gene facts (identifiers, taxonomy, aliases) and all
  published score sets grouped by experiment
- Add `src/api/mavedb/genes.ts` client for the new `/genes/{symbol}`
  API endpoint with paginated score-set support
- Add `src/lib/genes.ts` helpers for formatting gene facts, grouping
  score sets by experiment, and classifying API errors
- Add `src/lib/target-genes.test.ts` and `src/lib/genes.test.ts`
  unit tests covering the new utility functions
- Extend `src/schema/openapi.d.ts` with `GeneResponse` and related
  schemas
…e page

- Make target gene pills in `MvScoreSetRow` link to `/genes/:symbol`
  when a mapped HGNC name is available, using the new
  `getTargetGeneLinkItems` helper
- Add `showMultiTargetPill` prop to `MvScoreSetRow` to optionally
  surface a "multi-target" badge
- Wire `MvTargetsAccordion` collapsible headers to use the new
  `inline-link` slot so gene names link to the gene detail page
- Add accessible `buttonLabel` to each collapsible toggle
- Harden `MvTargetGeneDetails` clipboard copy to handle missing
  `navigator.clipboard` and catch write errors, showing a
  "Copy failed" state
- Add `getTargetGeneRoute` and `getTargetGeneLinkItems` helpers to
  `src/lib/target-genes.ts`
@bencap bencap linked an issue May 20, 2026 that may be closed by this pull request
5 tasks
@bencap bencap requested review from jstone-dev and sallybg May 20, 2026 23:33
@bencap bencap changed the base branch from release-2026.2.2 to release-2026.2.3 May 21, 2026 18:07
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.

Gene Level Clinical Page

1 participant