From 237b973f2c279fa9157f6ff3fe0c9bdbb2d240c7 Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Tue, 10 Nov 2026 05:49:38 +0100 Subject: [PATCH] The installer's last line and the cockpit's Settings say that a star helps Alzeo is found by what its users say of it, and nothing in it said so (Hasan, 2026-11-09). A run of the installer that ends whole now ends with one line that names the repository, at each of its four endings, and the run started again for another lane says nothing. The Repo panel of the cockpit's Settings view gets a row, What's new: a link to the notes of the version this box runs and the same sentence as a second link. No prompt, no reminder, no window, and no new call from the page. tests/test_install_star_line.py and the new class of dashboard/tests/test_page_details.py fail on the code before. Two checks of tests/test_install_records_release.py read the record one line higher, the new line standing between it and the exit. Two review passes found the page rebuilt the two links at every frame of its stream (focus and clicks lost), linked this version's notes before the release existed, and that the first correction dropped the two lines filling the Mode and Usable pool share rows: the links stay in the page and change only when their value does, the notes of this version are linked once a release at least as new is out, compared number by number, and the two rows are back with a test. The full CI's touch check found the second link broken over two lines on a phone, its middle not under a finger: each link is one box. Co-Authored-By: Claude Fable 5.2 --- dashboard/static/css/cockpit.css | 6 +++ dashboard/static/index.html | 1 + dashboard/static/js/ops.js | 21 ++++++++ dashboard/tests/test_page_details.py | 78 +++++++++++++++++++++++++++ install.sh | 11 ++++ tests/test_install_records_release.py | 16 ++++-- tests/test_install_star_line.py | 66 +++++++++++++++++++++++ 7 files changed, 194 insertions(+), 5 deletions(-) create mode 100644 tests/test_install_star_line.py diff --git a/dashboard/static/css/cockpit.css b/dashboard/static/css/cockpit.css index 61caae18..626bc0c5 100644 --- a/dashboard/static/css/cockpit.css +++ b/dashboard/static/css/cockpit.css @@ -290,6 +290,12 @@ img,svg,video,canvas{display:block; max-width:100%} .facts dt{color:var(--fg-2); padding-right:var(--s-5)} .facts dd{text-align:right; font-variant-numeric:tabular-nums; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .facts dd.wrap{white-space:normal} +/* a link in a cell: its focus ring inside the link, as the cell clips what leaves it */ +.facts dd a:focus-visible{outline-offset:-2px} +/* each link of the What's new row is short and one box, moved whole to the next line when it does not fit: a link + broken over two lines has its middle outside its own text, where a finger then lands on the cell (the touch + check on three phones, 2026-11-10) */ +#rp-new a{display:inline-block; max-width:100%} .facts dd.lines{white-space:pre-line} /* one address a line (Connect a client) */ .facts dd .code{font-size:var(--t-13)} diff --git a/dashboard/static/index.html b/dashboard/static/index.html index 756ac096..a2345167 100644 --- a/dashboard/static/index.html +++ b/dashboard/static/index.html @@ -612,6 +612,7 @@
Working tree
…
Keepalive proxy
…
Update
…
+
What's new
The release notes. If Alzeo serves you well, a star on GitHub helps other owners find it.
diff --git a/dashboard/static/js/ops.js b/dashboard/static/js/ops.js index 475cf28b..e40561d4 100644 --- a/dashboard/static/js/ops.js +++ b/dashboard/static/js/ops.js @@ -554,6 +554,7 @@ function renderConformity(d){ } on('update', d => { renderConformity(d); + whatsNew(); const parts = []; if (d.installed) parts.push(d.installed); const run = d.install_running; @@ -564,8 +565,28 @@ on('update', d => { else parts.push('up to date'); setText('rp-upd', parts.join(', ')); }); +// What the version this box runs changed, and the one place the cockpit says a star helps (Hasan, 2026-11-09): +// two links in the page, which the user opens or not. The page itself asks GitHub nothing, and nothing reminds or +// pops up. The release is published after its code, the reference box being updated in between: the link names +// this version's notes only once the latest release GitHub gave the cockpit's check is this version or a later +// one, compared number by number, and every release until then (the check off or offline, a box ahead of the +// releases). Not by the check's "behind", which compares with the last install this box recorded: a cockpit +// restarted in the middle of an update already runs the new version. Only what changed is written: the stream +// brings the whole state about once a second, and links rebuilt each time lost the keyboard's focus and a click +// that straddled a frame (both found in review, 2026-11-10). +function whatsNew(){ + const a = $('rp-notes'); if (!a) return; + const nums = s => (/^v?(\d+)\.(\d+)\.(\d+)$/.exec(s || '') || []).slice(1).map(Number); + const cur = nums((F.config || {}).version), last = nums((F.update || {}).latest); + const older = i => i < 3 && (last[i] < cur[i] || (last[i] === cur[i] && older(i + 1))); + const out = cur.length === 3 && last.length === 3 && !older(0), v = 'v' + cur.join('.'); + const href = 'https://github.com/hasso5703/alzeo/releases' + (out ? '/tag/' + v : ''); + setText(a, out ? `The notes of ${v}` : 'The release notes'); + if (a.getAttribute('href') !== href) a.setAttribute('href', href); +} on('config', d => { setText('ck-ver', d.version || '?'); + whatsNew(); setText('ck-mode', d.dry_run ? 'dry run: logged and audited, nothing executed' : 'live: actions execute after your confirmation'); setText('ck-usable', Math.round((d.usable_frac || F.usable) * 100) + ' % of the KV pool for one prompt'); const per = d.periods || {}, pv = Object.values(per); diff --git a/dashboard/tests/test_page_details.py b/dashboard/tests/test_page_details.py index a0c00639..2d9e784f 100644 --- a/dashboard/tests/test_page_details.py +++ b/dashboard/tests/test_page_details.py @@ -676,6 +676,84 @@ class TheEditEstimateCountsItsReferences(unittest.TestCase): self.assertAlmostEqual(got, measured, delta=measured * 0.1) +class SettingsLinksTheNotesAndSaysAStarHelps(unittest.TestCase): + """v1.46.0 (Hasan, 2026-11-09): the Repo panel of Settings links the release notes and says, once and only + there, that a star helps other owners find the project. Two links in the page, which the user opens or not: the + page itself asks GitHub nothing. The notes of the version that runs are linked only once the latest release + GitHub gave the cockpit's check is that version or a later one (a release is published after its code), and + every release until then.""" + + NOTES, REPO = "https://github.com/hasso5703/alzeo/releases", "https://github.com/hasso5703/alzeo" + GENERIC = ["The release notes", NOTES, "_blank", "noopener"] + + def row(self, version="'1.46.0'", update="{installed: 'v1.46.0', latest: 'v1.46.0'}"): + return run(self, r""" + feed({config: Object.assign({}, CONFIG, {version: %s}), update: %s}); + const at = a => ['href', 'target', 'rel'].map(k => a.getAttribute(k)); + report({text: txt('rp-new'), notes: [txt('rp-notes')].concat(at($('rp-notes'))), star: at($('rp-star')), + starText: txt('rp-star'), links: $('rp-new').querySelectorAll('a').length}); + """ % (version, update)) + + def test_the_notes_of_the_version_that_runs_once_it_is_out(self): + for version in ("'1.46.0'", "'v1.46.0'"): + for latest in ("v1.46.0", "v1.46.1", "v1.47.0", "v1.100.0", "v2.0.0"): + with self.subTest(version=version, latest=latest): + r = self.row(version, "{installed: 'v1.45.4', latest: '%s', behind: true}" % latest) + self.assertEqual(r["notes"], ["The notes of v1.46.0", self.NOTES + "/tag/v1.46.0", "_blank", "noopener"]) + self.assertEqual(r["star"], [self.REPO, "_blank", "noopener"]) + self.assertEqual(r["text"], "The notes of v1.46.0. If Alzeo serves you well, " + "a star on GitHub helps other owners find it.") + self.assertEqual(r["starText"], "a star on GitHub") + self.assertEqual(r["links"], 2) + + def test_every_release_until_this_one_is_known_to_be_out(self): + """The reference box is updated before the release is tagged, a box can be offline, and the check can be + off: a link to a tag GitHub does not have yet would open on a 404. The check's `behind` does not tell: it + compares the latest release with the last install this box recorded, and a cockpit restarted in the + middle of an update already runs the new version (both found in review, 2026-11-10).""" + for update in ("{installed: 'v1.46.0', latest: 'v1.45.4'}", "{installed: 'v1.45.3', latest: 'v1.45.4', behind: true}", + "{installed: 'v1.45.3', latest: 'v1.9.9', behind: true}", "{installed: 'v1.46.0', latest: null}", + "{installed: 'v1.46.0', latest: 'nightly'}", "{installed: 'v1.46.0', checked: false}", "{}", "undefined"): + with self.subTest(update=update): + r = self.row(update=update) + self.assertEqual(r["notes"], self.GENERIC) + self.assertEqual(r["star"], [self.REPO, "_blank", "noopener"]) + + def test_a_version_it_cannot_read_links_every_release(self): + for version in ("''", "'dev'", "undefined", "'1.46.0