From e9e26aad78b0261911391835ad5e9e2ee40eb5bc Mon Sep 17 00:00:00 2001 From: ai-bot Date: Fri, 16 Oct 2026 18:04:25 +0000 Subject: [PATCH] 32.7 follow-up: status, the three new points, and the new traps (bare-substring assertion, hidden anchor, current menu item) --- ai-note.md | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/ai-note.md b/ai-note.md index 6c4d798..0103b43 100644 --- a/ai-note.md +++ b/ai-note.md @@ -8,12 +8,13 @@ Short working handover for the next model. Keep it short. ## Status -- **Done and verified:** sections 1–31 and section 18 steps 1–11. **Section 32.1, the icon, is done** — the SVG drawing, the favicon on every page, the top-bar brand mark and the two 192 and 512 px PNGs — together with **section 32.2, the UI pass with the retro theme**, **section 32.3, the alert and page texts**, **section 32.4, the bug report** (round 32-A and round 32-B), and **section 32.7, the dashboard menu and the dashboard clean-up**. The follow-up round of 32.1 and 32.2 — the favicon, the top-bar brand mark, the footer at the bottom, the single way back, the history button and the three line/table changes in the history view — is done too. Schema version 12. **511 green tests.** The StartOS package is built, sideloaded and running on a StartOS 0.4.0 box; the package version is still `0.1.0:0`. -- **What is left of section 32:** 32.6 the documentation drift, and then 32.5 the raise to `1.0.0:0` together with section 18 step 12. 32.6 has to come after the rounds it documents, and 32.5 last. One item inside 32.4 is left to the user: **BR-003** — read the 32.4 section below before acting on it, because the report's own wording for it is out of date. The user's own manual pass is also outstanding: the retro theme on a narrow phone, the footer on a short page, the favicon in the tab, the brand mark in the top bar, the top-bar menu and the cleaned dashboard, installing the PWA with the two PNG icons, the history view after the three changes, and the whole box test again. +- **Done and verified:** sections 1–31 and section 18 steps 1–11. **Section 32.1, the icon, is done** — the SVG drawing, the favicon on every page, the top-bar brand mark and the two 192 and 512 px PNGs — together with **section 32.2, the UI pass with the retro theme**, **section 32.3, the alert and page texts**, **section 32.4, the bug report** (round 32-A and round 32-B), and **section 32.7, the dashboard menu and the dashboard clean-up, including its follow-up round**. The follow-up round of 32.1 and 32.2 — the favicon, the top-bar brand mark, the footer at the bottom, the single way back, the history button and the three line/table changes in the history view — is done too. Schema version 12. **513 green tests.** The StartOS package is built, sideloaded and running on a StartOS 0.4.0 box; the package version is still `0.1.0:0`. +- **What is left of section 32:** 32.6 the documentation drift, and then 32.5 the raise to `1.0.0:0` together with section 18 step 12. 32.6 has to come after the rounds it documents, and 32.5 last. One item inside 32.4 is left to the user: **BR-003** — read the 32.4 section below before acting on it, because the report's own wording for it is out of date. The user's own manual pass is also outstanding: the retro theme on a narrow phone, the footer on a short page, the favicon in the tab, the brand mark in the top bar, the top-bar menu with the current page greyed out, the cleaned dashboard, the `Download CSV` link and its note on the history page, the jump to `#history-detail`, installing the PWA with the two PNG icons, and the whole box test again. - **A round stops when it is done.** Do not start the next item unless the user asks. - **Verified how:** the automated suite, the user's manual browser testing, and the install and test round on a StartOS 0.4.0 box. The user runs the suite; the agent has no shell. - **Tests:** `python3 -m unittest discover -s tests`. They run on a Windows copy at `C:\Users\\Downloads\helsesjekk`, so they must pass there as well as on Linux. -- **Known gap, still open, folded into 32.6:** `docs/application.md` and `README.md` still describe the API as it was before section 31 — no login/session endpoints, no gating or CSRF rule, the old maintenance command name, the undated export name, and now also the two new summary fields, the moved field reminder, the added `model` field in the check detail, the icon link on the pages, the two PNG icons, the top-bar menu, the removed dashboard cards, the `Download CSV` link on the history page and the robots rule. The documentation conflict in the bug report (BR-004) covers the same ground. +- **Known gap, still open, folded into 32.6:** `docs/application.md` and `README.md` still describe the API as it was before section 31 — no login/session endpoints, no gating or CSRF rule, the old maintenance command name, the undated export name, and now also the two new summary fields, the moved field reminder, the added `model` field in the check detail, the icon link on the pages, the two PNG icons, the top-bar menu, the removed dashboard cards, the `Download CSV` link and its note on the history page, the `#history-detail` anchor and the robots rule. The documentation conflict in the bug report (BR-004) covers the same ground. +- **These two files are getting large.** `TODO.md` is ~81 KB and this note ~72 KB, and every round rewrites both in full. The document's own convention is that a finished round is one line in the §19–31 table, with the reasoning in the git history. Once 32.6 and 32.5 are done, §32.1–§32.4 and §32.7 can be collapsed into that table the same way, and the round sections in this note can shrink to one line each, keeping only the "Rules that are easy to get wrong" and "Traps" sections. Do that with the user's go-ahead, not on your own. ## Section 32 — what is left @@ -21,21 +22,23 @@ Short working handover for the next model. Keep it short. - **32.2 UI polish — done**, including the follow-up round. See the round 32.2 section below. The only thing left for the user is the manual browser pass on a narrow phone and over the new points. - **32.3 Alert and page texts — done.** See the round 32.3 section below. - **32.4 The bug report — done.** See the section below for what each finding turned out to be. -- **32.7 The dashboard menu and the dashboard clean-up — done.** Six points, all in `TODO.md` §32.7: the `Menu` drop-down in the top bar instead of the Sign out button; the `Configured setup` / `Your keys` heading and the `#key-count` label gone, with `#key-list` moved up under `#setup-shape`; the `Next check` card gone and the earliest due date moved into `Attention`; no placeholder text in an empty alert list; the dashboard history card gone with `Download CSV` moved to `/history`; and no indexing or crawling (`static/robots.txt`, a `noindex, nofollow` meta on all six pages, and an `X-Robots-Tag` header from `_send_security_headers()`). No schema change, no new endpoint, no new feature, and `static/robots.txt` is the only new file. See the round 32.7 section below. It had to be done before 32.6, so the documents describe the released state. +- **32.7 The dashboard menu and the dashboard clean-up — done**, including the three-point follow-up round the user asked for afterwards. Six points in `TODO.md` §32.7: the `Menu` drop-down in the top bar instead of the Sign out button; the `Configured setup` / `Your keys` heading and the `#key-count` label gone, with `#key-list` moved up under `#setup-shape`; the `Next check` card gone and the earliest due date moved into `Attention`; no placeholder text in an empty alert list; the dashboard history card gone with `Download CSV` moved to `/history`; and no indexing or crawling (`static/robots.txt`, a `noindex, nofollow` meta on all six pages, and an `X-Robots-Tag` header from `_send_security_headers()`). The follow-up added `Dashboard` as the first menu entry with the current page greyed out and not clickable, moved the export note to the history page under the button, and made both `View` and a saved check land on `#history-detail`. No schema change, no new endpoint, no new feature, and `static/robots.txt` is the only new file. See the round 32.7 section below. It had to be done before 32.6, so the documents describe the released state. - **32.6 The documentation drift.** `README.md`, `docs/application.md`, `instructions.md`, `UPDATING.md`, `AGENTS.md` and the package's own i18n strings are all behind the code. `TODO.md` §32.6 lists what is wrong in each. It answers the rest of BR-004, and it must be done after 32.1–32.2 and 32.7 and before 32.5, so the documents describe the released state. - **32.5 The version raise.** `0.1.0:0` → `1.0.0:0`, once the items above are done and the user says so. No schema change, no new endpoint, no new feature. `startos/versions/` stays empty, because the app migrates its own schema. ## Round 32.7 — the top-bar menu and the dashboard clean-up -Six points, all in `TODO.md` §32.7. No schema change, no new endpoint, no new feature, no new document, and `static/robots.txt` is the only new file. +Six points, all in `TODO.md` §32.7, plus a three-point follow-up round. No schema change, no new endpoint, no new feature, no new document, and `static/robots.txt` is the only new file. -- **The menu is built by `static/session.js`, not by the pages.** It replaced the lone Sign out button, and it is added on the five application pages — `/login` has none, because `session.js` is not loaded there. The items are `Start health check` → `/health-check`, `Settings` → `/settings`, `History` → `/history`, a separator, and `Sign out`. The first three are `` and Sign out is a `