Skip to content

One right rail: a single model for the viewer bar and pane (Board, Schematic, 3D, Gerbers, Split, Mech, Simulation, KiCad) #1317

Closed

Description

@i2cjak

The right rail and the viewer pane grew piecemeal: entries, tabs, toggles and split modes behave and look differently. This issue tracks the hill-climb that makes them one model, on desktop (GPUI) and, where the phones have viewers, on iOS and Android. Target: 0.16.4.

Scope

Rail and pane for Board, Schematic, 3D, Gerbers, Split, Mech, Simulation, the fab view, the embedded KiCad pane and its tab strip, Follow agent, the KiCad mouse controls; Files, Diff, Review, Browser, Terminal and Commands as the rail's neighbours.

Scorecard (100)

A. Tasks, 40 (10 tasks, 0-4 each: findable without knowing the app, within the step target, the result says what is on show and from which file, one step back)

  1. Open the board (1 step)
  2. Open the 3D view of the board (1 step)
  3. Get back to the schematic from any page (1 click or 1 key)
  4. Compare Gerbers to the board side by side (2 steps)
  5. See schematic and board together and cross-probe a part (2 steps)
  6. Open a mech part (2 steps)
  7. Run a simulation of the schematic (2 steps)
  8. Move between Backplane's viewer and the embedded KiCad editor and always know which one is on show (1 step)
  9. Turn Follow agent on and see that it is on (1 step)
  10. Close the viewer and get the thread's full width back (1 step)

B. Consistency, 30 (10 rules, 0-3 each)

  1. One selection behaviour for every rail entry (press, press again, key, palette)
  2. Every page has the same header: what and which file on the left, the page's tools in the middle, the pane's controls on the right, in one order
  3. A control shows only where it applies (no Open in KiCad on Browser or Files)
  4. The entries for a project (board only, schematic only, mech only, no design) come from the hub as one value; desktop, iOS and Android draw the same list
  5. Every entry has an icon, a label, a tooltip, a key and a palette command
  6. Every page has a designed empty, loading and error state; no raw error codes, no blank pane
  7. One split and compare model (which panes, how to add or drop one, how Gerbers and versions compare)
  8. One word per thing everywhere (rail, header, tooltip, palette, phones)
  9. The embedded KiCad tab strip and the rail agree on what is lit, and the strip looks like the pane's header
  10. No two routes to the same thing that disagree (Review's tabs and the strip under the board)

C. Visual polish, 20 (5 items, 0-4 each): spacing and alignment on one grid; icons distinct and meaning what they stand for; labels legible at 100% text size; groups read as groups; dark and light both.

D. Phone parity, 10: iOS 5, Android 5 (same entries, order, words and availability as the hub's list).

Each round reports before and after screenshots (headless only), the score and what changed. Done when the score plateaus and the UI is clearly coherent.

Round 0 (main at 8d9018d), provisional: about 53

Seen in the headless rig (ecc83 fixture): a page that is loading is a blank pane; a refused view shows View request refused: "PRESENTER_UNAVAILABLE" under the thread; Gerbers replaces the board, there is no side by side; Split has its own Schematic/Board/3D toggles unlike any other page; Open in KiCad shows on Browser and Files; the board has a BOM/Checks/Lifecycle/Plan/Fab strip that repeats Review's tabs; Mech's icon is "layers" and Schematic's is "cpu"; Gerbers is on the desktop rail even with no fab output, the phones list it only with output; Android's tab list is a constant in the client, not the hub's.

Activity

  1. i2cjak commented on Nov 19, 2026

    @i2cjak
    CollaboratorAuthor

    Round 1 so far, on main: the rail is one hub-owned list (present::rail::rail, in thread.viewer.rail): entries a project lacks are dimmed with the reason, on click, key and palette alike (#1328); the headless screenshot and scoring harness test/viewers/rail-shots.sh and docs/viewer-rail-map.md (#1322). Baseline by outcome on main before these, full project: tasks 1, 3, 5, 9, 10 pass; 2 fails (blank 3D pane), 4 fails (no side by side), 6 fails (Mech shows the board's model after Split); 7 and 8 not yet measurable in the rig. Found on the way: #1326. In review: empty, loading and error states (#1324).

  2. 17 remaining items

  3. i2cjak commented on Nov 20, 2026

    @i2cjak
    CollaboratorAuthor

    Progress. On main: one empty/loading/error pattern with hub retryable and forced re-read (#1324); Terminal and Commands pinned at the bottom, groups from the model (#1349); one shared BOM/Checks panel with the release checklist on Release (#1351); data/1 viewer.rail with has and contained Gerbers (#1352, #1354); the 3D canvas only draws the model asked for (#1350); keys for every entry, one word per page (#1360); the rail lights the frame the embedded KiCad shows (#1359); rail polish: readable dimmed labels, fitted label size, no shift, layers icon for Gerbers (#1376, #1382); phones draw their tabs from the hub's list (#1367); the inert design_mode and its setting (#1356); harness: one-step-back parts, B1/B5 partial checks, extra checks, schema 3 (#1365, #1358). Score on main, harness: tasks 32/36 measurable (task 4 fails until docking; task 7 not measurable until a later KiCad build); polish baseline before the polish PRs: rail 15/20, pane 12/20. In review: the one pane header (#1364, #1373) and the docking layout model (#1377); the person approved the docking mock.

  4. i2cjak commented on Nov 22, 2026

    @i2cjak
    CollaboratorAuthor

    Final audit complete against main (871f0aad38); closing via PR #1614.

    Landed across the hill-climb

    Verification & Notes

    • Headless scorecard (RAIL_KINDS=full bash test/viewers/rail-shots.sh on main at 1d24c08255): overall_outcome: passed (harness_errors: []); Tasks 1–6 and 9–10 all passed 4/4 parts (Task 4 in 2 inputs via rail:Gerbers -> Shift+click rail:Board), and all 12 non-embed B1 rail entries passed.
    • PR Fix remaining right-rail and tile parity gaps (#1317) #1614 merge gate (scripts/land.sh): passed host and gpui cargo check --all-targets, unit tests, Windows cross-compile checks, and scripts/i18n-gate.sh (ok: 4869 keys, every one in ja and es), plus test/viewers/test_rail_dock.py (17 tests OK).
    • Remaining deferred / separate items: automated completion observation for Task 7 (Run a simulation of the schematic) stays unavailable in the headless rig until KiCad IPC exposes completed simulation results (opening Simulation from the rail via I works under --embed); optional GPUI header buttons for hub-supported layout-swap and layout-overlay (tile:<id>:swap, tile:<id>:overlay-gerbers) remain follow-up UI work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions