GEstimator

Workspace UI design guidelines

Current UI rules. Navigation: documentation index · frontend architecture · development workflow · verification. Root AGENTS.md owns code/comment formatting; this page owns interaction and visual conventions.

These rules apply to the modern desktop workspace. Keep design decisions in shared components and tokens so every new editor follows the same UI.

Ownership

Use themed dropdowns for every single-value choice. Declare values with HTML select, option and optgroup; the shared ThemedDropdowns component presents an anchored, field-width listbox using workspace theme tokens. Preserve pointer selection, option groups, disabled options, arrows, Home/End, type-to-select, Enter, Escape and Tab. Do not use popup command menus for value selection. Multiple selections and list boxes retain their native semantics. Use a labelled themed autocomplete when free text and suggestions are required, such as category entry. Fonts and regional formats are selection-only controls; use the shared themed dropdown, never an editable autocomplete for them. Retain saved unavailable font/locale values as labelled options without allowing arbitrary new text. Use ThemedAutocomplete for these editable suggestions; do not use browser-native datalists.

Reserve popup command menus for commands such as the application menu and table context actions. A command menu must not impersonate a dropdown field.

Action placement and colour

Put draft acceptance actions in a visible headerbar belonging to the active editor, above its content. Use .draft-headerbar; show explicit Apply analysis / Discard analysis or Apply records / Discard records labels. Keep these actions out of ribbons. In Measurements, put the template type on the left of the first headerbar row and Discard then Apply on the right, matching Analysis. Put the editable description and its status on a separate row below; do not repeat the template in another row. Apply and Discard finish the editor and return to Schedule or the Measurements list after success. Analysis places a matching green Save analysis button between Discard and Apply. Save applies to the working project while keeping the editor open; its tooltip distinguishes this from saving the project file. Keep Discard/Apply as the finish-and-return actions. Do not add separate back-to-list buttons in these editors. Failed operations retain the editor and draft. Apply uses the shared green treatment (button apply, or the headerbar’s button primary); Discard uses button danger. Keep textual labels and icons so meaning does not depend on colour.

Ribbons group editing, insertion, arrangement, import/export and view commands. Use short captions, shared icons, explanatory tooltips and the existing measured overflow. Disable unavailable actions and retain keyboard equivalents. Draft Apply accepts into the working project; Save writes the project to disk. Communicate that distinction consistently.

Tables, totals and numbers

Reuse the table editor and navigation helpers. Display derived fields as read-only. Preserve raw numeric values and arithmetic for editing. Format money through numberFormatting.ts; never apply currency formatting to quantities, dimensions, factors or percentages. Currency code is a display symbol choice, never exchange-rate conversion.

Show an explicit highlighted total beneath the records grid, following analysis summary styling. Totals cover the complete dataset, including off-page records and rows hidden by filters. Multiple measurement outputs retain their labels and units; do not add unlike quantities together.

Checkboxes and database toggles

Checkboxes and radio buttons use the shared 16 px dimensions, zero padding and aligned label grid in style.css. They must never inherit text-input height, padding or full-width rules. Align the control with the first line of wrapping label text; use semantic labels and retain keyboard focus. Do not add per-dialog checkbox positioning fixes.

List each database on its own row in resource renumbering, with a labelled Enable/Exclude switch. Enabled means its resources participate in renumbering. Keep project resources included and explain the default exclusions.

Spreadsheet imports

Every worksheet import uses the guided layout: numbered steps, a workbook field with Browse, a worksheet dropdown from the workbook, and the shared WorkbookSheetGrid preview. Users click a cell to choose where the import starts (Shift+click the last row; for mapped imports, click the header row); the imported columns are labelled in the grid. Always show a parsed preview or a dry-run count before the import button becomes active, and put counts in the button label (“Import 12 records”).

Project tabs

Open projects are tabs in the vertical DocumentRail at the left edge of the workspace, following Open Planner Studio’s ProjectRail: a two-letter tile per tab (active tile filled with its identity colour plus an amber indicator), an amber dirty dot, a hover/focus flyout with name and path, and a dashed add tile. New project and Open project use a new tab when the current one already holds a project; opening an already open file switches to its tab. Each tab is a separate backend session; only the active tab’s workspace is mounted, and closing a tab or the window offers Save/Discard for each tab with unsaved work. MCP clients act on the active tab.

Text entry

In dialogs, Enter in a single-line field or short text area applies the dialog (Shift/Ctrl+Enter inserts a line break). Free-text editors where line breaks are the content, such as Database notes, opt out with data-multiline: Enter inserts a line and the dialog is applied with its button.

Dialogs, accessibility and validation

When no project is open, Schedule, Resources and Measurements show the shared ProjectLanding page (New project, Open project…, recent projects and recovery checkpoints) instead of an empty-state message, with the ribbon tools hidden. The app starts on Schedule, so startup without a project shows the landing page. Analysis keeps its scratch workspace. Use dialogs for bounded tasks that require input or review. Show transient results of routine actions (copy, paste, import) in the status bar through notify() in statusNotice.ts; they clear after a timeout. Do not add persistent banners below the ribbon for them. Keep errors inline until resolved. Every field needs a label, every icon-only action an accessible name, and every interactive control a visible focus state. Long lists and dialogs must scroll within the viewport. Preserve focus and cell selection after edits and navigation. Editing a numeric (right-aligned) cell selects its whole value so typing replaces it; text cells place the caret at the end. Show tax percentages without padding zeros (18, 2.5, 1.2345).

Before completing a UI change, build the frontend and exercise affected workflows in browser tests. Verify keyboard operation, disabled/busy states, narrow layouts and both themes when affected. Add regression tests for behavior, not mirrored CSS implementation. Document native WebView/platform checks that still need an installed build.

Surfaces and icon accents

The visual reference is Open Planner Studio, specifically its OpenAEC 0.4 tokens and two-tone icon treatment. Map charcoal frame/panel/field/workspace layers and neutral light surfaces through theme.css; use warm amber for accents and selection. Preserve GEstimator’s system typography and semantic green Apply/red Discard treatments.

All icons go through AppIcon. Icons are drawn locally in the OpenAEC B2 visual grammar: 24-unit grid, round caps and joins, 1.6-unit corner radii, open line work, about 1.25 px rendered lines at toolbar sizes (1.75 units at larger sizes), a neutral body and at most one small amber accent detail (drawer, inner lines, arrowhead, add mark). Navigation, window and state glyphs (arrows, chevrons, close, check, plus, undo/redo, play/stop, filter, theme) stay monochrome. An accent must not be the whole glyph. --icon-accent is #d97706 in dark and #b45309 in light, keeping at least 3:1 against panels. Keep semantic/destructive, disabled and filled-button icons monochrome for contrast. Reuse local semantic icon names; do not introduce unrelated icon sets or per-button colour overrides.

Planner’s B2 assets are generated by scripts/style-icons.py: it reads Blueprint’s design/icon-set-b2/manifest.json, converts construction geometry to compact paths (or uses lossless SVG exports where required), and writes separate 16/24 px definitions in icons.generated.ts. Its lock file records the source commit, B2 revision and manifest hash. This is reference documentation; GEstimator’s SVG paths are original local drawings in the same style, not copied B2 (LGPL-3.0-only) artwork.