From 19d519b1536dce9d67832859ac865e8a7f9d0e03 Mon Sep 17 00:00:00 2001 From: Jennie Robinson Faber Date: Tue, 14 Apr 2026 16:17:55 +0100 Subject: [PATCH] Event fixes --- .gitignore | 1 + app/components/EventTicketCard.vue | 224 ++++++++----- app/components/EventTicketPurchase.vue | 300 +++++++++-------- app/pages/events/[slug].vue | 329 +----------------- scripts/seed-members.js | 448 ++++++++++++++++++++++--- 5 files changed, 696 insertions(+), 606 deletions(-) diff --git a/.gitignore b/.gitignore index 0944c34..5ca2fab 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ e2e/.auth/ # Worktrees .worktrees/ .claude/worktrees/ +.superpowers/ diff --git a/app/components/EventTicketCard.vue b/app/components/EventTicketCard.vue index a392620..bf06fdf 100644 --- a/app/components/EventTicketCard.vue +++ b/app/components/EventTicketCard.vue @@ -1,72 +1,42 @@ @@ -164,13 +113,11 @@ const formatDeadline = (deadline) => { const now = new Date(); const diff = date - now; - // If less than 24 hours, show hours if (diff < 24 * 60 * 60 * 1000) { const hours = Math.floor(diff / (60 * 60 * 1000)); return `in ${hours} hour${hours !== 1 ? "s" : ""}`; } - // Otherwise show date return `on ${date.toLocaleDateString("en-US", { month: "short", day: "numeric", @@ -187,6 +134,103 @@ const formatPrice = (amount) => { diff --git a/app/components/EventTicketPurchase.vue b/app/components/EventTicketPurchase.vue index 4a201ed..1738dca 100644 --- a/app/components/EventTicketPurchase.vue +++ b/app/components/EventTicketPurchase.vue @@ -1,76 +1,58 @@