Skip to content

fix(ui): add sr-only labels to log buttons - #964

Merged
skevetter merged 1 commit into
mainfrom
ui-polish/log-copy-delete-sr-labels
Aug 9, 2026
Merged

skevetter merged 1 commit into
mainfrom
ui-polish/log-copy-delete-sr-labels

Conversation

@devsy-app

@devsy-app devsy-app Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Problem

In pages/WorkspaceDetailPage.svelte, three icon-only buttons in the workspace Logs section — "Copy output", "Copy log", and "Delete log" — had only a hover Tooltip for labeling and no accessible name. Screen-reader users heard only an unnamed "button", since a tooltip is not an accessible name and these icons carry no text. Other icon-only buttons in the same file already follow the convention of adding <span class="sr-only">…</span>.

Change

Add a <span class="sr-only"> label to each of the three icon-only buttons (Copy output, Copy log, Delete log) in the log-files/output area, matching the existing pattern used elsewhere in the file (e.g. the rename, copy SSH, and more-actions buttons). Purely additive markup — no logic, styling, or behavior changes.

Why it's safe / reviewable in <15 min

  • One file, three added lines (+3).
  • No JS/TS, store, routing, IPC, or CSS changes.
  • sr-only is visually hidden (existing utility), so the rendered UI is unchanged.
  • Uses the exact same idiom already established in this file.

Verification

  • npm install --ignore-scripts — succeeded.
  • npm run check (svelte-check / type check) — 0 errors, 0 warnings.
  • npx vitest run — 48/48 tests passed. (32 unrelated "errors" are a pre-existing jsdom/undici markAsUncloneable is not a function incompatibility with the local Node v20 runtime; the repo targets Node 24 per CI. These occur at environment setup, not in test execution, and are not affected by markup changes.)
  • task cli:format — clean.
  • task cli:lint:ci — 0 issues.
  • npx biome check on the edited file could not complete in this environment (hangs under Node v20, same toolchain incompatibility as the vitest environment errors); svelte-check covers the Svelte/a11y validation.

This PR was created by an AI agent as part of an automated daily UI polish job.

## Problem

In `pages/WorkspaceDetailPage.svelte`, three icon-only buttons in the workspace Logs section — "Copy output", "Copy log", and "Delete log" — had only a hover `Tooltip` for labeling and no accessible name. Screen-reader users heard only an unnamed "button", since a tooltip is not an accessible name and these icons carry no text. Other icon-only buttons in the same file already follow the convention of adding `<span class="sr-only">…</span>`.

## Change

Add a `<span class="sr-only">` label to each of the three icon-only buttons (Copy output, Copy log, Delete log) in the log-files/output area, matching the existing pattern used elsewhere in the file (e.g. the rename, copy SSH, and more-actions buttons). Purely additive markup — no logic, styling, or behavior changes.

## Why it's safe / reviewable in <15 min

- One file, three added lines (`+3`).
- No JS/TS, store, routing, IPC, or CSS changes.
- `sr-only` is visually hidden (existing utility), so the rendered UI is unchanged.
- Uses the exact same idiom already established in this file.

## Verification

- `npm install --ignore-scripts` — succeeded.
- `npm run check` (svelte-check / type check) — **0 errors, 0 warnings**.
- `npx vitest run` — **48/48 tests passed**. (32 unrelated "errors" are a pre-existing jsdom/undici `markAsUncloneable is not a function` incompatibility with the local Node v20 runtime; the repo targets Node 24 per CI. These occur at environment setup, not in test execution, and are not affected by markup changes.)
- `task cli:format` — clean.
- `task cli:lint:ci` — **0 issues**.
- `npx biome check` on the edited file could not complete in this environment (hangs under Node v20, same toolchain incompatibility as the vitest environment errors); svelte-check covers the Svelte/a11y validation.

This PR was created by an AI agent as part of an automated daily UI polish job.
@netlify

netlify Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit d301b57
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a787f9c745f490008d48610

@netlify

netlify Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit d301b57
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a787f9defa6960008119ec6

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: run a review on demand. To trigger the first review automatically, go to your organization or repository integration settings. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@skevetter
skevetter marked this pull request as ready for review August 9, 2026 17:01
@skevetter
skevetter merged commit 9608566 into main Aug 9, 2026
28 checks passed
@skevetter
skevetter deleted the ui-polish/log-copy-delete-sr-labels branch August 9, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant