Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: preserve touch targets in armed actions (#5190)

[._.]/ Adam Eivy3b724f6e064b
diff --git a/client/src/components/quotaBurn/JobRow.jsx b/client/src/components/quotaBurn/JobRow.jsx
index 03a5740252..084a6cd2f7 100644
--- a/client/src/components/quotaBurn/JobRow.jsx
+++ b/client/src/components/quotaBurn/JobRow.jsx
@@ -153,6 +153,7 @@ export default function JobRow({
cancelText="Cancel"
tone="warning"
ariaLabel={`Confirm running step ${index + 1} now`}
+ largeTouchTargets
onConfirm={() => { setRunArmed(false); onRun(job); }}
onCancel={() => setRunArmed(false)}
/>
@@ -168,6 +169,7 @@ export default function JobRow({
confirmIcon={Trash2}
cancelText="Cancel"
ariaLabel={`Confirm removing step ${index + 1}`}
+ largeTouchTargets
onConfirm={() => onRemove(index)}
onCancel={() => setArmed(false)}
/>
diff --git a/client/src/components/ui/ConfirmButtonPair.jsx b/client/src/components/ui/ConfirmButtonPair.jsx
index fa84e3df93..17c344af41 100644
--- a/client/src/components/ui/ConfirmButtonPair.jsx
+++ b/client/src/components/ui/ConfirmButtonPair.jsx
@@ -31,8 +31,12 @@ export default function ConfirmButtonPair({
tone = 'error',
ariaLabel,
className = '',
+ largeTouchTargets = false,
}) {
const confirmTone = TONES[tone] || TONES.error;
+ const buttonSizeClass = largeTouchTargets
+ ? 'min-h-[44px] min-w-[44px] justify-center'
+ : 'min-h-[36px]';
// While in-flight, the confirm icon becomes a spinner and both buttons
// disable; the label additionally swaps to the in-flight word ("Deleting")
// when a busyText is supplied, otherwise it stays put.
@@ -49,7 +53,7 @@ export default function ConfirmButtonPair({
type="button"
onClick={onConfirm}
disabled={busy}
- className={`inline-flex min-h-[36px] items-center gap-1 px-2 py-1 text-xs rounded transition-colors disabled:opacity-50 ${confirmTone}`}
+ className={`inline-flex ${buttonSizeClass} items-center gap-1 px-2 py-1 text-xs rounded transition-colors disabled:opacity-50 ${confirmTone}`}
>
{busy ? (
<Loader2 size={12} className="animate-spin" />
@@ -62,7 +66,7 @@ export default function ConfirmButtonPair({
type="button"
onClick={onCancel}
disabled={busy}
- className="min-h-[36px] px-2 py-1 text-xs text-gray-400 hover:text-white transition-colors disabled:opacity-50"
+ className={`${buttonSizeClass} px-2 py-1 text-xs text-gray-400 hover:text-white transition-colors disabled:opacity-50`}
>
{cancelText}
</button>
diff --git a/client/src/pages/QuotaBurn.test.jsx b/client/src/pages/QuotaBurn.test.jsx
index cf6975e9f3..3aed9c707c 100644
--- a/client/src/pages/QuotaBurn.test.jsx
+++ b/client/src/pages/QuotaBurn.test.jsx
@@ -214,6 +214,7 @@ describe('QuotaBurn page', () => {
});
it('keeps step actions touch-sized and separates delete from run', async () => {
+ const user = userEvent.setup();
renderPage('/devtools/quota-burn/grok');
const actions = await Promise.all([
@@ -229,6 +230,19 @@ describe('QuotaBurn page', () => {
expect(screen.getByLabelText('Remove step 1').parentElement).toHaveClass(
'ml-2', 'border-l', 'border-port-border/50', 'pl-2',
);
+
+ await user.click(screen.getByLabelText('Run step 1 now'));
+ const runConfirm = screen.getByRole('group', { name: 'Confirm running step 1 now' });
+ Array.from(runConfirm.querySelectorAll('button')).forEach((action) => {
+ expect(action).toHaveClass('min-h-[44px]', 'min-w-[44px]');
+ });
+
+ await user.click(screen.getByRole('button', { name: 'Cancel' }));
+ await user.click(screen.getByLabelText('Remove step 1'));
+ const removeConfirm = screen.getByRole('group', { name: 'Confirm removing step 1' });
+ Array.from(removeConfirm.querySelectorAll('button')).forEach((action) => {
+ expect(action).toHaveClass('min-h-[44px]', 'min-w-[44px]');
+ });
});
it('force-runs a single job from its row only after the arm click is confirmed', async () => {
@@ -1031,4 +1045,3 @@ describe('QuotaBurn preset addition filtering', () => {
expect(await screen.findByText(/Agent prompt · claude-sonnet-4 · high/)).toBeInTheDocument();
});
});
-