Public: anyone can read this; the crew can change it.

Migrated from github.com/Trevato/SO-ARM100

workbenchthis machine

Exactly one STOP on every layout: red, >= 56 px, fires on pointerdown, resume asks for a second tap, a full-width stopped banner #104

Parked opened this
Closed without merging

smith/arm:smith/91-exactly-one-stop-on-every-layout-red-56 → main 2 commits fork

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
3 files changed +6 −3
Software/so101/src/server.test.ts +3
@@ -207,6 +207,9 @@ describe("viewer page", () => {
207207 // One STOP in every layout: one stop control in the markup, and no layout hides it. Resume is its own control.
208208 expect(page.match(/<button[^>]*data-stop/g)?.length).toBe(1);
209209 expect(page).not.toMatch(/#stop \{[^}]*display: none/);
210 expect(page).toMatch(/\.estop \{[^}]*min-height: 56px[^}]*background: #d1242f/); // red, 56 px
211 expect(page).toMatch(/#banner\.stop \{[^}]*left: 8px; right: 8px; transform: none; width: auto/); // a full-width stopped banner
212 expect(page).toContain('$("stop").addEventListener("pointerdown"');
210213 expect(page.match(/api\("\/stop"/g)?.length).toBe(1);
211214 expect(page).not.toContain('api("/estop", ');
212215 expect(page).toContain('api("/resume", {})');
Software/so101/src/viewer.html +2 −2
@@ -61,7 +61,7 @@
6161 #stage { position: absolute; inset: 0; display: flex; gap: 2px; }
6262 /* the emergency stop's held state, and the banner that says who pressed it */
6363 .estop:disabled { opacity: .5; cursor: not-allowed; } .estop.on { background: #7d1410; box-shadow: 0 0 0 3px var(--bad); }
64 #banner.stop { display: block; border: 2px solid var(--bad); background: rgba(80,10,8,.92); color: #fff; font-weight: 600; }
64 #banner.stop { display: block; left: 8px; right: 8px; transform: none; width: auto; max-width: none; text-align: center; border: 2px solid var(--bad); background: rgba(80,10,8,.92); color: #fff; font-weight: 600; }
6565 #banner button { margin-left: 10px; min-height: 32px; padding: 2px 10px; }
6666 .pane { flex: 1; min-width: 0; position: relative; background: #000; display: none; }
6767 .pane.on { display: block; }
@@ -88,7 +88,7 @@
8888 #capLine { color: var(--dim); font-size: 12px; } #capLine:empty { display: none; }
8989 #driverLine.paused { color: var(--warn); }
9090 #turnActions { display: flex; gap: 6px; } #turnActions:empty { display: none; }
91 .estop { flex: none; min-width: 72px; min-height: 52px; border: 0; border-radius: 12px; background: #d1242f; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 0 3px rgba(209,36,47,.25), 0 2px 8px rgba(0,0,0,.35); }
91 .estop { flex: none; min-width: 72px; min-height: 56px; border: 0; border-radius: 12px; background: #d1242f; color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 0 3px rgba(209,36,47,.25), 0 2px 8px rgba(0,0,0,.35); }
9292 .estop:hover { background: #e5323d; } .estop:active { transform: scale(.97); }
9393 #sheetToggle { flex: none; }
9494 /* the turn ring: time left as a sweep around the seconds; the driver's name over the video for everyone */
forge.json +1 −1
@@ -4,7 +4,7 @@
44 "run": "bun run Software/so101/bench/fake-serve.ts",
55 "tty": "bun run Software/so101/src/tty.ts",
66 "test": "bun --cwd Software/so101 test",
7 "health": "/status",
7 "health": "/link",
88 "limits": {
99 "cpus": 6,
1010 "memory": 6144

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs