Skip to content
Open
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
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand Down
9 changes: 8 additions & 1 deletion components/home/Submit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ export default function Submit(props: { user: User; ticket: Ticket }) {
const { mutate } = useSWRConfig();
const [submitLoading, setSubmitLoading] = useState(false);

const challengeOptions = ['PushBattle', 'Connections', 'Roni\'s Analysis', 'SQL Murder Mystery', 'Rev\'s Hotel', 'Capital One', 'TAMIDS Challenge', 'Baker Hughes Downsampling Challenge'];
const challengeOptions = [
'Voice Command Survival',
'Game Recruitment',
'Ddjaki',
"Rev's Marbles",
'Red Light Green Light',
'Cookie Regression',
];

if (isLoading || error) {
return <Loading />;
Expand Down
20 changes: 20 additions & 0 deletions components/tickets/TicketStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import { getTimeDifferenceString } from '../../lib/common';
import { Ticket } from '@prisma/client';
import ClaimButton from '../mentor/ClaimButton';

const mentorGuidePaths: { [key: string]: string } = {
'Game Recruitment': '',
'Voice Command Survival':
'https://docs.google.com/document/d/1XDsl1xZvXy-iiw646D48gxAIjat6BpvcggLPNXYIQVM/edit?usp=sharing',
Ddjaki: '',
"Rev's Marbles": '',
'Red Light Green Light': '',
'Cookie Regression': '',
};
export default function TicketStream(props: {
filter: string;
challengeFilter: string;
Expand Down Expand Up @@ -45,6 +54,7 @@ export default function TicketStream(props: {

const ticketList: JSX.Element[] = [];
filteredTickets.map((ticket: Ticket, index: number) => {
const mentorGuidePath = mentorGuidePaths[ticket.challenge] || '#';
ticketList.push(
<div
key={index}
Expand All @@ -62,6 +72,16 @@ export default function TicketStream(props: {
</p>
<p className="mt-2 text-sm">Located at: {ticket.location}</p>
<p className="mt-2 text-sm">Challenge: {ticket.challenge}</p>
<p className="mt-2 text-sm">
<a
href={mentorGuidePath}
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 underline"
>
Mentor Guide
</a>
</p>
</div>
<ClaimButton ticket={ticket} />
</div>
Expand Down
15 changes: 10 additions & 5 deletions pages/mentor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ import TicketStream from '../components/tickets/TicketStream';
export default function Home() {
const [filter, setFilter] = useState('');
const [challengeFilter, setChallengeFilter] = useState('All Challenges');
const challengeOptions = ['PushBattle', 'Connections', 'Roni\'s Analysis', 'SQL Murder Mystery', 'Rev\'s Hotel', 'Capital One', 'TAMIDS Challenge', 'Baker Hughes Downsampling Challenge'];
// const challengeOptions = ['PushBattle', 'Connections', 'Roni\'s Analysis', 'SQL Murder Mystery', 'Rev\'s Hotel', 'Capital One', 'TAMIDS Challenge', 'Baker Hughes Downsampling Challenge'];
const challengeOptions = [
'Voice Command Survival',
'Game Recruitment',
'Ddjaki',
"Rev's Marbles",
'Red Light Green Light',
'Cookie Regression',
];
const handleDropdownChange = (
event: React.ChangeEvent<HTMLSelectElement>
) => {
Expand All @@ -39,10 +47,7 @@ export default function Home() {
content="Online Mentorship Queue For Hackathon Participants"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="icon"
href="/favicon.ico"
/>
<link rel="icon" href="/favicon.ico" />
</Head>
<div className="h-full py-10">
<div className="flex justify-center mt-8 mx-4 md:mt-24">
Expand Down
Loading