GRV-MobileApp/README.md
kirukib 8e23a96c6b Redesign attendee app: venue map, achievements, ticket pass, celebrations
- Floating pill tab bar with raised Scan button; Booths tab becomes Venue map
  (tappable floor plan, filters, booth directory)
- Home: points card with tier progress, event card, mystery lead tile, badges strip
- Achievements: tier timeline (Valley Walker → Summit Pioneer) and badges
- Me: profile, stats, perforated ticket pass carousel
- Scan result: confetti, count-up points, tier progress; tier-unlock modal and
  badge toasts; welcome and merch-order toasts; leaderboard podium
- Add aidesigner agent skills (npx @aidesigner/agent-skills init)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 23:34:20 +03:00

5.0 KiB
Raw Permalink Blame History

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

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

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.

Printed checkpoint QRs encode <SITE_URL>/q/<token> (backend SITE_URL). That site page opens grvsummit://q/<token>, 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 <Image source={require('../../assets/achievements/<id>.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.