Repository navigation
chore(lane): daily maintenance 2026-11-27 - #1493
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_groundExisting test
facet_ground_follows_the_palette_under_facet_only, nowfacet_ground_follows_every_palette_change, pinned this very defect.Its setup drops the removed facet flag; two assertions flip:
Its five other expected values are unchanged.
FacetGround::synckeeps its cx parameter (unused now) becausetheme_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.mdstill said every core's market has its own row and that the Listed cell printsBoth,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,Futcaptions 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
cargo deny check advisories bans sourcesgreen on origin/main 2c252b4.auto-foundissue (Station core add: a failed credential write after the config commit blocks every retry #1025) carries an owner decision to keepneeds-human.