From 6e9d3d5851ef51066747c6b6032346e8f9449291 Mon Sep 17 00:00:00 2001 From: DaRK AnGeL <28630321+masterwishx@users.noreply.github.com> Date: Sat, 7 Nov 2026 10:58:31 +0200 Subject: [PATCH 01/14] fix: update log file icons to white for better visibility Signed-off-by: DaRK AnGeL <28630321+masterwishx@users.noreply.github.com> --- .../usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page index c8c61687..eea3c86d 100644 --- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page +++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page @@ -757,7 +757,7 @@ _(Logs parent folder for Mover Tuning plugin)_: _(Log files)_: -: _(View)_ _(Download)__(No log files yet)_ +: _(View)_ _(Download)__(No log files yet)_ :mover_tune_logfiles_plug: From 623d9e4ee80a1ed0294ee0b79463242ba550898d Mon Sep 17 00:00:00 2001 From: chodeus <190988615+chodeus@users.noreply.github.com> Date: Sat, 7 Nov 2026 17:59:21 +0800 Subject: [PATCH 02/14] Refresh the Log files list while the tab is open A run writes its log when it starts and its summary when it ends, but the list was built once when the page loaded, so a finished run's files only showed after a reload. The tab now reads the list from logList.php every 10 seconds while it is visible, and at once when it becomes visible again. The picked file stays picked while it is still listed. The picker is filled by one function on load and on each refresh, so the labels are built in the page from the translated words and moverLogLabel goes. --- .../plugins/ca.mover.tuning/Mover.tuning.page | 32 ++++++++++++++++++- .../plugins/ca.mover.tuning/logFiles.php | 8 ----- .../plugins/ca.mover.tuning/logList.php | 7 ++++ 3 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/logList.php diff --git a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page index c8c61687..fa61dee9 100644 --- a/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page +++ b/source/ca.mover.tuning/usr/local/emhttp/plugins/ca.mover.tuning/Mover.tuning.page @@ -128,6 +128,32 @@ function mtLogLinks() { document.getElementById('moverLogView').href = '/plugins/ca.mover.tuning/viewLog.php?file=' + file; document.getElementById('moverLogSave').href = '/plugins/ca.mover.tuning/viewLog.php?download=1&file=' + file; } +// Picker text, e.g. "2026-11-07 00:00:01 – Debug log"; the stamp is cut as moverLogStamp in logFiles.php cuts it +var mtLogKinds = _('Mover log'), 'Debug_Mover_tuning' => _('Debug log'), 'Summary' => _('Summary')])?>; +function mtLogLabel(name) { + var cut = name.lastIndexOf('_'), kind = name.slice(0, cut), stamp = name.slice(cut + 1, cut + 18); + return stamp.slice(0, 10) + ' ' + [stamp.slice(11, 13), stamp.slice(13, 15), stamp.slice(15, 17)].join(':') + ' – ' + (mtLogKinds[kind] || kind); +} +// a run writes its log when it starts and its summary when it ends, so the tab reads the list again every 10 s +var mtLogShown = null; +function mtShowLogs(names) { + if (Array.isArray(names) === false || names.join('/') === mtLogShown) return; + mtLogShown = names.join('/'); + var $pick = $('#moverLogFile'), picked = $pick.val(); + $pick.empty().append(names.map(function(name) { return $('