Skip to content

chore(lane): daily maintenance 2026-11-27 - #1493

Merged
kirillDevPro merged 2 commits into
mainfrom
lane/daily-2026-11-27
Nov 27, 2026
Merged

kirillDevPro merged 2 commits into
mainfrom
lane/daily-2026-11-27

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

Bugs

Filed by the people's-bugs lane.

Fixes #1491

Switching between Flat themes (Dark -> Light) on an open main window
leaves the chart's price and time gutters on the previous theme's
ground: a Dark band under Light's black axis digits. The gutters lie
outside the chart's own draw and the window root paints no fill, so
the window clear colour shows there. FacetGround refreshed that colour
only when the Facet skin (Obsidian) was entered or left; its doc
assumed every Flat chrome surface fills itself, which the gutters do
not. It now hands the window the active palette's ground on every
change, for the main window (shell) and the detached chart window
(chart_bg) alike. That is the colour a window opened on the new theme
already uses, so no new colour is introduced.

Test that failed before and passes now:
design::tests::facet_ground_follows_a_flat_to_flat_theme_switch
(Dark shell 0x131416 -> Light shell; on origin/main 2c252b4 it
returned None instead of Some(light)). Re-run:
cargo test -p moon-ui-gpui --bin moonterminal facet_ground

Existing test facet_ground_follows_the_palette_under_facet_only, now
facet_ground_follows_every_palette_change, pinned this very defect.
Its setup drops the removed facet flag; two assertions flip:

old: assert_eq!(ground.update(false, 0x202020), None);
new: assert_eq!(ground.update(0x202020), Some(0x202020));

Its five other expected values are unchanged.

FacetGround::sync keeps its cx parameter (unused now) because
theme_contract pins the hosts' exact call text.

Not covered: the standalone trade window sets its clear colour only
when it opens and has no ground sync; it keeps the stale ground until
it is reopened.

Reviewed by Codex.

People's bugs also: #1482 diagnosed for a person (Lane diagnosis. comment, lane-triaged), not fixed — the issue leaves the choice of surface open.

Docs

What was stale: the Screener entry in docs/PRODUCT_MAP.md still said every core's market has its own row and that the Listed cell prints Both, Spot Only, Futures Only; the manual-trading entry had no mention of the three MoonBot 7.73 controls that landed since the map was last touched.

What the code does now: with more than one core in scope the Screener shows one row per market per exchange (grouped by exchange id), its Core cell counts the selected cores it covers with a per-core leverage and PnL breakdown on hover, orders, position and PnL are summed and leverage is a range when the cores differ; Listed cells print the short Both, Spot, Fut captions while the filter keeps Moonbot's words; the column menu's Default view restores the shipped columns, sort and Vol. filter. Force cancel (order menu, N2), Cancel entries on exchange (core settings popup, N1) and the chart's manual entry price correction (N2) are listed, with older cores showing the controls disabled.

How verified: read screener/view.rs (grouped_scope, restore_default_view, columns_menu), screener/prepared.rs (market_group_key), screener/grouped.rs (aggregate), screener/table.rs (core_label, core_tooltip, Listed captions), the en locale keys and commits 2c252b4, ecffeef, 37ffa7d, 19127d0. Reviewed by Codex: two overstated claims (what the Core cell counts, when leverage is a range) were corrected to its reading of the code.

Also checked and current: docs/MAC_LINUX_BUILD.md, CONTRIBUTING.md, assets/coins/README.md; docs/FIRETEST.md skipped (no commits to its code since its last edit).

Quiet jobs

Filed by the people's-bugs lane.

Fixes #1491

Switching between Flat themes (Dark -> Light) on an open main window
leaves the chart's price and time gutters on the previous theme's
ground: a Dark band under Light's black axis digits. The gutters lie
outside the chart's own draw and the window root paints no fill, so
the window clear colour shows there. FacetGround refreshed that colour
only when the Facet skin (Obsidian) was entered or left; its doc
assumed every Flat chrome surface fills itself, which the gutters do
not. It now hands the window the active palette's ground on every
change, for the main window (shell) and the detached chart window
(chart_bg) alike. That is the colour a window opened on the new theme
already uses, so no new colour is introduced.

Test that failed before and passes now:
design::tests::facet_ground_follows_a_flat_to_flat_theme_switch
(Dark shell 0x131416 -> Light shell; on origin/main 2c252b4 it
returned None instead of Some(light)). Re-run:
cargo test -p moon-ui-gpui --bin moonterminal facet_ground

Existing test facet_ground_follows_the_palette_under_facet_only, now
facet_ground_follows_every_palette_change, pinned this very defect.
Its setup drops the removed facet flag; two assertions flip:
  old: assert_eq!(ground.update(false, 0x202020), None);
  new: assert_eq!(ground.update(0x202020), Some(0x202020));
Its five other expected values are unchanged.

FacetGround::sync keeps its cx parameter (unused now) because
theme_contract pins the hosts' exact call text.

Not covered: the standalone trade window sets its clear colour only
when it opens and has no ground sync; it keeps the stale ground until
it is reopened.

Reviewed by Codex.
…rols

What was stale: the Screener entry still said every core's market has
its own row and that the Listed cell prints `Both`, `Spot Only`,
`Futures Only`; the manual-trading entry had no mention of the three
MoonBot 7.73 controls that landed since the map was last touched.

What the code does now: with more than one core in scope the Screener
shows one row per market per exchange (grouped by exchange id), its Core
cell counts the selected cores it covers with a per-core leverage and
PnL breakdown on hover, orders, position and PnL are summed and leverage
is a range when the cores differ; Listed cells print the short `Both`,
`Spot`, `Fut` captions while the filter keeps Moonbot's words; the
column menu's Default view restores the shipped columns, sort and Vol.
filter. Force cancel (order menu, N2), Cancel entries on exchange (core
settings popup, N1) and the chart's manual entry price correction (N2)
are listed, with older cores showing the controls disabled.

How verified: read screener/view.rs (grouped_scope,
restore_default_view, columns_menu), screener/prepared.rs
(market_group_key), screener/grouped.rs (aggregate), screener/table.rs
(core_label, core_tooltip, Listed captions), the en locale keys and
commits 2c252b4, ecffeef, 37ffa7d, 19127d0. Reviewed by Codex:
two overstated claims (what the Core cell counts, when leverage is a
range) were corrected to its reading of the code.

Also checked and current: docs/MAC_LINUX_BUILD.md, CONTRIBUTING.md,
assets/coins/README.md; docs/FIRETEST.md skipped (no commits to its
code since its last edit).
@kirillDevPro
kirillDevPro merged commit b3af23f into main Nov 27, 2026
16 checks passed
@kirillDevPro
kirillDevPro deleted the lane/daily-2026-11-27 branch November 27, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Theme switch leaves the price and time axes on the previous theme

1 participant