Skip to content

Commit

Permalink
Remove FF (#8345)
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum authored Oct 30, 2024
1 parent 87919f0 commit ff627ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 deletions.
68 changes: 32 additions & 36 deletions front/pages/w/[wId]/assistant/labs/transcripts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import type { LabsTranscriptsConfigurationResource } from "@app/lib/resources/la
import { useAgentConfigurations } from "@app/lib/swr/assistants";
import { useLabsTranscriptsConfiguration } from "@app/lib/swr/labs";
import { useSpaces } from "@app/lib/swr/spaces";
import { useFeatureFlags } from "@app/lib/swr/workspaces";
import type { PatchTranscriptsConfiguration } from "@app/pages/api/w/[wId]/labs/transcripts/[tId]";

const defaultTranscriptConfigurationState = {
Expand Down Expand Up @@ -86,7 +85,6 @@ export default function LabsTranscriptsIndex({
dataSourcesViews,
}: InferGetServerSidePropsType<typeof getServerSideProps>) {
const sendNotification = useSendNotification();
const { featureFlags } = useFeatureFlags({ workspaceId: owner.sId });
const {
transcriptsConfiguration,
isTranscriptsConfigurationLoading,
Expand Down Expand Up @@ -635,43 +633,41 @@ export default function LabsTranscriptsIndex({
(transcriptsConfigurationState.isGDriveConnected ||
transcriptsConfigurationState.isGongConnected) && (
<>
{featureFlags.includes("labs_transcripts_datasource") && (
<Page.Layout direction="vertical">
<Page.SectionHeader
title="Store transcripts"
description="After each transcribed meeting, store the full transcript in a Dust folder for later use."
<Page.Layout direction="vertical">
<Page.SectionHeader
title="Store transcripts"
description="After each transcribed meeting, store the full transcript in a Dust folder for later use."
/>
<Page.Layout direction="horizontal" gap="xl">
<SliderToggle
selected={storeInFolder}
onClick={() => handleSetStoreInFolder(!storeInFolder)}
/>
<Page.Layout direction="horizontal" gap="xl">
<SliderToggle
selected={storeInFolder}
onClick={() => handleSetStoreInFolder(!storeInFolder)}
/>
<Page.P>Enable transcripts storage</Page.P>
</Page.Layout>
<Page.Layout direction="horizontal">
<div className="w-full">
<div className="overflow-x-auto">
{!isSpacesLoading &&
storeInFolder &&
selectionConfigurations && (
<DataSourceViewsSelector
useCase="transcriptsProcessing"
dataSourceViews={dataSourcesViews}
allowedSpaces={spaces}
owner={owner}
selectionConfigurations={selectionConfigurations}
setSelectionConfigurations={
handleSetSelectionConfigurations
}
viewType={"documents"}
isRootSelectable={true}
/>
)}
</div>
<Page.P>Enable transcripts storage</Page.P>
</Page.Layout>
<Page.Layout direction="horizontal">
<div className="w-full">
<div className="overflow-x-auto">
{!isSpacesLoading &&
storeInFolder &&
selectionConfigurations && (
<DataSourceViewsSelector
useCase="transcriptsProcessing"
dataSourceViews={dataSourcesViews}
allowedSpaces={spaces}
owner={owner}
selectionConfigurations={selectionConfigurations}
setSelectionConfigurations={
handleSetSelectionConfigurations
}
viewType={"documents"}
isRootSelectable={true}
/>
)}
</div>
</Page.Layout>
</div>
</Page.Layout>
)}
</Page.Layout>

<Page.Layout direction="vertical">
<Page.SectionHeader
Expand Down
1 change: 0 additions & 1 deletion types/src/shared/feature_flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export const WHITELISTABLE_FEATURES = [
"usage_data_api",
"okta_enterprise_connection",
"labs_transcripts",
"labs_transcripts_datasource",
"document_tracker",
"use_app_for_header_detection",
"openai_o1_feature",
Expand Down

0 comments on commit ff627ee

Please sign in to comment.