Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/(app)/dashboard/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ export default async function DashboardEventsPage() {
<header className="flex flex-wrap items-center justify-between gap-3">
<h1 className="font-display text-2xl font-bold text-ink">My Events</h1>
<Link href="/events">
<Button variant="secondary">Browse Events</Button>
<Button variant="secondary" arrow>Browse Events</Button>
</Link>
</header>

{registrations.length === 0 ? (
<EmptyState
icon={CalendarDays}
title="You haven't registered for any events"
description="Find a Prize Verified event that matches your skills — your Proof-of-Work record starts with your first one."
description="Find a Prize Verified event that matches your skills. Your Proof-of-Work record starts with your first one."
action={
<Link href="/events">
<Button>Browse Events</Button>
<Button arrow>Browse Events</Button>
</Link>
}
/>
Expand Down Expand Up @@ -89,7 +89,7 @@ export default async function DashboardEventsPage() {
</form>
) : null}
<Link href={`/events/${event.slug}/workspace`}>
<Button size="sm">{open ? "Workspace" : "View"}</Button>
<Button size="sm" arrow>{open ? "Workspace" : "View"}</Button>
</Link>
</div>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/dashboard/notifications/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const metadata: Metadata = { title: "Notifications" };

const TYPE_LABELS: Record<string, { title: string; detail: (payload: Record<string, unknown>) => string }> = {
"media.penalty": {
title: "Trust Penalty — Media Deadline",
title: "Trust Penalty: Media Deadline",
detail: (p) =>
`−10 for missing the 48-hour gallery on ${String(p.eventTitle ?? "an event")}.`,
},
Expand Down
8 changes: 4 additions & 4 deletions app/(app)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default async function DashboardPage() {
<div>
<h1 className="font-display text-2xl font-bold text-ink">Welcome Back, {firstName}</h1>
<p className="mt-1 text-sm text-muted">
Your events, teams, and payouts — {pendingInvites > 0 ? `${pendingInvites} invite${pendingInvites === 1 ? "" : "s"} waiting · ` : ""}
Your events, teams, and payouts: {pendingInvites > 0 ? `${pendingInvites} invite${pendingInvites === 1 ? "" : "s"} waiting · ` : ""}
{winningsInFlight > 0 ? `${winningsInFlight} payout${winningsInFlight === 1 ? "" : "s"} in flight` : "all settled"}
</p>
</div>
Expand All @@ -77,12 +77,12 @@ export default async function DashboardPage() {
description={
dueCheckins.length > 0
? ""
: "Prize Verified events appear here the moment you register — active events, teams, and in-flight payouts at a glance."
: "Prize Verified events appear here the moment you register: active events, teams, and in-flight payouts at a glance."
}
action={
dueCheckins.length > 0 ? undefined : (
<Link href="/events">
<Button>Browse Events</Button>
<Button arrow>Browse Events</Button>
</Link>
)
}
Expand All @@ -95,7 +95,7 @@ export default async function DashboardPage() {
</CardTitle>
<CardDescription>
Escrowed prize pools, 50/50 payouts, structured judge feedback, verified Proof-of-Work
profiles, hiring intros, the 48-hour media standard, and 3-month legacy tracking — the
profiles, hiring intros, the 48-hour media standard, and 3-month legacy tracking. The
platform runs end to end. Next: production hardening (runbooks, load tests, audit).
</CardDescription>
</Card>
Expand Down
6 changes: 3 additions & 3 deletions app/(app)/dashboard/teams/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export default async function DashboardTeamsPage({
<EmptyState
icon={UsersRound}
title="No teams yet"
description="Register for an event, then create a team or join one with a leader's code — teams hold up to 5 members."
description="Register for an event, then create a team or join one with a leader's code. Teams hold up to 5 members."
action={
<Link href="/events">
<Button>Find An Event</Button>
<Button arrow>Find An Event</Button>
</Link>
}
/>
Expand All @@ -106,7 +106,7 @@ export default async function DashboardTeamsPage({
</p>
</div>
<Link href={`/events/${team.event.slug}/workspace`}>
<Button size="sm">Workspace</Button>
<Button size="sm" arrow>Workspace</Button>
</Link>
</Card>
</li>
Expand Down
8 changes: 4 additions & 4 deletions app/(app)/dashboard/winnings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default async function WinningsPage() {
<div>
<h1 className="font-display text-2xl font-bold text-ink">Winnings</h1>
<p className="mt-1 text-sm text-muted">
Every prize, every tranche — 50% on the day, 50% on milestones.
Every prize, every tranche: 50% on the day, 50% on milestones.
</p>
</div>
<div className="flex gap-3 text-right">
Expand All @@ -91,7 +91,7 @@ export default async function WinningsPage() {
<Card className="border-warning/40">
<CardTitle className="text-base">Add A Payout Method</CardTitle>
<CardDescription>
You have no M-Pesa or bank destination on file — winnings can&apos;t flow until you do.
You have no M-Pesa or bank destination on file, so winnings can&apos;t flow until you do.
It takes a minute.
</CardDescription>
<Link href="/settings" className="mt-3 inline-block">
Expand All @@ -104,7 +104,7 @@ export default async function WinningsPage() {
<EmptyState
icon={HandCoins}
title="No winnings yet"
description="When you win a Prize Verified event, the 50% instant tranche lands here the same day — tracked to the shilling."
description="When you win a Prize Verified event, the 50% instant tranche lands here the same day, tracked to the shilling."
action={
<Link href="/events">
<Badge variant="brand">Find an event</Badge>
Expand All @@ -119,7 +119,7 @@ export default async function WinningsPage() {
<div className="flex flex-wrap items-start justify-between gap-3">
<div>
<p className="font-display text-lg font-bold text-ink">
{win.event.title} — {win.place}
{win.event.title}, {win.place}
{["st", "nd", "rd"][win.place - 1] ?? "th"} place
</p>
<p className="text-xs text-muted">
Expand Down
6 changes: 3 additions & 3 deletions app/(app)/events/[slug]/workspace/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { registrationOpen, submissionWindowOpen } from "@/lib/events/lifecycle";
export const metadata: Metadata = { title: "Team Workspace" };

const NOTICES: Record<string, string> = {
"leader": "Leaders can't leave — disband the team instead (only before submitting).",
"leader": "Leaders can't leave; disband the team instead (only before submitting).",
"team-first": "Leave your team before cancelling your registration.",
"submitted": "A team with a submitted project can't be disbanded.",
};
Expand Down Expand Up @@ -50,7 +50,7 @@ export default async function WorkspacePage({
<EmptyState
icon={UsersRound}
title="You're not registered for this event"
description="Register from the event page first — then this workspace becomes your team's build hub."
description="Register from the event page first, then this workspace becomes your team's build hub."
action={
<a href={`/events/${event.slug}`}>
<Button>Go To Event Page</Button>
Expand Down Expand Up @@ -204,7 +204,7 @@ export default async function WorkspacePage({
<Card>
<CardTitle>What Happens After Announcement</CardTitle>
<CardDescription>
Endorse the winners you judged —{" "}
Endorse the winners you judged:{" "}
<a href={`/judge/events/${event.slug}/endorse`} className="underline hover:text-ink">
write endorsements
</a>{" "}
Expand Down
6 changes: 3 additions & 3 deletions app/(app)/hiring/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default async function HiringPage() {
<Briefcase aria-hidden className="size-5" /> Hiring Here?
</CardTitle>
<CardDescription>
Join as a hiring partner to request verified introductions. It&apos;s free — you pay
Join as a hiring partner to request verified introductions. It&apos;s free: you pay
nothing, developers pay nothing; we&apos;re paid by event organizers.
</CardDescription>
<Link href="/hiring/join" className="mt-4 inline-block">
Expand All @@ -67,7 +67,7 @@ export default async function HiringPage() {
<Card>
<CardTitle>Partner Mode Active</CardTitle>
<CardDescription>
Request introductions from any verified winner&apos;s profile — track them in{" "}
Request introductions from any verified winner&apos;s profile; track them in{" "}
<Link href="/hiring/requests" className="underline hover:text-ink">
your requests
</Link>
Expand All @@ -80,7 +80,7 @@ export default async function HiringPage() {
<EmptyState
icon={Users}
title="The directory fills as events conclude"
description="Every winner of a Prize Verified event lands here automatically — verified win, verified payout, judge endorsement."
description="Every winner of a Prize Verified event lands here automatically: verified win, verified payout, judge endorsement."
/>
) : (
<div className="grid gap-4 sm:grid-cols-2">
Expand Down
4 changes: 2 additions & 2 deletions app/(app)/hiring/request/[handle]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function RequestIntroPage({
{winner.user.name ?? `@${handle}`}
</h1>
<p className="mt-1 text-sm text-muted">
Verified winner — {formatKes(winner.amountKes)} ·{" "}
Verified winner: {formatKes(winner.amountKes)} ·{" "}
{winner.event.title}
</p>
{winner.user.profile?.skills?.length ? (
Expand All @@ -55,7 +55,7 @@ export default async function RequestIntroPage({

<Card>
<p className="text-sm text-muted">
Introduction requests anchor to verified wins — the platform confirms the developer
Introduction requests anchor to verified wins. The platform confirms the developer
actually won and was actually paid before an intro can be requested.
</p>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/judge/events/[slug]/endorse/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async function JudgeEndorsePage({
<Card>
<CardTitle>All Endorsements Written</CardTitle>
<CardDescription>
You&apos;ve endorsed every winner of this event — they&apos;re live on their profiles.
You&apos;ve endorsed every winner of this event, and they&apos;re live on their profiles.
</CardDescription>
</Card>
) : (
Expand Down
6 changes: 3 additions & 3 deletions app/(app)/judge/events/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ export default async function JudgeEventPage({
<Card>
<p className="text-sm text-muted">
Judging opens when the event ends and the organizer opens the review window. Come back
then — you can review the submissions below in the meantime.
then. You can review the submissions below in the meantime.
</p>
</Card>
) : null}

{teams.length === 0 ? (
<Card>
<p className="text-sm text-muted">No submissions yet — the queue fills as teams submit.</p>
<p className="text-sm text-muted">No submissions yet. The queue fills as teams submit.</p>
</Card>
) : (
<ul className="space-y-3">
Expand Down Expand Up @@ -103,7 +103,7 @@ export default async function JudgeEventPage({
</p>
</div>
<Link href={`/judge/events/${event.slug}/teams/${team.id}`}>
<Button size="sm" variant={finalized ? "secondary" : "primary"}>
<Button size="sm" variant={finalized ? "secondary" : "primary"} arrow>
{finalized ? "Review" : "Score Team"}
</Button>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/judge/events/[slug]/teams/[teamId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default async function JudgeTeamPage({
) : null}
</div>
<CardDescription>
Open the repo and demo in separate tabs — rubric scoring follows below.
Open the repo and demo in separate tabs. Rubric scoring follows below.
</CardDescription>
</Card>

Expand Down
4 changes: 2 additions & 2 deletions app/(app)/judge/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function JudgeHomePage() {
<header>
<h1 className="font-display text-2xl font-bold text-ink">Judging</h1>
<p className="mt-1 text-sm text-muted">
Your assigned events. Structured feedback — one strength, one improvement, one next step —
Your assigned events. Structured feedback (one strength, one improvement, one next step)
unlocks every finalization.
</p>
</header>
Expand Down Expand Up @@ -98,7 +98,7 @@ export default async function JudgeHomePage() {
</div>
) : (
<Link href={`/judge/events/${assignment.event.slug}`}>
<Button size="sm">Open Team Queue</Button>
<Button size="sm" arrow>Open Team Queue</Button>
</Link>
)}
</Card>
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function AppLayout({ children }: { children: React.ReactNod
<AppTopNav user={{ name: user.name, handle: user.handle, roles: user.roles }} />
<main className="site-container flex-1 py-8">{children}</main>
<footer className="border-t border-ink/10 py-4 text-center text-xs text-muted">
HackVillage — trust is the product.
HackVillage: trust is the product.
</footer>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/organizer/events/[slug]/judges/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default async function EventJudgesPage({
<CardTitle>How Results Compute</CardTitle>
<CardDescription>
Per judge: Σ(criterion score × weight) ÷ Σweights. Per team: the mean across finalized
judge reviews. Teams rank by that weighted score — ties share a rank. The rubric locks
judge reviews. Teams rank by that weighted score, and ties share a rank. The rubric locks
the moment judging opens, and results count only finalized reviews.
</CardDescription>
</Card>
Expand Down
4 changes: 2 additions & 2 deletions app/(app)/organizer/events/[slug]/media/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default async function EventMediaPage({
<CardTitle className="text-danger">The 48 Hour Window Has Closed</CardTitle>
<CardDescription>
A −10 trust penalty applies to {event.org.name} for missing the media deadline. You can
still upload the gallery — late is far better than never — and appeal from your
still upload the gallery (late is far better than never) and appeal from your
organizer page if there were extraordinary circumstances.
</CardDescription>
</Card>
Expand All @@ -77,7 +77,7 @@ export default async function EventMediaPage({
<Camera aria-hidden className="size-5" /> The 48 Hour Promise
</CardTitle>
<CardDescription>
High-res photos land within 48 hours of the event — that&apos;s the HackVillage
High-res photos land within 48 hours of the event; that&apos;s the HackVillage
standard. Missing it costs −10 trust on the organizer score.
{hoursLeft != null ? ` You have about ${hoursLeft} hour${hoursLeft === 1 ? "" : "s"}.` : null}
</CardDescription>
Expand Down
14 changes: 7 additions & 7 deletions app/(app)/organizer/events/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default async function EventCommandCenterPage({ params }: PageProps) {
</div>
{isDraft ? (
<Link href={`/organizer/events/${event.slug}/edit`}>
<Button variant="secondary">Edit Draft</Button>
<Button variant="secondary" arrow>Edit Draft</Button>
</Link>
) : null}
</header>
Expand Down Expand Up @@ -116,12 +116,12 @@ export default async function EventCommandCenterPage({ params }: PageProps) {
<Lock aria-hidden className="size-5 text-warning" /> Waiting On The Prize Vault
</CardTitle>
<CardDescription>
This event is public as <strong>pending deposit</strong> — visible but not live.
This event is public as <strong>pending deposit</strong>, visible but not live.
Fund the vault ({formatKes(poolKes)} pool + 5% fee) and the event flips LIVE with the
Prize Verified badge the moment the deposit confirms.
</CardDescription>
<Link href={`/organizer/events/${event.slug}/vault`} className="mt-4 inline-block">
<Button>Open The Prize Vault</Button>
<Button arrow>Open The Prize Vault</Button>
</Link>
</Card>
) : null}
Expand All @@ -138,16 +138,16 @@ export default async function EventCommandCenterPage({ params }: PageProps) {
<Card>
<CardTitle>Winners &amp; Payouts</CardTitle>
<CardDescription>
Winners announced — the instant 50% paid on the day, the final 50% releasing per
Winners announced: the instant 50% paid on the day, the final 50% releasing per
milestone confirmation. Track every payout and confirm handovers in the winners
console.
</CardDescription>
<div className="mt-4 flex flex-wrap gap-3">
<Link href={`/organizer/events/${event.slug}/winners`}>
<Button>Open Winners Console</Button>
<Button arrow>Open Winners Console</Button>
</Link>
<Link href={`/organizer/events/${event.slug}/media`}>
<Button variant="secondary">Media Vault (48h)</Button>
<Button variant="secondary" arrow>Media Vault (48h)</Button>
</Link>
</div>
</Card>
Expand Down Expand Up @@ -178,7 +178,7 @@ export default async function EventCommandCenterPage({ params }: PageProps) {
<Card>
<CardTitle>Registrations ({event.registrations.length})</CardTitle>
{event.registrations.length === 0 ? (
<CardDescription>Nobody has registered yet — shares of the event page help.</CardDescription>
<CardDescription>Nobody has registered yet; shares of the event page help.</CardDescription>
) : (
<ul className="mt-3 divide-y divide-ink/5">
{event.registrations.map(({ id, user: attendee }) => (
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/organizer/events/[slug]/rubric/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async function EventRubricPage({
<header>
<h1 className="font-display text-2xl font-bold text-ink">Rubric</h1>
<p className="mt-1 text-sm text-muted">
{event.title} · judges score 0–10 per criterion
{event.title} · judges score 0-10 per criterion
</p>
</header>

Expand Down
Loading
Loading