-
Notifications
You must be signed in to change notification settings - Fork 1
Improvements - Generate Itinerary Part 2 #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…de responseCache. Corrigido RecenterButton do MapsExpanded que não levava o usuário de volta a sua posição real e sim o jogando para o meio do nada.
…e de Favoritar Local de um Roteiro. Tela nova de favoritos devidamente testada e aprovada para várias situações.
…lean e moderna. Alteração da visualização do calendário em Criar Itinerário. Feita a tela de Controle de Gastos. A nova tela de Controle de Gastos foi testada e provada funcional.
…te feita pelo @FenixReloaded porém agora com uma UI mais moderna, colorida e amigável. Também foi integrado o Expo-Sharing permitindo assim compartilhar esse PDF do roteiro em diversos locais diferentes. Agora alterar o background na tela de Stats daquele itinerário deixa a imagem salva mesmo quando o usuário sair e voltar a aquela tela (persistência de imagem).
…assim a UX do usuário com novos parâmetros de visualização de valores.
…am oficialmente. Dialogs de confirmação de ações foram criados, melhorando assim a UX do usuário em casos de acidentes de navegação e usabilidade. Os itinerários agora são salvos caso tenham tido alguma modificação e sejam fechados da forma correta. Alterada a mensagem para quando não tivermos nenhum roteiro passado disponível. Criados os cards para aparecerem nos filtros.
…ercel para manter nossas APIs sempre live (no momento essa regra vale também ainda para testes e ambientes dev).
…m um erro de Network Request.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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 PR includes multiple improvements to the itinerary generation feature, including bug fixes, UX enhancements, API migrations, and new functionality. However, there is a critical issue with the complete deletion of package.json and package-lock.json files.
Key Changes
- Migration of API endpoints from local development (
SEU-IP-AQUI:3000) to production Vercel deployment - Added API key validation for weather API
- URL updates for visa check and Google Places API endpoints
Reviewed changes
Copilot reviewed 34 out of 36 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | CRITICAL: Entire file deleted - appears unintentional |
| package-lock.json | CRITICAL: Entire file deleted - will break dependency resolution |
| nextjs-api/pages/api/weather.ts | Added weather API key validation with proper error handling |
| expo-app/src/screens/Itinerary/ItineraryVisaCheck.tsx | Updated API endpoint from localhost to Vercel production URL |
| expo-app/src/screens/HomePage/Home.tsx | Updated Google Places API endpoint from localhost to Vercel production URL |
Files not reviewed (1)
- expo-app/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
expo-app/src/screens/AIChat/AIChat.tsx:31
- Unused import responseCache.
import { NetInfoContext } from "@contexts/NetInfo";
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if (!weatherApi) { | ||
| console.error("WEATHER API key is not configured"); | ||
| return res.status(500).json({ error: "Weather API key not configured" }); | ||
| } |
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Good defensive programming: Adding validation to check if the WEATHER API key is configured before making the API call. However, consider using a more specific environment variable check (e.g., process.env.WEATHER_API_KEY) rather than just checking if weatherApi is truthy, as this could catch configuration issues earlier.
| if (dayData && dayData.timeline) { | ||
| dayData.timeline = dayData.timeline.filter((_, i) => i !== index); | ||
| newState[selectedDayIndex] = dayData; | ||
| } |
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This guard always evaluates to true.
| if (dayData && dayData.timeline) { | |
| dayData.timeline = dayData.timeline.filter((_, i) => i !== index); | |
| newState[selectedDayIndex] = dayData; | |
| } | |
| dayData.timeline = dayData.timeline.filter((_, i) => i !== index); | |
| newState[selectedDayIndex] = dayData; |
| import { | ||
| AlertDialog, | ||
| AlertDialogBackdrop, | ||
| AlertDialogBody, | ||
| AlertDialogContent, | ||
| AlertDialogHeader, | ||
| Button, | ||
| ButtonIcon, | ||
| ButtonText, | ||
| Text, | ||
| View, | ||
| Pressable | ||
| } from "@gluestack-ui/themed"; |
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused imports Button, ButtonIcon, ButtonText.
|
|
||
| import AsyncStorage from '@react-native-async-storage/async-storage'; | ||
|
|
||
| import { Expense, ExpensesByCategory, ExpenseCategory } from '../../@types/ExpenseControlTypes'; |
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import ExpenseCategory.
| import { Expense, ExpensesByCategory, ExpenseCategory } from '../../@types/ExpenseControlTypes'; | |
| import { Expense, ExpensesByCategory } from '../../@types/ExpenseControlTypes'; |
| const formatCoordinates = (coordinates: string) => { | ||
| const [lat, lng] = coordinates.split(',').map(coord => coord.trim()); | ||
| return `${parseFloat(lat).toFixed(4)}, ${parseFloat(lng).toFixed(4)}`; | ||
| }; | ||
|
|
Copilot
AI
Dec 2, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable formatCoordinates.
| const formatCoordinates = (coordinates: string) => { | |
| const [lat, lng] = coordinates.split(',').map(coord => coord.trim()); | |
| return `${parseFloat(lat).toFixed(4)}, ${parseFloat(lng).toFixed(4)}`; | |
| }; |
Correções de Inicialização, Favoritos, Calendário, Exportações e Melhorias Gerais
Description
Este Pull Request reúne diversas correções, melhorias de UX, implementação de novas telas e ajustes funcionais importantes para garantir estabilidade, modernidade e melhor experiência do usuário no aplicativo.
Main Changes
Details of the Changes
How to Test
Related Issues
Nenhuma issue mencionada.
Checklist