repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/FullAnswerCard.tsx | apps/portal/src/components/questions/card/FullAnswerCard.tsx | import type { AnswerCardProps } from './AnswerCard';
import AnswerCard from './AnswerCard';
export type FullAnswerCardProps = Omit<
AnswerCardProps,
'commentCount' | 'votingButtonsSize'
>;
export default function FullAnswerCard(props: FullAnswerCardProps) {
return <AnswerCard {...props} votingButtonsSize="md" /... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/QuestionAnswerCard.tsx | apps/portal/src/components/questions/card/QuestionAnswerCard.tsx | import withHref from '~/utils/questions/withHref';
import type { AnswerCardProps } from './AnswerCard';
import AnswerCard from './AnswerCard';
export type QuestionAnswerCardProps = Required<
Omit<AnswerCardProps, 'showHover' | 'votingButtonsSize'>
>;
function QuestionAnswerCardWithoutHref(props: QuestionAnswerCard... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx | apps/portal/src/components/questions/card/question/BaseQuestionCard.tsx | import clsx from 'clsx';
import { useMemo, useState } from 'react';
import {
BuildingOfficeIcon,
CalendarIcon,
MapPinIcon,
UserCircleIcon,
} from '@heroicons/react/20/solid';
import {
ChatBubbleBottomCenterTextIcon,
CheckIcon,
EyeIcon,
TrashIcon,
} from '@heroicons/react/24/outline';
import type { Quest... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/question/SimilarQuestionCard.tsx | apps/portal/src/components/questions/card/question/SimilarQuestionCard.tsx | import type { BaseQuestionCardProps } from './BaseQuestionCard';
import BaseQuestionCard from './BaseQuestionCard';
export type SimilarQuestionCardProps = Omit<
BaseQuestionCardProps & {
showActionButton: false;
showAggregateStatistics: true;
showAnswerStatistics: false;
showCreateEncounterButton: tr... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/question/FullQuestionCard.tsx | apps/portal/src/components/questions/card/question/FullQuestionCard.tsx | import type { BaseQuestionCardProps } from './BaseQuestionCard';
import BaseQuestionCard from './BaseQuestionCard';
export type QuestionOverviewCardProps = Omit<
BaseQuestionCardProps & {
showActionButton: false;
showAddToList: true;
showAggregateStatistics: true;
showAnswerStatistics: false;
sho... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/question/QuestionOverviewCard.tsx | apps/portal/src/components/questions/card/question/QuestionOverviewCard.tsx | import withHref from '~/utils/questions/withHref';
import type { BaseQuestionCardProps } from './BaseQuestionCard';
import BaseQuestionCard from './BaseQuestionCard';
export type QuestionOverviewCardProps = Omit<
BaseQuestionCardProps & {
showActionButton: false;
showAggregateStatistics: true;
showAnswe... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/card/question/QuestionListCard.tsx | apps/portal/src/components/questions/card/question/QuestionListCard.tsx | import withHref from '~/utils/questions/withHref';
import type { BaseQuestionCardProps } from './BaseQuestionCard';
import BaseQuestionCard from './BaseQuestionCard';
export type QuestionListCardProps = Omit<
BaseQuestionCardProps & {
showActionButton: false;
showAggregateStatistics: true;
showAnswerSta... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/protected/ProtectedDialog.tsx | apps/portal/src/components/questions/protected/ProtectedDialog.tsx | import { signIn } from 'next-auth/react';
import { Button, Dialog } from '~/ui';
export type ProtectedDialogProps = {
onClose: () => void;
show: boolean;
};
export default function ProtectedDialog({
show,
onClose,
}: ProtectedDialogProps) {
const handlePrimaryClick = () => {
signIn();
onClose();
}... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/protected/ProtectedContextProvider.tsx | apps/portal/src/components/questions/protected/ProtectedContextProvider.tsx | import type { PropsWithChildren } from 'react';
import { createContext, useState } from 'react';
import ProtectedDialog from './ProtectedDialog';
export type ProtectedContextData = {
showDialog: () => void;
};
export const ProtectedContext = createContext<ProtectedContextData>({
// eslint-disable-next-line @type... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx | apps/portal/src/components/questions/forms/ContributeQuestionForm.tsx | import { startOfMonth } from 'date-fns';
import { useEffect, useState } from 'react';
import { Controller, useForm } from 'react-hook-form';
import { ArrowPathIcon } from '@heroicons/react/20/solid';
import type { QuestionsQuestionType } from '@prisma/client';
import type { TypeaheadOption } from '~/ui';
import { Check... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx | apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx | import { startOfMonth } from 'date-fns';
import { useState } from 'react';
import { CheckIcon } from '@heroicons/react/20/solid';
import { Button } from '~/ui';
import type { Month } from '~/components/shared/MonthYearPicker';
import MonthYearPicker from '~/components/shared/MonthYearPicker';
import useLocationOption... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/layout/BackButtonLayout.tsx | apps/portal/src/components/questions/layout/BackButtonLayout.tsx | import type { PropsWithChildren } from 'react';
import { ArrowSmallLeftIcon } from '@heroicons/react/24/outline';
import { Button } from '~/ui';
import Container from '~/components/shared/Container';
export type BackButtonLayoutProps = PropsWithChildren<{
href: string;
}>;
export default function BackButtonLayout(... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/comments/QuestionCommentListItem.tsx | apps/portal/src/components/questions/comments/QuestionCommentListItem.tsx | import useQuestionCommentVote from '~/utils/questions/vote/useQuestionCommentVote';
import type { CommentListItemProps } from './CommentListItem';
import CommentListItem from './CommentListItem';
export type QuestionCommentListItemProps = Omit<
CommentListItemProps,
'onDownvote' | 'onUpvote' | 'vote'
> & {
ques... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/comments/AnswerCommentListItem.tsx | apps/portal/src/components/questions/comments/AnswerCommentListItem.tsx | import useAnswerCommentVote from '~/utils/questions/vote/useAnswerCommentVote';
import type { CommentListItemProps } from './CommentListItem';
import CommentListItem from './CommentListItem';
export type AnswerCommentListItemProps = Omit<
CommentListItemProps,
'onDownvote' | 'onUpvote' | 'vote'
> & {
answerComm... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/comments/CommentListItem.tsx | apps/portal/src/components/questions/comments/CommentListItem.tsx | import { formatDistanceToNow } from 'date-fns';
import type { BackendVote } from '../VotingButtons';
import VotingButtons from '../VotingButtons';
export type CommentListItemProps = {
authorImageUrl: string;
authorName: string;
content: string;
createdAt: Date;
onDownvote: () => void;
onUpvote: () => void... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/typeahead/LocationTypeahead.tsx | apps/portal/src/components/questions/typeahead/LocationTypeahead.tsx | import { useState } from 'react';
import type { TypeaheadOption } from '~/ui';
import useLocationOptions from '~/utils/questions/useLocationOptions';
import type { ExpandedTypeaheadProps } from './ExpandedTypeahead';
import ExpandedTypeahead from './ExpandedTypeahead';
import type { Location } from '~/types/question... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/typeahead/RoleTypeahead.tsx | apps/portal/src/components/questions/typeahead/RoleTypeahead.tsx | import { useState } from 'react';
import useJobTitleOptions from '~/utils/shared/useJobTitleOptions';
import type { ExpandedTypeaheadProps } from './ExpandedTypeahead';
import ExpandedTypeahead from './ExpandedTypeahead';
export type RoleTypeaheadProps = Omit<
ExpandedTypeaheadProps,
'label' | 'onQueryChange' | ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/typeahead/CompanyTypeahead.tsx | apps/portal/src/components/questions/typeahead/CompanyTypeahead.tsx | import { useState } from 'react';
import useCompanyOptions from '~/utils/shared/useCompanyOptions';
import type { ExpandedTypeaheadProps } from './ExpandedTypeahead';
import ExpandedTypeahead from './ExpandedTypeahead';
export type CompanyTypeaheadProps = Omit<
ExpandedTypeaheadProps,
'label' | 'onQueryChange' |... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/questions/typeahead/ExpandedTypeahead.tsx | apps/portal/src/components/questions/typeahead/ExpandedTypeahead.tsx | import type { ComponentProps } from 'react';
import { useState } from 'react';
import { useMemo } from 'react';
import { Button, Typeahead } from '~/ui';
import type { RequireAllOrNone } from '~/utils/questions/RequireAllOrNone';
type TypeaheadProps = ComponentProps<typeof Typeahead>;
type TypeaheadOption = Typeahead... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/MobileNavigation.tsx | apps/portal/src/components/global/MobileNavigation.tsx | import clsx from 'clsx';
import Link from 'next/link';
import { Fragment } from 'react';
import { Dialog, Transition } from '@headlessui/react';
import { XMarkIcon } from '@heroicons/react/24/outline';
import { HorizontalDivider } from '~/ui';
import type { GlobalNavigationItems } from './GlobalNavigation';
import typ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/GlobalNavigation.ts | apps/portal/src/components/global/GlobalNavigation.ts | import {
BriefcaseIcon,
CurrencyDollarIcon,
DocumentTextIcon,
} from '@heroicons/react/24/outline';
type GlobalNavigationItem = Readonly<{
href: string;
icon: (props: React.ComponentProps<'svg'>) => JSX.Element;
name: string;
}>;
export type GlobalNavigationItems = ReadonlyArray<GlobalNavigationItem>;
con... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/HomeNavigation.ts | apps/portal/src/components/global/HomeNavigation.ts | // Not using this for now.
// const navigation: ProductNavigationItems = [
// { href: '/offers', name: 'Offers' },
// { href: '/questions', name: 'Question Bank' },
// {
// children: [
// { href: '/resumes', name: 'View Resumes' },
// { href: '/resumes/submit', name: 'Submit Resume' },
// ],
/... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/AppShell.tsx | apps/portal/src/components/global/AppShell.tsx | import clsx from 'clsx';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { signOut, useSession } from 'next-auth/react';
import type { ReactNode } from 'react';
import { Fragment, useState } from 'react';
import { Menu, Transition } from '@headlessui/react';
import { Bars3BottomLeftIcon } ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/GoogleAnalytics.tsx | apps/portal/src/components/global/GoogleAnalytics.tsx | import { useRouter } from 'next/router';
import Script from 'next/script';
import { createContext, useContext, useEffect } from 'react';
type Context = Readonly<{
event: (payload: GoogleAnalyticsEventPayload) => void;
}>;
const MEASUREMENT_ID = 'G-DBLZDQ2ZZN';
export const GoogleAnalyticsContext = createContext<Co... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/global/ProductNavigation.tsx | apps/portal/src/components/global/ProductNavigation.tsx | import clsx from 'clsx';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { Fragment } from 'react';
import { Menu, Transition } from '@headlessui/react';
import { ChevronDownIcon } from '@heroicons/react/20/solid';
import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline';
t... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/JobTypeTabs.tsx | apps/portal/src/components/offers/JobTypeTabs.tsx | import clsx from 'clsx';
import { JobType } from '@prisma/client';
import { JobTypeLabel } from '~/components/offers/constants';
type Props = Readonly<{
onChange: (jobType: JobType) => void;
value: JobType;
}>;
const tabs = [
{
label: JobTypeLabel.FULLTIME,
value: JobType.FULLTIME,
},
{
label: ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/InternshipCycles.ts | apps/portal/src/components/offers/InternshipCycles.ts | import { emptyOption } from './constants';
export const InternshipCycleLabels = [
'Spring',
'Summer',
'Fall',
'Winter',
'Half year',
'Full year',
'Others',
];
export const InternshipCycleOptions = [emptyOption].concat(
InternshipCycleLabels.map((label) => ({
label,
value: label.replace(/\s+/g,... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/Years.ts | apps/portal/src/components/offers/Years.ts | const NUM_YEARS = 5;
const OFFSET = 2;
export const YearsOptions = (yearSelected?: number) =>
Array.from({ length: NUM_YEARS }, (_, i) => {
const year = yearSelected
? yearSelected - OFFSET + i
: new Date().getFullYear() - OFFSET + i;
return {
label: String(year),
value: year,
};
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/Breadcrumbs.tsx | apps/portal/src/components/offers/Breadcrumbs.tsx | import clsx from 'clsx';
import { ChevronRightIcon } from '@heroicons/react/20/solid';
export type BreadcrumbStep = Readonly<{
label: string;
step?: number;
}>;
type BreadcrumbsProps = Readonly<{
currentStep: number;
setStep: (nextStep: number) => void;
steps: ReadonlyArray<BreadcrumbStep>;
}>;
export func... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/EducationLevels.ts | apps/portal/src/components/offers/EducationLevels.ts | import { emptyOption } from './constants';
export const EducationLevelLabels = [
'Bachelor',
'Diploma',
'Masters',
'PhD',
'Professional',
'Secondary',
'Self-taught',
'Bootcamp',
];
export const EducationLevelOptions = [emptyOption].concat(
EducationLevelLabels.map((label) => ({
label,
value:... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/EducationFields.ts | apps/portal/src/components/offers/EducationFields.ts | import { emptyOption } from './constants';
const EducationFieldLabels = {
'aerospace-engineering': 'Aerospace Engineering',
'applied-mathematics': 'Applied Mathematics',
biology: 'Biology',
'biomedical-engineering': 'Biomedical Engineering',
'business-analytics': 'Business Analytics',
'chemical-engineering... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/constants.ts | apps/portal/src/components/offers/constants.ts | export const HOME_URL = '/offers';
export const OFFERS_SUBMIT_URL = '/offers/submit';
export const JobTypeLabel = {
FULLTIME: 'Full-time',
INTERN: 'Internship',
};
export const emptyOption = {
label: '',
value: '',
};
export enum FieldError {
NON_NEGATIVE_NUMBER = 'Please fill in a non-negative number in t... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/types.ts | apps/portal/src/components/offers/types.ts | import type { JobType } from '@prisma/client';
import type { MonthYear } from '~/components/shared/MonthYearPicker';
import type { OffersCompany } from '../../types/offers';
import type { Location } from '~/types/offers';
/**
* Form data types
*/
export type OffersProfileFormData = {
background: BackgroundForm... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/OffersNavigation.tsx | apps/portal/src/components/offers/OffersNavigation.tsx | import type { ProductNavigationItems } from '~/components/global/ProductNavigation';
const navigation: ProductNavigationItems = [
{ href: '/offers/submit', name: 'Analyze your offers' },
{ href: '/offers/features', name: 'Features' },
{ href: '/offers/about', name: 'About' },
];
const navigationAuthenticated: P... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/util/Tooltip.tsx | apps/portal/src/components/offers/util/Tooltip.tsx | import type { ReactNode } from 'react';
import { usePopperTooltip } from 'react-popper-tooltip';
import type { Placement } from '@popperjs/core';
type TooltipProps = Readonly<{
children: ReactNode;
placement?: Placement;
tooltipContent: ReactNode;
}>;
export default function Tooltip({
children,
tooltipConte... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/admin/OffersHeader.tsx | apps/portal/src/components/offers/admin/OffersHeader.tsx | import clsx from 'clsx';
import type { OfferTableSortType } from '~/components/offers/admin/types';
import {
getOppositeSortOrder,
OFFER_TABLE_SORT_ORDER,
} from '~/components/offers/admin/types';
export type OffersTableHeaderProps = Readonly<{
header: string;
isLastColumn: boolean;
onSort?: (
sortDirec... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/admin/OffersRow.tsx | apps/portal/src/components/offers/admin/OffersRow.tsx | import clsx from 'clsx';
import Link from 'next/link';
import { JobType } from '@prisma/client';
import type { JobTitleType } from '~/components/shared/JobTitles';
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
import { convertMoneyToString } from '~/utils/offers/currency';
import { formatDa... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/admin/types.ts | apps/portal/src/components/offers/admin/types.ts | // eslint-disable-next-line no-shadow
export enum YOE_CATEGORY {
ENTRY = 'entry',
INTERN = 'intern',
MID = 'mid',
SENIOR = 'senior',
}
export const YOE_CATEGORY_PARAM: Record<string, number> = {
entry: 1,
intern: 0,
mid: 2,
senior: 3,
};
export const OfferTableYoeOptions = [
{ label: 'All Full Time ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/admin/OffersTablePagination.tsx | apps/portal/src/components/offers/admin/OffersTablePagination.tsx | import { useEffect, useState } from 'react';
import { Pagination, Spinner } from '~/ui';
import type { Paging } from '~/types/offers';
type OffersTablePaginationProps = Readonly<{
endNumber: number;
handlePageChange: (page: number) => void;
isInitialFetch?: boolean;
isLoading?: boolean;
pagination: Paging;
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/admin/OffersTable.tsx | apps/portal/src/components/offers/admin/OffersTable.tsx | import { useRouter } from 'next/router';
import { useEffect, useMemo, useRef, useState } from 'react';
import { JobType } from '@prisma/client';
import { DropdownMenu, Spinner, useToast } from '~/ui';
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
import OffersHeader from '~/components/offer... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offersSubmission/OffersSubmissionAnalysis.tsx | apps/portal/src/components/offers/offersSubmission/OffersSubmissionAnalysis.tsx | import OfferAnalysis from '../offerAnalysis/OfferAnalysis';
import type { ProfileAnalysis } from '~/types/offers';
type Props = Readonly<{
analysis?: ProfileAnalysis | null;
isError: boolean;
isLoading: boolean;
}>;
export default function OffersSubmissionAnalysis({
analysis,
isError,
isLoading,
}: Props)... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx | apps/portal/src/components/offers/offersSubmission/OffersSubmissionForm.tsx | import { useRouter } from 'next/router';
import { useEffect, useRef, useState } from 'react';
import type { SubmitHandler } from 'react-hook-form';
import { FormProvider, useForm } from 'react-hook-form';
import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/20/solid';
import { JobType } from '@prisma/client'... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offersSubmission/OffersProfileSave.tsx | apps/portal/src/components/offers/offersSubmission/OffersProfileSave.tsx | import { signIn, useSession } from 'next-auth/react';
import type { UseQueryResult } from 'react-query';
import { DocumentDuplicateIcon } from '@heroicons/react/20/solid';
import { BookmarkIcon as BookmarkOutlineIcon } from '@heroicons/react/24/outline';
import { BookmarkIcon as BookmarkSolidIcon } from '@heroicons/rea... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx | apps/portal/src/components/offers/offersSubmission/submissionForm/OfferDetailsForm.tsx | import { useEffect, useState } from 'react';
import type {
FieldValues,
UseFieldArrayRemove,
UseFieldArrayReturn,
} from 'react-hook-form';
import { Controller } from 'react-hook-form';
import { useWatch } from 'react-hook-form';
import { useFormContext } from 'react-hook-form';
import { useFieldArray } from 'rea... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offersSubmission/submissionForm/BackgroundForm.tsx | apps/portal/src/components/offers/offersSubmission/submissionForm/BackgroundForm.tsx | import { useFormContext, useWatch } from 'react-hook-form';
import { JobType } from '@prisma/client';
import { Collapsible, RadioList } from '~/ui';
import { FieldError } from '~/components/offers/constants';
import type { BackgroundPostData } from '~/components/offers/types';
import { CURRENCY_OPTIONS } from '~/util... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormRadioList.tsx | apps/portal/src/components/offers/forms/FormRadioList.tsx | import type { ComponentProps } from 'react';
import { useFormContext } from 'react-hook-form';
import { RadioList } from '~/ui';
type RadioListProps = ComponentProps<typeof RadioList>;
type FormRadioListProps = Omit<RadioListProps, 'onChange'>;
export default function FormRadioList({ name, ...rest }: FormRadioListPr... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx | apps/portal/src/components/offers/forms/FormCompaniesTypeahead.tsx | import type { ComponentProps } from 'react';
import { useFormContext, useWatch } from 'react-hook-form';
import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead';
type Props = Omit<
ComponentProps<typeof CompaniesTypeahead>,
'onSelect' | 'value'
> & {
names: { label: string; value: string };
};
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormTextInput.tsx | apps/portal/src/components/offers/forms/FormTextInput.tsx | import type { ComponentProps, ForwardedRef } from 'react';
import { forwardRef } from 'react';
import type { UseFormRegisterReturn } from 'react-hook-form';
import { TextInput } from '~/ui';
type TextInputProps = ComponentProps<typeof TextInput>;
type FormTextInputProps = Omit<TextInputProps, 'onChange'> &
Pick<Use... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormSection.tsx | apps/portal/src/components/offers/forms/FormSection.tsx | import { HorizontalDivider } from '~/ui';
export default function FormSection({
children,
title,
}: Readonly<{ children: React.ReactNode; title: string }>) {
return (
<div>
<div className="mb-4">
<h2 className="text-lg font-medium leading-6 text-slate-900">
{title}
</h2>
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormTextArea.tsx | apps/portal/src/components/offers/forms/FormTextArea.tsx | import type { ComponentProps, ForwardedRef } from 'react';
import { forwardRef } from 'react';
import type { UseFormRegisterReturn } from 'react-hook-form';
import { TextArea } from '~/ui';
type TextAreaProps = ComponentProps<typeof TextArea>;
type FormTextAreaProps = Omit<TextAreaProps, 'onChange'> &
Pick<UseFormR... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormJobTitlesTypeahead.tsx | apps/portal/src/components/offers/forms/FormJobTitlesTypeahead.tsx | import type { ComponentProps } from 'react';
import { useFormContext, useWatch } from 'react-hook-form';
import type { JobTitleType } from '~/components/shared/JobTitles';
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
import JobTitlesTypeahead from '~/components/shared/JobTitlesTypeahead';
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormSelect.tsx | apps/portal/src/components/offers/forms/FormSelect.tsx | import type { ComponentProps, ForwardedRef } from 'react';
import { forwardRef } from 'react';
import { useFormContext } from 'react-hook-form';
import { Select } from '~/ui';
type SelectProps = ComponentProps<typeof Select>;
type FormSelectProps = Omit<SelectProps, 'onChange'>;
function FormSelectWithRef(
{ name,... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx | apps/portal/src/components/offers/forms/FormCitiesTypeahead.tsx | import type { ComponentProps } from 'react';
import { useFormContext, useWatch } from 'react-hook-form';
import CitiesTypeahead from '~/components/shared/CitiesTypeahead';
type Props = Omit<
ComponentProps<typeof CitiesTypeahead>,
'onSelect' | 'value'
> & {
names: { label: string; value: string };
};
export de... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/forms/FormMonthYearPicker.tsx | apps/portal/src/components/offers/forms/FormMonthYearPicker.tsx | import type { ComponentProps } from 'react';
import { forwardRef } from 'react';
import { useFormContext, useWatch } from 'react-hook-form';
import MonthYearPicker from '~/components/shared/MonthYearPicker';
import { getCurrentMonth, getCurrentYear } from '../../../utils/offers/time';
type MonthYearPickerProps = Com... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/features/LeftTextCard.tsx | apps/portal/src/components/offers/features/LeftTextCard.tsx | import type { StaticImageData } from 'next/image';
import Image from 'next/image';
import type { ReactNode } from 'react';
type LeftTextCardProps = Readonly<{
buttonLabel: string;
description: string;
icon: ReactNode;
imageAlt: string;
imageSrc: StaticImageData;
title: string;
url: string;
}>;
export de... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/features/RightTextCard.tsx | apps/portal/src/components/offers/features/RightTextCard.tsx | import type { StaticImageData } from 'next/image';
import Image from 'next/image';
import type { ReactNode } from 'react';
type RightTextCarddProps = Readonly<{
buttonLabel: string;
description: string;
icon: ReactNode;
imageAlt: string;
imageSrc: StaticImageData;
title: string;
url: string;
}>;
export ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/ProfileDetails.tsx | apps/portal/src/components/offers/profile/ProfileDetails.tsx | import { useState } from 'react';
import {
AcademicCapIcon,
ArrowPathIcon,
BriefcaseIcon,
} from '@heroicons/react/24/outline';
import { Button, Spinner } from '~/ui';
import EducationCard from '~/components/offers/profile/EducationCard';
import OfferCard from '~/components/offers/profile/OfferCard';
import type... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/EducationCard.tsx | apps/portal/src/components/offers/profile/EducationCard.tsx | import { BuildingLibraryIcon, LightBulbIcon } from '@heroicons/react/20/solid';
import type { EducationType } from '~/components/offers/EducationFields';
import { getLabelForEducationFieldType } from '~/components/offers/EducationFields';
import type { EducationDisplayData } from '~/components/offers/types';
type Pro... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/OfferCard.tsx | apps/portal/src/components/offers/profile/OfferCard.tsx | import {
ArrowTrendingUpIcon,
BuildingOfficeIcon,
CalendarIcon,
MapPinIcon,
} from '@heroicons/react/20/solid';
import { JobType } from '@prisma/client';
import { JobTypeLabel } from '~/components/offers/constants';
import { InternshipCycleValuesToLabels } from '~/components/offers/InternshipCycles';
import ty... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/ProfileComments.tsx | apps/portal/src/components/offers/profile/ProfileComments.tsx | import { signIn, useSession } from 'next-auth/react';
import { useState } from 'react';
import { ClipboardDocumentIcon, ShareIcon } from '@heroicons/react/24/outline';
import { Button, Spinner, TextArea, useToast } from '~/ui';
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
import Expandable... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/ProfileHeader.tsx | apps/portal/src/components/offers/profile/ProfileHeader.tsx | import { useRouter } from 'next/router';
import { signIn, useSession } from 'next-auth/react';
import { useState } from 'react';
import {
BookmarkIcon as BookmarkIconOutline,
BuildingOffice2Icon,
CalendarDaysIcon,
PencilSquareIcon,
TrashIcon,
} from '@heroicons/react/24/outline';
import { BookmarkIcon as Book... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/ProfilePhotoHolder.tsx | apps/portal/src/components/offers/profile/ProfilePhotoHolder.tsx | type ProfilePhotoHolderProps = Readonly<{
size?: 'lg' | 'sm' | 'xs';
}>;
export default function ProfilePhotoHolder({
size = 'lg',
}: ProfilePhotoHolderProps) {
const sizeMap = { lg: '16', sm: '12', xs: '10' };
return (
<span
className={`inline-block h-${sizeMap[size]} w-${sizeMap[size]} overflow-hid... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/comments/CommentCard.tsx | apps/portal/src/components/offers/profile/comments/CommentCard.tsx | import { formatDistanceToNow } from 'date-fns';
import { signIn, useSession } from 'next-auth/react';
import { useState } from 'react';
import { Button, Dialog, TextArea, useToast } from '~/ui';
import ProfilePhotoHolder from '~/components/offers/profile/ProfilePhotoHolder';
import { trpc } from '~/utils/trpc';
impo... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/profile/comments/ExpandableCommentCard.tsx | apps/portal/src/components/offers/profile/comments/ExpandableCommentCard.tsx | import { useState } from 'react';
import CommentCard from '~/components/offers/profile/comments/CommentCard';
import type { Reply } from '~/types/offers';
type Props = Readonly<{
comment: Reply;
profileId: string;
token?: string;
}>;
export default function ExpandableCommentCard({
comment,
profileId,
to... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/dashboard/DashboardProfileCard.tsx | apps/portal/src/components/offers/dashboard/DashboardProfileCard.tsx | import { useRouter } from 'next/router';
import { BookmarkSlashIcon } from '@heroicons/react/20/solid';
import { ArrowRightIcon } from '@heroicons/react/24/outline';
import { Button, useToast } from '~/ui';
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
import DashboardOfferCard from '~/comp... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx | apps/portal/src/components/offers/dashboard/DashboardOfferCard.tsx | import {
ArrowTrendingUpIcon,
BuildingOfficeIcon,
MapPinIcon,
} from '@heroicons/react/20/solid';
import { JobType } from '@prisma/client';
import { JobTypeLabel } from '~/components/offers/constants';
import CompanyProfileImage from '~/components/shared/CompanyProfileImage';
import type { JobTitleType } from '~... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/table/OffersHeader.tsx | apps/portal/src/components/offers/table/OffersHeader.tsx | import clsx from 'clsx';
import type { OfferTableSortType } from '~/components/offers/table/types';
import {
getOppositeSortOrder,
OFFER_TABLE_SORT_ORDER,
} from '~/components/offers/table/types';
export type OffersTableHeaderProps = Readonly<{
header: string;
isLastColumn: boolean;
onSort?: (
sortDirec... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/table/OffersRow.tsx | apps/portal/src/components/offers/table/OffersRow.tsx | import clsx from 'clsx';
import Link from 'next/link';
import { JobType } from '@prisma/client';
import CompanyProfileImage from '~/components/shared/CompanyProfileImage';
import type { JobTitleType } from '~/components/shared/JobTitles';
import { getLabelForJobTitleType } from '~/components/shared/JobTitles';
import... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/table/types.ts | apps/portal/src/components/offers/table/types.ts | // eslint-disable-next-line no-shadow
export enum YOE_CATEGORY {
ENTRY = 'entry',
INTERN = 'intern',
MID = 'mid',
SENIOR = 'senior',
}
export const YOE_CATEGORY_PARAM: Record<string, number> = {
entry: 1,
intern: 0,
mid: 2,
senior: 3,
};
export const OfferTableYoeOptions = [
{ label: 'All Full Time ... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/table/OffersTablePagination.tsx | apps/portal/src/components/offers/table/OffersTablePagination.tsx | import { useEffect, useState } from 'react';
import { Pagination, Spinner } from '~/ui';
import type { Paging } from '~/types/offers';
type OffersTablePaginationProps = Readonly<{
endNumber: number;
handlePageChange: (page: number) => void;
isInitialFetch?: boolean;
isLoading?: boolean;
pagination: Paging;
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/table/OffersTable.tsx | apps/portal/src/components/offers/table/OffersTable.tsx | import { useRouter } from 'next/router';
import { useEffect, useMemo, useRef, useState } from 'react';
import { JobType } from '@prisma/client';
import { DropdownMenu, Spinner, useToast } from '~/ui';
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
import OffersRow from '~/components/offers/t... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offerAnalysis/OfferProfileCard.tsx | apps/portal/src/components/offers/offerAnalysis/OfferProfileCard.tsx | import {
ArrowTrendingUpIcon,
BuildingOfficeIcon,
MapPinIcon,
} from '@heroicons/react/20/solid';
import {
ArrowTopRightOnSquareIcon,
BuildingOffice2Icon,
CalendarDaysIcon,
} from '@heroicons/react/24/outline';
import { JobType } from '@prisma/client';
import CompanyProfileImage from '~/components/shared/C... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offerAnalysis/OfferAnalysis.tsx | apps/portal/src/components/offers/offerAnalysis/OfferAnalysis.tsx | import { useEffect } from 'react';
import { useState } from 'react';
import { ArrowUpRightIcon } from '@heroicons/react/24/outline';
import { JobType } from '@prisma/client';
import { Alert, Button, HorizontalDivider, Spinner, Tabs } from '~/ui';
import OfferPercentileAnalysisText from './OfferPercentileAnalysisText';... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/offers/offerAnalysis/OfferPercentileAnalysisText.tsx | apps/portal/src/components/offers/offerAnalysis/OfferPercentileAnalysisText.tsx | import { OVERALL_TAB } from '../constants';
import type { AnalysisUnit } from '~/types/offers';
type OfferPercentileAnalysisTextProps = Readonly<{
analysis: AnalysisUnit;
isSubmission: boolean;
tab: string;
}>;
export default function OfferPercentileAnalysisText({
tab,
analysis: { noOfOffers, percentile, c... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/ResumePdf.tsx | apps/portal/src/components/resumes/ResumePdf.tsx | import clsx from 'clsx';
import { useEffect, useState } from 'react';
import { Document, Page, pdfjs } from 'react-pdf';
import {
MagnifyingGlassMinusIcon,
MagnifyingGlassPlusIcon,
} from '@heroicons/react/20/solid';
import { Button, Pagination, Spinner } from '~/ui';
pdfjs.GlobalWorkerOptions.workerSrc = `//unpk... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/ResumesNavigation.tsx | apps/portal/src/components/resumes/ResumesNavigation.tsx | import type { ProductNavigationItems } from '~/components/global/ProductNavigation';
const navigation: ProductNavigationItems = [
{ children: [], href: '/resumes/submit', name: 'Submit for review' },
{
children: [],
href: '/resumes/features',
name: 'Features',
},
{
children: [],
href: '/res... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/resume-badge.d.ts | apps/portal/src/components/resumes/badgeIcons/resume-badge.d.ts | export type ResumeBadgeProps = Readonly<{
className: string;
}>;
| typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeTreasureIcon.tsx | apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeTreasureIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeTreasureIcon({
className,
}: ResumeBadgeProps) {
return (
<svg
className={className}
viewBox="0 0 511.672 511.672"
x="0px"
xmlns="http://www.w3.org/2000/svg"
y="0px">
<path
d=... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeRocketIcon.tsx | apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeRocketIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeRocketIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
viewBox="0 0 496.158 496.158"
x="36px"
xmlns="http://www.w3.org/2000/svg"
y="36px">
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeCoolIcon.tsx | apps/portal/src/components/resumes/badgeIcons/popularResumes/ResumeBadgeCoolIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeCoolIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
viewBox="0 0 511.999 511.999"
x="0px"
xmlns="http://www.w3.org/2000/svg"
y="0px">
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeBookIcon.tsx | apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeBookIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeBookIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
viewBox="0 0 512 512"
x="0px"
xmlns="http://www.w3.org/2000/svg"
y="0px">
<path
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeOwlIcon.tsx | apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeOwlIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeOwlIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
viewBox="0 0 511.988 511.988"
x="0px"
xmlns="http://www.w3.org/2000/svg"
y="0px">
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeSageIcon.tsx | apps/portal/src/components/resumes/badgeIcons/topComment/ResumeBadgeSageIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeSageIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
viewBox="0 0 512 512"
x="0px"
xmlns="http://www.w3.org/2000/svg"
y="0px">
<g>
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeDetectiveIcon.tsx | apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeDetectiveIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeDetectiveIcon({
className,
}: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
height="36px"
preserveAspectRatio="xMidYMid meet"
role="img"
viewBox="0 0 36 3... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeSuperheroIcon.tsx | apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeSuperheroIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeSuperheroIcon({
className,
}: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
height="36px"
preserveAspectRatio="xMidYMid meet"
role="img"
viewBox="0 0 36 3... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeEagleIcon.tsx | apps/portal/src/components/resumes/badgeIcons/reviewer/ResumeBadgeEagleIcon.tsx | import type { ResumeBadgeProps } from '../resume-badge';
export default function ResumeBadgeEagleIcon({ className }: ResumeBadgeProps) {
return (
<svg
aria-hidden="true"
className={className}
height="36px"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 36 36"
width="36px"
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/landing/Logo.tsx | apps/portal/src/components/resumes/landing/Logo.tsx | import type { FC } from 'react';
export const Logo: FC = (props) => {
return (
<svg aria-hidden="true" viewBox="0 0 109 40" {...props}>
<path
clipRule="evenodd"
d="M0 20c0 11.046 8.954 20 20 20s20-8.954 20-20S31.046 0 20 0 0 8.954 0 20Zm20 16c-7.264 0-13.321-5.163-14.704-12.02C4.97 22.358 6... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/landing/PrimaryFeatures.tsx | apps/portal/src/components/resumes/landing/PrimaryFeatures.tsx | import clsx from 'clsx';
import Image from 'next/image';
import { useEffect, useState } from 'react';
import { Tab } from '@headlessui/react';
import { Container } from './Container';
import resumeBrowse from './images/screenshots/resumes-browse.png';
import resumeReview from './images/screenshots/resumes-review.png';... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/landing/CallToAction.tsx | apps/portal/src/components/resumes/landing/CallToAction.tsx | import { Container } from './Container';
export function CallToAction() {
return (
<section className="relative overflow-hidden py-32" id="get-started-today">
<Container className="relative">
<div className="mx-auto text-center">
<h2 className="font-display text-3xl tracking-tight text-sl... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/landing/Hero.tsx | apps/portal/src/components/resumes/landing/Hero.tsx | import { Button } from '~/ui';
import { Container } from './Container';
export function Hero() {
return (
<Container className="pb-36 pt-20 text-center lg:pt-32">
<h1 className="font-display mx-auto max-w-4xl text-5xl font-medium tracking-tight text-slate-900 sm:text-7xl">
Resume review{' '}
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/landing/Container.tsx | apps/portal/src/components/resumes/landing/Container.tsx | import clsx from 'clsx';
import type { FC } from 'react';
type ContainerProps = {
children: Array<JSX.Element> | JSX.Element;
className?: string;
};
export const Container: FC<ContainerProps> = ({ className, ...props }) => {
return (
<div
className={clsx('mx-auto max-w-7xl px-4 lg:px-2', className)}
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/browse/ResumeListItems.tsx | apps/portal/src/components/resumes/browse/ResumeListItems.tsx | import ResumeListItem from './ResumeListItem';
import type { Resume } from '~/types/resume';
type Props = Readonly<{
resumes: Array<Resume>;
}>;
export default function ResumeListItems({ resumes }: Props) {
return (
<ul role="list">
{resumes.map((resumeObj: Resume) => (
<li key={resumeObj.id}>
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/browse/ResumeFilterPill.tsx | apps/portal/src/components/resumes/browse/ResumeFilterPill.tsx | import clsx from 'clsx';
type Props = Readonly<{
isSelected: boolean;
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
title: string;
}>;
export default function ResumeFilterPill({
title,
onClick,
isSelected,
}: Props) {
return (
<button
className={clsx(
'border-primary-500 fo... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/browse/ResumeListItem.tsx | apps/portal/src/components/resumes/browse/ResumeListItem.tsx | import clsx from 'clsx';
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
import Link from 'next/link';
import type { UrlObject } from 'url';
import {
AcademicCapIcon,
BriefcaseIcon,
ChevronRightIcon,
StarIcon as ColouredStarIcon,
} from '@heroicons/react/20/solid';
import { ChatBubbleLeftIcon, S... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badges/resumeBadgeConstants.ts | apps/portal/src/components/resumes/badges/resumeBadgeConstants.ts | import ResumeBadgeCoolIcon from '../badgeIcons/popularResumes/ResumeBadgeCoolIcon';
import ResumeBadgeRocketIcon from '../badgeIcons/popularResumes/ResumeBadgeRocketIcon';
import ResumeBadgeTreasureIcon from '../badgeIcons/popularResumes/ResumeBadgeTreasureIcon';
import ResumeBadgeDetectiveIcon from '../badgeIcons/revi... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badges/ResumeUserBadge.tsx | apps/portal/src/components/resumes/badges/ResumeUserBadge.tsx | import type { BadgeIcon } from './resumeBadgeConstants';
type Props = Readonly<{
description: string;
icon: BadgeIcon;
title: string;
}>;
export default function ResumeUserBadge({
description,
icon: Icon,
title,
}: Props) {
return (
<div className="group relative flex items-center justify-center">
... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx | apps/portal/src/components/resumes/badges/ResumeUserBadges.tsx | import { trpc } from '~/utils/trpc';
import type { BadgePayload } from './resumeBadgeConstants';
import { RESUME_USER_BADGES } from './resumeBadgeConstants';
import ResumeUserBadge from './ResumeUserBadge';
type Props = Readonly<{
userId: string;
}>;
const STALE_TIME = 60;
export default function ResumeUserBadges... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/comments/ResumeCommentsForm.tsx | apps/portal/src/components/resumes/comments/ResumeCommentsForm.tsx | import { useState } from 'react';
import type { SubmitHandler } from 'react-hook-form';
import { useForm } from 'react-hook-form';
import { Button, Dialog, TextArea } from '~/ui';
import { useGoogleAnalytics } from '~/components/global/GoogleAnalytics';
import { trpc } from '~/utils/trpc';
type ResumeCommentsFormPro... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx | apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx | import clsx from 'clsx';
import { formatDistanceToNow } from 'date-fns';
import { useState } from 'react';
import ResumeCommentDeleteForm from './comment/ResumeCommentDeleteForm';
import ResumeCommentEditForm from './comment/ResumeCommentEditForm';
import ResumeCommentReplyForm from './comment/ResumeCommentReplyForm';... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
yangshun/tech-interview-handbook | https://github.com/yangshun/tech-interview-handbook/blob/9430396f989730fab83f3ccba16b4955577f107d/apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx | apps/portal/src/components/resumes/comments/ResumeCommentsList.tsx | import { useSession } from 'next-auth/react';
import {
BookOpenIcon,
BriefcaseIcon,
CodeBracketSquareIcon,
FaceSmileIcon,
IdentificationIcon,
SparklesIcon,
} from '@heroicons/react/24/outline';
import { ResumesSection } from '@prisma/client';
import { Spinner } from '~/ui';
import { trpc } from '~/utils/tr... | typescript | MIT | 9430396f989730fab83f3ccba16b4955577f107d | 2026-01-04T15:25:31.531135Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.