Skip to content

Commit 03240c6

Browse files
merg to prod (#501)
* Pr 486 (#488) * feat: Implement comprehensive hackathon detail page with new header, sidebar, and tabbed content sections including teams, announcements, winners, participants, and resources. * fix: update coderabit * feat: Enhance hackathon team invitation flow, recruitment post management, and dynamic tab visibility. * feat: Integrate AuthModalProvider for authentication handling and enhance messaging features across hackathon components * fix: fix pagination issues in particiapants and submissions page for organizers * fix: remove any type --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com> * Pr 486 (#490) * feat: Implement comprehensive hackathon detail page with new header, sidebar, and tabbed content sections including teams, announcements, winners, participants, and resources. * fix: update coderabit * feat: Enhance hackathon team invitation flow, recruitment post management, and dynamic tab visibility. * feat: Integrate AuthModalProvider for authentication handling and enhance messaging features across hackathon components * fix: fix pagination issues in particiapants and submissions page for organizers * fix: remove any type * fix: enhanced filtering for organizations * fix: fix coderabbit corrections --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com> * feat: new card for hackathon (#495) * feat: new card for hackathon * fix: changed to correct status * fix: update the ogr button * UI fixes (#497) * fix: improve timeline input , ui improvement and fixes for participation tab * fix: implement 2fa for email and password login * fix: fix conflict * fix: fix submission form * fix: fix hackathon submission and participant page * fix: fix hackathon submission and participant page * fix: fix auto refresh ib submission page * fix: hackathon submission fixes * fix: fix coderabbit corrections * fix: fix coderabbit corrections * chore: write boundless on x challenge blog * fix: remove blog * fix: my project dashbaord count and extend hackathon deadline * fix: my project dashbaord count and extend hackathon deadline * fix: fix auto validate wallet address and user nav * fix: fix notification badge * fix: fix coderabbit corrections * fix: fix pagination in organization participants page * Pr 486 (#498) * feat: Implement comprehensive hackathon detail page with new header, sidebar, and tabbed content sections including teams, announcements, winners, participants, and resources. * fix: update coderabit * feat: Enhance hackathon team invitation flow, recruitment post management, and dynamic tab visibility. * feat: Integrate AuthModalProvider for authentication handling and enhance messaging features across hackathon components * fix: fix pagination issues in particiapants and submissions page for organizers * fix: remove any type * fix: enhanced filtering for organizations * fix: fix coderabbit corrections --------- Co-authored-by: Collins Ikechukwu <collinschristroa@gmail.com> * fix: fix hackathon submission count (#499) * refactor: Standardize submission status values to 'SHORTLISTED', 'DISQUALIFIED', and 'SUBMITTED' across types, labels, and filters. --------- Co-authored-by: Nnaji Benjamin <60315147+Benjtalkshow@users.noreply.github.com>
1 parent 61969c1 commit 03240c6

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/(landing)/hackathons/[slug]/HackathonPageClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default function HackathonPageClient({
132132
{
133133
id: 'submission',
134134
label: 'Submissions',
135-
badge: submissions.filter(p => p.status === 'Approved').length,
135+
badge: submissions.filter(p => p.status === 'SHORTLISTED').length,
136136
},
137137
{
138138
id: 'discussions',

components/hackathons/submissions/submissionTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const SubmissionTabContent: React.FC<SubmissionTabContentProps> = ({
155155
submissions.filter(
156156
p =>
157157
p.status?.toLowerCase() === 'shortlisted' ||
158-
p.status === 'Approved'
158+
p.status === 'SHORTLISTED'
159159
).length
160160
}
161161
</span>{' '}

hooks/hackathon/use-hackathon-queries.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ function mapSubmissionStatus(apiStatus: string): SubmissionCardProps['status'] {
9696
const normalized = apiStatus?.toUpperCase();
9797
switch (normalized) {
9898
case 'SHORTLISTED':
99-
return 'Approved';
99+
return 'SHORTLISTED';
100100
case 'DISQUALIFIED':
101101
case 'WITHDRAWN':
102-
return 'Rejected';
102+
return 'DISQUALIFIED';
103103
case 'SUBMITTED':
104104
default:
105-
return 'Pending';
105+
return 'SUBMITTED';
106106
}
107107
}
108108

lib/providers/hackathonProvider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ import {
2828

2929
function mapSubmissionStatus(raw?: string): SubmissionCardProps['status'] {
3030
const status = raw?.toUpperCase();
31-
if (status === 'SHORTLISTED') return 'Approved';
32-
if (status === 'DISQUALIFIED') return 'Rejected';
33-
return 'Pending';
31+
if (status === 'SHORTLISTED') return 'SHORTLISTED';
32+
if (status === 'DISQUALIFIED') return 'DISQUALIFIED';
33+
return 'SUBMITTED';
3434
}
3535

3636
// ─── Types ────────────────────────────────────────────────────────────────────

types/hackathon/participant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export interface SubmissionCardProps {
184184
submitterAvatar?: string | null;
185185
category?: string;
186186
categories?: string[];
187-
status?: 'Pending' | 'Approved' | 'Rejected';
187+
status?: 'SUBMITTED' | 'SHORTLISTED' | 'DISQUALIFIED';
188188
upvotes?: number;
189189
votes?: { current: number; total: number };
190190
comments?: number;

0 commit comments

Comments
 (0)