From ba9b21a695a74e36a6ac960ba0fb43cde9eed5f6 Mon Sep 17 00:00:00 2001 From: Deepak Pandey Date: Mon, 15 Sep 2025 13:54:50 +0530 Subject: [PATCH 1/2] Fix OAuth branding and UI improvements - Remove green pre-filled text indicators from form labels for cleaner UI - Clean up unused oauthProvider state variable - Ensure consistent CodeUnia branding throughout the component - Improve form appearance by removing distracting pre-fill indicators --- app/complete-profile/page.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/app/complete-profile/page.tsx b/app/complete-profile/page.tsx index 1c89cec2..6355166d 100644 --- a/app/complete-profile/page.tsx +++ b/app/complete-profile/page.tsx @@ -5,7 +5,7 @@ import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { createClient } from '@/lib/supabase/client'; import { toast } from 'sonner'; -import CodeuniaLogo from '@/components/codeunia-logo'; +import CodeUniaLogo from '@/components/codeunia-logo'; import { InputValidator } from '@/lib/security/input-validation'; import { CheckCircle, XCircle, AlertCircle, Loader2, Sparkles } from 'lucide-react'; import { profileService } from '@/lib/services/profile'; @@ -36,7 +36,6 @@ function CompleteProfileContent() { const [usernameError, setUsernameError] = useState(''); const [user, setUser] = useState(null); const [isValidating, setIsValidating] = useState(true); - const [oauthProvider, setOauthProvider] = useState(''); const usernameCheckTimeout = useRef | null>(null); const getSupabaseClient = () => { @@ -107,8 +106,6 @@ function CompleteProfileContent() { setLastName(oauthLastName); } - // Set OAuth provider for UI display - setOauthProvider(metadata.provider || 'unknown'); console.log('OAuth provider data:', { provider: metadata.provider || 'unknown', @@ -298,7 +295,7 @@ function CompleteProfileContent() { {/* Header */}
- +

Welcome! Let's set up your profile @@ -313,11 +310,7 @@ function CompleteProfileContent() { {/* First Name */}
Date: Mon, 15 Sep 2025 13:57:54 +0530 Subject: [PATCH 2/2] Fix branding to use 'Codeunia' with lowercase 'u' - Change all instances from 'CodeUnia' to 'Codeunia' - Update import statement and component usage - Fix toast message, description text, and footer text - Ensure consistent 'Codeunia' branding throughout the component --- app/complete-profile/page.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/complete-profile/page.tsx b/app/complete-profile/page.tsx index 6355166d..022f8393 100644 --- a/app/complete-profile/page.tsx +++ b/app/complete-profile/page.tsx @@ -5,7 +5,7 @@ import { useRouter, useSearchParams } from 'next/navigation'; import Link from 'next/link'; import { createClient } from '@/lib/supabase/client'; import { toast } from 'sonner'; -import CodeUniaLogo from '@/components/codeunia-logo'; +import CodeuniaLogo from '@/components/codeunia-logo'; import { InputValidator } from '@/lib/security/input-validation'; import { CheckCircle, XCircle, AlertCircle, Loader2, Sparkles } from 'lucide-react'; import { profileService } from '@/lib/services/profile'; @@ -248,7 +248,7 @@ function CompleteProfileContent() { return; } - toast.success('Profile completed successfully! Welcome to CodeUnia! 🎉'); + toast.success('Profile completed successfully! Welcome to Codeunia! 🎉'); router.push(returnUrl); } catch (error) { console.error('Error updating profile:', error); @@ -295,13 +295,13 @@ function CompleteProfileContent() { {/* Header */}
- +

Welcome! Let's set up your profile

- Complete your profile to get started with CodeUnia. This will only take a moment. + Complete your profile to get started with Codeunia. This will only take a moment.

@@ -469,7 +469,7 @@ function CompleteProfileContent() { {/* Footer */}

- By continuing, you agree to CodeUnia's{' '} + By continuing, you agree to Codeunia's{' '} Terms of Service {' '}and{' '} Privacy Policy