Summary
The CLINICAL_FEATURES_ENABLED feature flag was introduced to gate MaveMD clinical features during development. Clinical features are now enabled in all environments (dev, staging, preview, prodapi, live) and the flag is permanently true. It should be removed so that the gated code runs unconditionally.
What to remove
Configuration layer
src/config.js — Remove the CLINICAL_FEATURES_ENABLED property
src/config.d.ts — Remove the type declaration
.env.dev, .env.staging, .env.preview, .env.prodapi, .env.live — Remove the VITE_CLINICAL_FEATURES_ENABLED line from each
Router (src/router/index.ts)
Three route groups are conditionally spread behind the flag. Make them unconditional:
/mavemd route (lines ~54–57)
/variants/:clingenAlleleId route (lines ~171–182)
/variant-measurements/:urn route (lines ~183–192)
Toolbar (src/components/layout/Toolbar.vue)
- Remove the conditional spread around the MaveMD menu item (lines ~100–106) and include it unconditionally.
ScoreSetHistogram (src/components/ScoreSetHistogram.vue)
Six references to the flag:
scoreSetHasCalibrations initialization (line ~280) — remove the config.CLINICAL_FEATURES_ENABLED && guard
clinicalControlsEnabled data property (line ~299) — remove or set to true unconditionally
hasTabBar computed (line ~599) — remove the flag check
scoreSet watcher clinical controls loading (line ~881) — remove the if guard
- Clinical significance classification options watcher (line ~989) — remove the
if guard
renderShader call for calibrations (line ~1125) — remove the flag check
ScoreSetView (src/components/screens/ScoreSetView.vue)
Four references:
v-if="config.CLINICAL_FEATURES_ENABLED" on the clinical mode control container (line ~65) — remove the v-if
:show-protein-structure-button binding (line ~135) — remove the config.CLINICAL_FEATURES_ENABLED condition
v-if="config.CLINICAL_FEATURES_ENABLED" on the assay fact sheet container (line ~161) — remove the v-if
clinicalMode data initialization (line ~521) — set to true unconditionally
Instruction files
.github/instructions/copilot-instructions.md — Remove the VITE_CLINICAL_FEATURES_ENABLED env var entry (line 67) and the feature flag architectural note (line 87)
.github/instructions/routing-and-auth.instructions.md — Remove the "Conditional" row from the route categories table (line 15), remove the "Feature-flagged routes" section (lines 49–55), and update any surrounding text
Acceptance criteria
Summary
The
CLINICAL_FEATURES_ENABLEDfeature flag was introduced to gate MaveMD clinical features during development. Clinical features are now enabled in all environments (dev,staging,preview,prodapi,live) and the flag is permanentlytrue. It should be removed so that the gated code runs unconditionally.What to remove
Configuration layer
src/config.js— Remove theCLINICAL_FEATURES_ENABLEDpropertysrc/config.d.ts— Remove the type declaration.env.dev,.env.staging,.env.preview,.env.prodapi,.env.live— Remove theVITE_CLINICAL_FEATURES_ENABLEDline from eachRouter (
src/router/index.ts)Three route groups are conditionally spread behind the flag. Make them unconditional:
/mavemdroute (lines ~54–57)/variants/:clingenAlleleIdroute (lines ~171–182)/variant-measurements/:urnroute (lines ~183–192)Toolbar (
src/components/layout/Toolbar.vue)ScoreSetHistogram (
src/components/ScoreSetHistogram.vue)Six references to the flag:
scoreSetHasCalibrationsinitialization (line ~280) — remove theconfig.CLINICAL_FEATURES_ENABLED &&guardclinicalControlsEnableddata property (line ~299) — remove or set totrueunconditionallyhasTabBarcomputed (line ~599) — remove the flag checkscoreSetwatcher clinical controls loading (line ~881) — remove theifguardifguardrenderShadercall for calibrations (line ~1125) — remove the flag checkScoreSetView (
src/components/screens/ScoreSetView.vue)Four references:
v-if="config.CLINICAL_FEATURES_ENABLED"on the clinical mode control container (line ~65) — remove thev-if:show-protein-structure-buttonbinding (line ~135) — remove theconfig.CLINICAL_FEATURES_ENABLEDconditionv-if="config.CLINICAL_FEATURES_ENABLED"on the assay fact sheet container (line ~161) — remove thev-ifclinicalModedata initialization (line ~521) — set totrueunconditionallyInstruction files
.github/instructions/copilot-instructions.md— Remove theVITE_CLINICAL_FEATURES_ENABLEDenv var entry (line 67) and the feature flag architectural note (line 87).github/instructions/routing-and-auth.instructions.md— Remove the "Conditional" row from the route categories table (line 15), remove the "Feature-flagged routes" section (lines 49–55), and update any surrounding textAcceptance criteria
VITE_CLINICAL_FEATURES_ENABLEDenvironment variable is not referenced anywhereconfig.CLINICAL_FEATURES_ENABLEDis not referenced anywhere