Skip to content

feat(gallery): public Recent / Featured with publish + report - #40

Merged
mapzimus merged 1 commit into
masterfrom
cursor/gallery-public-92b4
Aug 1, 2026
Merged

feat(gallery): public Recent / Featured with publish + report#40
mapzimus merged 1 commit into
masterfrom
cursor/gallery-public-92b4

Conversation

@mapzimus

@mapzimus mapzimus commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Finishes Phase 4 community gallery on top of A2 cloud My Maps.

What’s included

  • Recent — public user_maps newest-first (replaces coming-soon stub)
  • Featuredis_featured editorial picks (client JWT can’t self-feature; trigger locks the flag)
  • Publish / Unpublish — Share → “Publish to Gallery”, plus Publish on My Maps cards
  • Quality floor ≥3 colored states; rate limit 5/day free · 20/day Pro via gallery_publish_counts
  • Report on public cards → map_reports queue
  • Hub / View Gallery default to Recent
  • Migration: supabase/migrations/20260801_gallery_public.sql
  • Smoke: npm run smoke:gallery-public

Prod steps (after merge)

  1. Confirm 20260801_user_maps.sql is applied
  2. Run 20260801_gallery_public.sql in Supabase SQL editor
  3. Feature a map (service role / SQL): update user_maps set is_featured = true where id = '…'; (disable/bypass featured lock if using a role the trigger blocks — service role is allowed)

Out of scope

Test plan

  • npm run validate + npm run smoke:gallery-public
  • Apply migration on preview/prod
  • Sign in → color 3+ states → Publish → appears on Recent
  • Unpublish removes from Recent
  • Report requires sign-in and inserts a row
  • Featured empty until you flag a row
Open in Web Open in Cursor 

Finish Phase 4 community gallery: signed-in publish to Recent (≥3 states,
5/day free / 20/day Pro), Featured via is_featured, Report queue, and RLS
for anon reads of public maps. My Maps keeps Pro cloud sync; Publish works
from Share or My Maps cards.

Co-authored-by: Max <mhowe.gis@gmail.com>
@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
mapparatus Ready Ready Preview Aug 1, 2026 10:16pm
tappymaps Ready Ready Preview Aug 1, 2026 10:16pm

@mapzimus
mapzimus marked this pull request as ready for review August 1, 2026 23:13
@mapzimus
mapzimus merged commit daa54a0 into master Aug 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants