Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
f4dcdc0
fix: modify api.ts
Benjtalkshow Oct 14, 2025
b90d4ed
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Oct 16, 2025
9ea81a5
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Oct 16, 2025
5be269f
fix: remove google auth buttom
Benjtalkshow Oct 16, 2025
490dcb2
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Oct 20, 2025
842fd48
fix: fixes responsive fixes on organization
Benjtalkshow Oct 20, 2025
596a7f8
fix: minor fixes
Benjtalkshow Nov 6, 2025
96fee24
fix: minor fixes
Benjtalkshow Nov 6, 2025
9dfb149
fix: modify create organization
Benjtalkshow Nov 7, 2025
a194d90
fix: modify create organization
Benjtalkshow Nov 7, 2025
b2ceee0
fix: fix organization permission
Benjtalkshow Nov 8, 2025
9ea97d1
fix: merge into main
Benjtalkshow Nov 8, 2025
adb4629
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 8, 2025
0c11420
fix: merge into main
Benjtalkshow Nov 8, 2025
1f5ec24
feat: hackathon overview page
Benjtalkshow Nov 11, 2025
bca1ef6
feat: hackathon overview page
Benjtalkshow Nov 11, 2025
9202b4f
feat: implement participant overview
Benjtalkshow Nov 12, 2025
096f265
feat: implement participant overview
Benjtalkshow Nov 12, 2025
b3478d0
feat: implement resources tab
Benjtalkshow Nov 12, 2025
e83a0be
feat: implement the submission tab
Benjtalkshow Nov 12, 2025
398be9b
feat: implement comment tab
Benjtalkshow Nov 12, 2025
de546b1
fix: implement provider for hackathon
Benjtalkshow Nov 14, 2025
0fd2690
fix: implement provider for hackathon
Benjtalkshow Nov 14, 2025
0d7417f
fix: minor fixes
Benjtalkshow Nov 15, 2025
4d3efee
fix: merge branch 'main' of https://github.com/Benjtalkshow/boundless…
Benjtalkshow Nov 15, 2025
83893e4
fix: hackathon banner
Benjtalkshow Nov 15, 2025
8013d62
fix: hackathon banner
Benjtalkshow Nov 15, 2025
3fb1323
fix: fix hackthon conflict
Benjtalkshow Nov 15, 2025
b7fc94f
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 15, 2025
0594ac8
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 15, 2025
7e08bc1
fix: fix organization page
Benjtalkshow Nov 15, 2025
22c12c1
fix: fix organization page
Benjtalkshow Nov 16, 2025
08e5be5
fix: fix organization page
Benjtalkshow Nov 16, 2025
8e6bded
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 16, 2025
5e6c9e6
fix: use transform
Benjtalkshow Nov 17, 2025
9135f2e
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 17, 2025
c2409f4
fix: add tagline
Benjtalkshow Nov 18, 2025
b08579a
fix: add tagline
Benjtalkshow Nov 18, 2025
4b8ef58
fix: fix conflict
Benjtalkshow Nov 18, 2025
0ee756e
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 19, 2025
ab0384d
fix: minor fixes
Benjtalkshow Nov 20, 2025
91b5c18
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 20, 2025
67c9fee
fix: minor fixes
Benjtalkshow Nov 21, 2025
9b2029b
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 21, 2025
1fca425
fix: fix timeline and prizes
Benjtalkshow Nov 23, 2025
3c057a0
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 23, 2025
a75f5ee
fix: correct timeline events
Benjtalkshow Nov 26, 2025
da0d27f
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 26, 2025
3a0c19b
fix: implement registration deadline policy
Benjtalkshow Nov 27, 2025
c616182
fix: implement registration deadline policy
Benjtalkshow Nov 27, 2025
9a98077
fix: implement registration deadline policy
Benjtalkshow Nov 27, 2025
3ac17f8
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 28, 2025
386a338
feat: implement leave hackathon
Benjtalkshow Nov 28, 2025
f4ed466
feat: implement leave hackathon
Benjtalkshow Nov 28, 2025
12a1705
feat: implement leave hackathon
Benjtalkshow Nov 28, 2025
dd60321
fix: delete hackathon
Benjtalkshow Nov 28, 2025
a4e22b0
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 28, 2025
19dd6ee
fix: implement invite participants
Benjtalkshow Nov 30, 2025
8211c60
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Nov 30, 2025
fdebd0b
fix: implement participant profile viewing
Benjtalkshow Dec 1, 2025
f7fad5c
feat: fetch participants team
Benjtalkshow Dec 1, 2025
c110717
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Dec 1, 2025
68b1a2d
fix: redesign hackathon banner
Benjtalkshow Dec 1, 2025
9cf2a9e
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Dec 1, 2025
d662148
fix: fix hackthon card
Benjtalkshow Dec 4, 2025
6037e99
fix: Resolve conflict: delete middleware.ts
Benjtalkshow Dec 5, 2025
bc80ddb
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Dec 5, 2025
5569590
fix: Resolve conflict in ProfileHeader.tsx
Benjtalkshow Dec 9, 2025
dc1be4f
fix: fix search bar in blog page
Benjtalkshow Dec 24, 2025
67abffb
fix: fix search bar in blog page
Benjtalkshow Dec 24, 2025
a40739f
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Dec 24, 2025
1c4965f
fix: fix search bar in blog page
Benjtalkshow Dec 24, 2025
43a4b9b
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Dec 24, 2025
54bd42e
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Jan 4, 2026
b79d391
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Jan 7, 2026
5c906a5
fix: fix error in fetching team posts
Benjtalkshow Jan 10, 2026
b000eb7
feat: implement create team, get my team
Benjtalkshow Jan 10, 2026
8e95934
feat: implement create team, get my team
Benjtalkshow Jan 11, 2026
59586e4
feat: implement hackathon project submission flow
Benjtalkshow Jan 12, 2026
d812fec
feat: implement voting for submission
Benjtalkshow Jan 14, 2026
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
'use client';

