feature: Hide integrations (#4074)

* hide integrations

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
anovazzi1 2024-10-09 10:04:06 -03:00 committed by GitHub
commit d0bfac3e7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -6,3 +6,4 @@ export const ENABLE_SOCIAL_LINKS = true;
export const ENABLE_BRANDING = true;
export const ENABLE_MVPS = false;
export const ENABLE_CUSTOM_PARAM = false;
export const ENABLE_INTEGRATIONS = false;

View file

@ -1,4 +1,7 @@
import { ENABLE_MVPS } from "@/customization/feature-flags";
import {
ENABLE_INTEGRATIONS,
ENABLE_MVPS,
} from "@/customization/feature-flags";
import { useStoreStore } from "@/stores/storeStore";
import { cloneDeep } from "lodash";
import { useEffect, useState } from "react";
@ -245,7 +248,7 @@ export default function ExtraSidebar(): JSX.Element {
<div key={index}></div>
),
)}
<>
{ENABLE_INTEGRATIONS && (
<ParentDisclosureComponent
defaultOpen={true}
key={`${search.length !== 0}-${getFilterEdge.length !== 0}-Bundle`}
@ -273,7 +276,7 @@ export default function ExtraSidebar(): JSX.Element {
),
)}
</ParentDisclosureComponent>
</>
)}
<ParentDisclosureComponent
defaultOpen={search.length !== 0 || getFilterEdge.length !== 0}
key={`${search.length !== 0}-${getFilterEdge.length !== 0}-Advanced`}

View file

@ -86,7 +86,7 @@ test("user should be able to connect RetrieverTool to another components", async
await chromaDbOutput.hover();
await page.mouse.down();
const retrieverToolInput = await page
.getByTestId("handle-nvidiarerankcomponent-shownode-retriever-left")
.getByTestId("handle-retrievertool-shownode-retriever-left")
.nth(0);
await retrieverToolInput.hover();
await page.mouse.up();