feat: implement changelog feature with UI modal and caching

This commit is contained in:
MasterAcnolo
2026-10-06 21:42:57 +02:00
parent 7af6898301
commit b2eb3b3b40
7 changed files with 722 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ const { userThemesPath } = require("../server/helpers/path.helpers");
const { createSystemTray, destroyTray } = require("./tray");
const {sendReport, checkReportService, getReportServiceStatus} = require("./sendReport");
const { isUpdateAvailable, downloadUpdate, installUpdate } = require("./autoUpdater");
const { getChangelog, markChangelogSeen } = require("./changelogManager");
/**
* Security whitelist for feature flags that can be modified at runtime.
@@ -71,6 +72,16 @@ function registerIpcHandlers(getMainWindow) {
*/
ipcMain.handle("version", () => config.version);
/**
* Retrieves the changelog from cache or GitHub API.
*/
ipcMain.handle("get-changelog", () => getChangelog());
/**
* Marks all changelog entries as seen and updates cache.
*/
ipcMain.handle("mark-changelog-seen", () => markChangelogSeen());
/**
* Returns runtime feature configuration object.
*/