Skip to content
Draft
  •  
  •  
  •  
182 changes: 0 additions & 182 deletions apps/expo/I18N_SUMMARY.md

This file was deleted.

54 changes: 27 additions & 27 deletions apps/expo/app/(app)/(tabs)/(home)/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
'use client';

import { AIChatTile } from '@packrat/app/ai/components/AIChatTile';
import { ReportedContentTile } from '@packrat/app/ai/components/ReportedContentTile';
import { AIPacksTile } from '@packrat/app/ai-packs/components/AIPacksTile';
import { AndroidTabBarInsetFix } from '@packrat/app/components/AndroidTabBarInsetFix';
import { Icon } from '@packrat/app/components/Icon';
import { LargeTitleHeaderSearchContentContainer } from '@packrat/app/components/LargeTitleHeaderSearchContentContainer';
import { appConfig, featureFlags } from '@packrat/app/config';
import { FeedTile } from '@packrat/app/feed/components/FeedTile';
import { GuidesTile } from '@packrat/app/guides/components/GuidesTile';
import { cn } from '@packrat/app/lib/cn';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { asNonNullableRef } from '@packrat/app/lib/utils/asNonNullableRef';
import { PackTemplatesTile } from '@packrat/app/pack-templates/components/PackTemplatesTile';
import { CurrentPackTile } from '@packrat/app/packs/components/CurrentPackTile';
import { GearInventoryTile } from '@packrat/app/packs/components/GearInventoryTile';
import { PackCategoriesTile } from '@packrat/app/packs/components/PackCategoriesTile';
import { PackStatsTile } from '@packrat/app/packs/components/PackStatsTile';
import { RecentPacksTile } from '@packrat/app/packs/components/RecentPacksTile';
import { SeasonSuggestionsTile } from '@packrat/app/packs/components/SeasonSuggestionsTile';
import { SharedPacksTile } from '@packrat/app/packs/components/SharedPacksTile';
import { ShoppingListTile } from '@packrat/app/packs/components/ShoppingListTile';
import { WeightAnalysisTile } from '@packrat/app/packs/components/WeightAnalysisTile';
import { TrailConditionsTile } from '@packrat/app/trips/components/TrailConditionsTile';
import { UpcomingTripsTile } from '@packrat/app/trips/components/UpcomingTripsTile';
import { WeatherAlertsTile } from '@packrat/app/weather/components/WeatherAlertsTile';
import { WeatherTile } from '@packrat/app/weather/components/WeatherTile';
import { WildlifeTile } from '@packrat/app/wildlife/components/WildlifeTile';
import { arrayIncludes, assertIsString, objectKeys } from '@packrat/guards';
import type { LargeTitleSearchBarMethods, ListDataItem } from '@packrat/ui/nativewindui';
import {
Expand All @@ -8,33 +35,6 @@ import {
type ListRenderItemInfo,
ListSectionHeader,
} from '@packrat/ui/nativewindui';
import { AndroidTabBarInsetFix } from 'expo-app/components/AndroidTabBarInsetFix';
import { Icon } from 'expo-app/components/Icon';
import { LargeTitleHeaderSearchContentContainer } from 'expo-app/components/LargeTitleHeaderSearchContentContainer';
import { appConfig, featureFlags } from 'expo-app/config';
import { AIChatTile } from 'expo-app/features/ai/components/AIChatTile';
import { ReportedContentTile } from 'expo-app/features/ai/components/ReportedContentTile';
import { AIPacksTile } from 'expo-app/features/ai-packs/components/AIPacksTile';
import { FeedTile } from 'expo-app/features/feed/components/FeedTile';
import { GuidesTile } from 'expo-app/features/guides/components/GuidesTile';
import { PackTemplatesTile } from 'expo-app/features/pack-templates/components/PackTemplatesTile';
import { CurrentPackTile } from 'expo-app/features/packs/components/CurrentPackTile';
import { GearInventoryTile } from 'expo-app/features/packs/components/GearInventoryTile';
import { PackCategoriesTile } from 'expo-app/features/packs/components/PackCategoriesTile';
import { PackStatsTile } from 'expo-app/features/packs/components/PackStatsTile';
import { RecentPacksTile } from 'expo-app/features/packs/components/RecentPacksTile';
import { SeasonSuggestionsTile } from 'expo-app/features/packs/components/SeasonSuggestionsTile';
import { SharedPacksTile } from 'expo-app/features/packs/components/SharedPacksTile';
import { ShoppingListTile } from 'expo-app/features/packs/components/ShoppingListTile';
import { WeightAnalysisTile } from 'expo-app/features/packs/components/WeightAnalysisTile';
import { TrailConditionsTile } from 'expo-app/features/trips/components/TrailConditionsTile';
import { UpcomingTripsTile } from 'expo-app/features/trips/components/UpcomingTripsTile';
import { WeatherAlertsTile } from 'expo-app/features/weather/components/WeatherAlertsTile';
import { WeatherTile } from 'expo-app/features/weather/components/WeatherTile';
import { WildlifeTile } from 'expo-app/features/wildlife/components/WildlifeTile';
import { cn } from 'expo-app/lib/cn';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { asNonNullableRef } from 'expo-app/lib/utils/asNonNullableRef';
import { useMemo, useRef, useState } from 'react';
import { FlatList, Platform, Pressable, Text, View } from 'react-native';

Expand Down
4 changes: 2 additions & 2 deletions apps/expo/app/(app)/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { featureFlags } from 'expo-app/config';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { featureFlags } from '@packrat/app/config';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { NativeTabs } from 'expo-router/unstable-native-tabs';

export default function TabLayout() {
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/app/(app)/(tabs)/catalog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import CatalogItemsScreen from 'expo-app/features/catalog/screens/CatalogItemsScreen';
import CatalogItemsScreen from '@packrat/app/catalog/screens/CatalogItemsScreen';

export default function CatalogItemsPage() {
return <CatalogItemsScreen />;
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/app/(app)/(tabs)/feed/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FeedScreen } from 'expo-app/features/feed';
import { FeedScreen } from '@packrat/app/feed/screens/FeedScreen';

export default function FeedRoute() {
return <FeedScreen />;
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/app/(app)/(tabs)/packs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PackListScreen } from 'expo-app/features/packs/screens/PackListScreen';
import { useColorScheme } from 'expo-app/lib/hooks/useColorScheme';
import { useColorScheme } from '@packrat/app/lib/hooks/useColorScheme';
import { PackListScreen } from '@packrat/app/packs/screens/PackListScreen';
import { StatusBar } from 'expo-status-bar';
import { Platform } from 'react-native';

Expand Down
30 changes: 15 additions & 15 deletions apps/expo/app/(app)/(tabs)/profile/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
import { withAuthWall } from '@packrat/app/auth/hocs';
import { useAuth } from '@packrat/app/auth/hooks/useAuth';
import { useUser } from '@packrat/app/auth/hooks/useUser';
import { AndroidTabBarInsetFix } from '@packrat/app/components/AndroidTabBarInsetFix';
import { Icon } from '@packrat/app/components/Icon';
import { cn } from '@packrat/app/lib/cn';
import { hasUnsyncedChanges } from '@packrat/app/lib/hasUnsyncedChanges';
import { useColorScheme } from '@packrat/app/lib/hooks/useColorScheme';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { testIds } from '@packrat/app/lib/testIds';
import { buildPackTemplateItemImageUrl } from '@packrat/app/lib/utils/buildPackTemplateItemImageUrl';
import { useImagePicker } from '@packrat/app/packs/hooks/useImagePicker';
import { uploadImage } from '@packrat/app/packs/utils/uploadImage';
import { ProfileAuthWall } from '@packrat/app/profile/components';
import { useUpdateProfile } from '@packrat/app/profile/hooks/useUpdateProfile';
import { clientEnvs } from '@packrat/env/expo-client';
import { isString } from '@packrat/guards';
import {
Expand All @@ -13,21 +28,6 @@ import {
ListSectionHeader,
Text,
} from '@packrat/ui/nativewindui';
import { AndroidTabBarInsetFix } from 'expo-app/components/AndroidTabBarInsetFix';
import { Icon } from 'expo-app/components/Icon';
import { withAuthWall } from 'expo-app/features/auth/hocs';
import { useAuth } from 'expo-app/features/auth/hooks/useAuth';
import { useUser } from 'expo-app/features/auth/hooks/useUser';
import { useImagePicker } from 'expo-app/features/packs/hooks/useImagePicker';
import { uploadImage } from 'expo-app/features/packs/utils/uploadImage';
import { ProfileAuthWall } from 'expo-app/features/profile/components';
import { useUpdateProfile } from 'expo-app/features/profile/hooks/useUpdateProfile';
import { cn } from 'expo-app/lib/cn';
import { hasUnsyncedChanges } from 'expo-app/lib/hasUnsyncedChanges';
import { useColorScheme } from 'expo-app/lib/hooks/useColorScheme';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { testIds } from 'expo-app/lib/testIds';
import { buildPackTemplateItemImageUrl } from 'expo-app/lib/utils/buildPackTemplateItemImageUrl';
import * as FileSystem from 'expo-file-system/legacy';
import { Link, router, Stack } from 'expo-router';
import { useState } from 'react';
Expand Down
10 changes: 5 additions & 5 deletions apps/expo/app/(app)/(tabs)/profile/name.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useUser } from '@packrat/app/auth/hooks/useUser';
import { cn } from '@packrat/app/lib/cn';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { testIds } from '@packrat/app/lib/testIds';
import { useUpdateProfile } from '@packrat/app/profile/hooks/useUpdateProfile';
import { Button, Form, FormItem, FormSection, Text, TextField } from '@packrat/ui/nativewindui';
import { useUser } from 'expo-app/features/auth/hooks/useUser';
import { useUpdateProfile } from 'expo-app/features/profile/hooks/useUpdateProfile';
import { cn } from 'expo-app/lib/cn';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { testIds } from 'expo-app/lib/testIds';
import { router, Stack } from 'expo-router';
import * as React from 'react';
import { Alert, Platform, View } from 'react-native';
Expand Down
6 changes: 3 additions & 3 deletions apps/expo/app/(app)/(tabs)/profile/notifications.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Icon } from '@packrat/app/components/Icon';
import { cn } from '@packrat/app/lib/cn';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { Button, Form, FormItem, FormSection, Text, Toggle } from '@packrat/ui/nativewindui';
import { Icon } from 'expo-app/components/Icon';
import { cn } from 'expo-app/lib/cn';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { router, Stack } from 'expo-router';
import * as React from 'react';
import { Platform, Pressable, ScrollView, View } from 'react-native';
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/app/(app)/(tabs)/profile/username.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cn } from '@packrat/app/lib/cn';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import { Button, Form, FormItem, FormSection, Text, TextField } from '@packrat/ui/nativewindui';
import { cn } from 'expo-app/lib/cn';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import { router, Stack } from 'expo-router';
import * as React from 'react';
import { Platform, View } from 'react-native';
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/app/(app)/(tabs)/trips/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { featureFlags } from 'expo-app/config';
import { TripsListScreen } from 'expo-app/features/trips/screens/TripListScreen';
import { featureFlags } from '@packrat/app/config';
import { TripsListScreen } from '@packrat/app/trips/screens/TripListScreen';
import { Redirect } from 'expo-router';
import { StatusBar } from 'expo-status-bar';

