Colota - Android GPS Location tracker
ui: redesign status indicators and trip list cards
Max Dietrich9c5953b6c438
diff --git a/apps/mobile/src/components/features/dashboard/DashboardMap.tsx b/apps/mobile/src/components/features/dashboard/DashboardMap.tsxindex 0d74d244..42271d88 100644--- a/apps/mobile/src/components/features/dashboard/DashboardMap.tsx+++ b/apps/mobile/src/components/features/dashboard/DashboardMap.tsx@@ -148,34 +148,14 @@ export function DashboardMap({ coords, tracking, activeZoneName, activeProfileNa{showMap && <MapCenterButton visible={!isCentered} onPress={handleCenterMe} />}{showMap && activeZoneName && (- <View- style={[- styles.topInfoCard,- {- backgroundColor: colors.card,- borderLeftColor: colors.warning- }- ]}- >- <Text style={[styles.infoTitle, { color: colors.text }]}>Paused in {activeZoneName}</Text>- <Text style={[styles.infoSub, { color: colors.textSecondary }]}>- {activeProfileName ? `Profile "${activeProfileName}" resumes on exit` : "Location not being recorded"}- </Text>+ <View style={[styles.statusBar, { backgroundColor: colors.warning + "DD" }]}>+ <Text style={styles.barText}>Paused in {activeZoneName}</Text></View>)}{showMap && !activeZoneName && activeProfileName && (- <View- style={[- styles.topInfoCard,- {- backgroundColor: colors.card,- borderLeftColor: colors.primary- }- ]}- >- <Text style={[styles.infoTitle, { color: colors.text }]}>Profile: {activeProfileName}</Text>- <Text style={[styles.infoSub, { color: colors.textSecondary }]}>Tracking settings adjusted</Text>+ <View style={[styles.statusBar, { backgroundColor: colors.primary + "DD" }]}>+ <Text style={styles.barText}>{activeProfileName}</Text></View>)}</View>@@ -210,18 +190,14 @@ const styles = StyleSheet.create({marginTop: 8,lineHeight: 20},- topInfoCard: {+ statusBar: {position: "absolute",- top: 20,- left: 20,- right: 20,- padding: 16,- borderRadius: 16,- elevation: 8,- shadowOpacity: 0.2,- borderLeftWidth: 5,+ top: 0,+ left: 0,+ right: 0,+ paddingVertical: 6,+ alignItems: "center",zIndex: 5},- infoTitle: { fontSize: 16, ...fonts.bold, marginBottom: 2 },- infoSub: { fontSize: 13 }+ barText: { fontSize: 13, ...fonts.semiBold, color: "#fff" }})diff --git a/apps/mobile/src/components/features/dashboard/QuickAccess.tsx b/apps/mobile/src/components/features/dashboard/QuickAccess.tsxindex 192b9b9e..ed1ba533 100644--- a/apps/mobile/src/components/features/dashboard/QuickAccess.tsx+++ b/apps/mobile/src/components/features/dashboard/QuickAccess.tsx@@ -122,7 +122,7 @@ const styles = StyleSheet.create({shadowOffset: { width: 0, height: 2 },shadowOpacity: 0.05,shadowRadius: 4,- elevation: 2+ elevation: 1},navIconBox: {width: 48,@@ -130,8 +130,7 @@ const styles = StyleSheet.create({borderRadius: 14,justifyContent: "center",alignItems: "center",- marginBottom: 8,- borderWidth: 1+ marginBottom: 8},navLabel: {fontSize: 12,diff --git a/apps/mobile/src/components/features/inspector/TripList.tsx b/apps/mobile/src/components/features/inspector/TripList.tsxindex e143dd22..4c7b815a 100644--- a/apps/mobile/src/components/features/inspector/TripList.tsx+++ b/apps/mobile/src/components/features/inspector/TripList.tsx@@ -47,11 +47,7 @@ export function TripList({ trips, colors, onTripSelect, selectedTripIndex, onExp<Cardvariant="interactive"onPress={() => onTripSelect(item)}- style={[- styles.tripCard,- { borderLeftColor: tripColor },- isSelected && [styles.tripCardSelected, { borderColor: tripColor }]- ]}+ style={[styles.tripCard, isSelected && [styles.tripCardSelected, { borderColor: tripColor }]]}><View style={styles.tripHeader}><View style={styles.tripTitleRow}>@@ -240,8 +236,7 @@ const styles = StyleSheet.create({paddingBottom: 16},tripCard: {- marginBottom: 8,- borderLeftWidth: 3+ marginBottom: 8},tripCardSelected: {borderWidth: 1.5diff --git a/apps/mobile/src/components/features/settings/PresetOption.tsx b/apps/mobile/src/components/features/settings/PresetOption.tsxindex 2fa3c80f..a8b2f3c3 100644--- a/apps/mobile/src/components/features/settings/PresetOption.tsx+++ b/apps/mobile/src/components/features/settings/PresetOption.tsx@@ -109,8 +109,7 @@ const styles = StyleSheet.create({badge: {paddingHorizontal: 8,paddingVertical: 3,- borderRadius: 6,- borderWidth: 1+ borderRadius: 6},badgeContent: {flexDirection: "row",diff --git a/apps/mobile/src/components/features/settings/SyncStrategySettings.tsx b/apps/mobile/src/components/features/settings/SyncStrategySettings.tsxindex 0615801b..946b8393 100644--- a/apps/mobile/src/components/features/settings/SyncStrategySettings.tsx+++ b/apps/mobile/src/components/features/settings/SyncStrategySettings.tsx@@ -148,15 +148,7 @@ export function SyncStrategySettings({{showAdvanced && (<View style={styles.advancedPanel}>{settings.syncPreset === "custom" && (- <View- style={[- styles.customBanner,- {- backgroundColor: colors.info + "15",- borderLeftColor: colors.info- }- ]}- >+ <View style={[styles.customBanner, { backgroundColor: colors.info + "15" }]}><View style={styles.bannerRow}><Lightbulb size={14} color={colors.info} /><Text style={[styles.customBannerText, { color: colors.info }]}>Using custom configuration</Text>@@ -417,8 +409,7 @@ const styles = StyleSheet.create({customBanner: {padding: 14,borderRadius: 10,- marginBottom: 20,- borderLeftWidth: 4+ marginBottom: 20},bannerRow: {flexDirection: "row",diff --git a/apps/mobile/src/components/ui/Card.tsx b/apps/mobile/src/components/ui/Card.tsxindex 7a8e7093..9ceebba7 100644--- a/apps/mobile/src/components/ui/Card.tsx+++ b/apps/mobile/src/components/ui/Card.tsx@@ -41,7 +41,7 @@ export function Card({ children, style, danger = false, variant = "default", onPbackgroundColor: colors.cardElevated,borderColor: "transparent",borderWidth: 0,- elevation: 4,+ elevation: 1,shadowColor: "#000",shadowOffset: { width: 0, height: 2 },shadowOpacity: 0.15,