Skip to content

Add mobile-first business photo upload and map thumbnail support#73

Merged
roy-bme merged 1 commit into
claude/blackmass-corporate-website-caGTRfrom
codex/add-photo-upload-to-indaba-portal
May 14, 2026
Merged

Add mobile-first business photo upload and map thumbnail support#73
roy-bme merged 1 commit into
claude/blackmass-corporate-website-caGTRfrom
codex/add-photo-upload-to-indaba-portal

Conversation

@roy-bme
Copy link
Copy Markdown
Owner

@roy-bme roy-bme commented May 14, 2026

Motivation

  • Field ops need a way to attach storefront photos from mobile so businesses can be verified and later enriched by agents.
  • Showing a photo on map popups improves situational awareness and encourages collection of photos in the field.

Description

  • Add photos: string[] | null to the map business type and include photos in the server query so photo URLs flow into the map UI (components/ops/Map/types.ts, app/indaba/(ops)/map/page.tsx).
  • Implement a mobile-first photo upload UI in the business edit side panel that uses an <input type="file" accept="image/*" capture="environment"> control and a simple uploading/✓ feedback (components/ops/Map/MapView.tsx).
  • Upload files to Supabase Storage via the browser client with the business-photos bucket at path {business_id}/{timestamp}_{filename}, get the public URL, append it to businesses.photos, and persist the update; also add a per-photo delete action that updates the DB (createSupabaseBrowserClient() + storage calls in MapView).
  • Show the first photo as a thumbnail in the map popup or a camera placeholder when none exists (components/ops/Map/BulawayoMap.tsx).
  • No new npm dependencies, no schema or bucket setting changes in code, and existing pin colors and attribution logic remain unchanged.

Testing

  • Ran npm run typecheck (TypeScript tsc --noEmit) which completed successfully.

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blackmasswebsite Ready Ready Preview, Comment May 14, 2026 5:14pm

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 14, 2026

This pull request has been ignored for the connected project ipqmdinidqpmchggjdov because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@roy-bme roy-bme merged commit 9bc5e07 into claude/blackmass-corporate-website-caGTR May 14, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant