Archived
Campuses frontend, docs and e2e (1.43.0)
Site settings -> Campuses tab; campus picker in the event editor; campus filter and badges on the events list, public events page (remembered, starts on home campus) and reports/dashboards; /campus/<slug> pages and sitemap; home campus on the profile; "Everyone at a campus" in email and WhatsApp broadcasts. Help, FEATURES, SETTINGS, API docs, protocol doc (campusCount), handover and roadmap updated; campuses seeded for e2e. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import { JoinWaitlistButton } from "@/components/events/JoinWaitlistButton";
|
||||
import { soldOutLines } from "@/lib/waitlist";
|
||||
import { SponsorSpot } from "@/components/events/SponsorSpot";
|
||||
import { FunnelTracker } from "@/components/events/FunnelTracker";
|
||||
import { CampusBadge } from "@/components/shared/CampusFilter";
|
||||
import { Calendar, Ticket, Paperclip, Sparkles } from "lucide-react";
|
||||
|
||||
export const revalidate = 60;
|
||||
@@ -45,6 +46,7 @@ type Event = {
|
||||
contactPhone?: string | null;
|
||||
contactEmail?: string | null;
|
||||
location?: string | null;
|
||||
campus?: { id: string; name: string; slug: string; colour: string | null } | null;
|
||||
waitlistEnabled?: boolean;
|
||||
allowSponsorships?: boolean;
|
||||
bundles?: PublicBundle[];
|
||||
@@ -208,6 +210,7 @@ export default async function EventDetailPage({ params }: { params: Promise<{ id
|
||||
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold text-gray-900">{event.title}</h1>
|
||||
<CampusBadge campus={event.campus} link className="mt-2 text-xs" />
|
||||
<p className="text-sm text-gray-500 flex items-center gap-1.5 mt-2">
|
||||
<Calendar className="w-4 h-4 shrink-0" />
|
||||
{scheduleSummary(event) || formatDateTimeRange(event.startDate, event.endDate)}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { Metadata } from "next";
|
||||
import { Navbar } from "@/components/layout/Navbar";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { EventCard } from "@/components/events/EventCard";
|
||||
import { EventsGrid } from "@/components/events/EventsGrid";
|
||||
import { apiFetchListForPrerender } from "@/lib/api";
|
||||
import { Calendar, CalendarX } from "lucide-react";
|
||||
import { Calendar } from "lucide-react";
|
||||
|
||||
export const revalidate = 60;
|
||||
|
||||
@@ -27,6 +27,8 @@ type Event = {
|
||||
picture?: string;
|
||||
isSoldOut?: boolean;
|
||||
cashupStatus?: string;
|
||||
campusId?: string | null;
|
||||
campus?: { id: string; name: string; slug: string; colour: string | null } | null;
|
||||
};
|
||||
|
||||
export default async function EventsPage() {
|
||||
@@ -52,18 +54,7 @@ export default async function EventsPage() {
|
||||
<p className="text-sm text-gray-500">{sorted.length} upcoming event{sorted.length === 1 ? "" : "s"}</p>
|
||||
</div>
|
||||
</div>
|
||||
{sorted.length === 0 ? (
|
||||
<div className="text-center py-16 border rounded-xl bg-gray-50">
|
||||
<CalendarX className="w-8 h-8 text-gray-300 mx-auto mb-2" />
|
||||
<p className="text-gray-500 text-sm">No events available right now — check back soon.</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="grid gap-6 md:grid-cols-3 sm:grid-cols-2">
|
||||
{sorted.map((event) => (
|
||||
<EventCard key={event.id} event={event} />)
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
<EventsGrid events={sorted} />
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user