Skip to content

Commit

Permalink
chore: remove feature flag and reduce id to 5characters (#286)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Howard <[email protected]>
  • Loading branch information
tomwisecodes and codeincontext authored Nov 5, 2024
1 parent 9477b75 commit 97dc737
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/api/aila-download-all/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function getHandler(req: Request): Promise<Response> {

const { data } = res;

const filename = `${lessonTitle} - ${lessonExport.id} - ${getReadableExportType(
const filename = `${lessonTitle} - ${lessonExport.id.slice(0, 5)} - ${getReadableExportType(
lessonExport.exportType,
)}.${ext}`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { z } from "zod";
import useAnalytics from "@/lib/analytics/useAnalytics";
import { trackDownload } from "@/utils/trackDownload";
import { trpc } from "@/utils/trpc";
import { useClientSideFeatureFlag } from "@/utils/useClientSideFeatureFlag";

import { getExportsConfig } from "../../ExportsDialogs/exports.helpers";
import { Icon } from "../../Icon";
Expand Down Expand Up @@ -99,12 +98,6 @@ export const DownloadAllButton = ({
const { mutateAsync: zipStatusMutateAsync } =
trpc.exports.checkDownloadAllStatus.useMutation();

const isFeatureEnabled = useClientSideFeatureFlag("download-all-button");
if (!isFeatureEnabled) {
log.info("Download all button is disabled");
return null;
}

if (data && !("error" in data)) {
const fileIdsAndFormats = getFileIdsAndFormats(data);

Expand Down

0 comments on commit 97dc737

Please sign in to comment.