wrolpi/app/src
Roland a9d12952a8
ui: the corner icons opt out of the bar's foreground, so make them stop
Measuring the foreground against the bar is worth nothing if the icons ignore
it, and two of them did -- the search glyph and the hamburger came out blue on
every bar in every theme while the rest of the bar was correct.

Neither inherits.  An anchor takes `a {color: var(--blue)}` from tokens.css,
which outranks an inherited value however the bar sets it; the search glyph is
an anchor.  A Mantine ActionIcon paints `--ai-color`, its own themed blue, and
Mantine writes that variable INLINE on the element, so a stylesheet declaring it
loses every time -- the painted property has to be set instead.  The status
icons that link to /admin are anchors too, and only looked right because they
carry an inline colour of their own, which still wins and is meant to.

The test that claimed to cover this read `querySelector('...svg')`: one element,
the first, which was a plain inheriting Icon.  It asserted every icon and
measured the only one that was never broken.  It now reads querySelectorAll,
asserts the count, and checks all four -- and reddens in all four themes with
the rule removed, naming --blue as the value it found.

The gallery sample was wrong in the same direction: it used an IconButton for
the search icon, so it showed the ActionIcon fault twice and hid the anchor
fault entirely.  It now carries all three shapes the real bar puts in that
corner.

1115 jest / 62 suites, 177 in ui-layout.cy.js, clean npm run build.
2026-08-05 18:38:02 -06:00
..
api controller: VNC toggle, gated on the Desktop running 2026-07-29 18:10:05 -06:00
components ui: the corner icons opt out of the bar's foreground, so make them stop 2026-08-05 18:38:02 -06:00
contexts test: one place for fixtures, real providers instead of mocked context modules 2026-08-05 18:36:48 -06:00
hooks build: uninstall Semantic UI 2026-08-05 18:36:31 -06:00
themes ui: the navbar measures its foreground instead of assuming one 2026-08-05 18:38:01 -06:00
types ui: the last Semantic UI file, and the stylesheet with it 2026-08-05 18:36:26 -06:00
api.js ui: thirty-five files off Semantic, leaving fifteen 2026-08-05 18:34:58 -06:00
App.css ui: the corner icons opt out of the bar's foreground, so make them stop 2026-08-05 18:38:02 -06:00
App.js ui: the last Semantic UI file, and the stylesheet with it 2026-08-05 18:36:26 -06:00
DashboardPage.js ui: thirty-five files off Semantic, leaving fifteen 2026-08-05 18:34:58 -06:00
DashboardPage.test.js ui: thirty-five files off Semantic, leaving fifteen 2026-08-05 18:34:58 -06:00
Events.js ui: thirty-five files off Semantic, leaving fifteen 2026-08-05 18:34:58 -06:00
import-cycles.test.js fix: break the import cycle that put useCalculators in the TDZ 2026-08-05 18:37:53 -06:00
index.css ui: the last Semantic UI file, and the stylesheet with it 2026-08-05 18:36:26 -06:00
index.js Fixing changes before merge. 2023-02-08 21:18:51 -07:00
logo.svg Renaming examples to avoid grouping of pdf with ebooks. Reworking URLs for media files to avoid escaping url safe characters. 2023-03-29 13:46:39 -06:00
reportWebVitals.js Renaming examples to avoid grouping of pdf with ebooks. Reworking URLs for media files to avoid escaping url safe characters. 2023-03-29 13:46:39 -06:00
semantic-baseline.json ui: the last Semantic UI file, and the stylesheet with it 2026-08-05 18:36:26 -06:00
semantic-baseline.test.js build: uninstall Semantic UI 2026-08-05 18:36:31 -06:00
setupTests.js ui: Common.js and thirteen more files off Semantic 2026-08-05 18:34:50 -06:00
Tags.cy.js Video downloads have many more options. Downloads are migrated. 2024-11-28 09:48:57 -07:00
Tags.js ui: map the twelve icon names that were rendering as question marks 2026-08-05 18:37:25 -06:00
Tags.test.js ui: tags look like tags, and stay readable in every theme 2026-08-05 18:37:13 -06:00
test-fixtures.js test: check declared types, not just field names, and fix the three that were wrong 2026-08-05 18:37:01 -06:00
test-fixtures.test.js test: one place for fixtures, real providers instead of mocked context modules 2026-08-05 18:36:48 -06:00
test-utils.js test: the theme drives the colour scheme, and mockModule takes the module 2026-08-05 18:36:53 -06:00
test-utils.test.js test: the theme drives the colour scheme, and mockModule takes the module 2026-08-05 18:36:53 -06:00