From 9712238d3dc86c78e29063c092f5e58eaaca8820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 11 Nov 2026 22:24:40 +0100 Subject: [PATCH] fix(about): link the release notes instead of the full changelog Settings, About sent every user to CHANGELOG.md on GitHub, a 1.4 MB file with every release since the first. The link now opens the releases page, which carries the same notes per version and loads. The `changelog` field of /api/version keeps its name and stays a URL. --- src/app/api/version/__tests__/route.test.ts | 5 ++++- src/app/api/version/route.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/api/version/__tests__/route.test.ts b/src/app/api/version/__tests__/route.test.ts index 4803e2ab5..e7f23eb20 100644 --- a/src/app/api/version/__tests__/route.test.ts +++ b/src/app/api/version/__tests__/route.test.ts @@ -44,7 +44,10 @@ describe("GET /api/version", () => { ); expect(body.data.license).toBe("PolyForm-Noncommercial-1.0.0"); expect(body.data.repository).toContain("github.com"); - expect(body.data.changelog).toContain("CHANGELOG"); + // The release notes, not the multi-megabyte CHANGELOG.md. + expect(body.data.changelog).toBe( + "https://github.com/MBombeck/HealthLog/releases", + ); expect(body.data.docs).toContain("docs.healthlog.dev"); }); diff --git a/src/app/api/version/route.ts b/src/app/api/version/route.ts index 953b653c7..c555db487 100644 --- a/src/app/api/version/route.ts +++ b/src/app/api/version/route.ts @@ -63,7 +63,7 @@ export const GET = apiHandler(async () => { builtAt, license: "PolyForm-Noncommercial-1.0.0", repository: "https://github.com/MBombeck/HealthLog", - changelog: "https://github.com/MBombeck/HealthLog/blob/main/CHANGELOG.md", + changelog: "https://github.com/MBombeck/HealthLog/releases", docs: "https://docs.healthlog.dev", offlineGeoEnabled, geoProviderHost,