Mobile and compact form factors
What it is. A shared list-and-detail pane contract for apps shown in a narrow window. It is a CSS-and-script layer in botui/ui/suite/css/gb-panes.css, not a separate mobile app.
Open it. Open any app that opts into the contract in a browser window narrower than 1024px. The shell itself needs no mobile route.
Do this. Select a row in the primary pane to push the detail pane; use Back to return to the list with its scroll offset, filter and selection intact. At medium widths, drag the labelled resize handle to divide the space.
The pane contract
| Measured width | Behaviour | Contract rules |
|---|---|---|
| β₯ 1025px | App keeps its own layout | No rule from gb-panes.css applies |
| 768β1024px | Two panes, labelled resize handle | Primary size defaults to 42% |
| < 768px | One pane at a time | Row selection pushes detail; Back restores list state |
Form factor is decided by measured viewport width only β no user-agent or device sniffing. An app opts in with .gb-panes on the group root and .gb-pane.gb-pane-primary / .gb-pane.gb-pane-detail on the two surfaces. 01_contract.js reads the data-gb-panes-* attributes, injects the Back and resize controls, and wires state restore. A detail surface that is a drawer or modal declares data-gb-panes-detail-mode="overlay".
Load gb-panes.css after the app's own stylesheet so the contract wins ties. Wide layout is deliberately untouched.
Verification matrix
| Case | Action | Expected result |
|---|---|---|
| Wide | Open app at β₯ 1025px | App's own layout, no pane chrome |
| Medium | Open app at 768β1024px | Two panes with a resize handle |
| Compact | Select a row below 768px | Detail pane replaces the list |
| Compact | Press Back | List returns with scroll, filter and selection restored |
| Overlay | Open a detail declared as overlay | It appears as a drawer or modal |
Ratchet
The contract is additive: new apps must opt in rather than inheriting it. Changes to pane behaviour are checked against the matrix above at all three widths before they land.
Native thin clients (in development, #2584)
A native thin client is not part of the shipped surface. The contract above is the only compact-form-factor implementation in the tree today; do not document a native mobile client as available.