Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove FF for storage transcripts #8345

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -634,43 +632,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
Loading