Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 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
d501680
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Jan 20, 2026
e62d570
fix: team formation updates
Benjtalkshow Feb 3, 2026
15a581b
fix: fix conflict
Benjtalkshow Feb 3, 2026
4d89af9
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 3, 2026
2589770
fix: implement team invitation
Benjtalkshow Feb 5, 2026
ed26db6
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 5, 2026
1d20c57
feat: hackathon submissions bulk actions, ranking and ui refinements
Benjtalkshow Feb 5, 2026
aa259cd
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 5, 2026
18747e4
fix: implement empty state for hackathons page
Benjtalkshow Feb 6, 2026
76a9124
feat: Implement submission visibility and explore submissions
Benjtalkshow Feb 6, 2026
e0fb888
feat: Implement winners tab for hackathon winners display
Benjtalkshow Feb 7, 2026
2775ba8
feat: implement hackathon analytics
Benjtalkshow Feb 11, 2026
199c698
fix: fix coderabbit corrections
Benjtalkshow Feb 11, 2026
e7e78dd
fix: fix coderabbit corrections
Benjtalkshow Feb 11, 2026
736b900
fix: fix coderabbit corrections
Benjtalkshow Feb 11, 2026
e92b634
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 11, 2026
e289ce6
fix: fix conflict
Benjtalkshow Feb 11, 2026
4e45528
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 11, 2026
29c281d
fix: fix organization settings data persistence, hackathondrafts and …
Benjtalkshow Feb 11, 2026
20a31e2
feat: fix user profile
Benjtalkshow Feb 12, 2026
415434e
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 12, 2026
8497f6d
feat: Implemented the participant-facing and hackathon organizers ann…
Benjtalkshow Feb 13, 2026
5f53c32
feat: Implement judging dashboard and detailed breakdowns
Benjtalkshow Feb 15, 2026
5ab6866
feat: Implement judging dashboard and detailed breakdowns
Benjtalkshow Feb 15, 2026
a135b9a
fix: fix coderabbit corrections
Benjtalkshow Feb 15, 2026
9a90100
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 16, 2026
8bfcb29
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 16, 2026
94f4f2e
fix: submission management ux refinements
Benjtalkshow Feb 16, 2026
fc9899e
fix: submission management ux refinements
Benjtalkshow Feb 16, 2026
35449a2
fix: submission management ux refinements
Benjtalkshow Feb 16, 2026
dbda687
fix: submission management ux refinements
Benjtalkshow Feb 16, 2026
a37a0c0
fix: submission management ux refinements
Benjtalkshow Feb 16, 2026
2084f51
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 16, 2026
7e7fe30
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 18, 2026
fc9477a
feat: Implement published hackathon update and reward distribution en…
Benjtalkshow Feb 22, 2026
f92987a
Merge branch 'main' of https://github.com/Benjtalkshow/boundless into…
Benjtalkshow Feb 22, 2026
bfea2a3
fix: fix coderabbit corrections
Benjtalkshow Feb 22, 2026
e6838ea
fix: completed all the refinements for the hackathon rewards and sett…
Benjtalkshow Feb 22, 2026
bdcee3c
fix: I've completed the additional targeted fixes for the hackathon r…
Benjtalkshow Feb 22, 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
23 changes: 21 additions & 2 deletions app/(landing)/hackathons/preview/[orgId]/[draftId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useState, useEffect, useMemo } from 'react';
import { useRouter, useSearchParams } from 'next/navigation';
import { ArrowLeft } from 'lucide-react';
import { getDraft, PrizeTier, VenueType } from '@/lib/api/hackathons';
import { getOrganization } from '@/lib/api/organization';
import { HackathonBanner } from '@/components/hackathons/hackathonBanner';
import { HackathonNavTabs } from '@/components/hackathons/hackathonNavTabs';
import { HackathonOverview } from '@/components/hackathons/overview/hackathonOverview';
Expand Down Expand Up @@ -93,6 +94,18 @@ export default function DraftPreviewPage({ params }: PreviewPageProps) {
resolvedParams.orgId,
resolvedParams.draftId
);
let organizationData = { name: '', logo: '' };
try {
const orgRes = await getOrganization(resolvedParams.orgId);
if (orgRes) {
organizationData = {
name: orgRes.name,
logo: orgRes.logo || '',
};
}
} catch (orgErr) {
console.error('Failed to fetch organization for preview:', orgErr);
}

