Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

Browser panel: shorter hand-back line, steady pick count in the point footer (18g) (#673)

Oleksandr Ivanchenko9f8f7420d833
diff --git a/frontend/src/components/VirtualMachinePane.tsx b/frontend/src/components/VirtualMachinePane.tsx
index 1caf79a4..d6579dc5 100644
--- a/frontend/src/components/VirtualMachinePane.tsx
+++ b/frontend/src/components/VirtualMachinePane.tsx
@@ -40,7 +40,7 @@ import { BrowserPageStrip } from './BrowserPageStrip';
const PHONE_QUERY = '(max-width: 639px)';
/** 17b: the footer's pointing slot. It shrinks and truncates instead of spilling over the buttons, on one line. */
-export const POINT_FOOTER_SLOT = 'min-w-0 flex-[0_1_auto] truncate whitespace-nowrap text-center';
+export const POINT_FOOTER_SLOT = 'min-w-0 flex-[0_1_auto] truncate whitespace-nowrap text-center tabular-nums';
/** While the bot finishes a step, taking over is retried this often, for this long (no backend change). */
export const TAKEOVER_RETRY_MS = 1000;
diff --git a/frontend/src/point.ts b/frontend/src/point.ts
index 8fb147ed..95fe8f45 100644
--- a/frontend/src/point.ts
+++ b/frontend/src/point.ts
@@ -85,7 +85,7 @@ export const POINT_COPY = {
barPhone: 'Tap the part you mean',
keys: '↑ wider · Esc stop',
waiting: 'Waiting for the page…',
- handBack: 'Hand back to point at something',
+ handBack: 'Hand back to point',
failed: "Couldn't read that part of the page. Try again.",
limit: 'Up to 5 parts per message',
capturing: 'Taking a picture…',
diff --git a/frontend/tests/pointFooter.test.mjs b/frontend/tests/pointFooter.test.mjs
index a937b7f2..df9b4511 100644
--- a/frontend/tests/pointFooter.test.mjs
+++ b/frontend/tests/pointFooter.test.mjs
@@ -132,5 +132,10 @@ test('count: one pick through the point layer makes the footer say "1 picked", t
test('the takeover hand-back line follows the same one-line rule', () => {
for (const c of ['min-w-0', 'truncate', 'whitespace-nowrap']) assert.ok(m.POINT_FOOTER_SLOT.split(' ').includes(c));
assert.ok(!m.POINT_FOOTER_SLOT.split(' ').includes('flex-1'));
- assert.ok(m.POINT_COPY.handBack.length > 0);
+ // 18g: short enough to fit the slot at 390 next to both buttons
+ assert.equal(m.POINT_COPY.handBack, 'Hand back to point');
+});
+
+test('the pick count uses tabular figures, so 1 → 3 picks does not nudge the line', () => {
+ assert.ok(m.POINT_FOOTER_SLOT.split(' ').includes('tabular-nums'));
});