mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
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:
1 parent
4a40a63656
commit
9712238d3d
2 files changed
+5
-2
No files matched your search
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user