if (response.success && response.data) {
const draft = response.data;
Expand All @@ -111,8 +124,8 @@ export default function DraftPreviewPage({ params }: PreviewPageProps) {
organizationId: resolvedParams.orgId,
organization: {
id: resolvedParams.orgId,
name: '', // We don't have organizer name from draft
logo: '',
name: organizationData.name,
logo: organizationData.logo,
},

status: 'DRAFT',
Expand Down Expand Up @@ -144,6 +157,12 @@ export default function DraftPreviewPage({ params }: PreviewPageProps) {
submissionDeadline: draft.data.timeline?.submissionDeadline || '',
registrationDeadline:
draft.data.participation?.registrationDeadline || '',
judgingStart: draft.data.timeline?.judgingStart || '',
judgingEnd: draft.data.timeline?.judgingEnd || '',
winnersAnnouncedAt:
draft.data.timeline?.winnersAnnouncedAt ||
draft.data.timeline?.winnerAnnouncementDate ||
'',
customRegistrationDeadline:
draft.data.participation?.registrationDeadline || null,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import PublishWinnersWizard from '@/components/organization/hackathons/rewards/P
import { RewardsPageHeader } from '@/components/organization/hackathons/rewards/RewardsPageHeader';
import { RewardsPageContent } from '@/components/organization/hackathons/rewards/RewardsPageContent';
import { useHackathonRewards } from '@/hooks/use-hackathon-rewards';
import { useRewardDistributionStatus } from '@/hooks/use-reward-distribution-status';
import { useRankAssignment } from '@/hooks/use-rank-assignment';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
import { AuthGuard } from '@/components/auth';
Expand All @@ -27,11 +28,21 @@ export default function RewardsPage() {
isLoadingSubmissions,
error,
refreshEscrow,
refetchHackathon,
resultsPublished,
hackathon,
} = useHackathonRewards(organizationId, hackathonId);

const { handleRankChange } = useRankAssignment();
const [isPublishWizardOpen, setIsPublishWizardOpen] = useState(false);

const {
distributionStatus,
isLoading: isLoadingDistributionStatus,
error: distributionError,
refetch: refetchDistributionStatus,
} = useRewardDistributionStatus(organizationId, hackathonId);
Comment on lines 39 to 44
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Distribution status error is not destructured or displayed.

The useRewardDistributionStatus hook exposes an error field, but it's not included in the destructuring here. If the distribution status API fails (with a non-404 error), the user won't see any feedback. Consider destructuring error and either displaying it in the UI or logging it.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/`(landing)/organizations/[id]/hackathons/[hackathonId]/rewards/page.tsx
around lines 39 - 43, Destructure the error from useRewardDistributionStatus
(e.g., add error to the existing destructuring alongside distributionStatus,
isLoading: isLoadingDistributionStatus, refetch: refetchDistributionStatus) and
handle it: if error exists and it's not a 404 show or render a user-facing
message (or log it via the page logger) so API failures surface to the user;
keep existing 404 handling unchanged.


const maxRank = useMemo(() => prizeTiers.length, [prizeTiers.length]);
const winners = useMemo(
() => submissions.filter(s => s.rank && s.rank <= maxRank),
Expand All @@ -56,6 +67,8 @@ export default function RewardsPage() {

const handlePublishSuccess = () => {
refreshEscrow();
refetchDistributionStatus();
refetchHackathon();
};

return (
Expand Down Expand Up @@ -85,6 +98,14 @@ export default function RewardsPage() {
</Alert>
)}

{!isLoading && distributionError && (
<Alert variant='destructive' className='mb-8'>
<AlertCircle className='h-4 w-4' />
<AlertTitle>Distribution Status Error</AlertTitle>
<AlertDescription>{distributionError}</AlertDescription>
</Alert>
)}

{!isLoading && !error && (
<RewardsPageContent
submissions={submissions}
Expand All @@ -95,6 +116,11 @@ export default function RewardsPage() {
hasWinners={hasWinners}
onPublishClick={() => setIsPublishWizardOpen(true)}
onRankChange={handleRankChangeWrapper}
distributionStatus={distributionStatus}
isLoadingDistributionStatus={isLoadingDistributionStatus}
onRefreshDistributionStatus={refetchDistributionStatus}
resultsPublished={resultsPublished}
escrowAddress={hackathon?.escrowAddress || hackathon?.contractId}
/>
)}

Expand Down
Loading
Loading