[Query Copilot] Version 2 initial code (#1566)

* Query Copilot Sidecar initial commit

* additional improvements with the Welcome pop

* Additional implementation and messages for sidecar

* introducing copilot version

* Renaming from car to bar

* Image names changed

* fixing PR errors

* additional changes related with the versions

* Additional implementations and fixes

* Removing unused interface

* Additional styling changes and state management

* Additional changes related with Sidebar

---------

Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
This commit is contained in:
Predrag Klepic
2023-08-15 10:01:07 +02:00
committed by GitHub
parent bcedf0a29f
commit 96b88ac344
12 changed files with 549 additions and 13 deletions

View File

@@ -37,6 +37,7 @@ export type Features = {
readonly loadLegacyMongoShellFromBE: boolean;
readonly enableCopilot: boolean;
readonly enableNPSSurvey: boolean;
readonly copilotVersion?: string;
// can be set via both flight and feature flag
autoscaleDefault: boolean;
@@ -106,6 +107,7 @@ export function extractFeatures(given = new URLSearchParams(window.location.sear
loadLegacyMongoShellFromBE: "true" === get("loadlegacymongoshellfrombe"),
enableCopilot: "true" === get("enablecopilot"),
enableNPSSurvey: "true" === get("enablenpssurvey"),
copilotVersion: get("copilotVersion") ? get("copilotVersion") : "v1.0",
};
}