Add logic in DE to show NPS Survey (#1565)

* Send messages from DE to Portal to display NPS Survey

* Address comments
This commit is contained in:
sindhuba
2023-08-04 13:24:30 -07:00
committed by GitHub
parent 5f0c7bcea2
commit 92f43c28a7
4 changed files with 50 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ export type Features = {
readonly enableLegacyMongoShellV2Debug: boolean;
readonly loadLegacyMongoShellFromBE: boolean;
readonly enableCopilot: boolean;
readonly enableNPSSurvey: boolean;
// can be set via both flight and feature flag
autoscaleDefault: boolean;
@@ -104,6 +105,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
enableLegacyMongoShellV2Debug: "true" === get("enablelegacymongoshellv2debug"),
loadLegacyMongoShellFromBE: "true" === get("loadlegacymongoshellfrombe"),
enableCopilot: "true" === get("enablecopilot"),
enableNPSSurvey: "true" === get("enableNPSSurvey"),
};
}