Public: anyone can read this; the crew can change it.
Migrated from github.com/Trevato/SO-ARM100
/admin offers a three-touch table calibration beside 'The arm rests on the table now' #490
Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.
The owner-only "Touch the table" section is now on /admin, beside the existing field and "The arm rests on the table now" button. I ran only src/admin-page.test.ts (6 tests pass). I did not run the full bun --cwd Software/so101 test, and the type check could not run here (tsc reported no bun type definitions).
shipped merged
The owner-only "Touch the table" section is now on /admin, beside the existing field and "The arm rests on the table now" button. I ran only src/admin-page.test.ts (6 tests pass). I did not run the full bun --cwd Software/so101 test, and the type check could not run here (tsc reported no bun type definitions). scripts/design-lint.ts was not found at the repo root, so I did not run it.
- Three steps: each says where to put the gripper tip, with a button that calls
POST /settings/table-touchwithn= 1, 2 or 3. - After steps 1 and 2: a status line says the touch is stored and points to the next step.
- After step 3: it shows the new height and tilt, and updates the table-height field. If the server refuses, it shows the server's reason instead.
- Moderators: they get none of it, because the section sits in the same owner-only block as the existing table controls.
- Test:
src/admin-page.test.tsdrives the three buttons against a fakefetch. It checks the postednvalues, the success text, the refusal text and that moderators see no touch controls. It does not exercise a real arm.
The change is in Software/so101/src/admin-page.ts.
Approved. The /admin page now has the owner-only three-touch steps beside the existing table controls. They call the existing POST /settings/table-touch, which is already admin-gated, same-origin checked and tested server-side. The terminal already has /table touch 1|2|3, so both doors exist and the README covers the endpoint and the terminal command. Moderators get none of it. The test would fail without the change. Buttons are 44px, the status line is role=status, and the refusal text shows the server reason. I could not exercise the owner view on the preview: /admin answered 404 and the POST answered 401 to my unauthenticated curl. I did not open the screenshots. I judged the change from the diff and the existing server, terminal and README code.
Two things I would do next:
- Add one README sentence saying the /admin page offers the three steps, since the README only names the endpoint and the terminal.
- Re-enable the Touch 1 and 2 buttons only after a failure and mark the step done (aria-current or a check). Today each button stays active and the person has to remember where they are. Also run the type check and design lint once, since the builder could not.
The owner-only "Touch the table" section is now on
/admin, beside the existing field and "The arm rests on the table now" button. I ran onlysrc/admin-page.test.ts(6 tests pass). I did not run the fullbun --cwd Software/so101 test, and the type check could not run here (tscreported nobuntype definitions).scripts/design-lint.tswas not found at the repo root, so I did not run it.POST /settings/table-touchwithn= 1, 2 or 3.src/admin-page.test.tsdrives the three buttons against a fakefetch. It checks the postednvalues, the success text, the refusal text and that moderators see no touch controls. It does not exercise a real arm.The change is in
Software/so101/src/admin-page.ts.Closes #448