From 521d2de4cf426d10ade26f18c14e72731ea9c4fc Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 9 Jun 2025 19:10:49 -0700 Subject: [PATCH] minor (#1261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # READ CAREFULLY THEN REMOVE Remove bullet points that are not relevant. PLEASE REFRAIN FROM USING AI TO WRITE YOUR CODE AND PR DESCRIPTION. IF YOU DO USE AI TO WRITE YOUR CODE PLEASE PROVIDE A DESCRIPTION AND REVIEW IT CAREFULLY. MAKE SURE YOU UNDERSTAND THE CODE YOU ARE SUBMITTING USING AI. - Pull requests that do not follow these guidelines will be closed without review or comment. - If you use AI to write your PR description your pr will be close without review or comment. - If you are unsure about anything, feel free to ask for clarification. ## Description Please provide a clear description of your changes. --- ## Type of Change Please delete options that are not relevant. - [ ] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] ✨ New feature (non-breaking change which adds functionality) - [ ] 💥 Breaking change (fix or feature with breaking changes) - [ ] 📝 Documentation update - [ ] 🎨 UI/UX improvement - [ ] 🔒 Security enhancement - [ ] ⚡ Performance improvement ## Areas Affected Please check all that apply: - [ ] Email Integration (Gmail, IMAP, etc.) - [ ] User Interface/Experience - [ ] Authentication/Authorization - [ ] Data Storage/Management - [ ] API Endpoints - [ ] Documentation - [ ] Testing Infrastructure - [ ] Development Workflow - [ ] Deployment/Infrastructure ## Testing Done Describe the tests you've done: - [ ] Unit tests added/updated - [ ] Integration tests added/updated - [ ] Manual testing performed - [ ] Cross-browser testing (if UI changes) - [ ] Mobile responsiveness verified (if UI changes) ## Security Considerations For changes involving data or authentication: - [ ] No sensitive data is exposed - [ ] Authentication checks are in place - [ ] Input validation is implemented - [ ] Rate limiting is considered (if applicable) ## Checklist - [ ] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document - [ ] My code follows the project's style guidelines - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in complex areas - [ ] I have updated the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix/feature works - [ ] All tests pass locally - [ ] Any dependent changes are merged and published ## Additional Notes Add any other context about the pull request here. ## Screenshots/Recordings Add screenshots or recordings here if applicable. --- _By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._ --- apps/mail/components/connection/add.tsx | 2 +- apps/mail/components/mail/mail-list.tsx | 4 ++-- apps/mail/components/navigation.tsx | 2 +- apps/server/src/lib/auth-providers.ts | 2 +- packages/cli/src/commands/fix-env.ts | 7 ++++++- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/mail/components/connection/add.tsx b/apps/mail/components/connection/add.tsx index ebe9bca7b..da242e08b 100644 --- a/apps/mail/components/connection/add.tsx +++ b/apps/mail/components/connection/add.tsx @@ -12,8 +12,8 @@ import { authClient } from '@/lib/auth-client'; import { Plus, UserPlus } from 'lucide-react'; import { useLocation } from 'react-router'; import { useTranslations } from 'use-intl'; -import { Button } from '../ui/button'; import { motion } from 'motion/react'; +import { Button } from '../ui/button'; import { cn } from '@/lib/utils'; import { useMemo } from 'react'; import { toast } from 'sonner'; diff --git a/apps/mail/components/mail/mail-list.tsx b/apps/mail/components/mail/mail-list.tsx index 29d6fc20f..fd827db7b 100644 --- a/apps/mail/components/mail/mail-list.tsx +++ b/apps/mail/components/mail/mail-list.tsx @@ -892,8 +892,8 @@ export const MailList = memo( if (!vListRef.current) return; const endIndex = vListRef.current.findEndIndex(); if ( - // if the shown items are last 2 items, load more - Math.abs(filteredItems.length - 1 - endIndex) < 1 && + // if the shown items are last 5 items, load more + Math.abs(filteredItems.length - 1 - endIndex) < 5 && !isLoading && !isFetchingNextPage && !isFetchingMail && diff --git a/apps/mail/components/navigation.tsx b/apps/mail/components/navigation.tsx index a693f1e3c..c1e5b133f 100644 --- a/apps/mail/components/navigation.tsx +++ b/apps/mail/components/navigation.tsx @@ -82,7 +82,7 @@ export function Navigation() { return ( <> {/* Desktop Navigation - Hidden on mobile */} -
+