Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

feat(interviews): drop the Upcoming/Past/All tabs for one newest-first list, truncate long job titles, update the help page

Khuram Niaz1682eda10468
diff --git a/__tests__/InterviewsContainer.spec.tsx b/__tests__/InterviewsContainer.spec.tsx
index 72adff4..aa70414 100644
--- a/__tests__/InterviewsContainer.spec.tsx
+++ b/__tests__/InterviewsContainer.spec.tsx
@@ -60,12 +60,11 @@ beforeEach(() => {
});
describe("InterviewsContainer", () => {
- it("opens on the Upcoming view", async () => {
+ it("loads the first page on mount", async () => {
render(<InterviewsContainer {...props} />);
await waitFor(() =>
expect(getInterviewList).toHaveBeenCalledWith(
- "upcoming",
1,
expect.any(Number),
undefined,
@@ -86,24 +85,6 @@ describe("InterviewsContainer", () => {
expect(screen.getByText("Scheduled")).toBeInTheDocument();
});
- it("refetches with the new view when a segment is picked", async () => {
- render(<InterviewsContainer {...props} />);
- await screen.findByText("Senior Full Stack Developer");
-
- await userEvent.click(screen.getByRole("tab", { name: "Past" }));
-
- await waitFor(() =>
- expect(getInterviewList).toHaveBeenLastCalledWith(
- "past",
- 1,
- expect.any(Number),
- undefined,
- undefined,
- undefined,
- ),
- );
- });
-
it("expands one row at a time", async () => {
(getInterviewList as any).mockResolvedValue({
data: [row(), row({ id: "s2", Job: { ...row().Job, id: "j2" } })],
diff --git a/__tests__/interview.actions.spec.ts b/__tests__/interview.actions.spec.ts
index dce9e64..e9bc835 100644
--- a/__tests__/interview.actions.spec.ts
+++ b/__tests__/interview.actions.spec.ts
@@ -28,35 +28,18 @@ beforeEach(() => {
describe("getInterviewList", () => {
it("reads only interview-status stages owned through the job", async () => {
- await getInterviewList("all");
+ await getInterviewList();
const where = db.jobStage.findMany.mock.calls[0][0].where;
expect(where.Job).toEqual({ userId: user.id });
expect(where.StageType).toEqual({ Status: { value: "interview" } });
});
- it("treats undated rounds as upcoming and orders them last", async () => {
- await getInterviewList("upcoming");
+ it("orders dated rounds newest first over a set with no undated rows", async () => {
+ await getInterviewList();
const args = db.jobStage.findMany.mock.calls[0][0];
- expect(args.where.OR).toEqual([
- { occurredAt: { gte: expect.any(Date) } },
- { occurredAt: null },
- ]);
- // The paged query is the dated half; soonest first
expect(args.where.AND).toContainEqual({ occurredAt: { not: null } });
- expect(args.orderBy[0]).toEqual({ occurredAt: "asc" });
- });
-
- it("orders past rounds newest first over a set with no undated rows", async () => {
- db.jobStage.count.mockResolvedValue(1);
-
- await getInterviewList("past");
-
- const args = db.jobStage.findMany.mock.calls[0][0];
- // The dated split is an AND, so the past window survives it
- expect(args.where.occurredAt).toEqual({ lt: expect.any(Date) });
- expect(args.where.OR).toBeUndefined();
expect(args.orderBy[0]).toEqual({ occurredAt: "desc" });
// total === datedTotal, so no second query for undated rows
expect(db.jobStage.findMany).toHaveBeenCalledTimes(1);
@@ -69,7 +52,7 @@ describe("getInterviewList", () => {
// total 2, dated 1
db.jobStage.count.mockResolvedValueOnce(2).mockResolvedValueOnce(1);
- const res = await getInterviewList("all", 1);
+ const res = await getInterviewList(1);
expect(db.jobStage.findMany.mock.calls[0][0].where.AND).toContainEqual({
occurredAt: { not: null },
@@ -86,7 +69,7 @@ describe("getInterviewList", () => {
db.jobStage.count.mockResolvedValueOnce(35).mockResolvedValueOnce(30);
db.jobStage.findMany.mockResolvedValue([]);
- await getInterviewList("all", 2, 25);
+ await getInterviewList(2, 25);
expect(db.jobStage.findMany.mock.calls[0][0]).toMatchObject({
skip: 25,
@@ -99,7 +82,7 @@ describe("getInterviewList", () => {
});
it("filters by round, company and search together", async () => {
- await getInterviewList("all", 1, 25, "acme", "type-1", "co-1");
+ await getInterviewList(1, 25, "acme", "type-1", "co-1");
const where = db.jobStage.findMany.mock.calls[0][0].where;
expect(where.AND.slice(0, 3)).toEqual([
@@ -119,7 +102,7 @@ describe("getInterviewList", () => {
it("returns the error envelope when there is no session", async () => {
(getCurrentUser as any).mockResolvedValue(null);
- const res = await getInterviewList("all");
+ const res = await getInterviewList();
expect(res).toEqual({ success: false, message: "Not authenticated" });
});
diff --git a/e2e/interviews.spec.ts b/e2e/interviews.spec.ts
index a0d646b..576f3f0 100644
--- a/e2e/interviews.spec.ts
+++ b/e2e/interviews.spec.ts
@@ -22,10 +22,6 @@ test("an interview stage added on a job appears on the Interviews page", async (
await page.goto("/dashboard/interviews");
- // The Add Stage dialog dated the round a moment ago, so Past holds it and
- // the default Upcoming view does not. Switch before asserting anything.
- await page.getByRole("tab", { name: "Past" }).click();
-
const row = page.getByRole("row", { name: new RegExp(jobTitle) });
await expect(row).toBeVisible();
await expect(row).toContainText("Final / Onsite Interview");
diff --git a/src/actions/interview.actions.ts b/src/actions/interview.actions.ts
index dae8802..f8a62ab 100644
--- a/src/actions/interview.actions.ts
+++ b/src/actions/interview.actions.ts
@@ -4,7 +4,6 @@ import { handleError } from "@/lib/utils";
import { requireUser } from "./shared";
import { APP_CONSTANTS } from "@/lib/constants";
import { STAGE_DETAIL_INCLUDE } from "./jobStage/shared";
-import type { InterviewView } from "@/models/interview.model";
// The same include the Timeline tab uses, so a row from this list is a
// complete JobStage and can be handed straight to AddStageDialog.
@@ -21,8 +20,6 @@ const INTERVIEW_LIST_INCLUDE = {
const buildInterviewWhere = (
userId: string,
- view: InterviewView,
- now: Date,
search?: string,
stageTypeId?: string,
companyId?: string,
@@ -32,13 +29,6 @@ const buildInterviewWhere = (
StageType: { Status: { value: "interview" } },
};
- if (view === "upcoming") {
- where.OR = [{ occurredAt: { gte: now } }, { occurredAt: null }];
- } else if (view === "past") {
- where.occurredAt = { lt: now };
- }
-
- // AND, because the upcoming window already owns the top-level OR.
const and: any[] = [];
if (stageTypeId) and.push({ stageTypeId });
if (companyId) and.push({ Job: { companyId } });
@@ -57,15 +47,7 @@ const buildInterviewWhere = (
return where;
};
-// Ordering stays in the query because the list is server-paged. This orders
-// the dated rows only; undated rounds are paged separately after them.
-const interviewOrderBy = (view: InterviewView) =>
- view === "upcoming"
- ? [{ occurredAt: "asc" as const }, { createdAt: "asc" as const }]
- : [{ occurredAt: "desc" as const }, { createdAt: "desc" as const }];
-
export const getInterviewList = async (
- view: InterviewView = "upcoming",
page: number = 1,
limit: number = APP_CONSTANTS.RECORDS_PER_PAGE,
search?: string,
@@ -74,17 +56,10 @@ export const getInterviewList = async (
): Promise<any | undefined> => {
try {
const user = await requireUser();
- const now = new Date();
- const where = buildInterviewWhere(
- user.id,
- view,
- now,
- search,
- stageTypeId,
- companyId,
- );
+ const where = buildInterviewWhere(user.id, search, stageTypeId, companyId);
- // Undated rounds sort last in every view. SQLite has no NULLS LAST and
+ // Ordering stays in the query because the list is server-paged.
+ // Undated rounds sort last. SQLite has no NULLS LAST and
// Prisma's `nulls` option is unsupported there, so the dated rows are
// paged first and the undated ones continue the list once they run out.
const and = where.AND ?? [];
@@ -105,7 +80,7 @@ export const getInterviewList = async (
skip,
take: datedTake,
include: INTERVIEW_LIST_INCLUDE,
- orderBy: interviewOrderBy(view),
+ orderBy: [{ occurredAt: "desc" }, { createdAt: "desc" }],
})
: [];
diff --git a/src/components/interviews/InterviewRow.tsx b/src/components/interviews/InterviewRow.tsx
index e5b6e28..a1151dc 100644
--- a/src/components/interviews/InterviewRow.tsx
+++ b/src/components/interviews/InterviewRow.tsx
@@ -94,14 +94,14 @@ function InterviewRow({
<div className="text-xs text-muted-foreground">{when.time}</div>
)}
</TableCell>
- <TableCell>
+ <TableCell className="max-w-[120px] md:max-w-[220px]">
<Link
href={`/dashboard/myjobs/${interview.Job.id}`}
- className="font-medium text-primary underline-offset-4 hover:underline"
+ className="block truncate font-medium text-primary underline-offset-4 hover:underline"
>
{title}
</Link>
- <div className="text-xs text-muted-foreground">
+ <div className="truncate text-xs text-muted-foreground">
{interview.Job.Company.label}
</div>
</TableCell>
diff --git a/src/components/interviews/InterviewsContainer.tsx b/src/components/interviews/InterviewsContainer.tsx
index 58ef0e9..4e53e48 100644
--- a/src/components/interviews/InterviewsContainer.tsx
+++ b/src/components/interviews/InterviewsContainer.tsx
@@ -10,12 +10,10 @@ import { RecordsCount } from "../RecordsCount";
import { SearchInput } from "../SearchInput";
import InterviewsTable from "./InterviewsTable";
import { InterviewFilters } from "./interviews-container/InterviewFilters";
-import { InterviewViewTabs } from "./interviews-container/InterviewViewTabs";
import { useInterviewsList } from "./interviews-container/useInterviewsList";
import type {
InterviewFilterOption,
InterviewRow as InterviewRowType,
- InterviewView,
} from "@/models/interview.model";
import type { JobStageTypeRef } from "@/models/jobStage.model";
import type { JobStatus } from "@/models/job.model";
@@ -33,7 +31,6 @@ function InterviewsContainer({
stageTypes,
jobStatuses,
}: InterviewsContainerProps) {
- const [view, setView] = useState<InterviewView>("upcoming");
const [searchTerm, setSearchTerm] = useState("");
const [stageTypeId, setStageTypeId] = useState<string | undefined>(undefined);
const [companyId, setCompanyId] = useState<string | undefined>(undefined);
@@ -41,7 +38,7 @@ function InterviewsContainer({
const [editTarget, setEditTarget] = useState<InterviewRowType | null>(null);
const router = useRouter();
- const list = useInterviewsList(view, searchTerm, stageTypeId, companyId);
+ const list = useInterviewsList(searchTerm, stageTypeId, companyId);
const filtered = !!searchTerm || !!stageTypeId || !!companyId;
@@ -67,7 +64,6 @@ function InterviewsContainer({
)}
</div>
<div className="flex flex-wrap items-center justify-end gap-2 sm:ml-auto">
- <InterviewViewTabs view={view} onViewChange={setView} />
<InterviewFilters
rounds={rounds}
companies={companies}
@@ -90,9 +86,7 @@ function InterviewsContainer({
<p className="py-10 text-center text-sm text-muted-foreground">
{filtered
? "No interviews match these filters."
- : view === "past"
- ? "No interviews behind you yet."
- : "No interviews yet. Add an interview stage on a job's Timeline tab and it appears here."}
+ : "No interviews yet. Add an interview stage on a job's Timeline tab and it appears here."}
</p>
) : (
<>
diff --git a/src/components/interviews/interviews-container/InterviewViewTabs.tsx b/src/components/interviews/interviews-container/InterviewViewTabs.tsx
deleted file mode 100644
index 8ccaf28..0000000
--- a/src/components/interviews/interviews-container/InterviewViewTabs.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-"use client";
-
-import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import { INTERVIEW_VIEWS, type InterviewView } from "@/models/interview.model";
-
-const LABELS: Record<InterviewView, string> = {
- upcoming: "Upcoming",
- past: "Past",
- all: "All",
-};
-
-type Props = {
- view: InterviewView;
- onViewChange: (view: InterviewView) => void;
-};
-
-export function InterviewViewTabs({ view, onViewChange }: Props) {
- return (
- <Tabs value={view} onValueChange={(v) => onViewChange(v as InterviewView)}>
- <TabsList>
- {INTERVIEW_VIEWS.map((v) => (
- <TabsTrigger key={v} value={v}>
- {LABELS[v]}
- </TabsTrigger>
- ))}
- </TabsList>
- </Tabs>
- );
-}
diff --git a/src/components/interviews/interviews-container/useInterviewsList.ts b/src/components/interviews/interviews-container/useInterviewsList.ts
index e5c0677..abc2f3b 100644
--- a/src/components/interviews/interviews-container/useInterviewsList.ts
+++ b/src/components/interviews/interviews-container/useInterviewsList.ts
@@ -4,10 +4,9 @@ import { useCallback, useEffect, useRef, useState } from "react";
import { getInterviewList } from "@/actions/interview.actions";
import { APP_CONSTANTS } from "@/lib/constants";
import { useInfiniteScroll } from "@/hooks/useInfiniteScroll";
-import type { InterviewRow, InterviewView } from "@/models/interview.model";
+import type { InterviewRow } from "@/models/interview.model";
export function useInterviewsList(
- view: InterviewView,
searchTerm: string,
stageTypeId?: string,
companyId?: string,
@@ -25,7 +24,6 @@ export function useInterviewsList(
if (nextPage === 1) setInitialLoading(true);
else setLoadingMore(true);
const { data, total: t } = await getInterviewList(
- view,
nextPage,
APP_CONSTANTS.RECORDS_PER_PAGE,
search,
@@ -42,7 +40,7 @@ export function useInterviewsList(
setInitialLoading(false);
setLoadingMore(false);
},
- [view, stageTypeId, companyId],
+ [stageTypeId, companyId],
);
const reload = useCallback(
diff --git a/src/models/interview.model.ts b/src/models/interview.model.ts
index ee3e804..19adb60 100644
--- a/src/models/interview.model.ts
+++ b/src/models/interview.model.ts
@@ -1,11 +1,5 @@
import type { JobStage } from "./jobStage.model";
-// Undated rounds count as upcoming: an unscheduled interview is work still
-// ahead, and it is the row most easily forgotten.
-export const INTERVIEW_VIEWS = ["upcoming", "past", "all"] as const;
-
-export type InterviewView = (typeof INTERVIEW_VIEWS)[number];
-
export interface InterviewRow extends JobStage {
Job: {
id: string;
diff --git a/wiki/getting-started.md b/wiki/getting-started.md
index 09d08a0..5907710 100644
--- a/wiki/getting-started.md
+++ b/wiki/getting-started.md
@@ -39,7 +39,7 @@ Five of them take you to the matching page with the form already open, so you la
- **Dashboard** — summary cards: application counts, recent jobs and activities, weekly charts, and a quick-add card for the six kinds of record you create most.
- **Jobs** — every job you are tracking, plus jobs discovered by automations.
-- **Interviews** — every interview round across your jobs in one list, with upcoming and past views, filters and outcomes.
+- **Interviews** — every interview round across your jobs in one list, with filters and outcomes.
- **Automations** — scheduled searches that pull new postings in and score them against your resume.
- **Tasks** — to-dos with a due date, priority and percent complete, and a timed activity you can start from each one.
- **Activities** — time you spend on your job hunt, timed with a start/stop timer or logged afterwards, optionally started from a task.
diff --git a/wiki/index.md b/wiki/index.md
index 518571b..3984666 100644
--- a/wiki/index.md
+++ b/wiki/index.md
@@ -9,7 +9,7 @@ JobSync tracks job applications, resumes and the work you do around them. These
- [Getting Started](./getting-started.md) — create an account, connect an AI provider, add your first job, and what each area of the app is for.
- [Jobs](./jobs.md) — add jobs manually or by pasting a posting into AI chat, move them through the status workflow, edit, filter, export and delete them.
- [Job Timeline](./timeline.md) — record each stage of a hiring process with its date, link the interviewers, and build a prep list of the questions you expect.
-- [Interviews](./interviews.md) — every interview round across your jobs in one list, with upcoming and past views, filters and outcomes.
+- [Interviews](./interviews.md) — every interview round across your jobs in one list, with filters and outcomes.
- [Contacts](./contacts.md) — track recruiters, interviewers and references, link them to the jobs they touched, and record how you know them.
- [Companies](./companies.md) — a company's details page with its jobs and contacts, watching a company, and why a company can't be deleted.
- [Automations](./automations.md) — set up a scheduled search over Greenhouse, Lever and Ashby company boards, fill in the filters that make it work, and handle the jobs it discovers.
diff --git a/wiki/interviews.md b/wiki/interviews.md
index 4fe0a99..9194c16 100644
--- a/wiki/interviews.md
+++ b/wiki/interviews.md
@@ -3,7 +3,7 @@ type: how-to
title: Interviews
description: One list of every interview round across all your jobs — what is coming up, what is behind you, who you are meeting and what you planned to be asked.
feature: interviews
-tags: [interviews, interview list, upcoming interviews, past interviews, rounds, outcome, scheduled, prep questions, interviewers, format, screening, onsite]
+tags: [interviews, interview list, rounds, outcome, scheduled, prep questions, interviewers, format, screening, onsite]
aliases: [interview list, upcoming interviews, my interviews]
status: stable
stale_after: 2027-09-30
@@ -17,13 +17,9 @@ stale_after: 2027-09-30
Each row shows when the round is, the job and company, which round it is, the format and duration, who is interviewing you, how many prep questions the round has, and its outcome.
-## How do I switch between upcoming and past interviews?
-
-Use the **Upcoming**, **Past** and **All** buttons in the page header. **Upcoming** is where the page opens: it holds every round dated from now on, soonest first, plus any round you have not put a date on yet — an unscheduled round is still work ahead of you, so it stays in the list rather than out of sight, below the scheduled ones. **Past** holds rounds whose date has gone, most recent first. **All** shows everything, newest first, with unscheduled rounds at the end.
-
## How do I find one interview among many?
-Three controls sit beside the view buttons. **All rounds** narrows to one kind of round — *1st Screening Interview*, *Final / Onsite Interview*, or any round name of your own. **All companies** narrows to one company. Both only offer rounds and companies you actually have interviews for, so a choice never gives you an empty table. The **search** box matches the job title, the company, the round name and the interviewers' names, so you can find "everyone I spoke to at Northwind" by typing a name.
+Three controls sit in the page header. **All rounds** narrows to one kind of round — *1st Screening Interview*, *Final / Onsite Interview*, or any round name of your own. **All companies** narrows to one company. Both only offer rounds and companies you actually have interviews for, so a choice never gives you an empty table. The **search** box matches the job title, the company, the round name and the interviewers' names, so you can find "everyone I spoke to at Northwind" by typing a name.
## What does the Outcome column mean?