Expand Down
26 changes: 13 additions & 13 deletions apps/expo/app/(app)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { use$ } from '@legendapp/state/react';
import { isLoadingAtom, needsReauthAtom } from '@packrat/app/auth/atoms/authAtoms';
import { useAuthInit } from '@packrat/app/auth/hooks/useAuthInit';
import { isAuthed } from '@packrat/app/auth/store';
import { ThemeToggle } from '@packrat/app/components/ThemeToggle';
import { useTranslation } from '@packrat/app/lib/hooks/useTranslation';
import type { TranslationFunction } from '@packrat/app/lib/i18n/types';
import { testIds } from '@packrat/app/lib/testIds';
import { getPackTemplateDetailOptions } from '@packrat/app/pack-templates/utils/getPackTemplateDetailOptions';
import { getPackTemplateItemDetailOptions } from '@packrat/app/pack-templates/utils/getPackTemplateItemDetailOptions';
import SyncBanner from '@packrat/app/packs/components/SyncBanner';
import { getPackDetailOptions } from '@packrat/app/packs/utils/getPackDetailOptions';
import { getPackItemDetailOptions } from '@packrat/app/packs/utils/getPackItemDetailOptions';
import { getTripDetailOptions } from '@packrat/app/trips/utils/getTripDetailOptions';
import { ActivityIndicator } from '@packrat/ui/nativewindui';
import { ThemeToggle } from 'expo-app/components/ThemeToggle';
import { isLoadingAtom, needsReauthAtom } from 'expo-app/features/auth/atoms/authAtoms';
import { useAuthInit } from 'expo-app/features/auth/hooks/useAuthInit';
import { isAuthed } from 'expo-app/features/auth/store';
import { getPackTemplateDetailOptions } from 'expo-app/features/pack-templates/utils/getPackTemplateDetailOptions';
import { getPackTemplateItemDetailOptions } from 'expo-app/features/pack-templates/utils/getPackTemplateItemDetailOptions';
import SyncBanner from 'expo-app/features/packs/components/SyncBanner';
import { getPackDetailOptions } from 'expo-app/features/packs/utils/getPackDetailOptions';
import { getPackItemDetailOptions } from 'expo-app/features/packs/utils/getPackItemDetailOptions';
import { getTripDetailOptions } from 'expo-app/features/trips/utils/getTripDetailOptions';
import { useTranslation } from 'expo-app/lib/hooks/useTranslation';
import type { TranslationFunction } from 'expo-app/lib/i18n/types';
import { testIds } from 'expo-app/lib/testIds';
import 'expo-dev-client';
import { type Href, router, Stack, useRouter } from 'expo-router';
import { useAtomValue } from 'jotai';
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/app/(app)/admin/ai-packs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AIPacksScreen } from 'expo-app/features/ai-packs/screens/AIPacksScreen';
import { AIPacksScreen } from '@packrat/app/ai-packs/screens/AIPacksScreen';

export default function AIPacks() {
return <AIPacksScreen />;
Expand Down
Loading
Loading