OHL-Design UI review: windows opened from the menus (2026-10-27)#
A request (2026-10-27) asked for one design for the check windows — some could be sent to a panel, others were panels already —, for more room in them (lists that can be made taller, longer scrolling rather than cramming), and for a clearance result to show the weather case that led to it, as the distance between conductors under unequal wind does. This page is the survey made before the change: what each window was, how it docked, where it was cramped, and what was proposed. The decisions taken are in the decision log (2026-10-27); the user guide says how it works now. Built, in active development, not approved yet.
How windows were shown (before)#
Three kinds, side by side:
- Dock pages (
app::Tab, drawn by the dock'sTabViewerinapp/viewer.rs): a tab of the main window with a tab bar; it can be dragged into another group or out into a dock window of its own, and moved by the tab's context menu (left, right, a window). Distance between conductors, under unequal wind and Performed checks opened as such pages in a floating dock window first (open_page, group 5, 1050 × 780 px); Structure loads opened as a page beside the 3D view; the Clearances page is a View page on the left. To the user these look like panels already. - Dockable tool windows (
dockable::show,dockable.rs): anegui::Windowwith a small 📌 Dock as a panel button in its title bar; docked, its content is drawn into aTab::Tool(Panel)tab (⬈ Float brings it back); remembered docked for the session. Used by Vertical and Radial clearances, Vegetation, Display weather cases, the editor windows, New structure from a template, Replace structure, Measurements, Follow and snap. - Plain floating windows (
egui::Window): everything else, among the checks Thermal rating, Line parameters, Galloping ellipses, Wire tensions, String checks, Internal clearances, Safety volumes, As-built wires, and Bill of materials, Spot structures, all settings windows.
Every check window already ends with the shared Run footer
(check_help::body/footer/run_button): the body scrolls as a whole
above the footer, so a long window scrolls rather than grows off screen.
What was cramped is inside the body: nested lists of a fixed height
(ScrollArea::max_height) and tables with 2–4 px between rows. The body
used egui's default item spacing (8 × 3 px).
Findings#
Status column (2026-10-27): done = built in the first round (Check windows: one design), done (2nd) = built after the decisions (Check windows: the decisions); built, in active development, not approved yet.
| Window (menu) | Kind | Docking | Cramped spots | Proposed change | Status |
|---|---|---|---|---|---|
| Vertical / Radial clearances (Checks › Ground clearances) | window, clearance_zones.rs |
📌 dockable | rules table, results table, LiDAR class list, case lists: fixed 220 px (LIST_HEIGHT) each; result rows 3 px apart |
shared spacing; lists resizable, 320 px default; result clicked → its span drawn in the finding's case and wind | done |
| Clearances page (Checks › Wire clearances › Show results) | dock page (View page, left) | page | findings as selectable two-line labels, no fixed list; rule editor below with fixed lists (260, 120 px) | finding clicked → its wires drawn in the report's case, case said; stays a page (one of the View pages) | done (2nd): decided "yes standardise" — a dockable window (Panel::Clearances), its Tab kind removed; findings and rule editor lists resizable; marks follow the window |
| Vegetation (Checks) | window, vegetation.rs |
📌 dockable | class list 140 px, results 320 px, trees 240 px, notes 60 px, a 360 px box | shared spacing; lists resizable | done |
| Safety volumes (Checks) | window | none | case list 140 px, notes 80 px | dockable; shared spacing; lists resizable | done |
| Galloping ellipses (Checks › Analyses) | window | none | results grid 3 px rows | dockable; spacing | done |
| Wire tensions (Checks › Analyses) | window | none | results 360 px fixed, rows 3 px | dockable; spacing; list resizable | done |
| String checks (Checks › Analyses) | window | none | results 360 px fixed, rows 3 px; rule grid 4 px | dockable; spacing; list resizable | done |
| Internal clearances (Checks › Analyses) | window | none | results 360 px fixed, rows 3 px | dockable; spacing; list resizable | done |
| Thermal rating (Checks) | window | none | results 420 px fixed (both ways) | dockable; spacing; list resizable | done |
| Line parameters (Checks › Electrical) | window | none | result grids 3–4 px rows | dockable; spacing | done |
| As-built wires (Checks) | window | none | results grid 3 px rows | dockable; spacing | done |
| Distance between conductors / under unequal wind (Checks › plugin submenu) | dock page, floating dock window first | page | pair list 260 px, case lists 300 px, notes 160 px; grids 2–3 px rows | one design with the other checks; lists resizable; result clicked → the pair's sections drawn in the result's case (no longer the case shown changed for the whole line), unequal wind: the pair at their winds as before | done |
| Performed checks (Checks) | dock page, floating dock window first | page | table 4 px rows | one design with the checks | done |
| Structure loads (Checks) | dock page beside 3D | page | case list 90 px; tables 3 px rows | one design with the checks; spacing | done |
| Bill of materials (Bill of materials › Wires) | window | none | list fills the window less 80 px | dockable; spacing | done (📌 kept, decided) |
| Spot structures (Line › Structures) | window | none | results 320 px | a tool rather than a check: left as it is; spacing via the shared body | done (2nd): decided "keep it standard too" — dockable (Panel::Spot), shared spacing, its list resizable |
| Editors (structure, string, section, jumper…) | window | 📌 dockable | — | unchanged | — |
| Display weather cases (View) | window | 📌 dockable | case list in a fixed box (by design, decided) | unchanged | — |
| Settings windows (Criteria › Default values, Calculation options, Creep-Stretch, Bimetallic, Weather case groups, Merge duplicate cases, Design code; Versions › History) | window | none | Default values 420 px, case groups 480 px, merge 360 px, design code 200 px, history 300 px | not check windows: unchanged in this round; candidates for the same list helper later | done (2nd): decided "yes if the list is scrollable and risks getting big" — check_help::list and the shared spacing in Default values, Weather case groups, Merge duplicate cases, History, Versions (revisions, changes, reviews), Class colours, Survey data display options, plugin presets; Design code's notes and other short fixed lists left |
| Library pages, tables, Python console, cross sections | dock page | page | — | unchanged | — |
Other observations:
- The 📌 button sits in the title bar, so a window that cannot dock has an identical title bar without it: the difference between kinds 2 and 3 was invisible until hovered.
- Kind 1 pages close with their tab's ×; kind 2 and 3 windows close with the window's ×; a docked kind 2 closes with its tab's × (the tool closes): the same gesture in each place.
- Distance between conductors switched the weather case shown for the whole line to the clicked result's case (and back when its page closed); under unequal wind it drew the two conductors at their winds as an overlay, the case shown kept. The ground clearance windows only went to the span: the span stayed in the case shown, which is often not the case of the finding.
- The overlay labels of a measured pair are in a dark box; the standing rule for view notes is the object's colour without a box. The new result-case note follows the rule (in its wire's display colour since the decision, 2026-10-27; it was white at first); the older labels are left as they are (a separate change).
Chosen design#
See the decision log, 2026-10-27, Check windows: one design:
every check and result window opened from the menus is a dockable tool
window (kind 2), through one helper, check_help::window, which also
sets the shared spacing; lists in them use check_help::list (a drag
handle under the list sets its height, remembered for the session).
The decisions (2026-10-27) to the points left open — every check and result window the same, Spot structures and the Clearances page included, resizable lists in the settings windows that can grow, the result note in its wire's colour — are in the decision log, Check windows: the decisions; the status column above says what is built.