Skip to content

fix(web-ui): add removal actions to workspace history - #3912

Merged
bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/workspace-history-actions
Nov 14, 2026
Merged

bobleer merged 1 commit into
openBitFun:mainfrom
bobleer:bob/workspace-history-actions

Conversation

@bobleer

@bobleer bobleer commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Workspace history capsules did not offer a direct removal action. Add hover/focus delete buttons to saved remote hosts and recent local workspaces, using the same capsule styling and one reserved action slot for both lists.

  • Keep editing available for remote hosts, and hide deletion for SSH Config entries and hosts derived from another profile.
  • Remove local entries from recent history without deleting projects or files. Preserve entries on failure, clear a deleted host's selection, and ignore responses after a device switch.
  • Move the connection editor's delete button to the far left of its footer.

Type and Areas

Type: Bug fix / UI/UX

Areas: Web UI, shared Capsule component, workspace history and SSH connection selection.

Motivation / Impact

Users can remove saved hosts and recent local workspaces directly from the work-location selector. Local and remote capsules reserve the same single-button space; adding a second action does not widen the capsule. The existing transport APIs handle removal, with no new commands or persisted formats.

Verification

  • pnpm --dir src/web-ui exec vitest run --maxWorkers=50% src/app/components/NewProjectDialog/NewProjectDialog.test.tsx src/features/ssh-remote/SSHConnectionDialog.fields.test.tsx — 84 tests passed, including removal success/failure, independent action hit areas, and simulated device switches.
  • pnpm --dir design-system run build:ui and node --test design-system/packages/ui/tests/capsule.test.mjs — build succeeded; 7 tests passed.
  • pnpm --dir src/web-ui exec tsc --noEmit — passed.
  • pnpm run appearance:contract-audit, pnpm run theme:color-audit:all, pnpm run theme:visual-contract, pnpm run i18n:audit, and pnpm --dir src/web-ui run icons:check — passed.
  • pnpm run motion:audit — completed (informational inventory).
  • pnpm install && pnpm run desktop:dev -- --shared-data — desktop started successfully for local UI review.
  • pnpm run check:web — blocked by the pre-existing typography audit violation in design-system/packages/ui/src/components/Dialog/Dialog.module.css:77 (--openbitfun-line-height-snug). That file is unchanged by this PR; the remaining checks were run separately.

Remote coverage is limited to simulated Peer surface-switch fencing. No live SSH, Remote Control, Peer Device, or Detached Dispatch validation is claimed.

Reviewer Notes

AI-assisted; testing level: lightly tested (focused automated checks and desktop startup/UI iteration, without full end-to-end coverage).

Manual review: open the project dialog, compare local history and remote host capsules at rest and on hover, remove a disposable recent entry/saved profile, then open a connection editor and verify the delete button is at the far left. SSH Config hosts should retain editing without a delete action in the history list.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable (existing localized action labels are reused).

@bobleer
bobleer merged commit bfaabe1 into openBitFun:main Nov 14, 2026
8 of 9 checks passed
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.

1 participant