Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Remove Bitbucket login button from SAAS auth modal (#9258)

Rohit Malhotraba885cd04cbd
diff --git a/frontend/src/components/features/waitlist/auth-modal.tsx b/frontend/src/components/features/waitlist/auth-modal.tsx
index 2bba95560b..3fbafea011 100644
--- a/frontend/src/components/features/waitlist/auth-modal.tsx
+++ b/frontend/src/components/features/waitlist/auth-modal.tsx
@@ -7,7 +7,6 @@ import { ModalBody } from "#/components/shared/modals/modal-body";
import { BrandButton } from "../settings/brand-button";
import GitHubLogo from "#/assets/branding/github-logo.svg?react";
import GitLabLogo from "#/assets/branding/gitlab-logo.svg?react";
-import BitbucketLogo from "#/assets/branding/bitbucket-logo.svg?react";
import { useAuthUrl } from "#/hooks/use-auth-url";
import { GetConfigResponse } from "#/api/open-hands.types";
@@ -24,11 +23,6 @@ export function AuthModal({ githubAuthUrl, appMode }: AuthModalProps) {
identityProvider: "gitlab",
});
- const bitbucketAuthUrl = useAuthUrl({
- appMode: appMode || null,
- identityProvider: "bitbucket",
- });
-
const handleGitHubAuth = () => {
if (githubAuthUrl) {
// Always start the OIDC flow, let the backend handle TOS check
@@ -43,13 +37,6 @@ export function AuthModal({ githubAuthUrl, appMode }: AuthModalProps) {
}
};
- const handleBitbucketAuth = () => {
- if (bitbucketAuthUrl) {
- // Always start the OIDC flow, let the backend handle TOS check
- window.location.href = bitbucketAuthUrl;
- }
- };
-
return (
<ModalBackdrop>
<ModalBody className="border border-tertiary">
@@ -80,16 +67,6 @@ export function AuthModal({ githubAuthUrl, appMode }: AuthModalProps) {
>
{t(I18nKey.GITLAB$CONNECT_TO_GITLAB)}
</BrandButton>
-
- <BrandButton
- type="button"
- variant="primary"
- onClick={handleBitbucketAuth}
- className="w-full"
- startContent={<BitbucketLogo width={20} height={20} />}
- >
- {t(I18nKey.BITBUCKET$CONNECT_TO_BITBUCKET)}
- </BrandButton>
</div>
</ModalBody>
</ModalBackdrop>