fix: infinite spinner – init isLoading from token presence and add home-page auth check

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/b032c6bb-aa8c-491d-91f5-289c69e67b95
This commit is contained in:
copilot-swe-agent[bot]
2026-03-24 00:53:20 +00:00
parent b253c64090
commit d2878f8ef6
4 changed files with 22 additions and 6 deletions
+1
View File
@@ -195,6 +195,7 @@ because the API client layer is missing.
- Exports: `authApi`, `mailAccountsApi`, `processingRunsApi`, `userApi`
- Exports types: `User`, `MailAccount`, `MailAccountCreate`, `ProcessingRun`
- 8 files import from `@/lib/api` — all compilation errors resolved
- [x] Fix infinite spinner on home page: `isLoading` now initialises based on token presence; home page performs auth check when token exists
### Existing Pages (UI done, need API wiring) 🔨
- [x] Landing page (`app/page.tsx`)