Scaffold and Phase 1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Admin → Bidders – profiles, paddles, QR codes, CSV import.
|
||||
* TODO: CRUD + bulk import via /api/bidders.
|
||||
*/
|
||||
export default function AdminBiddersPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<h1 className="text-2xl font-bold">Bidder Manager</h1>
|
||||
<div className="flex gap-2">
|
||||
<button className="px-3 py-2 border rounded-lg text-sm">Import CSV</button>
|
||||
<button className="px-3 py-2 bg-brand-600 text-white rounded-lg text-sm font-medium">
|
||||
+ Add Bidder
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Bidder list — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Admin → Checkout – cashier station; find bidder, take payment, print receipt.
|
||||
* TODO: search bidders, show invoice, call /api/checkout/:bidderId/capture.
|
||||
*/
|
||||
export default function AdminCheckoutPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<h1 className="text-2xl font-bold">Checkout</h1>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Cashier station — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Admin dashboard – overview of events, recent bids, revenue snapshot.
|
||||
* TODO: fetch org summary from /api/reporting.
|
||||
*/
|
||||
export default function AdminDashboard() {
|
||||
return (
|
||||
<main className="p-6 space-y-6">
|
||||
<h1 className="text-2xl font-bold">Admin Dashboard</h1>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-3 gap-4">
|
||||
{["Events", "Bidders", "Revenue"].map((label) => (
|
||||
<div key={label} className="border rounded-xl p-5 text-center">
|
||||
<p className="text-gray-500 text-sm">{label}</p>
|
||||
<p className="text-3xl font-bold mt-1">—</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Admin → Events – list, create, edit events.
|
||||
* TODO: CRUD via /api/events.
|
||||
*/
|
||||
export default function AdminEventsPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<div className="flex items-center justify-between">
|
||||
<h1 className="text-2xl font-bold">Events</h1>
|
||||
<button className="px-4 py-2 bg-brand-600 text-white rounded-lg text-sm font-medium">
|
||||
+ New Event
|
||||
</button>
|
||||
</div>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Events list — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Admin → Fund-a-Need / Paddle Raise – set tiers, open campaign, show live total.
|
||||
* TODO: configure PaddleRaiseCampaign, subscribe to paddle_raise_update events.
|
||||
*/
|
||||
export default function FundANeedPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<h1 className="text-2xl font-bold">Fund-a-Need</h1>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Paddle raise setup & live totals — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Admin → Items – manage lots, categories, media, donor info, increments.
|
||||
* TODO: CRUD via /api/items; file uploads via POST /api/media/upload (multipart).
|
||||
*/
|
||||
export default function AdminItemsPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<h1 className="text-2xl font-bold">Item Manager</h1>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Item list & editor — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Admin → Reporting – revenue, sell-through, bidder activity, audit log.
|
||||
* TODO: fetch /api/reporting/events/:id/*.
|
||||
*/
|
||||
export default function AdminReportingPage() {
|
||||
return (
|
||||
<main className="p-6 space-y-4">
|
||||
<h1 className="text-2xl font-bold">Reporting</h1>
|
||||
<div className="border border-dashed border-gray-300 rounded-xl p-8 text-center text-gray-400 text-sm">
|
||||
Reports — not yet implemented
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user