From 0a07169676601c0898b35051ac3e28068d5326c4 Mon Sep 17 00:00:00 2001 From: Hrishabh Ayush Date: Mon, 9 Mar 2026 23:54:24 -0400 Subject: [PATCH 1/2] skip provider dialog, direct Google OAuth --- .../apps/mail/components/home/HomeContent.tsx | 23 +++++++++++++------ Zero/apps/mail/components/navigation.tsx | 23 +++++++++++++------ Zero/apps/mail/lib/auth-client.ts | 4 ---- 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/Zero/apps/mail/components/home/HomeContent.tsx b/Zero/apps/mail/components/home/HomeContent.tsx index 4f5d3cf..2ad574b 100644 --- a/Zero/apps/mail/components/home/HomeContent.tsx +++ b/Zero/apps/mail/components/home/HomeContent.tsx @@ -24,16 +24,16 @@ import { Expand, } from '../icons/icons'; import { PixelatedBackground, PixelatedLeft, PixelatedRight } from '@/components/home/pixelated-bg'; -import { SignInDialog } from '../connection/sign-in-dialog'; import { Tabs, TabsContent } from '@/components/ui/tabs'; +import { useSession, signIn } from '@/lib/auth-client'; import { Link, useNavigate } from 'react-router'; import { Button } from '@/components/ui/button'; import { Balancer } from 'react-wrap-balancer'; -import { useSession } from '@/lib/auth-client'; import { Navigation } from '../navigation'; import { motion } from 'motion/react'; import { Type } from 'lucide-react'; import { useEffect } from 'react'; +import { toast } from 'sonner'; import Footer from './footer'; import React from 'react'; @@ -112,11 +112,20 @@ export default function HomeContent() { Get Started ) : ( - - - + )} diff --git a/Zero/apps/mail/components/navigation.tsx b/Zero/apps/mail/components/navigation.tsx index f6a36c0..049d39b 100644 --- a/Zero/apps/mail/components/navigation.tsx +++ b/Zero/apps/mail/components/navigation.tsx @@ -10,15 +10,15 @@ import { import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from '@/components/ui/sheet'; import { useState, useEffect, useRef, startTransition } from 'react'; import { AnimatedNumber } from '@/components/ui/animated-number'; -import { SignInDialog } from './connection/sign-in-dialog'; +import { useSession, signIn } from '@/lib/auth-client'; import { Separator } from '@/components/ui/separator'; import { useQuery } from '@tanstack/react-query'; import { Link, useNavigate } from 'react-router'; import { Menu, ChevronDown } from 'lucide-react'; import { Button } from '@/components/ui/button'; -import { useSession } from '@/lib/auth-client'; import { GitHub, Star } from './icons/icons'; import { cn } from '@/lib/utils'; +import { toast } from 'sonner'; const aboutLinks = [ { @@ -229,11 +229,20 @@ export function Navigation() { Get Started ) : ( - - - + )} diff --git a/Zero/apps/mail/lib/auth-client.ts b/Zero/apps/mail/lib/auth-client.ts index bad0018..f26662a 100644 --- a/Zero/apps/mail/lib/auth-client.ts +++ b/Zero/apps/mail/lib/auth-client.ts @@ -4,10 +4,6 @@ import type { Auth } from '@zero/server/auth'; const backendURL = import.meta.env.VITE_PUBLIC_BACKEND_URL || 'http://localhost:8787'; -// Debug: Log the backend URL being used -console.log('Auth client baseURL:', backendURL); -console.log('Environment VITE_PUBLIC_BACKEND_URL:', import.meta.env.VITE_PUBLIC_BACKEND_URL); - export const authClient = createAuthClient({ baseURL: backendURL, fetchOptions: { From 44f04722d39a1bb6ec25384feda329c7a21e9c57 Mon Sep 17 00:00:00 2001 From: Hrishabh Ayush Date: Tue, 10 Mar 2026 00:02:29 -0400 Subject: [PATCH 2/2] lint changed files only in CI --- .github/workflows/build-check.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index b381591..46ce08b 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -42,13 +42,25 @@ jobs: fi echo "$CHANGED" | xargs pnpm prettier --check - - name: Lint (OxLint) + - name: Lint changed files (OxLint) working-directory: Zero - run: pnpm dlx oxlint@latest + run: | + CHANGED=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- '*.ts' '*.tsx' | grep '^Zero/' | sed 's|^Zero/||' || true) + if [ -z "$CHANGED" ]; then + echo "No lintable files changed" + exit 0 + fi + echo "$CHANGED" | xargs pnpm dlx oxlint@latest - - name: Lint (ESLint) + - name: Lint changed files (ESLint) working-directory: Zero - run: pnpm lint + run: | + CHANGED=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- '*.ts' '*.tsx' | grep '^Zero/' | sed 's|^Zero/||' || true) + if [ -z "$CHANGED" ]; then + echo "No lintable files changed" + exit 0 + fi + echo "$CHANGED" | xargs pnpm eslint build: name: Build