Repository navigation
Let a footer link draw its icon alone, and end the footer with fine print, 0.0.41 - #211
Conversation
Closes #210 A SiteLink takes isIconOnly, false by default. A footer link with an icon and isIconOnly draws the icon alone, from the group's edge in a pointer target, its label naming it for assistive technology and as its tooltip, such as X beside its mark; a link with no icon still draws its label. The site stage service keeps the flag. The version moves to 0.0.41. Tests: the footer spec draws X as its mark alone, named and tooltipped by its label, a pointer target from the group's edge, and Privacy with the flag but no icon as its label; the stage service spec keeps the flag. Agent: LEAD (lead) Agent-Model: Anthropic Opus 5.5, High
…rint Closes #212 A footer link that draws its mark alone has no text to underline, so its hover is now a toolbar-hover face centred on the mark, as high and wide as the header's marks' face, while the mark stays at the group's edge. SiteFooterComponent takes finePrint, plain text such as a trademark notice, drawn as the footer's last row across the content, the footer's gap under the lockup and the groups, in the kit's smallest text and text-muted; null, the default, for none. Tests: the footer spec measures the icon-only link's hover face and its fill, and the fine print's absence, place, width, size and color. Agent: LEAD (lead) Agent-Model: Anthropic Opus 5.5, High
The keyboard focus of a footer link that draws its mark alone now outlines the hover face centred on the mark, as the header's marks do, so the hover and the focus share one box; the link itself draws none. Tests: the footer spec focuses the icon-only link and checks the face's accent outline and the link's lack of one. Agent: LEAD (lead) Agent-Model: Anthropic Opus 5.5, High
rostislavrotaru
left a comment
There was a problem hiding this comment.
Reviewed: #211 at 88475cd
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: an icon-only footer link draws its mark alone in a pointer target from the group's edge, named and tooltipped by its label, with a hover face that its focus outlines, and the footer's fine print is its last row in the kit's smallest muted text; the specs measure each and passed on the Linux, Mac and Windows test machines, and every thread is resolved.
Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High
|
Fixing this also removes two acceptances from README's Accepted times (added for #283): Agent: DEV2 (developer) |
Issue: #283 The timing check now judges the times `npm test` just recorded, using the limit factor `NOLDOVA_TIMING_LIMIT_FACTOR` gives. It no longer runs the suite three more times. CI doesn't run it yet. With the shared workflow's `test-times` on, this PR's first run failed with 8 files over factor 2: that step judges the one coverage run's single sample per test, up to about twice the trial's no-coverage medians, and the set of files over moves between runs. [noldova-com/.github#75](noldova-com/.github#75) asks the shared workflow to time a run without coverage, or several. So `test-times` stays off here, and #283's box for it stays open. ## What Paths are under `src/noldova.ui.components.angular/`. **Recorded times** - `scripts/angular/test-times.ts` (new, `TestTimes`) keeps each Angular test builder run's JSON report in `_build/test-times/<project>`. Each test run empties that folder first. - A docs run that skips its tests writes a note saying why instead. - `scripts/test.ts` keeps each kit run's report. - `../noldova.ui.components.angular.docs/scripts/test-docs.ts` keeps the docs run's report, or writes the skip note when the run is separate, off-platform or filtered. **The check** - `scripts/angular/angular-test-timing.ts` reads `NOLDOVA_TIMING_LIMIT_FACTOR` (1 when unset; a value that isn't a number of 1 or more fails) in place of its 20% margin. A file fails only over the factor times its budget. - `scripts/angular/angular-timing-script.ts` no longer runs any spec. It judges the kept reports and fails when there are none, unless the docs skip note explains why. - It refuses spec file names. - The self-check cases follow the factor, and a case checks how the factor is read. - The part and isolated-run cases go, with `scripts/angular/timing-part-case.ts`. - `scripts/angular/kept-report.ts` (new, `KeptReport`) names a kept report and its order; `TestTimes` sorts the reports through it. - No spec file gets a longer budget: TESTING.md lets a maintainer accept only a unit test file. - `.github/workflows/build-and-test.yml` is unchanged: `test-times` stays off. noldova-com/.github#75 is released in v2.60.0, and turning it on is a PR of its own. **The five other files over twice their budget** These are from the hosted trial in #283. - `tests/app/components/button/button-disabled-look.component.spec.ts` and `tests/app/components/icon-button/icon-button-disabled-look.component.spec.ts`: one capture of every look's pieces through `ScreenshotFixture.piecesAsync`, then one of the focused labels or glyphs. Before, each look took four captures. - `tests/app/models/markdown-math-scan.spec.ts` and `tests/app/models/markdown-text-references-scan.spec.ts`: inputs of 20,000 characters, not 100,000. A scan that grows with the square of the length still reads thousands of times per character at that size, far over the check's 4. - `tests/app/components/message/message-popover.spec.ts`: finishes each fade through the transition's `finish()` and reads the opacity it ends at, rather than waiting the 120 ms out. **The gallery feed specs** They stay over twice the budget, so #283's box for main passing the check stays open, and #296 follows them. Times are per test from a filtered run, without coverage, on a Linux test machine: - `tests/app/components/gallery/gallery-feed.component.spec.ts`: 479 ms, now 208 ms. It renders stand-ins for the feed's message and virtual feed sections, which their own specs render, and checks the feed's order and edges: the virtual feed right under the states and as wide as the chips' specimen. - `tests/app/components/gallery/gallery-virtual-feed.component.spec.ts`: median 287 ms, now 237 ms. Its lists render 6rem tall, a few rows each, and its first test now checks that the specimen fills the component's box. - What stays is each settle's two passes of two frames, about 66 ms, and the first test's warm-up, about 135 ms. **README**: the test line and Time per file follow the code, and say why CI doesn't run the check yet. The gallery rows now point to #296 rather than #211, a merged footer PR; the feed's row in the list of tests over 1 second goes, since it renders neither section. ## Checks On Linux, Mac and Windows test machines, I ran the five changed spec files with `npm test -- <names>`, then `npm run test:timing` with the factor at 2. - The tests passed everywhere, and the self-check held. - On Linux, all five were within twice the budget. - On the Windows test machine, which is slower than the hosted runner, three were over it: the two disabled looks (414 and 500 ms) and the math scan (262 ms). At 2cf6da1, on Linux, Mac and Windows test machines, I ran the two gallery specs, then `button-disabled-look`, then `npm run test:timing` with the factor at 2. Everything passed, and the self-check held. After merging main with #290 (fad3a44), the docs run keeps #290's debug lines and keeps its times only when it didn't fail. On the test machines, `npm test -- browser-session-stages button-disabled-look` and the timing check at factor 2 ran, with `npm run test:docs` on Linux. Every test passed and the self-check held. The check named only files already known to be over: on Linux, the docs site's `docs-on-this-page` (274 ms) and `docs-search` (215 ms); on the Windows test machine, the two disabled looks (276 and 284 ms). ## Not checked - The timing check in CI, which stays off until a PR turns on `test-times` with the v2.60.0 pin. Once it is on, the docs tests run in the Separate test job, so the Linux x64 job's check only prints the docs skip note. - I haven't checked the smaller scan inputs against the scan before #50. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
Closes #210
Closes #212
Summary
SiteLinktakesisIconOnly, false by default. A footer link with an icon andisIconOnlydraws the icon alone, from the group's edge in a pointer target, with its label as its accessible name and tooltip, such as X beside its mark. A link with no icon still draws its label. When hovered, an icon-only link showstoolbar-hoveron a face centred on its mark, as high and wide as the header's marks' face.SiteFooterComponenttakesfinePrint, plain text such as a trademark notice, drawn as the footer's last row across the content, the footer's gap under the lockup and the groups, in the kit's smallest text andtext-muted; null, the default, for none.SiteStageServicekeeps the link flag.documents/kit/site-footer.mdand the changelog say so; the version moves to 0.0.41.Tests
npm test -- site-footer site-stage tests/api/sitepassed on the Linux, Mac and Windows test machines at e6beb13 (62 tests).Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High