# GRV Summit — attendee app Expo (SDK 58, expo-router) app for GRV Summit attendees: scan booth and investee QR codes for points, find the mystery future investee (double points), follow the leaderboard and raffles, order merch for pickup at the GRV booth and show ticket QRs. Backend: `../GRV-Backend` (NestJS). Contract: `GRV-Backend/API.md`. The app uses only the auth, attendee and public (`/merch`) endpoints. ## Setup ```sh pnpm install cp .env.example .env # set EXPO_PUBLIC_API_URL pnpm start # Expo dev server ``` | Env | Default | Notes | |---|---|---| | `EXPO_PUBLIC_API_URL` | `http://localhost:4000` | Inlined at build time. On a phone use your machine's LAN IP (`http://192.168.x.x:4000`); `localhost` is the phone itself. | | `EAS_PROJECT_ID` | — | EAS builds only (`eas init` prints it). | | `APPLE_TEAM_ID` | — | Needed for iOS associated domains / signing. | Checks: `pnpm exec tsc --noEmit`, `npx expo-doctor`, `npx expo export --platform web`. ## Running The QR scanner needs a real device camera (the web build and simulators fall back to typing the code under the QR). - **Expo Go**: `pnpm start`, scan the terminal QR with Expo Go (Android) or the Camera app (iOS). - **Dev client**: `eas build --profile development --platform ios|android`, install it, then `pnpm start` and open the project from the dev client. Sign-in is email + 6-digit code. In backend dev mode the code is printed to the backend console. Attendees should use the email they bought their ticket with so their ticket QR appears under **Me**. ## EAS builds ```sh npm i -g eas-cli eas init # once; put the id in EAS_PROJECT_ID eas build --profile preview --platform android # internal APK/AAB for testing eas build --profile production --platform all # store builds eas submit --profile production ``` Set `EXPO_PUBLIC_API_URL` (production API) in the EAS environment for each profile. Bundle id / package: `org.ethiopiatrustfund.grvsummit`. Scheme: `grvsummit`. ## Deep links Printed checkpoint QRs encode `/q/` (backend `SITE_URL`). That site page opens `grvsummit://q/`, which lands on `src/app/q/[token].tsx`: it calls `POST /scan` once and shows the result (signed-out users go through login first and come back). Inside the app, the Scan tab reads the same codes directly. Test: `npx uri-scheme open grvsummit://q/abc --ios`. Universal/app links (camera opens the app without the site page) need a domain; add iOS `associatedDomains`, Android `intentFilters` and the site's `.well-known` files once there is one. ## Layout ``` src/app/_layout.tsx fonts, React Query, auth gate (→ /login?next=…), celebration host src/app/login.tsx email → code → optional name (PATCH /me), welcome toast src/app/(tabs)/ index (home), map (venue map + booth list), scan, investees, me (profile + ticket pass) src/app/q/[token].tsx scan result: confetti, count-up points, tier progress, mystery screen, then tier-unlock modal and badge toasts src/app/achievements.tsx tier timeline + badges src/app/leaderboard.tsx podium + list; raffles.tsx, merch.tsx src/components/ui.tsx icons, text, cards, buttons, Backdrop wash, DateBlock, Pill, Gem/Medal art src/components/Celebrate.tsx toast(), celebrate(), Confetti, announceProgress() src/lib/content.ts event info, venue zones, achievement tiers and badges src/lib/api.ts fetch wrapper, session (secure-store), API types, queries, money format src/lib/theme.ts colours/fonts from GRVSummit/app/globals.css assets/ icon/splash/pattern PNGs rendered from GRVLogo.png and mainwhite.svg ``` Design: GRV greens only (primary `#30614c`, secondary `#b9d8c9`, ink `#1a4034`), soft green wash at the top of each screen, 20–28px radius cards with hairline borders, floating ink tab bar with a raised Scan button. Every unlock (points, tier, badge, mystery) gets haptics plus confetti, a modal or a toast. ## Replacing placeholder assets - **Venue map**: `zones` in `src/lib/content.ts`. Each zone is a rectangle on a 100 × 128 plan with a name, kind (colour) and details. Booth numbers map to zones by letter (`boothPrefixes`). To use a real floor-plan image instead, render it in `FloorPlan` (`src/app/(tabs)/map.tsx`) behind the same tap targets. - **Achievement art**: `Gem` (tiers) and `Medal` (badges) in `src/components/ui.tsx` are drawn SVG. Swap their bodies for `.png')} />`. - **Tiers and badges**: names, point thresholds and hints in `src/lib/content.ts`. Badges are derived from `/me` on the device, so changing a rule needs no backend change. - **Event info** (dates, venue, programme): `event` in `src/lib/content.ts`. Fonts: Antebas (headings) and DM Sans (body). The Antebas files are the Fontspring **demo** build — digits and punctuation are watermark glyphs, so headings with numbers or punctuation use DM Sans. Swap in the licensed OTFs in `assets/fonts/` before the store release.