Update for Diskoria 1.7.3: the theme-shaded accent, and a wrong blend model
1.7.3 moved two things the mockups draw with. The sidebar fill went from
#252525 to #1C1C1C (and F9F9F9 to EEEEEE on light), so the nav column reads as
its own surface rather than the page with a seam in it. And the accent is no
longer painted raw: Theme::new now runs it through theme_accent(), which
lightens on dark and darkens on light until it clears the surface behind it.
Pin --demo-accent 8E44AD and every accent pixel on dark is now #AE71C7, while
the Settings swatches and hex field still read 8E44AD -- both correct.
theme.py ports theme_accent rather than baking in one result, including Rust's
round-half-away-from-zero, since Python's round() is half-to-even and would sit
a step off on any channel landing on .5. Checked channel-for-channel against
the Rust for six colours in both themes.
The accuracy pass against fresh captures then found a real error, which is what
it is for. The selected nav row was modelled as the accent composited in LINEAR
light at a FITTED alpha of 0.128, with a note that the source's 38/255 = 0.149
was worse by a factor of five. The alpha was never the problem: the gamma was.
Diskoria has no GPU and no colour-managed compositor -- it writes its own pixels
(lib.rs:2676-2686) and linearises by SQUARING, not by the sRGB 2.4 curve.
Compositing in 2.4 and fitting an alpha to cancel the error works only for the
accent you fitted against, which is why changing both operands at once exposed
it: the row came out two steps off in green, and no alpha in 0.10..0.17 could
fit the new measurement at all. Gamma 2.0 at the SOURCE alpha lands byte-exact,
and for a second accent too (#AE71C7 -> #483351, #3498DB -> #214058, both
confirmed against real captures). theme.blend_raster carries it; core's
blend_linear is untouched, being the correct sRGB blend that Simulacra needs.
The greyed nav label was re-measured, not modelled -- it is a peak-pixel fit and
moves with sb_bg: #616161 over #1C1C1C, alpha 0.284 -> 0.304, from #636363 over
#252525. README's accuracy log records which of the two kinds each entry is, so
the next sidebar change updates one and leaves the other alone.
Settings.md gains a paragraph on the shading, since a reader who picks a swatch
and sees a slightly different colour painted deserves to be told that is the
design and not a bug.
Update for Diskoria 1.7.2: SMART over USB, and the tray opt-in
The wiki stated "no SMART over USB" as a law of the connection, on five pages.
It is not one: most bridges forward the health commands, and 1.7.2 asks them.
- Drive Health: the USB section is now "usually everything, sometimes nothing",
with the three cases that genuinely cannot report -- plain flash drives, older
bridges, and USB-NVMe enclosures on a vendor protocol.
- FAQ, Glossary, Tray and Flyout: same correction, and the retired error string
replaced with the one the app prints now.
- Monitoring and Alerts, Settings: the new "Show USB drives in the tray" switch,
which governs the poll as well as the icon, and the standby rule -- a spun-down
drive is skipped rather than woken, so its history shows a gap.
Mocks: the drive-health-usb card carries the new wording, at the geometry
draw_unavailable actually uses (the old one was 8px out on the icon gap and drew
it two sizes small), and its temperature chart is now empty, which is what a
drive reporting no health would really show. The settings card grows a seventh
row for the USB toggle, off, as shipped.
Update for Diskoria 1.7.1: the app-icon sidebar, and five older drifts
The 1.7.0 sidebar draws appicon2.png at 220px square instead of the
applogo.png wordmark (app.rs FULL_SIDEBAR_USES_APP_ICON), which moved every
nav row down 7px. Re-rendered every image for it, and diffed each mockup
against a fresh capture while doing so -- which is what found the rest:
- Nav labels were txt_sec grey with an accent icon. The app has always drawn
icon and label in ONE colour, white on dark, with selection carried by the
tinted fill and the accent bar alone. Sizes were 14/17 against 15/18.
Running-test scenes now grey the other rows, as a held test lock does.
- The wordmark was a flat 38px; the app sizes it to the panel width, ~55.
widgets.wordmark_size reproduces that arithmetic instead of baking a number.
- Settings' Theme and Accent are one frame with two headings, not two cards.
widgets.card_stack now mirrors card.rs::CardLayout, so card heights here are
derived from a TITLE/ROW/GAP plan rather than hand-counted -- the same fix
KI-18 made in the app, and the staleness that KI-18 note was pointing at.
- The Sector Write gate was redrawn for KI-52: title, four wrapped paragraphs,
full-width accent button. No subtitle, no warning glyph, no fixed breaks.
- Benchmark has ONE combo, listing volumes, and its tiles centre a monospace
value between a title and a block-size footnote.
- The primary button is 48 tall, radius 4, and Stop is CLOSE_HOVER_BG.
The About version is read from diskoria/Cargo.toml now, so a release bump only
needs a re-render; it had been advertising 1.6.1 two releases on.
Prose followed the images: Home's brand block, Settings' card order and "Auto"
(it said "System"), and Benchmark's picker, control table, steps and two error
paragraphs -- one quoting a message string the app no longer has, one
describing the shared-selection rule backwards.
Measurements behind every number are in tools/mockgen/README.txt, accuracy log
entries 9-14.
Back to two <sup> levels: GitHub strips the third
The three-level markers pushed in b72f698 rendered identically to the two-level
ones. GitHub accepts a third <sup> in the source -- it is there in the raw file
-- but the renderer strips it. Verified cache-busted across three pages: raw
markdown at depth 3, rendered HTML at depth 2 on every one.
So two levels, about 69% of body text, is the floor this format allows. The
third was dead weight in the markdown. Recorded in glossify.py so the ceiling is
not rediscovered later.
Take the glossary markers down another size step
Three nested <sup> levels instead of two: about 57% of body text rather than
69%. Each level also lifts the marker further off the baseline, so it sits a
little higher as well as smaller.
Reverting is a one-line change to OPEN/CLOSE in tools/glossify.py followed by a
re-run; the tool is idempotent and its strip regex matches any nesting depth.
Make the glossary markers smaller; remove the sanitizer probe
Nested <sup> takes the marker to about 69% of body text instead of 83%.
That is the only lever available, and it was established by probing the live
sanitizer rather than guessing: <small>, style="" and <font size> are all
stripped from a GitHub wiki, while a nested <sup> survives. The probe page is
removed in this commit.
The underline cannot be removed. GitHub serves data-a11y-link-underlines="true"
site-wide -- present even for anonymous readers -- so every markdown link in
every wiki is underlined, and the only exception in their CSS is for links
inside headings, which markdown cannot reach. A reader who dislikes it can turn
it off in their own GitHub accessibility settings; the wiki cannot decide that
for them. Recorded in glossify.py so it is not re-attempted.
The strip regex now matches both the old single-<sup> and the new nested form,
so the tool stays idempotent across the change.
Link glossary terms from every page, with hover definitions
Each glossary term now gets a superscript "?" after its first use on a page,
linking to the definition and carrying it as a link title -- which browsers show
as a native tooltip. No JavaScript, so it works in a GitHub wiki. 56 markers
across 11 pages.
Glossary.md is restructured to give every term its own ### heading. That is what
makes the links possible at all: GitHub generates anchors from headings only, so
bold terms had nothing to link to. The side benefit is that check.py now
verifies all 56 links for free, against the same slug rule GitHub uses. Entries
that bundled several terms in one paragraph (Partition/Volume/Mounted,
eMMC/UFS) are split so each is addressable.
tools/glossify.py is idempotent -- it strips existing markers before placing new
ones, so it can be re-run after any edit. It refuses to touch blockquotes and
quoted strings, because those are the app's own text and the wiki's promise is
that they can be checked against the binary; also headings, link text, code
spans, tables and image alt.
It also keeps a PROPER_NOUNS list, which the first run proved necessary: it had
marked the "Sector" in "Sector Read Test" -- the name of the page, in that
page's own opening sentence -- rather than the real use of the word later in the
line. Product and UI names are now masked like links are.
FIRST USE PER PAGE, not every use. Marking all 60-odd occurrences of "sector"
would make the pages unreadable.
check.py gains one fix, propagated to both wikis: it now strips an optional link
title before resolving a target. Link titles are standard markdown and it was
previously reading them as part of the anchor.
Also fixes an unclosed quotation mark on Sector Read Test.
Document Export Log, add tray/settings/about images, fix the tray-icon error
Export Log was a glaring omission -- the button was listed in a controls table
and never explained. It now has its own section on Drive Health with two real
screenshots, plus cross-links from Common Tasks and the FAQ. The section covers
what the report contains, that it is dated and self-contained, that an NVMe
report is legitimately shorter, and the use it is actually good for: exporting
one a month and comparing, which the 7-day temperature chart cannot do.
images/export/*.png are THE ONLY REAL SCREENSHOTS in this wiki. That is the
right call for a feature whose whole output is a document -- a drawing of a
report would be a different report. Nothing real is exposed: the reports are
generated from the invented machine by the new --demo-export flag, and captured
headless so there is no browser chrome, no bookmarks and no file path in frame.
README.txt records the method.
CORRECTION, and it was wrong in prose already pushed: the tray icon is a
THERMOMETER, not a number. tray.rs draws a 32x32 thermometer whose fill maps
0-100 degC and whose colour steps green/yellow/orange/red, with grey drawn HALF
full so "no reading" cannot be misread as "stone cold"; an alerting drive's icon
is replaced outright by a solid block with a "!". Both renderers are now
transcribed in scenes/tray.py, so the wiki shows the app's own arithmetic at 4x
rather than my description of it. FAQ carried the same error and is fixed.
Settings' card order was also wrong -- the app goes Theme, Accent, Monitoring,
Test Results, Window, Updates, and I had two of those swapped. Caught by drawing
the page against its reference capture, which also showed the temperature-
critical slider runs red while the other two take the accent.
New images: settings, about, the tray icon set and the flyout. check.py OK --
26 images, all resolving, zero TODOs.
All 13 pages written: 19 images, one animation, zero TODOs
check.py: OK. Every image reference resolves, no broken links, no orphans, CRLF
and pure ASCII throughout, and the TODO count is zero on every page.
Pages added in this pass: Home with a numbered interface tour, Settings, About,
Monitoring and Alerts, Tray and Flyout, Common Tasks, Glossary and FAQ.
The sector-scan animation is the one thing in this app that is genuinely better
animated than described -- the map filling, and the damaged region simply
arriving as the scan reaches it. 15 frames, 594 KB, sliced from the same
deterministic series the stills use so the animation and the screenshots show
one scan rather than two similar ones.
Three things checked against the source rather than guessed, because the
skeleton's TODOs had flagged them as assumptions:
- The tray menus. The app icon offers Open Diskoria / New Window / Quit; an
alerting drive icon offers "Ignore alert for:" with 1 hour, 6 hours, 24
hours and 7 days. The skeleton had speculated a generic "suppress alerts".
- Network access. The only thing Diskoria contacts on its own is the GitHub
releases API. Everything else is a browser link the user clicks.
- The badge placement on the interface tour. The first render put numbers on
top of the "New Window" caption and two nav labels -- hiding the very words
the legend names. They now sit in the gutters beside what they mark.
core is at VERSION 3 and identical in both wikis (core/sync_core.py --diff
confirms). The heat-grid calibration fix is carried to the Simulacra wiki, which
re-rendered byte-identical after it.
Not covered by images: Settings, About, Monitoring and Alerts, and Tray and
Flyout are text-only. The tray and flyout are separate always-on-top windows and
need their own capture pass before they can be drawn honestly.
Skeleton: 13 pages, the mockgen toolkit, and the accuracy log
The wiki was one 31-byte Home page. It now has the full page set, each section
carrying a one-line TODO that quotes the app's real strings, so writing the prose
is transcription rather than invention. check.py reports 153 TODOs across 12
pages as a progress readout, and passes: no broken links, no orphans, CRLF and
pure ASCII throughout.
Page set follows the plan: Home, the six app pages, Monitoring and Alerts and
Tray and Flyout as their own pages (they are features a user chooses, not window
chrome), and Common Tasks / Glossary / FAQ for readers who arrive with a goal
rather than a page in mind.
Two pages lead with their danger rather than noting it at the bottom. Sector
Write Test says in its first sentence that it destroys everything, and Home says
once and prominently that exactly one page in the app does.
tools/ carries the portable mockgen core/ (VERSION 2, shared verbatim with the
phoenix-simulacra wiki via core/sync_core.py), the wiki checker, the reference
capture script and the pixel prober.
mockgen/README.txt is the accuracy log. It records what was CONFIRMED by scan
against theme.rs, and four things no token list had: the #121212 caption strip,
the accent-filled New Window button, the measured selected-nav-row colour, and
that text_on is a threshold rule rather than max-contrast. It also writes up the
linear-blend trap in full -- an sRGB model reproduced one accent byte-exactly and
was wrong about both the blend space and the background -- because that is the
kind of thing that gets "simplified" back later by someone reasonable.
Wiki images are dark theme only.
Deleted WIKI-PLAN.txt: the plan is done through Phase 3 and the parts worth
keeping now live in the README's accuracy log.