Skip to content

Fix Digital Bloom dashboard 404 and split portal vs hackathon nav - #365

Draft
aamoghS wants to merge 1 commit into
mainfrom
cursor/hackathon-portal-split-a29b
Draft

Fix Digital Bloom dashboard 404 and split portal vs hackathon nav#365
aamoghS wants to merge 1 commit into
mainfrom
cursor/hackathon-portal-split-a29b

Conversation

@aamoghS

@aamoghS aamoghS commented Aug 27, 2026

Copy link
Copy Markdown
Member

Problem

Opening Hacklytics: Digital Bloom from the admin Hackathons card showed Hackathon unavailable / Hackathon not found. Dashboard links used encodeURIComponent(name), so the path was Hacklytics%3A%20Digital%20Bloom — that matches neither the stored name nor the slug hacklytics-digital-bloom.

Judging Setup also let staff create a second event even when the edition already existed on the hackathon side of the portal.

The sidebar mixed club and hackathon links in one list, so membership vs guest was not obvious.

Changes

  • Admin Dashboard links now use the name slug (/admin/hackathons/hacklytics-digital-bloom), with a UUID fallback if the name has nothing sluggable.
  • hackathon.getById decodes percent-encoded names (including a double-encode from Link) so old bookmarks still resolve.
  • Removed the Judging Setup create-hackathon wizard. /admin/setup redirects to /admin/judging, where Prepare judging already syncs submissions and assigns queues.
  • Sidebar is two sections: Hackathon and Portal. Members get Club Portal + Dashboard under Portal; guests get Dashboard under Hackathon. Staff see the same split on admin tools. Judging Setup is gone from the nav.

Verification

  • pnpm test — 700 passed (includes slug decode, encoded-name getById, and nav grouping by membership).
Open in Web Open in Cursor 

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Visit the preview URL for this PR (updated for commit 86c83de):

https://hacklytics2027--pr-365-hjp3j26s.web.app

(expires Thu, 03 Sep 2026 18:53:41 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c48ba34db61581e25fe2978355160b5eefe0e83f

Co-authored-by: Aamogh <aamoghS@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/hackathon-portal-split-a29b branch from e88bc5c to 86c83de Compare August 27, 2026 18:52
@cursor
cursor Bot deleted the cursor/hackathon-portal-split-a29b branch August 27, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants