-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(analytics-chart): move actions into kebab menu [MA-3301] (#1741)
* feat(analytics-chart): move actions into kebab menu [MA-3301] CSV export link moved to inside an action menu * feat(analytics-chart): update component spec [MA-3301] * feat: adding jump to explore link back in [MA-3301] * feat: move modal outside dropdown [MA-3301] * fix: add ff checking * fix: component test * fix: address comment --------- Co-authored-by: Filip Gutica <[email protected]>
- Loading branch information
1 parent
93d89f5
commit ed6a72e
Showing
8 changed files
with
159 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/analytics/analytics-chart/src/composables/useEvauluateFeatureFlag.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { AnalyticsBridge } from '@kong-ui-public/analytics-utilities' | ||
import { inject } from 'vue' | ||
import { INJECT_QUERY_PROVIDER } from '../constants' | ||
|
||
export default function useEvaluateFeatureFlag() { | ||
|
||
const queryBridge: AnalyticsBridge | undefined = inject(INJECT_QUERY_PROVIDER) | ||
|
||
const evaluateFeatureFlag = (key: string, defaultValue: boolean) => { | ||
if (!queryBridge) { | ||
return defaultValue | ||
} | ||
return queryBridge.evaluateFeatureFlagFn(key, defaultValue) | ||
} | ||
|
||
return { | ||
evaluateFeatureFlag, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const INJECT_QUERY_PROVIDER = 'analytics-query-provider' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters