Skip to content

docs(windowing): record trade and login window factories - #731

Merged
kirillDevPro merged 1 commit into
mainfrom
docs/window-factories
Sep 26, 2026
Merged

kirillDevPro merged 1 commit into
mainfrom
docs/window-factories

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

What & why

docs/WINDOWING.md still told readers to open windows through crates/moon-ui-gpui/src/windowing.rs and listed six factories. The file lives at crates/moon-ui-gpui/src/window/windowing.rs.

trade_window_options and login_window_options are factories now. A trade window is an independent, taskbar-hidden chart replay with a minimum size and a NoFill root. The login prompt is a standalone first window: MoonWindowFrame::tool chrome, the application icon, and a taskbar button, opened through login_window_options rather than tool_window_options.

On Windows a group window's AppUserModelID is MoonTerminal.<group> when the group name is non-empty (group_app_id). Every other factory sets MoonTerminal.

The detached-chart doc comment named hide_window_from_taskbar. That function does not exist. The helper is hide_window_from_taskbar_soon. The module comment now includes the trade-window and login factories.

How to verify

Compared the new sentences with crates/moon-ui-gpui/src/window/windowing.rs, crates/moon-ui-gpui/src/window/login.rs, and crates/moon-ui-gpui/src/trade_window/window.rs plus render.rs. A clean-context review found no mismatch, so nothing was dropped.

cargo fmt --all, cargo test --workspace -j 4, and cargo clippy -p moon-ui-gpui --bin moonterminal -j 4 passed locally. Clippy still reports existing warnings in other files.

WINDOWING.md still named src/windowing.rs and six factories. Trade
replay and the login prompt now have their own factories, a group
window's Windows AppUserModelID is MoonTerminal.<group>, and the
detached-chart comment named a taskbar helper that does not exist.
@kirillDevPro
kirillDevPro merged commit 38429ba into main Sep 26, 2026
8 checks passed
@kirillDevPro
kirillDevPro deleted the docs/window-factories branch September 26, 2026 10:02
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.

1 participant