Skip to content

Commit 5abd45a

Browse files
authored
Merge pull request #249 from codeunia-dev/feature/oauth-profile-completion
Feature/oauth profile completion
2 parents 60091f1 + 9d453b4 commit 5abd45a

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

app/complete-profile/page.tsx

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ function CompleteProfileContent() {
3636
const [usernameError, setUsernameError] = useState<string>('');
3737
const [user, setUser] = useState<User | null>(null);
3838
const [isValidating, setIsValidating] = useState(true);
39-
const [oauthProvider, setOauthProvider] = useState<string>('');
4039
const usernameCheckTimeout = useRef<ReturnType<typeof setTimeout> | null>(null);
4140

4241
const getSupabaseClient = () => {
@@ -107,8 +106,6 @@ function CompleteProfileContent() {
107106
setLastName(oauthLastName);
108107
}
109108

110-
// Set OAuth provider for UI display
111-
setOauthProvider(metadata.provider || 'unknown');
112109

113110
console.log('OAuth provider data:', {
114111
provider: metadata.provider || 'unknown',
@@ -251,7 +248,7 @@ function CompleteProfileContent() {
251248
return;
252249
}
253250

254-
toast.success('Profile completed successfully! Welcome to CodeUnia! 🎉');
251+
toast.success('Profile completed successfully! Welcome to Codeunia! 🎉');
255252
router.push(returnUrl);
256253
} catch (error) {
257254
console.error('Error updating profile:', error);
@@ -304,7 +301,7 @@ function CompleteProfileContent() {
304301
Welcome! Let&apos;s set up your profile
305302
</h1>
306303
<p className="text-gray-600 leading-relaxed">
307-
Complete your profile to get started with CodeUnia. This will only take a moment.
304+
Complete your profile to get started with Codeunia. This will only take a moment.
308305
</p>
309306
</div>
310307

@@ -313,11 +310,7 @@ function CompleteProfileContent() {
313310
{/* First Name */}
314311
<div className="space-y-2">
315312
<label className="block text-sm font-semibold text-gray-700">
316-
First Name * {oauthProvider && firstName && (
317-
<span className="text-xs text-green-600 font-normal">
318-
(pre-filled from {oauthProvider})
319-
</span>
320-
)}
313+
First Name *
321314
</label>
322315
<input
323316
type="text"
@@ -332,11 +325,7 @@ function CompleteProfileContent() {
332325
{/* Last Name */}
333326
<div className="space-y-2">
334327
<label className="block text-sm font-semibold text-gray-700">
335-
Last Name * {oauthProvider && lastName && (
336-
<span className="text-xs text-green-600 font-normal">
337-
(pre-filled from {oauthProvider})
338-
</span>
339-
)}
328+
Last Name *
340329
</label>
341330
<input
342331
type="text"
@@ -480,7 +469,7 @@ function CompleteProfileContent() {
480469
{/* Footer */}
481470
<div className="mt-8 pt-6 border-t border-gray-200">
482471
<p className="text-sm text-gray-700 text-center leading-relaxed">
483-
By continuing, you agree to CodeUnia&apos;s{' '}
472+
By continuing, you agree to Codeunia&apos;s{' '}
484473
<Link href="/terms" className="text-blue-600 hover:text-blue-700 hover:underline transition-colors font-medium">Terms of Service</Link>
485474
{' '}and{' '}
486475
<Link href="/privacy" className="text-blue-600 hover:text-blue-700 hover:underline transition-colors font-medium">Privacy Policy</Link>

0 commit comments

Comments
 (0)