Skip to content
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
13 changes: 1 addition & 12 deletions packages/web/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import InviteUserEmail from "./emails/inviteUserEmail";
import JoinRequestApprovedEmail from "./emails/joinRequestApprovedEmail";
import JoinRequestSubmittedEmail from "./emails/joinRequestSubmittedEmail";
import { AGENTIC_SEARCH_TUTORIAL_DISMISSED_COOKIE_NAME, MOBILE_UNSUPPORTED_SPLASH_SCREEN_DISMISSED_COOKIE_NAME, SINGLE_TENANT_ORG_DOMAIN, SOURCEBOT_GUEST_USER_ID, SOURCEBOT_SUPPORT_EMAIL } from "./lib/constants";
import { ApiKeyPayload, RepositoryQuery, TenancyMode } from "./lib/types";
import { ApiKeyPayload, RepositoryQuery } from "./lib/types";
import { withAuthV2, withOptionalAuthV2 } from "./withAuthV2";
import { getBrowsePath } from "./app/[domain]/browse/hooks/utils";

Expand Down Expand Up @@ -171,17 +171,6 @@ export const withOrgMembership = async <T>(userId: string, domain: string, fn: (
});
}

export const withTenancyModeEnforcement = async<T>(mode: TenancyMode, fn: () => Promise<T>) => {
if (env.SOURCEBOT_TENANCY_MODE !== mode) {
return {
statusCode: StatusCodes.FORBIDDEN,
errorCode: ErrorCode.ACTION_DISALLOWED_IN_TENANCY_MODE,
message: "This action is not allowed in the current tenancy mode.",
} satisfies ServiceError;
}
return fn();
}

////// Actions ///////
export const completeOnboarding = async (domain: string): Promise<{ success: boolean } | ServiceError> => sew(() =>
withAuth((userId) =>
Expand Down
32 changes: 0 additions & 32 deletions packages/web/src/app/[domain]/browse/hooks/useBrowsePath.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/web/src/app/[domain]/components/codeHostIconButton.tsx

This file was deleted.

285 changes: 0 additions & 285 deletions packages/web/src/app/[domain]/components/configEditor.tsx

This file was deleted.

Loading
Loading