From b49fc62208b61cee0bb10eb93d75712a5630e7e3 Mon Sep 17 00:00:00 2001 From: Aaron Qian Date: Tue, 20 Oct 2026 15:37:57 -0700 Subject: [PATCH] table: drop boot_mode from the live commands --- docs/design/layout-spec.md | 2 +- src/lib/table-model.test.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/design/layout-spec.md b/docs/design/layout-spec.md index 58fc644..3d6c20e 100644 --- a/docs/design/layout-spec.md +++ b/docs/design/layout-spec.md @@ -72,7 +72,7 @@ Tab contents (map from the descriptor fields already in the file): - Settings: Identity and bus (id and baud read-only with links "Change on the Servo page ->" / "Change in the connection popover ->"; response_deadline_us editable), Motion limits, Control loops, Safety, Thermal. Motion limits and Safety expanded by default, others collapsed. - Calibration: one group, all six rows read-only, status strip at top: calibration chip + "Worked out from the values; the servo keeps no date." + "Edit on the Servo page ->". lut_corr shows "55-point table" + "Download .csv" (secondary, small, mock no-op). - Board: Board constants (shunt, gain, dividers, tick rate, windows, thermistor) read-only, vdd_mv editable; Motor model group (r0, t0, k_r2t, mu, ke, r, recip_ke, b_i, friction) editable, collapsed by default. -- Live values: Status (faults, status flags, clock trim, counters with Clear), Estimates, Raw samples, Commands (editable: torque_enable, mode, goals, the TEL chunks, tel_count, boot_mode, duty, arm/page/chans), Profile/capture (collapsed by default). Read-only groups show grey "updated 0.4 s ago" in the tab header (mock: tick it). +- Live values: Status (faults, status flags, clock trim, counters with Clear), Estimates, Raw samples, Commands (editable: torque_enable, mode, goals, the TEL chunks, tel_count, duty, arm/page/chans), Profile/capture (collapsed by default). Read-only groups show grey "updated 0.4 s ago" in the tab header (mock: tick it). Row: label bold in column 1 with grey mono register name beneath [intermediate]; tooltip on the register name "addr 0x020, 4 bytes, int32, rw". Value in column 2 mono; read-only values get a tiny grey "ro" tag right of the value. Editable value = value button with pencil on hover -> popover. Save writes immediately; row flashes green. diff --git a/src/lib/table-model.test.ts b/src/lib/table-model.test.ts index 7b7fea6..c13c6b7 100644 --- a/src/lib/table-model.test.ts +++ b/src/lib/table-model.test.ts @@ -183,7 +183,6 @@ describe("buildTable", () => { expect(rowOf("tel_drop_count").editable).toBe(true); expect(placement("torque_enable")).toEqual(["Live values", "Commands"]); expect(placement("goal_position")).toEqual(["Live values", "Commands"]); - expect(placement("boot_mode")).toEqual(["Live values", "Commands"]); expect(placement("chans")).toEqual(["Live values", "Commands"]); expect(placement("pos_lut_cmd")).toEqual(["Live values", "Position table window"]); expect(placement("pos_lut_state")).toEqual(["Live values", "Position table window"]);