From 44cfca0eeb998caeb130fe3c7be31401b0969639 Mon Sep 17 00:00:00 2001 From: imsophis Date: Fri, 22 May 2026 18:13:22 -0600 Subject: [PATCH 1/4] feat: setup app navigation and tabs --- frontend/package-lock.json | 12 ++++++ frontend/package.json | 1 + frontend/src/app/_layout.tsx | 71 ++++++++++++++++++++++++++++++------ frontend/src/app/alerts.tsx | 15 ++++++++ frontend/src/app/guide.tsx | 15 ++++++++ frontend/src/app/index.tsx | 15 ++++++++ frontend/src/app/profile.tsx | 15 ++++++++ 7 files changed, 133 insertions(+), 11 deletions(-) create mode 100644 frontend/src/app/alerts.tsx create mode 100644 frontend/src/app/guide.tsx create mode 100644 frontend/src/app/profile.tsx diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9a37061..3b9c472 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "dependencies": { "@expo/ui": "~56.0.11", + "@expo/vector-icons": "^15.1.1", "expo": "~56.0.3", "expo-constants": "~56.0.14", "expo-device": "~56.0.4", @@ -1659,6 +1660,17 @@ } } }, + "node_modules/@expo/vector-icons": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/@expo/vector-icons/-/vector-icons-15.1.1.tgz", + "integrity": "sha512-Iu2VkcoI5vygbtYngm7jb4ifxElNVXQYdDrYkT7UCEIiKLeWnQY0wf2ZhHZ+Wro6Sc5TaumpKUOqDRpLi5rkvw==", + "license": "MIT", + "peerDependencies": { + "expo-font": ">=14.0.4", + "react": "*", + "react-native": "*" + } + }, "node_modules/@expo/ws-tunnel": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@expo/ws-tunnel/-/ws-tunnel-1.0.6.tgz", diff --git a/frontend/package.json b/frontend/package.json index 8a855db..9f88bec 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,6 +4,7 @@ "version": "1.0.0", "dependencies": { "@expo/ui": "~56.0.11", + "@expo/vector-icons": "^15.1.1", "expo": "~56.0.3", "expo-constants": "~56.0.14", "expo-device": "~56.0.4", diff --git a/frontend/src/app/_layout.tsx b/frontend/src/app/_layout.tsx index b58e11f..7a02f47 100644 --- a/frontend/src/app/_layout.tsx +++ b/frontend/src/app/_layout.tsx @@ -1,15 +1,64 @@ -import { DarkTheme, DefaultTheme, ThemeProvider } from 'expo-router'; -import { useColorScheme } from 'react-native'; +import { Tabs } from "expo-router"; +import { Ionicons } from "@expo/vector-icons"; -import { AnimatedSplashOverlay } from '@/components/animated-icon'; -import AppTabs from '@/components/app-tabs'; - -export default function TabLayout() { - const colorScheme = useColorScheme(); +export default function Layout() { return ( - - - - + + ( + + ), + }} + /> + + ( + + ), + }} + /> + + ( + + ), + }} + /> + + ( + + ), + }} + /> + ); } diff --git a/frontend/src/app/alerts.tsx b/frontend/src/app/alerts.tsx new file mode 100644 index 0000000..77aabd8 --- /dev/null +++ b/frontend/src/app/alerts.tsx @@ -0,0 +1,15 @@ +import { View, Text } from "react-native"; + +export default function AlertsScreen() { + return ( + + Alertas + + ); +} \ No newline at end of file diff --git a/frontend/src/app/guide.tsx b/frontend/src/app/guide.tsx new file mode 100644 index 0000000..fbdcea9 --- /dev/null +++ b/frontend/src/app/guide.tsx @@ -0,0 +1,15 @@ +import { View, Text } from "react-native"; + +export default function GuideScreen() { + return ( + + Guía + + ); +} \ No newline at end of file diff --git a/frontend/src/app/index.tsx b/frontend/src/app/index.tsx index e69de29..648f45d 100644 --- a/frontend/src/app/index.tsx +++ b/frontend/src/app/index.tsx @@ -0,0 +1,15 @@ +import { View, Text } from "react-native"; + +export default function HomeScreen() { + return ( + + Inicio + + ); +} diff --git a/frontend/src/app/profile.tsx b/frontend/src/app/profile.tsx new file mode 100644 index 0000000..23dee45 --- /dev/null +++ b/frontend/src/app/profile.tsx @@ -0,0 +1,15 @@ +import { View, Text } from "react-native"; + +export default function ProfileScreen() { + return ( + + Perfil + + ); +} \ No newline at end of file From 0e38ce931ac70b7a830402b22ca52d050aae03bb Mon Sep 17 00:00:00 2001 From: Didier Palma Date: Fri, 22 May 2026 18:22:58 -0600 Subject: [PATCH 2/4] EtaCard --- frontend/package-lock.json | 12 ------------ frontend/src/constants/EtaCard.tsx | 0 2 files changed, 12 deletions(-) create mode 100644 frontend/src/constants/EtaCard.tsx diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9a37061..aa6b065 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -5196,9 +5196,6 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -5219,9 +5216,6 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -5242,9 +5236,6 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -5265,9 +5256,6 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ diff --git a/frontend/src/constants/EtaCard.tsx b/frontend/src/constants/EtaCard.tsx new file mode 100644 index 0000000..e69de29 From a2626486c39263ee52fe515a6c12ee40eb5e634c Mon Sep 17 00:00:00 2001 From: Didier Palma Date: Fri, 22 May 2026 18:56:19 -0600 Subject: [PATCH 3/4] moved EtaCard --- frontend/src/components/EtaCard.tsx | 54 +++++++++++++++++++++++++++++ frontend/src/constants/EtaCard.tsx | 0 2 files changed, 54 insertions(+) create mode 100644 frontend/src/components/EtaCard.tsx delete mode 100644 frontend/src/constants/EtaCard.tsx diff --git a/frontend/src/components/EtaCard.tsx b/frontend/src/components/EtaCard.tsx new file mode 100644 index 0000000..3087258 --- /dev/null +++ b/frontend/src/components/EtaCard.tsx @@ -0,0 +1,54 @@ +import { View, Text, StyleSheet } from 'react-native'; +import { Colors } from '../constants/theme'; + +type EtaCardProps = { + minutes?: number; + status?: string; +}; + +export default function EtaCard({ + minutes = 12, + status = 'En Camino', +}: EtaCardProps) { + + const theme = Colors.light; + + return ( + + + + ETA estimado + + + + {minutes} min + + + + {status} + + + + ); +} + +const styles = StyleSheet.create({ + card: { + margin: 15, + padding: 20, + borderRadius: 16, + }, + label: { + fontSize: 12, + marginBottom: 6, + }, + time: { + fontSize: 32, + fontWeight: 'bold', + marginBottom: 6, + }, + status: { + fontSize: 14, + fontWeight: '600', + }, +}); diff --git a/frontend/src/constants/EtaCard.tsx b/frontend/src/constants/EtaCard.tsx deleted file mode 100644 index e69de29..0000000 From 1dadefb5d1a8653e54df1b666dc815cb3e2db7bc Mon Sep 17 00:00:00 2001 From: Didier Palma Date: Fri, 22 May 2026 19:14:46 -0600 Subject: [PATCH 4/4] components --- frontend/src/components/Alertltem.tsx | 0 frontend/src/components/InputField.tsx | 0 frontend/src/components/PrimaryButton.tsx | 0 frontend/src/components/QuickAction.tsx | 0 frontend/src/components/SectionTitle.tsx | 0 frontend/src/components/StatusBadge.tsx | 0 6 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 frontend/src/components/Alertltem.tsx create mode 100644 frontend/src/components/InputField.tsx create mode 100644 frontend/src/components/PrimaryButton.tsx create mode 100644 frontend/src/components/QuickAction.tsx create mode 100644 frontend/src/components/SectionTitle.tsx create mode 100644 frontend/src/components/StatusBadge.tsx diff --git a/frontend/src/components/Alertltem.tsx b/frontend/src/components/Alertltem.tsx new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/InputField.tsx b/frontend/src/components/InputField.tsx new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/PrimaryButton.tsx b/frontend/src/components/PrimaryButton.tsx new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/QuickAction.tsx b/frontend/src/components/QuickAction.tsx new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/SectionTitle.tsx b/frontend/src/components/SectionTitle.tsx new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/components/StatusBadge.tsx b/frontend/src/components/StatusBadge.tsx new file mode 100644 index 0000000..e69de29