What #
An inventory of every component on the game screen: how it is sized today, whether it is still live in play, the smallest size at which it stays usable, and where it belongs in the weighted pane model. The same table is committed as docs/UI-PANES.md, so the following PRs work from one reference.
This is the first of the requested sequence: inventory, then remove dead UI, then minimum sizes and dynamic resize, then player resizing with keys and the divider drag. It changes no behaviour.
Findings #
- The deck panel is dead space.
FrameContent::CardView(the pkill/rust hand) still takes 25% of the digital rect whenever the net pane is on screen and the pane is at least 8 rows tall. It shows "NO ACTIVE HACK" or a hand nothing in the new net intrusion plays. - The old hack-session panels are dead space. When a legacy session is active,
FrameContent::HackSessionMapand theHexMapEmptyplaceholder replace the net map inside the Noosphere. The new net pane has its own renderer (views::net). - The model today. The status bar is fixed chrome outside the model. The physical side is one window-tiler group (Realspace, In sight, Events). The digital side is the weighted Noosphere from
PaneModel. Overlays shadow both without resizing them. - At 80×24 the in-sight pane and the events log squeeze to their minimum, and the deck and old session panels take the right half of the screen.
Inventory #
Base layer #
| Component | Owner | Sizing today | Live? | Min usable | Pane home |
|---|---|---|---|---|---|
| Status bar | views::status_bar |
full width, exactly 1 row | yes | 80×1 (text truncates) | fixed bottom chrome, outside the model |
| Realspace map | WindowId::Realspace, views::square_map |
tiler tile, weight 75 of the left column, flexible both axes | yes | 30×10 | physical / left column |
| Wounds row | inside square_map |
fixed 3 rows (title, labels, border) | yes | 24×3 | inside the realspace panel |
| Control line | inside square_map |
fixed 2 rows | yes | 30×2 | inside the realspace panel |
| What you know | inside square_map |
0 rows, or fixed 5 once a fact is read or pending | yes | 20×5 | inside the realspace panel |
| Rig line | inside square_map |
fixed 1 row | yes | 24×1 | inside the realspace panel |
| In sight | WindowId::InSight, views::in_sight |
weight 0 / 13 / 16 / 21 by row count, above the log; hidden under 3 rows | yes | 24×3 | physical / left column, above the log |
| Events log | WindowId::Log, views::text_log |
weight 25 (what in-sight leaves), flexible | yes | 30×3 | physical / left column |
| Noosphere (net pane) | ViewKind::NetAvatar, views::net |
digital side, root weights 50/50, equal net weights; map + a 30-cell right column, or rooms stacked when narrower | yes | 26×12 (20 map + border) | digital root |
| Net combat strip + hand | views::net_combat |
inside the net pane's right column, below the map when it stacks | yes | 24×10 | digital, inside the Noosphere |
| Deck / cards ("Deck", pkill/rust) | FrameContent::CardView, views::card_view |
25% of the digital rect whenever it is at least 8 rows tall | no — old hack deck | — | remove |
| Old hack-session panels ("NO ACTIVE HACK", per-session hex) | FrameContent::HexMapEmpty / HackSessionMap, views::hex_map |
fill the Noosphere container whenever active_hacks.sessions is non-empty |
no — old terminal intrusion | — | remove from the screen |
Overlays and dialogs #
All overlays cover the mission and take the keys and clicks beneath them. They are outside the weighted split; a full-area overlay limits the panes below it but does not resize them.
| Component | Owner | Sizing today | Live? | Min usable | Pane home |
|---|---|---|---|---|---|
| Strategic screens (lifepath, runner, gear, contracts) | views::strategic |
full area: header 1 row, body flexible, footer 3 rows | yes | 80×24 | full-area overlay |
| Planning table | views::planning |
inside the strategic body; cards 30×7, moves at least 6 rows | yes | 80×24 | full-area overlay |
| Prep shop | views::prep |
inside the strategic body; tabs and two panes | yes | 80×24 | full-area overlay |
| Debrief | views::debrief |
inside the contracts body | yes | 60×20 | full-area overlay |
| Inventory | views::inventory |
full area, key-only | yes | 80×24 | full-area overlay |
| Inspect popup | views::inspect |
anchored to the cursor cell, min 26×4 | yes | 26×4 | overlay anchored to its pane |
| NPC menu, route menu | views::menus |
contextual popups next to the actor or target | yes | 24×6 | overlay anchored to its pane |
| Notification toast | views::notification |
bottom-right, at most 58×4 | yes | 20×4 | overlay |
| System modal, banner, frame modal | views::render_*_modal |
centred at 50–80% of the area | yes | 30×8 | blocking overlay |
| Game over | views::game_over |
full area plus a centred popup | yes | 60×20 | blocking overlay |
| Surrender confirm | views::render_system_modal |
centred popup | yes | 30×8 | blocking overlay |
| Window list | window::render_list |
44×9 popup, clamped to the area | yes | 30×9 | overlay |
| Debug menu | debug_menu |
centred popup | yes | 40×12 | overlay |
| Controls | controls |
92%×88% popup, scrolls | yes | 40×10 | overlay |
| ATProto OAuth | DOM overlay | full viewport | yes | — | browser overlay |
| Hover reason hint | views::hover_reason_rect |
one row anchored to the hovered region | yes | 20×1 | overlay |
Sizing contract (next steps) #
- A component at or above its minimum draws as usual.
- A component below its minimum collapses to a one-line summary, or moves into a tab or overlay. It never clips its content.
- Weights are integers. Resizing adjusts the weight of the focused pane's split, and a view that comes and goes leaves the other shares alone.
- The player resizes the physical/digital split and the physical column with keys and by dragging a divider. Sizes persist for the session.
| Component | Min cols | Min rows | Flex | Below minimum |
|---|---|---|---|---|
| Status bar | 80 | 1 | fixed | truncate |
| Realspace map | 30 | 10 | weight 75 | collapse to room-line + map |
| Wounds row | 24 | 3 | fixed | collapse to one-line count |
| Control line | 30 | 2 | fixed | collapse to one line |
| What you know | 20 | 5 | fixed when shown | collapse to one line |
| Rig line | 24 | 1 | fixed | truncate |
| In sight | 24 | 3 | weight 13–21 | hide (as today) |
| Events log | 30 | 3 | remainder | collapse to one line |
| Noosphere | 26 | 12 | root weight 50 | stack map above rooms |
| Net combat strip | 24 | 10 | inside the pane | fold the hand into the side strip |
| Strategic screens | 80 | 24 | full area | scroll the body |
| Inventory | 80 | 24 | full area | scroll the list |
| Inspect popup | 26 | 4 | content | clamp to the pane |
| Notification | 20 | 4 | content | truncate |
The deck and the old hack-session panels leave the screen entirely. The legacy hack-session gameplay stays until the new net intrusion replaces terminal intrusion: crates/protokill/src/systems/hacking/, crates/game/hack_deck/, the active_hacks wire field and its agent-bridge output, the hex_map renderer for the microslices, and the Card/Hex input categories.
Screenshots #
Seeded start (seed=42), dev build v0.1.0-1056-gad125e88e, headless Chromium.
80×24 — base screen. In sight and Events at their minimum; the map keeps the rest.
120×40 — base screen.
160×48 — base screen.
80×24 — a legacy hack session after interacting with the terminal. The old Noosphere session panels and the Deck take half the screen; this is the dead real estate PR 2 removes.
120×40 — the same legacy session.