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.
This commit is contained in:
Marc-André Bombeck committed 2026-11-11 22:24:40 +01:00
1 parent 4a40a63656
commit 9712238d3d
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -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");
});
+1 -1
View File
@@ -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,