diff --git a/src/CqlBuilderPanel/CqlBuilderPanel.tsx b/src/CqlBuilderPanel/CqlBuilderPanel.tsx index 416eacb4..f6ea9c7a 100644 --- a/src/CqlBuilderPanel/CqlBuilderPanel.tsx +++ b/src/CqlBuilderPanel/CqlBuilderPanel.tsx @@ -37,20 +37,13 @@ export default function CqlBuilderPanel({ makeExpanded, }) { const featureFlags = useFeatureFlags(); - const { - QDMValueSetSearch, - CQLBuilderDefinitions, - CQLBuilderIncludes, - qdmCodeSearch, - CQLBuilderParameters, - } = featureFlags; + const { CQLBuilderDefinitions, CQLBuilderIncludes, CQLBuilderParameters } = + featureFlags; // we have multiple flags and need to select a starting value based off of what's available and canEdit. const getStartingPage = (() => { // if cqlBuilderIncludes -> includes // if BuilderDefs -> definitions - // if QDM, then - // if qdmValueSetSearch -> valueSets - // else, codes + // if QDM -> valueSets if (CQLBuilderIncludes) { return "includes"; } @@ -58,10 +51,7 @@ export default function CqlBuilderPanel({ return "definitions"; } if (measureModel?.includes("QDM")) { - if (QDMValueSetSearch) { - return "valueSets"; - } - return "codes"; + return "valueSets"; } })(); @@ -145,9 +135,7 @@ export default function CqlBuilderPanel({ void; CQLBuilderIncludes: boolean; CQLBuilderParameters: boolean; - QDMValueSetSearch: boolean; CQLBuilderDefinitions: boolean; - qdmCodeSearch: boolean; isQDM: boolean; } @@ -15,11 +13,9 @@ export default function CqlBuilderSectionPanelNavTabs(props: NavTabProps) { const { activeTab, setActiveTab, - QDMValueSetSearch, CQLBuilderDefinitions, CQLBuilderIncludes, CQLBuilderParameters, - qdmCodeSearch, isQDM, } = props; @@ -42,7 +38,7 @@ export default function CqlBuilderSectionPanelNavTabs(props: NavTabProps) { value="includes" /> )} - {QDMValueSetSearch && isQDM && ( + {isQDM && ( )} - {qdmCodeSearch && isQDM && ( + {isQDM && ( ({ useFeatureFlags: jest.fn(() => { return { - QDMValueSetSearch: true, CQLBuilderDefinitions: true, CQLBuilderIncludes: true, - qdmCodeSearch: true, }; }), useOktaTokens: () => ({ diff --git a/src/madie-madie-util.d.ts b/src/madie-madie-util.d.ts index c55f6df4..110e10e6 100644 --- a/src/madie-madie-util.d.ts +++ b/src/madie-madie-util.d.ts @@ -3,10 +3,8 @@ declare module "@madie/madie-util" { interface FeatureFlags { CQLBuilderIncludes: boolean; - QDMValueSetSearch: boolean; CQLBuilderDefinitions: boolean; CQLBuilderParameters: boolean; - qdmCodeSearch: boolean; } export const useOktaTokens: (storageKey?: string) => {