Skip to content

feat(composer): toggle background task output from the whole row - #1804

Merged
vastsa merged 4 commits into
mainfrom
fix/taskbar-row-toggle
Oct 21, 2026
Merged

vastsa merged 4 commits into
mainfrom
fix/taskbar-row-toggle

Conversation

@vastsa

@vastsa vastsa commented Oct 21, 2026

Copy link
Copy Markdown
Owner

What

The background-tasks bar above the composer now toggles a task's log from
the whole row lead, not only from the "Output" button.

Why

The state dot, command and meta text look like the row's click target, but
only the small "Output" button reacted. Users expect the row itself to
expand/collapse.

Change

  • BackgroundTasksBar.tsx: the row lead (state dot + command + meta) is an
    interactive region (role="button", tabIndex=0, aria-expanded) that
    calls toggleOutput. Enter/Space mirror the click.
  • Stop / Dismiss stay outside that region with unchanged behavior.
  • composer.css: .background-task-main owns the row padding, fills the
    row (flex: 1 1 auto), shows cursor: pointer, and paints a
    --ds-focus focus ring.
  • New test background-tasks-bar-row-toggle.test.mjs pins the click
    surface, keyboard parity and the button/row split.

Verification

  • tsc -p tsconfig.json --noEmit (desktop): pass
  • check-style-tokens.mjs: OK
  • node --test on background-tasks-bar-row-toggle, background-tasks,
    background-tasks-bar-visibility: 24/24 pass
  • Not run: verify:ui:* (not requested)

The background-tasks bar only opened a task's log through its "Output"
button, so the row itself — the state dot, the command and the meta text —
looked clickable but did nothing, and the click target was a few pixels
wide.

The row lead is now the toggle: mouse click, Enter and Space all flip the
log, with aria-expanded on the interactive region. Stop and dismiss keep
their own buttons outside that region, and a source test pins the split so
a later refactor cannot regress the click target.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 14:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The D669 decision row landed with three cells in a four-column table in
both languages, so `pnpm --filter @pi-desktop/docs test` fails on
`origin/main` with a page-structure error.

Fill in the rationale the decision actually records: the shallowest-8000
entry index matched nothing for a script several folders down, which is
what issue #1781 reported. The table parses again.
Electron's direct fetch rejects before reaching the TLS fixture on macOS,
but can stall at the same client-certificate negotiation on Linux. Bound
the baseline probe and accept its abort as the platform-specific outcome,
while still requiring that no HTTP request reached the fixture.

This keeps the certificate discovery, proxy, redirect, and cancellation
assertions running instead of letting the child process time out.
Electron's direct fetch can remain pending during client-certificate
negotiation on Linux, and its AbortSignal does not reliably interrupt
that platform request. Race the baseline probe against a short deadline;
keep the process alive for the remaining discovery checks, then exit
Electron after the fixture has been verified.

A successful fetch still fails the test, and the fixture must receive no
HTTP request before the certificate error or platform timeout.
@vastsa
vastsa merged commit eb74d68 into main Oct 21, 2026
6 checks passed
@vastsa
vastsa deleted the fix/taskbar-row-toggle branch November 6, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants