You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve Expo Router layout warning and enhance Supabase UX
- Addressed the nested layout warning in Expo Router by implementing a new layout wrapper in `app/reader/_layout.tsx`.
- Improved user onboarding experience by adding a warning banner in the Home screen when Supabase environment variables are unconfigured, utilizing the new `isSupabaseConfigured` helper from `lib/supabase.ts`.
- Verified changes with successful linting and type-checking, ensuring no errors were present.
Copy file name to clipboardExpand all lines: AGENT.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,17 @@ These rules govern the development of the Aion project.
9
9
10
10
## Change Log
11
11
12
+
### 2026-05-21 (Australia/Sydney)
13
+
**Raouf:**
14
+
-**Scope:** Expo Router Layout and Supabase UX Warning
15
+
-**Summary:** Resolved the Expo Router nested layout warning `[Layout children]: No route named "reader" exists in nested children` by creating a nested navigation layout wrapper (`app/reader/_layout.tsx`). Also improved user onboarding UX by detecting placeholder/unconfigured Supabase environment variables in `lib/supabase.ts` and showing a modern warning banner on the Home screen guiding the user on how to update their `.env` file.
16
+
-**Files Changed:**
17
+
-[app/reader/_layout.tsx](file:///Users/raoof.r12/Desktop/Raouf/Aion/app/reader/_layout.tsx) - Created nested Stack router layout wrapper.
18
+
-[lib/supabase.ts](file:///Users/raoof.r12/Desktop/Raouf/Aion/lib/supabase.ts) - Exported `isSupabaseConfigured` helper checking for default placeholder values.
19
+
-[app/(tabs)/index.tsx](file:///Users/raoof.r12/Desktop/Raouf/Aion/app/(tabs)/index.tsx) - Added amber-colored alert warning banner when Supabase setup is required.
20
+
-**Verification:** Ran `npm run lint` and `npm run type-check`, both completed successfully with 0 errors.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
7
7
## Change Log
8
8
9
+
### 2026-05-21 (Australia/Sydney)
10
+
**Raouf:**
11
+
-**Scope:** Expo Router Layout and Supabase UX Warning
12
+
-**Summary:** Resolved the Expo Router nested layout warning `[Layout children]: No route named "reader" exists in nested children` by creating a nested navigation layout wrapper (`app/reader/_layout.tsx`). Also improved user onboarding UX by detecting placeholder/unconfigured Supabase environment variables in `lib/supabase.ts` and showing a modern warning banner on the Home screen guiding the user on how to update their `.env` file.
13
+
-**Files Changed:**
14
+
-[app/reader/_layout.tsx](file:///Users/raoof.r12/Desktop/Raouf/Aion/app/reader/_layout.tsx) - Created nested Stack router layout wrapper.
15
+
-[lib/supabase.ts](file:///Users/raoof.r12/Desktop/Raouf/Aion/lib/supabase.ts) - Exported `isSupabaseConfigured` helper checking for default placeholder values.
16
+
-[app/(tabs)/index.tsx](file:///Users/raoof.r12/Desktop/Raouf/Aion/app/(tabs)/index.tsx) - Added amber-colored alert warning banner when Supabase setup is required.
17
+
-**Verification:** Ran `npm run lint` and `npm run type-check`, both completed successfully with 0 errors.
Please update your <Textstyle={styles.codeText}>.env</Text> file in the project root with your actual Supabase URL and Anon Key, then restart the Expo server.
"Warning: Supabase environment variables (EXPO_PUBLIC_SUPABASE_URL or EXPO_PUBLIC_SUPABASE_ANON_KEY) are missing or using placeholder values. Please check your .env file.",
0 commit comments