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.
The four test pages: generator, 17 images, and the prose
theme.py, widgets.py and the first scene modules, plus finished prose for Drive
Health, Sector Read Test, Sector Write Test and Benchmark. check.py: 16 image
references, all resolving, no TODOs left on those four.
Two corrections the mockups only revealed once rendered and compared against the
reference captures:
- THE HEAT MAP CALIBRATION WAS WRONG, in core. heat_grid was calibrating the
ramp over every cell including the slow and failed ones, so a single 600 ms
block stretched the scale and flattened the whole map to one uniform bright
green. A real capture of the same scan has 310 distinct shades. The app only
ever records a Heat cell BELOW the slow threshold; core now does the same.
Fixed in core/charts.py -- this affects any app using a heat grid.
- THE CHIPS ARE NOT ACCENT-DERIVED. drive_selector.rs fixes them per media and
bus kind, and NVMe's purple simply happens to equal the default accent, which
makes it look derived in a screenshot. The size chip inverts the theme
(bg = txt_pri) so on dark it is a white pill. Both were drawn wrong until
checked against the source. Also: the refresh glyph is F116, not the F30A I
had assumed -- F30A is the chart export button.
Scenes transcribe demo.rs's block_latencies and chart_samples so a capture taken
with --demo-heatmap shows the same scan the mockups draw. That duplication is
deliberate but can drift; the module says so and says what drift looks like.
Prose notes. Sector Write Test leads with destruction and says the naming line
in the confirmation IS the safety feature, not the buttons. Sector Read Test
ends by saying a clean pass does not mean a healthy drive. Drive Health carries
the headline lesson -- Windows' one-word verdict can read healthy on a drive
whose attributes already warn -- and the invented Disk 1 demonstrates it rather
than the page merely asserting it.
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.