import { useParams } from 'next/navigation';
import { useEffect } from 'react';
import { Loader2, AlertCircle } from 'lucide-react';
import { useHackathonSubmissions } from '@/hooks/hackathon/use-hackathon-submissions';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import { AuthGuard } from '@/components/auth';
import Loading from '@/components/Loading';
import { SubmissionsManagement } from '@/components/organization/hackathons/submissions/SubmissionsManagement';

export default function SubmissionsPage() {
const params = useParams();
const hackathonId = params.hackathonId as string;

const {
submissions,
pagination,
filters,
loading,
error,
fetchSubmissions,
updateFilters,
goToPage,
refresh,
} = useHackathonSubmissions(hackathonId);

useEffect(() => {
if (hackathonId) {
fetchSubmissions();
}
}, [hackathonId, fetchSubmissions]);

if (error) {
return (
<div className='flex min-h-screen items-center justify-center bg-black p-6'>
<Alert
variant='destructive'
className='max-w-md border-red-900/20 bg-red-950/20'
>
<AlertCircle className='h-4 w-4' />
<AlertTitle>Unable to load submissions</AlertTitle>
<AlertDescription className='text-sm text-gray-400'>
{error}
</AlertDescription>
</Alert>
</div>
);
}

return (
<AuthGuard redirectTo='/auth?mode=signin' fallback={<Loading />}>
<div className='min-h-screen bg-black'>
{/* Header */}
<div className='border-b border-gray-900 p-4'>
<div className='mx-auto max-w-7xl'>
<h1 className='text-3xl font-light tracking-tight text-white sm:text-4xl'>
Submissions
</h1>
<p className='mt-2 text-sm text-gray-400'>
View and manage all hackathon submissions
</p>
</div>
</div>

{/* Main Content */}
<div className='mx-auto max-w-7xl px-6 py-12 sm:px-8 lg:px-12'>
{loading && submissions.length === 0 ? (
<div className='flex items-center justify-center py-20'>
<div className='flex flex-col items-center gap-3'>
<Loader2 className='h-6 w-6 animate-spin text-gray-400' />
<p className='text-sm text-gray-500'>Loading submissions...</p>
</div>
</div>
) : (
<SubmissionsManagement
submissions={submissions}
pagination={pagination}
filters={filters}
loading={loading}
onFilterChange={updateFilters}
onPageChange={goToPage}
onRefresh={refresh}
/>
)}
</div>
</div>
</AuthGuard>
);
}
Loading
Loading