Repository navigation
Conversation
…light dark colours; page and click checks in CI
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| JavaScript | Nov 17, 2026 11:36a.m. | Review ↗ | |
| Secrets | Nov 17, 2026 11:36a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
|
Superseded by #3573, which merged the same page rewrite and a jsdom page test. |
The editor page broke in two ways after the style standard landed: the JS backend bug fixed in #3564 (buttons threw on the first click), and the standard base sheet, which gives every element
display:flex; flex-direction:column, so the old raw CSS (which assumedrow) stacked the toolbar vertically. This rewrites the page on the standard.What changed:
editor/ui.salam(new): components Toolbar, Brand, Controls, MenuToggle, Segmented, SegButton, Toggle, DropdownButton, DropdownList, RunButton, Pane, PaneHead, IconButton, Gutter, AnimBar, AnimButton, Scrim, built from standard attributes withlayout = row,hover:anddisabledstates, enum and bool parameters.editor/page.salam: theme aslight dark(a, b)colour constants, page attributes, the body in components. The single 27 KB raw style string is gone; a 130 line raw block (STATE_CSS) remains.editor/app.salam: segmented buttons readdata-valuefor mode, language and view (was three different attributes).tools/bash/check-editor-page.shbuilds the page and checks ids and data attributes;tools/js/editor-click-test.jsloads the built page in jsdom and clicks mode, language, theme, auto-run, dropdown and menu. Both run in the editor build job (jsdom is installed with npm, about 20 MB).Still raw, and why:
.seg-btn.active,.toggle.on,.dropdown.open,.copied,.dragging,.status.*,.output.*,.anim-*): the page and the script do not share state, so a pageifblock cannot see them.::beforeerror markers: not in the standard.@media (max-width: 1024px),body.menu-open) and the stacked split under 900px: environment conditions are not on main yet (ui: style if review fixes, tab size and touch action properties #3563 is open).main.splitgrid columns and rows from--col-aand--row-aset by the drag handler,[dir=rtl]rules, tab size andresize: none,color-schemeperdata-theme.Examples:
Seg(name, text, views)wrapsSegButton(value, text, views, only)children; colours likeFG := "light dark(#1b2030, #e6e9ef)".Tested: built with a compiler from main in headless Chromium and checked computed styles and boxes (toolbar row, split 637+6+637, textarea and highlight layers identical, highlight tokens inline, RTL control panel, mobile menu opens at 800 px with scrim); jsdom click test passes 13 of 13.
Summary by CodeRabbit