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.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
fix nivo library dependency issue
Khuram Niaz542352945230
diff --git a/e2e/add-job.spec.ts b/e2e/add-job.spec.tsindex 6e9fa0b..fd94f00 100644--- a/e2e/add-job.spec.ts+++ b/e2e/add-job.spec.ts@@ -26,43 +26,37 @@ async function createNewJob(page: Page, jobText: string) {await page.getByLabel("Job Title").click();await page.getByPlaceholder("Create or Search title").click();await page.getByPlaceholder("Create or Search title").fill(jobText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst jobTitle = page.getByRole("option", {name: jobText,exact: true,});- if (await jobTitle.isVisible()) {- await jobTitle.click();- } else {- await page.getByText(jobText, { exact: true }).click();- }+ await jobTitle.waitFor({ state: "visible", timeout: 5000 });+ await jobTitle.click({ force: true });await expect(page.getByLabel("Job Title")).toContainText(jobText);await page.getByLabel("Company").click();await page.getByPlaceholder("Create or Search company").click();const companyText = "company test";await page.getByPlaceholder("Create or Search company").fill(companyText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst companyTitle = page.getByRole("option", {name: companyText,exact: true,});- if (await companyTitle.isVisible()) {- await companyTitle.click();- } else {- await page.getByText(companyText).click();- }+ await companyTitle.waitFor({ state: "visible", timeout: 5000 });+ await companyTitle.click({ force: true });await expect(page.getByLabel("Company")).toContainText(companyText);await page.getByLabel("Job Location").click();await page.getByPlaceholder("Create or Search location").click();const locationText = "location test";await page.getByPlaceholder("Create or Search location").fill(locationText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst locationTitle = page.getByRole("option", {name: locationText,exact: true,});- if (await locationTitle.isVisible()) {- await locationTitle.click();- } else {- await page.getByText(locationText).click();- }+ await locationTitle.waitFor({ state: "visible", timeout: 5000 });+ await locationTitle.click({ force: true });await expect(page.getByLabel("Job Location")).toContainText(locationText);await page.getByText("Part-time").click();await page.getByLabel("Job Source").click();diff --git a/e2e/profile.spec.ts b/e2e/profile.spec.tsindex 2e5ebbd..c14b03f 100644--- a/e2e/profile.spec.ts+++ b/e2e/profile.spec.ts@@ -191,15 +191,13 @@ test.describe("Profile page", () => {await page.getByPlaceholder("Create or Search location").click();const locationText = "location test";await page.getByPlaceholder("Create or Search location").fill(locationText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst locationTitle = page.getByRole("option", {name: locationText,exact: true,});- if (await locationTitle.isVisible()) {- await locationTitle.click();- } else {- await page.getByText(locationText).click();- }+ await locationTitle.waitFor({ state: "visible", timeout: 5000 });+ await locationTitle.click({ force: true });await expect(page.getByLabel("Location")).toContainText(locationText);await page.getByPlaceholder("Ex: Bachelor's").click();await page.getByPlaceholder("Ex: Bachelor's").fill("degree text");@@ -208,11 +206,17 @@ test.describe("Profile page", () => {.getByPlaceholder("Ex: Computer Science").fill("computer science");await page.getByLabel("Start Date").click();+ // Wait for popover to be visible and calendar to render+ await page.getByRole("grid").waitFor({ state: "visible", timeout: 5000 });+ await page.waitForTimeout(500); // Additional wait for calendar to stabilizeawait page.getByRole("gridcell", { name: "2", exact: true }).first().click();await page.getByLabel("End Date").click();+ // Wait for popover to be visible and calendar to render+ await page.getByRole("grid").waitFor({ state: "visible", timeout: 5000 });+ await page.waitForTimeout(500); // Additional wait for calendar to stabilizeawait page.getByRole("gridcell", { name: "3", exact: true }).first()@@ -248,45 +252,42 @@ async function addExperience(page: Page, resumeTitle: string, jobText: string) {await page.getByLabel("Job Title").click();await page.getByPlaceholder("Create or Search title").click();await page.getByPlaceholder("Create or Search title").fill(jobText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst jobTitle = page.getByRole("option", {name: jobText,exact: true,});- if (await jobTitle.isVisible()) {- await jobTitle.click();- } else {- await page.getByText(jobText).click();- }+ await jobTitle.waitFor({ state: "visible", timeout: 5000 });+ await jobTitle.click({ force: true });await expect(page.getByLabel("Job Title")).toContainText(jobText);await page.getByLabel("Company").click();await page.getByPlaceholder("Create or Search company").click();const companyText = "company test";await page.getByPlaceholder("Create or Search company").fill(companyText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst companyTitle = page.getByRole("option", {name: companyText,exact: true,});- if (await companyTitle.isVisible()) {- await companyTitle.click();- } else {- await page.getByText(companyText).click();- }+ await companyTitle.waitFor({ state: "visible", timeout: 5000 });+ await companyTitle.click({ force: true });await expect(page.getByLabel("Company")).toContainText(companyText);await page.getByLabel("Job Location").click();await page.getByPlaceholder("Create or Search location").click();const locationText = "location test";await page.getByPlaceholder("Create or Search location").fill(locationText);+ await page.waitForTimeout(500); // Wait for debounce and list to stabilizeconst locationTitle = page.getByRole("option", {name: locationText,exact: true,});- if (await locationTitle.isVisible()) {- await locationTitle.click();- } else {- await page.getByText(locationText).click();- }+ await locationTitle.waitFor({ state: "visible", timeout: 5000 });+ await locationTitle.click({ force: true });await expect(page.getByLabel("Job Location")).toContainText(locationText);await page.getByLabel("Start Date").click();+ // Wait for popover to be visible and calendar to render+ await page.getByRole("grid").waitFor({ state: "visible", timeout: 5000 });+ await page.waitForTimeout(500); // Additional wait for calendar to stabilizeawait page.getByRole("gridcell", { name: "2", exact: true }).first().click();await page.locator("div:nth-child(2) > .tiptap").click();await page.locator("div:nth-child(2) > .tiptap").fill("test description");diff --git a/package-lock.json b/package-lock.jsonindex 6ed7bda..fa5a08d 100644--- a/package-lock.json+++ b/package-lock.json@@ -25,7 +25,7 @@"@radix-ui/react-radio-group": "^1.2.2","@radix-ui/react-scroll-area": "^1.2.2","@radix-ui/react-select": "^2.1.3",- "@radix-ui/react-slot": "^1.1.1",+ "@radix-ui/react-slot": "^1.2.4","@radix-ui/react-switch": "^1.1.2","@radix-ui/react-tabs": "^1.1.2","@radix-ui/react-toast": "^1.2.3",diff --git a/package.json b/package.jsonindex 99e9f5f..096e0a5 100644--- a/package.json+++ b/package.json@@ -21,7 +21,6 @@"@nivo/core": "^0.99.0","@prisma/client": "^6.19.0","@radix-ui/react-alert-dialog": "^1.1.3",- "@react-spring/web": "^10.0.3","@radix-ui/react-avatar": "^1.1.2","@radix-ui/react-dialog": "^1.1.3","@radix-ui/react-dropdown-menu": "^2.1.3",@@ -31,12 +30,13 @@"@radix-ui/react-radio-group": "^1.2.2","@radix-ui/react-scroll-area": "^1.2.2","@radix-ui/react-select": "^2.1.3",- "@radix-ui/react-slot": "^1.1.1",+ "@radix-ui/react-slot": "^1.2.4","@radix-ui/react-switch": "^1.1.2","@radix-ui/react-tabs": "^1.1.2","@radix-ui/react-toast": "^1.2.3","@radix-ui/react-toggle": "^1.1.1","@radix-ui/react-tooltip": "^1.1.5",+ "@react-spring/web": "^10.0.3","@tiptap/pm": "^2.10.3","@tiptap/react": "^2.10.3","@tiptap/starter-kit": "^2.10.3",diff --git a/src/actions/profile.actions.ts b/src/actions/profile.actions.tsindex a835093..b485731 100644--- a/src/actions/profile.actions.ts+++ b/src/actions/profile.actions.ts@@ -431,13 +431,7 @@ export const addResumeSummary = async (},},});- /* Warning: a dynamic page path "/dashboard/profile/resume/[id]" was passed- to "revalidatePath", but the "type" parameter is missing.- This has no effect by default,- see more info here https://nextjs.org/docs/app/api-reference/functions/revalidatePath- revalidatePath("/dashboard/profile/resume/[id]", "page");- */- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: summary, success: true };} catch (error) {const msg = "Failed to create summary.";@@ -475,7 +469,7 @@ export const updateResumeSummary = async (},},});- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: summary, success: true };} catch (error) {const msg = "Failed to update summary.";@@ -524,7 +518,7 @@ export const addExperience = async (},},});- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: experience, success: true };} catch (error) {const msg = "Failed to create experience.";@@ -563,7 +557,7 @@ export const updateExperience = async (description: data.jobDescription,},});- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: summary, success: true };} catch (error) {const msg = "Failed to update experience.";@@ -608,7 +602,7 @@ export const addEducation = async (},},});- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: education, success: true };} catch (error) {const msg = "Failed to create education.";@@ -648,7 +642,7 @@ export const updateEducation = async (description: data.description,},});- revalidatePath("/dashboard/profile/resume/[id]", "page");+ revalidatePath(`/dashboard/profile/resume/${data.resumeId}`);return { data: summary, success: true };} catch (error) {const msg = "Failed to update education.";diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxindex 0ba4277..36496a2 100644--- a/src/components/ui/button.tsx+++ b/src/components/ui/button.tsx@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"import { cn } from "@/lib/utils"const buttonVariants = cva(- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants: {variant: {diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsxindex a1297bc..4067bcf 100644--- a/src/components/ui/calendar.tsx+++ b/src/components/ui/calendar.tsx@@ -30,6 +30,8 @@ function Calendar({showOutsideDays={showOutsideDays}className={cn("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,className)}captionLayout={captionLayout}@@ -71,7 +73,10 @@ function Calendar({"has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",defaultClassNames.dropdown_root),- dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),+ dropdown: cn(+ "bg-popover absolute inset-0 opacity-0",+ defaultClassNames.dropdown+ ),caption_label: cn("select-none font-medium",captionLayout === "label"@@ -95,10 +100,7 @@ function Calendar({defaultClassNames.week_number),day: cn(- "relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",- props.showWeekNumber- ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"- : "[&:first-child[data-selected=true]_button]:rounded-l-md",+ "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",defaultClassNames.day),range_start: cn(