bagsy/apps/ios
bananabas 4fe4a98b1c feat: Migrate from self-hosted to Vercel + Neon + Clerk
- Move database from self-hosted Postgres to Neon (free tier)
- Replace better-auth with Clerk authentication (email/password + OAuth)
- Integrate Ably for real-time sync (replaces custom WebSocket)
- Remove passkey authentication (pending Apple Developer account)
- Add Clerk Organizations for household management
- Implement custom household join-code flow with Clerk
- Add secure Ably key fetching via backend API
- Update iOS app for Clerk auth and Ably real-time sync
- Configure Vercel deployment settings
- Update environment configuration for new infrastructure

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-06-27 18:59:00 +01:00
..
.build/index-build feat: Migrate from self-hosted to Vercel + Neon + Clerk 2026-06-27 18:59:00 +01:00
Bagsy feat: Migrate from self-hosted to Vercel + Neon + Clerk 2026-06-27 18:59:00 +01:00
Bagsy.xcodeproj feat: Migrate from self-hosted to Vercel + Neon + Clerk 2026-06-27 18:59:00 +01:00
create_structure.sh chore: clean up project structure 2026-04-13 17:16:11 +01:00
Package.swift feat: Migrate from self-hosted to Vercel + Neon + Clerk 2026-06-27 18:59:00 +01:00
README.md chore: clean up project structure 2026-04-13 17:16:11 +01:00

ShopList iOS — Native SwiftUI App

Current Status

✅ Phase 1 Complete (Core Services & Foundation)

  • 22 Swift files implemented
  • No external dependencies (native APIs only)
  • Ready for Xcode project creation

What's Built

Core Services

  • ✅ APIClient — URLSession-based HTTP client with error handling
  • ✅ KeychainManager — Secure token storage
  • ✅ CacheManager — UserDefaults-based caching + offline queue
  • ✅ NetworkMonitor — Network status detection with Wi-Fi warning
  • ✅ WebSocketManager — Real-time sync with auto-reconnect

Models (Codable)

  • ✅ User, Household, Store, Aisle, Item, ShoppingList, ListItem
  • ✅ WebSocket message types with intelligent conflict resolution
  • ✅ API response wrappers and error types

Authentication

  • ✅ AppState — Root-level session management
  • ✅ SignInView — Email+password login with server config
  • ✅ SignUpView — Account creation with validation
  • ✅ AuthStackView — Auth flow orchestration

UI Foundation

  • ✅ MainAppView — TabView-based navigation (Lists, Stores, Settings)
  • ✅ Placeholder implementations for each tab
  • ✅ Network status banners (offline + Wi-Fi warning)

Next Steps (In Progress)

  1. Lists Home Screen — Shopping lists grid + "Don't Forget" section
  2. Main List Screen — Aisle swiper with gradient background
  3. Add Item Sheet — Search + barcode scanner + manual entry
  4. Barcode Scanning — AVCaptureSession (EAN-13/UPC-A)
  5. Store Management — Aisle editor with drag-to-reorder
  6. AI Suggestions — Long-press for alternatives

Build Instructions

cd /Users/barnabasbodily/shop/apps/ios

# Create Xcode project (manual step needed)
# 1. Open Xcode
# 2. File → New → Project
# 3. iOS App
# 4. Name: ShopList
# 5. Select folder: apps/ios/
# 6. Add existing files from ShopList/ directory

# Or use xcodebuild from command line
xcodebuild -project ShopList.xcodeproj -scheme ShopList build

Development Notes

  • iOS 16+ minimum deployment target
  • Swift 5.9+ required
  • No CocoaPods — all native frameworks
  • Actors for thread safety — APIClient, KeychainManager, CacheManager
  • Combine for reactive updates — @Published, PassthroughSubject
  • SwiftUI for all UI — no UIKit

File Structure

ShopList/
├── ShopListApp.swift (entry point)
├── App/
│   └── AppState.swift (session + auth)
├── Features/
│   ├── Auth/
│   │   ├── Views/
│   │   │   ├── SignInView.swift
│   │   │   ├── SignUpView.swift
│   │   │   └── AuthStackView.swift
│   │   └── ViewModels/ (TODO)
│   ├── Lists/
│   │   ├── Views/
│   │   │   ├── MainAppView.swift
│   │   │   ├── ListsTabView.swift
│   │   │   └── DontForgetSection.swift (TODO)
│   │   └── ViewModels/ (TODO)
│   ├── ListDetail/
│   │   ├── Views/ (TODO)
│   │   └── ViewModels/ (TODO)
│   ├── Stores/
│   │   ├── Views/ (TODO)
│   │   └── ViewModels/ (TODO)
│   └── Settings/
│       └── Views/ (TODO)
├── Core/
│   ├── API/
│   │   └── APIClient.swift
│   ├── WebSocket/
│   │   ├── WebSocketManager.swift
│   │   └── WebSocketMessage.swift
│   ├── Storage/
│   │   ├── KeychainManager.swift
│   │   └── CacheManager.swift
│   ├── Network/
│   │   └── NetworkMonitor.swift
│   └── Utilities/
│       └── Color+Extensions.swift
├── Models/
│   ├── User.swift
│   ├── Household.swift
│   ├── Store.swift
│   ├── Aisle.swift
│   ├── Item.swift
│   ├── ShoppingList.swift
│   ├── ListItem.swift
│   └── APIResponse.swift
└── Resources/
    └── (assets, colors, fonts - TODO)

Roadmap

Phase 1 ✅ — Core services, auth, foundation Phase 2 🔄 — Shopping lists, real-time sync Phase 3 📋 — Barcode scanning, stores Phase 4 🎨 — Polish, empty states, accessibility Phase 5 📦 — Ad-hoc build, TestFlight


Generated: March 28, 2026 iOS 16+ | No External Dependencies