Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
519 changes: 237 additions & 282 deletions __mocks__/tracks.ts

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions __tests__/csvAlgorithm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ describe('csvAlgorithm track matching', () => {

it('does not attempt to correct spelling', () => {
expect(matchCanonicalTrack('Best Hardwre Hack')).toBeNull();
expect(matchCanonicalTrack('Best Assistive Technlogy')).toBeNull();
expect(matchCanonicalTrack('Best Entreprneurship Hack')).toBeNull();
});

it('ingests all opt-in tracks and does not cap length', () => {
const tracks = sortTracks(
'best hardware hack',
'',
'',
'Best Use of Gemini API; Best Use of MongoDB Atlas, Best Use of Vectara | Best Use of Auth0'
'Best UI/UX Design; Best Entrepreneurship Hack, Best Statistical Model | Best AI/ML Hack'
);

expect(tracks).toEqual([
'Best Hardware Hack',
'Best Use of Gemini API',
'Best Use of MongoDB Atlas',
'Best Use of Vectara',
'Best Use of Auth0',
'Best UI/UX Design',
'Best Entrepreneurship Hack',
'Best Statistical Model',
'Best AI/ML Hack',
]);
});

Expand Down
4 changes: 2 additions & 2 deletions app/(pages)/(hackers)/(hub)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import PrizeTracks from '@pages/(hackers)/_components/PrizeTracks/PrizeTracks';
import PrizeTracks from '@pages/(hackers)/_components/PrizeTracks/PrizeTracks';
import BeginnersSection from '@pages/(hackers)/_components/BeginnersSection/BeginnersSection';
import Discord from '@pages/(hackers)/_components/StayUpToDate/Discord';
import Footer from '@components/Footer/Footer';
Expand Down Expand Up @@ -31,7 +31,7 @@ export default function Page() {
</ClientTimeProtectedDisplay>
</TableNumberContextProvider>
<Discord />
{/* <PrizeTracks /> */}
<PrizeTracks />
<Footer />
</main>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function JudgeBanners() {
const teamNonHDCategories: string[] = team.tracks
.filter((track: string) => track in nonHDTracks)
.map((track: string) => nonHDTracks[track].filter);
const hasNonprofitTrack = teamNonHDCategories.includes('Nonprofit');
const hasNonprofitTrack = teamNonHDCategories.includes('Non-Profit');
const hasSponsorTrack = teamNonHDCategories.includes('Sponsor');
const hasMLHTrack = teamNonHDCategories.includes('MLH');

Comment thread
ReehalS marked this conversation as resolved.
Expand Down
302 changes: 0 additions & 302 deletions app/(pages)/(hackers)/_components/PrizeTracks/PrizeCard.module.scss

This file was deleted.

Loading