Repository navigation
Add the website, published to GitHub Pages, and its design tokens - #17
Conversation
site/ is the landing page for aliasproject.github.io/alias-calc: static HTML and CSS with no build step, the self-hosted JetBrains Mono (OFL) and a small script for the Copy buttons. It presents Alias Calc as a calculator for Linux, quotes only its own benchmark figures (one bench/run table: 3.0 ms, 2.4 MiB, 1 thread, 0.6 wakeups/s) and draws the calculator windows in HTML from the app's layout tokens. .github/workflows/pages.yml publishes site/ when it changes on main. design/tokens.json holds the design values, and design/build (design-gen 2.1.0, copied from the shared generator) writes them to site/tokens.css. 2.1.0 adds a CSS output, "only": "web" and a family's CSS fallback; the other apps' Rust and Swift output is unchanged by it. The app's Rust still holds its values as literals that must match the token file. .github/workflows/design-tokens.yml checks the generated file and every contrast pair.
…claims From review: - The hero window kept its 320 px width, so a 320-360 px screen scrolled sideways. It now shrinks to the column, and its result and expression shrink to the window's width (mono-advance, a new web token), as the app's do; that also keeps them inside it at 200% text. - Copy took ./install.sh uninstall along with the install commands, so a paste installed and then removed it. Uninstall is now its own sentence. - Every Copy button was named "Copy"; each now says what it copies. A second click no longer has the first click's timer reset it early, and "Couldn't copy" stays until the next click instead of 1.2 s. - The screen reader card said support loads whenever a screen reader runs; it loads at launch, so the card says to start the screen reader first. - "Rust 1.85 or newer" was unverified (no rust-version); it's now "a current stable Rust". - design/README.md called tokens.json the only place values are defined, while the app repeats them as literals; it now says so up front. design/Cargo.toml is MIT, like the repo.
|
Review round 1 (fresh-context reviewer, Fixed in 2f3008b
Declined
Confirmed by the reviewer: the tokens check, tests, clippy and fmt pass; the Pages and tokens workflows and their action versions are right; and the page names no other calculator and no screen reader. |
From review:
- At a 200% text size on a 320 px screen the page scrolled sideways: the
card and figure grids had 18em and 13em minimums, and long words
("calculator.") didn't fit the column. The minimums now cap at the
column, and a word that can't fit breaks.
- The window's result and expression fit 100cqi less the padding, but the
container's width already excludes it, so they shrank more than needed.
- Hovering the focused skip link turned its text the colour of its fill.
- A Copy button's name didn't follow its visible text ("Copied"), and a
second failed copy wasn't announced again.
- The keyboard card listed the on-screen glyphs (− × ÷), which most
layouts can't type; it now lists - * x /. "Links only libc and
libxkbcommon" was short of ldd, which also shows libm and libgcc_s.
|
Review round 2 (fresh-context reviewer,
Fixed in the next commit
Not acted on (unverified by the reviewer): the remaining code-review suggestions about forced-colors mode and literal
|
…the way From review: - The four theme windows' result and expression had no character count, so they didn't shrink: at 200% text their leading digits were clipped. - "Couldn't copy" was the button's label, and at about 200 px wide it covered the first command. The message is now a line under the block, shown only while there's something to say, and is set a moment after clearing so a repeat is announced again. - The screen reader card now says "a supported screen reader": the app detects one by name, without the page naming it. - The Light face (hero, result, figures) is preloaded with Regular.
|
Review round 3 (fresh-context reviewer,
Fixed in the next commit
Declined
|
From review: - The empty status was display: none, so it left the accessibility tree and appeared with its text in one step, which many screen readers don't announce. Empty, it's now taken out of the layout only. - The 50 ms pause before a repeated message ran before the clipboard write, so a browser that wants the write inside the click could refuse it. The write now comes first.
Two clicks within the 50 ms pause each set a reset timer; the first was lost and cleared the second's "Copied" early.
|
Review rounds 4 and 5 were narrow, each covering only the previous round's fixes. Round 4, on 0ee9ec9. The reviewer confirmed these hold:
Fixed in 9782100:
Round 5, on 9782100. The reviewer confirmed:
Fixed in the next commit:
Declined:
|
Adds the Alias Calc website at aliasproject.github.io/alias-calc. The design comes from the Website row of the Alias Calc design canvas.
What's in it
site/: the landing page, static HTML and CSS with no build step.copy.jsadds the Copy buttons. Without JavaScript the commands are plain text.bench/run --bin /usr/bin/alias-calcrun of 0.1.2: 3.0 ms, 2.4 MiB PSS, 1 thread, 0.6 wakeups/s.Palette::newderives from that theme..github/workflows/pages.yml: publishessite/when it changes on main. It can also be run by hand.design/tokens.jsonholds the design values.design/build(design-gen 2.1.0) writes them tosite/tokens.css, andstyle.cssuses those variables only.outputs.css,"only": "web", a family'scssfallback, andlineHeightandletterSpacingon type styles. Run on the other four apps' tokens, it leaves their Rust and Swift output unchanged apart from the version in the header.src/tokens.rsis a follow-up..github/workflows/design-tokens.yml: checks thatsite/tokens.cssis current and that every contrast pair passes. It also runs the generator's fmt, clippy and tests.Accessibility
design/tokens.jsonpass WCAG 2.2 AA (design/build --check).After the merge
pages.yml, which publishes the site.