Skip to content

fix: repair event creation, simplify organiser UX, and enforce free listings - #62

Merged
Satelink-Protocol merged 4 commits into
mainfrom
fix/nightlifez-workflow-repair-and-ux-simplification
Nov 24, 2026
Merged

Satelink-Protocol merged 4 commits into
mainfrom
fix/nightlifez-workflow-repair-and-ux-simplification

Conversation

@Satelink-Protocol

@Satelink-Protocol Satelink-Protocol commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

1. Fix Event Creation & Publishing Blocker

  • Root Cause Identified:
    • Strict Zod schema parsing on draft autosaves rejected intermediate/unformatted inputs (e.g., string hours in cancellation policy, non-numeric occurrences, empty strings for UUIDs).
    • Draft autosaves failed silently without highlighting the failing fields.
    • Preview checklist re-evaluated against the stale server-side draft rather than updating dynamically.
    • The preview DOM did not re-render upon successful save, leaving the 7-item checklist stuck.
  • Remediation:
    • Made draft validators tolerant (.passthrough(), value coercion for numbers/schedules/policies).
    • Added specific error reporting identifying the exact invalid field (Please check the highlighted fields: <fields>) with aria-invalid="true" highlighting.
    • Preserved draft input on validation failure without discarding user input.
    • Added real-time status transitions: Saving..., Saved, Changes not saved, Ready to publish, Published, and Action required.
    • Added preview re-rendering upon successful save so resolved checklist items clear immediately.
    • Added idempotency guard (S.publishing) to prevent duplicate events from rapid repeated clicks.

2. Simplified 4-Step Event Creation UX

  • Step 1 (Event basics): Title, Category, Description, City & Venue/Location, Date/Time, Cover Image.
  • Step 2 (Tickets): Free ticket as default (₹0), Ticket name, Quantity available, Max tickets per booking (sensible defaults: 50 quantity, max 4).
  • Step 3 (Features): Age restrictions (21+), Event rules, Dress code, What's included, optional event features.
  • Step 4 (Preview and publish): Full attendee-facing preview card, clean completion checklist with direct edit jump links, and clear "Publish Free Event" button.

3. Enforced Free-Only Event Listings

  • Enforced on frontend, backend, and database validation:
    • Default ticket presets configured to Free with ₹0 price.
    • Free tickets require positive integer quantity <= MAX_CAPACITY (5,000).
    • maxPerBooking validated: 1 <= maxPerBooking <= quantity.
    • minPerBooking validated: 1 <= minPerBooking <= maxPerBooking.
    • Backend strictly blocks publishing any paid tickets during this phase (returns 422 paid_tickets_disabled unless live payments are authorized).
    • Preserved existing paid ticket drafts without deletion.

4. Organiser UPI & Payment Details Settings

  • Added Business Settings → Payment Details section (/business#payments and /api/organiser/payment-settings).
  • Organisers can view, add, edit, and remove their UPI ID and payee display name.
  • Strict UPI ID format validation and non-empty payee name validation.
  • Complete account-level isolation: an organiser cannot view or tamper with another organiser's payment details.
  • Displays Unverified (Verification Pending) status badge; never displays fake verification badges.
  • Business rule maintained: saving UPI details does NOT enable paid checkout or live ticket sales.

5. Authentication & Sign-in UX Simplification

  • Replaced prominent "Continue with Telegram" in main navigation and gates with clear "Sign in" button.
  • Updated main header to show "Sign in" for logged-out visitors and "My Bookings" for authenticated users.
  • When WhatsApp is offline / unconfigured, the nonfunctional option is hidden from the switcher, presenting the clean, direct Telegram Sign in experience.
  • Full destination URL preservation (?next=...) through the sign-in lifecycle so organisers return to their drafts.
  • Maintained NIGHTLIFEZ branding consistently.

6. Organiser Dashboard & Onboarding

  • Quick navigation bar added to /organiser: Create Event, Draft Events, Published Events, Venue Management, Business Settings, Payment Details, and Help & Support.
  • First-time organiser welcome card explaining the 4 steps to listing a free event.
  • Draft cards display clear readiness badges ("Ready to publish" vs "Draft") with direct resolution links.

7. Attendee Experience Audit & Verification

  • Verified end-to-end free RSVP booking flow, pass issuance, viewing under My Bookings, and booking cancellation.
  • Immediate inventory restoration on cancellation.
  • Concurrency and duplicate booking prevention verified.

8. Test Verification

  • Unit & Integration Suite: 1,216 total tests — 1,214 passed, 0 failed, 2 skipped (conditional platform checks).
  • Lint Check: 229/229 files OK (npm run lint).
  • Playwright Browser Tests: Complete end-to-end journey passed on desktop Chrome & mobile Pixel 7 viewports (e2e/workflow-repair-verification.spec.js, e2e/organiser-create.spec.js, e2e/multi-date-wizard.spec.js).

@vercel

vercel Bot commented Nov 23, 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 7:52am UTC

@Satelink-Protocol
Satelink-Protocol merged commit c2a692e 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