Skip to content

Misc fixes that prevented the login flow from working on takeout free#2

Merged
natew merged 3 commits intotamagui:mainfrom
ramarivera:fixes/free-starter-misc-fixes
Feb 4, 2026
Merged

Misc fixes that prevented the login flow from working on takeout free#2
natew merged 3 commits intotamagui:mainfrom
ramarivera:fixes/free-starter-misc-fixes

Conversation

@ramarivera
Copy link
Contributor

This pull request refactors the login page UI and streamlines the authentication flow. The main focus is on simplifying the layout, improving visual consistency, and removing unused screens and debug code. Below are the most important changes grouped by theme:

UI and Layout Improvements:

  • Refactored the LoginPage layout from an XStack with nested YStack to a single YStack, simplifying the structure and ensuring full-width and minimum height for better responsiveness.
  • Updated button styles for email and social login options to use more consistent background colors (bg="$blue10") and removed transition/animation props for a cleaner look. Also added SizableText to the email button for better readability. [1] [2]

Code Clean-up and Removal:

  • Removed the unused waiting-list screen from the authentication stack, streamlining navigation.
  • Removed the unused isWeb and View imports from login.tsx for cleaner code.
  • Eliminated a debug console.info statement from src/zero/client.tsx.

Copilot AI review requested due to automatic review settings February 4, 2026 03:44
@ramarivera
Copy link
Contributor Author

After

CleanShot 2026-02-04 at 04 44 27@2x

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the login page to simplify its layout and remove debug code. The changes streamline the authentication UI by removing animations and consolidating the layout structure from nested XStack/YStack to a single YStack hierarchy.

Changes:

  • Removed debug console.info statement from Zero client
  • Simplified login page layout from XStack with nested YStack to a single YStack structure
  • Removed animation and transition properties from login buttons and elements
  • Removed unused "waiting-list" screen from authentication navigation stack

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/zero/client.tsx Removed debug console.info logging statement
app/(app)/auth/login.tsx Refactored layout structure, removed animations/transitions, updated button styles, removed View import
app/(app)/auth/_layout.tsx Removed unused waiting-list screen from navigation stack

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 97 to 109
<Button
size="$5"
onPress={() => handleSocialLogin('google')}
pressStyle={{
scale: 0.97,
bg: '$color2',
}}
hoverStyle={{
bg: '$color2',
}}
transition="200ms"
enterStyle={{ opacity: 0, scale: 0.95 }}
icon={<GoogleIcon size={18} />}
flex={1}
/>

<Button
size="$5"
onPress={() => handleSocialLogin('apple')}
pressStyle={{
scale: 0.97,
bg: '$color2',
}}
hoverStyle={{
bg: '$color2',
}}
transition="200ms"
enterStyle={{ opacity: 0, scale: 0.95 }}
icon={<AppleIcon size={20} />}
flex={1}
/>
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Google and Apple social login buttons have lost all their interactive styling properties (pressStyle, hoverStyle, transition, and enterStyle). This removes visual feedback when users interact with these buttons. The native version of this file (login.native.tsx) still includes these properties, creating an inconsistency between platforms. Consider restoring these interactive styles for better user experience, or apply the same changes to the native version for consistency.

Copilot uses AI. Check for mistakes.
import { router } from 'one'
import { useState } from 'react'
import { Circle, isWeb, SizableText, Spinner, View, XStack, YStack } from 'tamagui'
import { Circle, isWeb, SizableText, Spinner, XStack, YStack } from 'tamagui'
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description states that "Removed the unused isWeb and View imports from login.tsx", but isWeb is still imported and actively used on lines 47 and 48 to conditionally set padding and maxWidth. Only the View import was removed. The PR description should be corrected to reflect this.

Copilot uses AI. Check for mistakes.
@natew natew merged commit d363db0 into tamagui:main Feb 4, 2026
7 of 8 checks passed
@natew
Copy link
Member

natew commented Feb 4, 2026

thanks a bunch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments