Repository navigation
fix(web-ui): add removal actions to workspace history - #3912
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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:uiandnode --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, andpnpm --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 indesign-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