Skip to content

fix: publishing reliability, facilities UI redesign, and mobile layout - #65

Merged
Satelink-Protocol merged 1 commit into
mainfrom
fix/publishing-reliability-and-dashboard-ui
Nov 24, 2026
Merged

Satelink-Protocol merged 1 commit into
mainfrom
fix/publishing-reliability-and-dashboard-ui

Conversation

@Satelink-Protocol

Copy link
Copy Markdown
Contributor

Summary of Changes

1. Fix Event Publishing Failure (Resolves "Something went wrong." on Publish Event Now)

  • Root Cause 1: Tier ID Type Mismatch: When events with offers or sales phases were published, client-side tier IDs (e.g., tier_1 or random hex strings) were passed directly to Postgres columns typed as UUID[] (applicable_tier_ids), triggering an unhandled invalid input syntax for type uuid database error that rolled back the transaction.
    • Fix: Captured newly generated ticket_types UUIDs during insertion (tierIdMap) and mapped applicableTierIds in saveEventOffers and saveEventSalesPhases to actual database UUIDs. Filtered out invalid non-UUID strings.
  • Root Cause 2: Zod Schema Discrepancy: DraftData schema required sectionKey on venue sections, whereas client-generated sections used id.
    • Fix: Updated Zod schema to allow optional sectionKey and id with fallbacks, and made facilities category and icons optional/nullable.
  • Root Cause 3: Validation Step Mappings: publishIssues() returned issues with sub-steps (facilities, offers, venue, timeline), but wizard STEPS only contains basics, tickets, features, preview. Clicking "Fix" crashed the frontend JS with undefined() error.
    • Fix: Re-mapped all module issues to step: 'features' so "Fix" links cleanly navigate to the Features card.
  • Root Cause 4: Database Error Handling: Wrapped the draft publishing transaction in publishDraft to map standard Postgres constraint violation error codes (23505, 23503, 23514) to descriptive HttpError(422) status codes instead of generic 500 errors.

2. Facilities & Amenities UI/UX Redesign (Resolves Screenshot 1)

  • Semantic Categorization: Grouped predefined amenities into 5 semantic categories:
    1. Parking (Free on-site parking, Valet parking, Two-wheeler parking, Paid parking nearby, EV charging)
    2. Food & Beverages (Air conditioning, Alcohol available, Pure veg, Halal available, BYOB permitted)
    3. Accessibility (Wheelchair accessible, Elevator access, Ground floor access)
    4. Medical & Safety (First aid, Security personnel, CCTV surveillance, Female security staff)
    5. Other Facilities & Rules (Smoking zone, Pet friendly, 21+ only, Cloakroom / Luggage storage)
  • Visual Design: Replaced clumsy, oversized native checkboxes with clean, compact, rounded cards with category icons, subtle border highlighting, and clear checked state.
  • Category Controls: Added "Select all" and "Clear" buttons per category, plus a global "Clear all" button.
  • Live Counter: Category-level counters (N / total) and total amenities selected badge.
  • Custom Amenity Creator: Added clean input box with category dropdown, custom description, and tag removal.
  • Accessibility: Full keyboard support (Enter / Spacebar toggle), role="checkbox", aria-checked, explicit <label> associations.

3. Mobile Shell & Responsive Polish

  • Navigation Overlap Fix: Hid desktop footer on mobile screens (@media (max-width: 768px) { .site-footer { display: none !important; } }) and added safe-area-inset bottom padding to avoid overlapping the bottom navigation bar.
  • Zero Horizontal Overflow: Guaranteed 100% viewport width containment across all device sizes (320px–430px).

4. Tests & Verification

  • Unit & integration tests: 1,245 passed (100% passing).
  • Playwright E2E browser tests: Added e2e/test-publish-upi.spec.js verifying full direct UPI publishing, facilities interactions, and WCAG AA accessibility with 0 violations.

@vercel

vercel Bot commented Nov 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
strangersmeetup Ready Ready Preview Nov 24, 2026 5:24pm UTC

@Satelink-Protocol
Satelink-Protocol merged commit 5a8c7d5 into main Nov 24, 2026
3 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.

1 participant