Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 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
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
Expand Up @@ -29,10 +29,11 @@ export default function HackathonPage() {
autoFetch: false,
});

const { analytics, loading: analyticsLoading } = useHackathonAnalytics(
organizationId,
hackathonId
);
const {
analytics,
loading: analyticsLoading,
error: analyticsError,
} = useHackathonAnalytics(organizationId, hackathonId);

useEffect(() => {
if (organizationId && hackathonId) {
Expand Down Expand Up @@ -113,6 +114,18 @@ export default function HackathonPage() {
Analytics
</h2>
</div>
{analyticsError && (
<Alert
variant='destructive'
className='mb-6 border-red-900/20 bg-red-950/20'
>
<AlertCircle className='h-4 w-4' />
<AlertTitle>Unable to load analytics</AlertTitle>
<AlertDescription className='text-sm text-gray-400'>
{analyticsError}
</AlertDescription>
</Alert>
)}
<HackathonStatistics
statistics={statistics}
loading={analyticsLoading}
Expand Down
7 changes: 5 additions & 2 deletions components/organization/OrganizationSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ interface OrganizationSettingsProps {
organizationId?: string;
initialData?: {
name?: string;
slug?: string;
logo?: string;
tagline?: string;
about?: string;
metadata?: {
tagline?: string;
about?: string;
};
};
isCreating?: boolean;
}
Expand Down
4 changes: 2 additions & 2 deletions components/organization/hackathons/new/NewHackathonTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default function NewHackathonTab({

if (isLoadingDraft) {
return (
<div className='bg-background-main-bg flex flex-1 items-center justify-center text-white'>
<div className='bg-background-main-bg flex min-h-[60vh] flex-1 items-center justify-center text-white'>
<div className='flex flex-col items-center gap-4'>
<div className='border-primary h-8 w-8 animate-spin rounded-full border-2 border-t-transparent' />
<span className='text-sm text-gray-400'>Loading draft...</span>
Expand All @@ -224,7 +224,7 @@ export default function NewHackathonTab({

if (currentError) {
return (
<div className='bg-background-main-bg flex flex-1 items-center justify-center text-white'>
<div className='bg-background-main-bg flex min-h-[60vh] flex-1 items-center justify-center text-white'>
<div className='flex flex-col items-center gap-4'>
<span className='text-sm text-red-400'>{currentError}</span>
</div>
Expand Down
21 changes: 13 additions & 8 deletions components/organization/tabs/ProfileTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,23 @@ export default function ProfileTab({
const previousOrgId = previousOrgIdRef.current;

if (currentOrgId && currentOrgId !== previousOrgId) {
// Find links either top-level or in metadata
const activeLinks =
activeOrg.links || (activeOrg as any).metadata?.links;

setFormData({
name: activeOrg.name || '',
slug: activeOrg.slug || '',
logo: activeOrg.logo || '',
metadata: {
tagline: activeOrg.metadata?.tagline || '',
about: activeOrg.metadata?.about || '',
tagline:
activeOrg.tagline || (activeOrg as any).metadata?.tagline || '',
about: activeOrg.about || (activeOrg as any).metadata?.about || '',
links: {
website: activeOrg.metadata?.links?.website || '',
x: activeOrg.metadata?.links?.x || '',
github: activeOrg.metadata?.links?.github || '',
others: activeOrg.metadata?.links?.others || '',
website: activeLinks?.website || '',
x: activeLinks?.x || '',
github: activeLinks?.github || '',
others: activeLinks?.others || '',
},
},
});
Expand Down Expand Up @@ -576,7 +581,7 @@ export default function ProfileTab({
</label>

<div className='flex items-start gap-2 rounded-lg bg-zinc-900/30 p-3 text-xs text-zinc-500'>
<AlertCircle className='h-4 w-4 flex-shrink-0 text-zinc-600' />
<AlertCircle className='h-4 w-4 shrink-0 text-zinc-600' />
<div className='space-y-1'>
<p>JPEG or PNG, max 2MB</p>
<p>Recommended: 480 × 480 px</p>
Expand Down Expand Up @@ -625,7 +630,7 @@ export default function ProfileTab({
<div className='space-y-3 pt-2'>
{hasUserChanges && !isCreating && (
<div className='flex items-center gap-2 rounded-lg border border-amber-900/50 bg-amber-500/5 px-3 py-2 text-sm text-amber-500'>
<div className='h-2 w-2 flex-shrink-0 rounded-full bg-amber-500' />
<div className='h-2 w-2 shrink-0 rounded-full bg-amber-500' />
<span>You have unsaved changes</span>
</div>
)}
Expand Down
14 changes: 6 additions & 8 deletions hooks/use-hackathons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ export function useHackathons(
totalPages: response.meta.pagination.totalPages,
totalItems: response.meta.pagination.total,
itemsPerPage: response.meta.pagination.limit,
hasNext: false, // Not provided in this pagination structure
hasPrev: false, // Not provided in this pagination structure
hasNext: false,
hasPrev: false,
}
: {
currentPage: 1,
Expand Down Expand Up @@ -415,16 +415,14 @@ export function useHackathons(
data,
autoSave
);
if (response.data && response.data.data) {
if (response.data) {
setDrafts(prev =>
prev.map(draft =>
draft.id === draftId ? response.data!.data : draft
)
prev.map(draft => (draft.id === draftId ? response.data! : draft))
);
if (currentDraft?.id === draftId) {
setCurrentDraft(response.data.data);
setCurrentDraft(response.data);
}
return response.data.data;
return response.data;
} else {
throw new Error('No draft data received');
}
Expand Down
6 changes: 3 additions & 3 deletions lib/api/hackathons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ export const updateDraftStep = async (
data: any,
autoSave?: boolean
) => {
const res = await api.patch<ApiResponse<UpdateDraftResponse>>(
const res = await api.patch<UpdateDraftResponse>(
`/organizations/${organizationId}/hackathons/draft/${draftId}`,
{
step,
Expand Down Expand Up @@ -1191,11 +1191,11 @@ export const getDraft = async (
organizationId: string,
draftId: string
): Promise<GetDraftResponse> => {
const res = await api.get<ApiResponse<GetDraftResponse>>(
const res = await api.get<GetDraftResponse>(
`/organizations/${organizationId}/hackathons/draft/${draftId}`
);

return res.data.data as GetDraftResponse;
return res.data;
};

/**
Expand Down
Loading