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
build(dashboard): upgrade react-goal-calendar to 0.4.0 and find month titles by text in its spec
Khuram Niazb366e378fdd8
diff --git a/__tests__/DailyGoalsCalendar.spec.tsx b/__tests__/DailyGoalsCalendar.spec.tsxindex 5cecc93..dcdfc77 100644--- a/__tests__/DailyGoalsCalendar.spec.tsx+++ b/__tests__/DailyGoalsCalendar.spec.tsx@@ -43,7 +43,7 @@ describe("DailyGoalsCalendar", () => {it("shows the current month from the initial values without fetching", () => {renderCalendar();- expect(calendar().getByRole("status")).toHaveTextContent("Oct 2026");+ expect(calendar().getByText("Oct 2026")).toBeInTheDocument();expect(calendar().getByText(/October 1: Jobs applied 3 of 5, Activity 2\.5 of 4 h/),).toBeInTheDocument();@@ -123,9 +123,9 @@ describe("DailyGoalsCalendar", () => {renderCalendar();expect(cards()).toHaveLength(2);// Oct 1 had 3 jobs, 2.5h: neither met; Oct 2–4 empty; today not met- expect(summary().getByRole("status")).toHaveTextContent(- "October 2026. Goal hit: Jobs applied 0%, Activity 0%",- );+ expect(+ summary().getByText("October 2026. Goal hit: Jobs applied 0%, Activity 0%"),+ ).toBeInTheDocument();// Stat rows are <dt>/<dd>: roles "term" / "definition"const text = (role: string) =>summary().getAllByRole(role).map((el) => el.textContent);@@ -147,7 +147,7 @@ describe("DailyGoalsCalendar", () => {summary().getByRole("button", { name: "Previous month" }),);expect(getDailyGoalValues).toHaveBeenCalledWith("2026-09");- expect(calendar().getByRole("status")).toHaveTextContent("Sep 2026");+ expect(calendar().getByText("Sep 2026")).toBeInTheDocument();});it("summarises a lazily loaded month once it arrives", async () => {@@ -167,9 +167,9 @@ describe("DailyGoalsCalendar", () => {data: { "2026-09-01": { jobs: 5, hours: 4 } },}),);- expect(summary().getByRole("status")).toHaveTextContent(- "September 2026. Goal hit: Jobs applied 3%, Activity 3%",- );+ expect(+ summary().getByText("September 2026. Goal hit: Jobs applied 3%, Activity 3%"),+ ).toBeInTheDocument();expect(cards()[0]).not.toHaveAttribute("aria-busy");expect(cards()[1]).not.toHaveAttribute("aria-busy");});@@ -183,18 +183,18 @@ describe("DailyGoalsCalendar", () => {await user.click(previous());await waitFor(() => expect(toastError).toHaveBeenCalledWith("Boom"));- expect(summary().getByRole("status")).toHaveTextContent(- "September 2026. Goal hit: no data",- );+ expect(+ summary().getByText("September 2026. Goal hit: no data"),+ ).toBeInTheDocument();expect(summary().queryByText("Current streak")).not.toBeInTheDocument();expect(cards()[0]).not.toHaveAttribute("aria-busy");});it("shows no summary when the current month failed to load", () => {render(<DailyGoalsCalendar today={today} initialValues={null} />);- expect(summary().getByRole("status")).toHaveTextContent(- "October 2026. Goal hit: no data",- );+ expect(+ summary().getByText("October 2026. Goal hit: no data"),+ ).toBeInTheDocument();expect(summary().queryByText("Nothing logged")).not.toBeInTheDocument();expect(getDailyGoalValues).not.toHaveBeenCalled();});diff --git a/package-lock.json b/package-lock.jsonindex 7e54745..9c7d96b 100644--- a/package-lock.json+++ b/package-lock.json@@ -63,7 +63,7 @@"react": "19.2.4","react-day-picker": "^9.12.0","react-dom": "19.2.4",- "react-goal-calendar": "^0.3.0",+ "react-goal-calendar": "^0.4.0","react-hook-form": "^7.54.2","sonner": "^2.0.7","tailwind-merge": "^3.6.0",@@ -12093,9 +12093,9 @@}},"node_modules/react-goal-calendar": {- "version": "0.3.0",- "resolved": "https://registry.npmjs.org/react-goal-calendar/-/react-goal-calendar-0.3.0.tgz",- "integrity": "sha512-OBBuEtNXGLiXwFJUUgNoDn7KybVeODwkKIqsSpfqOwfWyvUKdlLn/jzTIRnVoCo24nfNb9fFtpb9jmVyYMgrcQ==",+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/react-goal-calendar/-/react-goal-calendar-0.4.0.tgz",+ "integrity": "sha512-lZYLQf+2Iqm3ezojqnLp4AWlHyKJKrdJYlDaJ0RSJ/gOMwyF2E6amt+0tYvRPM6pkaCxO6seYBtrSQFBVylEng==","license": "MIT","dependencies": {"clsx": "^2.1.1"diff --git a/package.json b/package.jsonindex 4262671..017b31a 100644--- a/package.json+++ b/package.json@@ -83,7 +83,7 @@"react": "19.2.4","react-day-picker": "^9.12.0","react-dom": "19.2.4",- "react-goal-calendar": "^0.3.0",+ "react-goal-calendar": "^0.4.0","react-hook-form": "^7.54.2","sonner": "^2.0.7","tailwind-merge": "^3.6.0",