From 9f841cc1f4fea571fe2b98b59ded702eba80348a Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 26 Aug 2026 09:52:32 +0900 Subject: [PATCH 01/21] fix(ui): hide ranking engine name from customer copy --- frontend/src/App.test.tsx | 8 ++++---- frontend/src/App.tsx | 12 ++++++------ frontend/src/i18n.ts | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx index 2dee4513d..073ecfb36 100644 --- a/frontend/src/App.test.tsx +++ b/frontend/src/App.test.tsx @@ -3088,11 +3088,11 @@ describe("App, authenticated", () => { ); }); - it("names RankWeave unavailability on home rankings instead of inventing a fused score", async () => { + it("gives a customer action when rankings are unavailable", async () => { stubBackend(); render(); - expect(await screen.findByText("Rankings · RankWeave not available")).toBeInTheDocument(); + expect(await screen.findByText("Rankings are temporarily unavailable. Try again later.")).toBeInTheDocument(); expect(screen.queryByText("Pricing renegotiation: revised quote sent")).not.toBeInTheDocument(); }); @@ -3196,11 +3196,11 @@ describe("App, authenticated", () => { name: /open ranking: public post/i, }); expect(rankingButton).toHaveTextContent("Public post"); - expect(rankingButton).toHaveTextContent("Rankings · rankweave"); + expect(rankingButton).toHaveTextContent("Ranked result"); expect(rankingButton).toHaveTextContent("rank 1"); expect( screen.getByText( - "RankWeave fused newest-first and title-overlap ranks. This is not a calibrated score.", + "Open a result to review the records most relevant to your search.", ), ).toBeInTheDocument(); expect( diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 76ff51dec..8736f1ca5 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -3361,24 +3361,24 @@ function RankingsPanel({ {ranking && ( {ranking.status === "accepted" - ? "rankweave" - : `rankweave · ${ranking.status_reason ?? "unavailable"}`} + ? t("Ranked result") + : t("Rankings temporarily unavailable")} )} {error &&

{error}

} {ranking === null && !error &&

{t("Loading rankings...")}

} {ranking && ranking.status === "unavailable" && ( -

{t("Rankings · RankWeave not available")}

+

{t("Rankings are temporarily unavailable. Try again later.")}

)} {ranking && ranking.status === "accepted" && ranking.rankings.length === 0 && ( -

{t("No fused rankings from RankWeave.")}

+

{t("No ranked records are available. Try a broader search.")}

)} {ranking && ranking.rankings.length > 0 && ( <>

{t( - "RankWeave fused newest-first and title-overlap ranks. This is not a calibrated score.", + "Open a result to review the records most relevant to your search.", )}