A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix: stabilize composed PR validation
Amruth Pillai13adf409e10a
diff --git a/apps/mobile/src/features/career/offer-compare.ts b/apps/mobile/src/features/career/offer-compare.tsindex 9cb3ea207..b015f34ef 100644--- a/apps/mobile/src/features/career/offer-compare.ts+++ b/apps/mobile/src/features/career/offer-compare.ts@@ -30,10 +30,3 @@ export const matchingPlace = (location: string, places: string[]) => {return where.includes(wanted) || wanted.includes(where);});};--/** The pair to open with: the newest offer, and the newest one from a different application. */-export function defaultPair(offers: { id: string; applicationId: string | null }[]) {- const [first] = offers;- const second = offers.find((offer) => offer.applicationId !== first?.applicationId);- return [first?.id, second?.id] as const;-}diff --git a/apps/mobile/src/features/reminders/schedule.ts b/apps/mobile/src/features/reminders/schedule.tsindex 27a225177..91a960895 100644--- a/apps/mobile/src/features/reminders/schedule.ts+++ b/apps/mobile/src/features/reminders/schedule.ts@@ -1,14 +1,10 @@// When local reminders fire, and wall-clock time in a named timezone. Pure: Node runs it in the M5-T2 scenarios.-import { fromZonedDateTime } from "@reactive-resume/utils/timezone";/** Minutes before an interview that a reminder can fire. */export const REMINDER_LEADS = [10, 30, 60, 1440] as const;export type ReminderLead = (typeof REMINDER_LEADS)[number];export const DEFAULT_LEAD: ReminderLead = 30;-/** Follow-ups are whole days; their reminder fires at this wall-clock time in the user's timezone. */-export const FOLLOW_UP_TIME = "09:00";-export type ReminderKind = "interview" | "follow-up";/** One notification per interview and one per application's follow-up; scheduling again replaces it. */@@ -21,9 +17,6 @@ export function reminderTime(start: Date, leadMinutes: number, now = new Date())return at.getTime() > now.getTime() ? at : null;}-/** A follow-up day ("2026-10-21") as the instant 09:00 on that day in `timeZone`. */-export const followUpStart = (date: string, timeZone: string) => fromZonedDateTime(date, FOLLOW_UP_TIME, timeZone);-export const isTimeZone = (value: string) => {try {new Intl.DateTimeFormat("en", { timeZone: value });diff --git a/apps/web/src/features/career/offer-compare.ts b/apps/web/src/features/career/offer-compare.tsindex 9cb3ea207..b015f34ef 100644--- a/apps/web/src/features/career/offer-compare.ts+++ b/apps/web/src/features/career/offer-compare.ts@@ -30,10 +30,3 @@ export const matchingPlace = (location: string, places: string[]) => {return where.includes(wanted) || wanted.includes(where);});};--/** The pair to open with: the newest offer, and the newest one from a different application. */-export function defaultPair(offers: { id: string; applicationId: string | null }[]) {- const [first] = offers;- const second = offers.find((offer) => offer.applicationId !== first?.applicationId);- return [first?.id, second?.id] as const;-}diff --git a/tests/e2e/specs/ai-provider-regressions.spec.ts b/tests/e2e/specs/ai-provider-regressions.spec.tsindex 0f888accc..d4d25a874 100644--- a/tests/e2e/specs/ai-provider-regressions.spec.ts+++ b/tests/e2e/specs/ai-provider-regressions.spec.ts@@ -282,6 +282,7 @@ test("application coach history survives provider-list failure", async ({ authPa.toBe(true);const count = stub.requests.length;let blocked = 0;+ let failProviders = true;await page.route("**/api/rpc/**", async (route) => {const req = route.request();const batched = new URL(req.url()).pathname.endsWith("/__batch__");@@ -289,7 +290,7 @@ test("application coach history survives provider-list failure", async ({ authPaconst providers = entries.flatMap((entry, index) =>new URL(entry.url).pathname === "/api/rpc/aiProviders/list" ? [index] : [],);- if (!providers.length) return route.continue();+ if (!failProviders || !providers.length) return route.continue();blocked++;const response = await route.fetch();const error = {@@ -349,12 +350,17 @@ test("application coach history survives provider-list failure", async ({ authPaawait expect.poll(() => blocked).toBeGreaterThan(beforeReload);await expect(page.getByText("You left the document out.", { exact: true })).toBeVisible({ timeout: 12000 });await expect(composer).toBeDisabled();+ const retryProvider = page.getByRole("button", { name: "Try again", exact: true }).first();+ // Disabled also covers pending lookup; wait for its error before restoring the provider endpoint.+ await expect(retryProvider).toBeVisible();await page.screenshot({ path: info.outputPath("coach-history-provider-error.png") });expect(stub.requests.length).toBe(count);- await page.getByRole("button", { name: "Try again", exact: true }).first().click({ timeout: 10000 });- await page.unroute("**/api/rpc/**");+ // Keep in-flight interceptions alive; only new provider requests should use the real server.+ failProviders = false;+ await retryProvider.click({ timeout: 10000 });await expect(composer).toBeEnabled();expect(stub.requests.length).toBe(count);+ await page.unrouteAll({ behavior: "wait" });});test("Improve shows original target and replacement can be undone", async ({ authPage: page }, info) => {diff --git a/tests/e2e/specs/motion-feedback.spec.ts b/tests/e2e/specs/motion-feedback.spec.tsindex 8c4617c1d..1352f577a 100644--- a/tests/e2e/specs/motion-feedback.spec.ts+++ b/tests/e2e/specs/motion-feedback.spec.ts@@ -209,8 +209,12 @@ test.describe("homepage", () => {page.on("pageerror", (error) => errors.push(error.message));await page.goto("/");await page.waitForLoadState("networkidle");- await page.evaluate(() => window.scrollTo({ top: 600, behavior: "instant" }));- await expect(page.locator("#write")).toHaveAttribute("data-warm", "");+ // Initial router scroll restoration can finish after network idle. Repeat the scroll until+ // its scene update is visible rather than letting that restoration undo the test input.+ await expect(async () => {+ await page.evaluate(() => window.scrollTo({ top: 600, behavior: "instant" }));+ await expect(page.locator("#write")).toHaveAttribute("data-warm", "", { timeout: 1000 });+ }).toPass({ timeout: 10_000 });await expect(page.locator("#prepare")).not.toHaveAttribute("data-warm", "");await page.locator("#design")diff --git a/tests/e2e/specs/rx106-review-regressions.spec.ts b/tests/e2e/specs/rx106-review-regressions.spec.tsindex 9f072ade0..62efb65ca 100644--- a/tests/e2e/specs/rx106-review-regressions.spec.ts+++ b/tests/e2e/specs/rx106-review-regressions.spec.ts@@ -2,7 +2,12 @@ import type { Page } from "@playwright/test";import { readFile } from "node:fs/promises";import { Pool } from "pg";import { expect, test } from "../fixtures/test";-const pool = new Pool({ connectionString: process.env.DATABASE_URL });+// Playwright can reuse this worker for separate fixture groups from the same file.+// Recreate the pool whenever that group starts, matching its afterAll cleanup.+let pool: Pool;+test.beforeAll(() => {+ pool = new Pool({ connectionString: process.env.DATABASE_URL });+});test.afterAll(async () => {await pool.end();});@@ -473,7 +478,7 @@ async function alicePreferences(page: Page) {const profileRows = async (userId: string) =>(await pool.query("SELECT user_id, data FROM career_profile WHERE user_id=$1", [userId])).rows;-test("a sign-out in another tab closes the old account's open Preferences tab", async ({ authPage: page }, info) => {+test("a sign-out in another tab clears the old account's open Preferences tab", async ({ authPage: page }, info) => {const session = await (await page.request.get("/api/auth/get-session")).json();const alice = session.user.id as string;await alicePreferences(page);@@ -487,8 +492,19 @@ test("a sign-out in another tab closes the old account's open Preferences tab",await other.getByRole("button", { name: "Sign out", exact: true }).last().click();await expect(other).toHaveURL(/\/$/);second = await signUpSecondAccount(other);- // This tab received the account change, fenced its queued saves and reloaded into the new session.- await expect(page.getByLabel("What matters to you")).toHaveCount(0);+ // The reload may finish before or after signup: either auth or fresh Preferences is valid.+ // In both cases, the old account's private text must be gone.+ await expect(async () => {+ const field = page.getByLabel("What matters to you");+ if (await field.count()) {+ await expect(field).toHaveValue("", { timeout: 500 });+ await expect(page.getByRole("complementary", { name: "App navigation" })).toContainText("RX106 Second", {+ timeout: 500,+ });+ } else {+ await expect(page).toHaveURL(/\/auth\/login/, { timeout: 500 });+ }+ }).toPass({ timeout: 10_000 });const rows = await profileRows(second.id);const [aliceRow] = await pool.query("SELECT data FROM career_profile WHERE user_id=$1", [alice])