GEstimator

Workbench feedback implementation

Historical migration/design record. Start with the documentation index and current architecture for development. Old plans, branches, API/tool names and validation counts below describe their date; do not treat them as current implementation instructions. See the archive index.

Review fixes — 2026-11-17

Four focused browser workflows and the production frontend build passed. Popup and Analysis edit/accept screenshots were reviewed; see the validation record.

Database dialog scrolling rasterization — 2026-11-18

The screenshot sequence revealed a native rendering change when the dialog starts scrolling: content text becomes heavier although its computed weight remains 400. Earlier WebKit page snapshots painted regular text and missed the actual window/compositor output. Native display captures reproduced the issue.

The dialog’s .p-dialog-content now uses -webkit-font-smoothing: antialiased. Nested saved-library text inherits it. Toggling smoothing to auto restores the heavy rendering; antialiasing restores regular body text while keeping headings bold. This is the confirmed rendering fix; merely pinning font-weight: 400 did not address it.

Repeated database attachment and square toolbar feedback — 2026-11-18

Long first-level descriptions and caret behavior — 2026-11-18

Initial window reveal — 2026-11-17

The native main window starts hidden, preventing a visible transition through unstyled/default typography and partially initialized controls. The frontend shows it after startup preferences, desktop font, backend state, MCP/recovery, font loading, table construction/data replacement and explicit ribbon/table layout. Initialization errors are displayed when the window is revealed. Normal resize and typography updates retain their scheduled layout behavior.

Schedule total and shortcut categories — 2026-11-17

Keyboard and record navigation follow-up — 2026-11-17

Measurement editing review follow-up

  1. Schedule and measurement text editors keep the table’s tree decorations in the first line of the editor, retaining the indentation and connector lines.
  2. Edit description turns the measurement record heading into a multiline editor. Enter or focus loss saves the change. Escape discards it.
  3. The heading fits up to five lines and uses a middle ellipsis when needed. The full text is available in the heading tooltip and when editing. The user explicitly requested marking and committing the current work, then continuing in a separate thread. No further redesign was attempted here.

The MCP efficiency work is checkpointed separately in cca316f (feat(mcp)!: streamline estimate workflows). The changes described here follow that checkpoint. The first workbench feedback implementation is committed as 2245ced (feat(workbench): streamline editing and navigation).

Follow-up interaction refinements

Measurement editing and tax precision follow-up

The existing vat column, MCP keys and SQL-view field remain for compatibility. No destructive schema operation or project-version change is needed: existing SQLite resource columns accept the higher precision. Tests cover a legacy project round-trip without schema changes or modification of its source file. Older app versions that write tax with two-place rounding can reduce precision if the value is edited there; reverting this implementation does not rewrite stored values.

General controls

Schedule and Analysis

Measurements

Search algorithm

Desktop tables, explorer search, database pickers and MCP search_items share the cached search index:

  1. Normalize units and dimensions; expand terms from user, database-enrichment, built-in and automatically extracted abbreviation dictionaries.
  2. Rank literal and expanded text using SQLite FTS5 BM25. A Python BM25 implementation is used when FTS5 is unavailable.
  3. Combine literal and expanded rankings using weighted reciprocal rank fusion: 3 / (60 + literal_rank) + 1 / (60 + expanded_rank).
  4. Put an exact code match first; apply category/limit constraints. Leaf items receive a small ranking boost.

Desktop searches additionally prioritize partial code matches (prefixes before other code fragments) and retain description/category substring matches as a fallback. This preserves code lookup and incomplete-word searches. Empty search keeps the usual project ordering. Ranked table pages retain category/parent context; groups are ordered by their best matching item. Category filters apply before paging, including searches with more than 100 matches.

There are no embeddings or vector-model downloads in the current implementation.

Debug traces

Frontend debug messages use [GEstimator] in the webview console for button, menu, tab and shortcut actions and backend requests. Requests record method, parameter names, elapsed time and failure code, without input values.

The backend’s gestimator.actions logger writes action start/completion/failure to stderr. MCP traces include operation name, read/write classification, access mode, revision changes and duration. HTTP authorization rejections record their reason. Credentials and request payloads are not logged. Set GESTIMATOR_LOG_LEVEL=INFO to suppress the default debug action traces.

Validation

Regression coverage includes affected-row updates, empty draft-navigation deltas, structural/undo invalidation, failed-transaction rollback, generated resource codes, atomic multi-resource insertion, explicit parent/child imports, category movement and credential-free MCP action logs. Browser checks cover the changed workflows alongside the existing editor, clipboard, import/export, settings, library, recovery and MCP workflows.

Verified on 2026-11-17: 119 Python tests passed; all 39 browser workflows passed across the full run and a focused rerun of the ranked-result selection assertion. The production frontend and standalone backend builds passed. The frozen backend also passed a smoke test for dictionary-based desktop search and incremental refresh. Native file dialogs are exercised through the mocked Tauri transport in browser tests.

Follow-up verification: all 42 browser workflows passed across the full run and the focused alignment/focus/drag rerun; the production build passed. Screenshots were reviewed for the measurement hierarchy, contextual record ribbon and shared resource/search alignment. No backend or project-file format changes are part of this follow-up.

Measurement/tax verification: the full Python run passed 122 tests, and the additional tax-header spreadsheet import/export test passed in the focused backend run. All 45 browser workflows were verified across the full run and the focused rerun, including category rename, record remarks, focus-outline spacing, blank-row height, editor geometry and tax precision. Production and standalone backend builds passed; the frozen backend passed tax-storage and template-copy smoke checks. The cached measurement ribbon now refits when it becomes visible, including at narrow viewport widths.

Main-page Properties and Edit Records keep their text labels at narrow widths. Editable controls use inset focus outlines, with additional field and paired-field spacing.

All 46 browser tests passed in one full run. The added audit checks every editable schedule/resource column, tree-marker coordinates and focus-ring clipping in the main forms, inspector, custom-resource dialog, measurement properties and record page. The production frontend and offline native development build passed. The native executable is modern/src-tauri/target/debug/gestimator-modern.