Skip to content

Conversation

@matifali
Copy link
Member

@matifali matifali commented Dec 8, 2025

Description

This PR replaces the stop icons with the pause icon from Lucide React for workspace stop actions, providing better visual consistency and semantics.

Changes

  • Workspace page stop button: Changed from CircleStopIcon to PauseIcon
  • Workspaces list page stop action: Changed from SquareIcon to PauseIcon

Both locations now use the same pause icon (⏸️) for consistency across the UI.

Testing

  • Verified that PauseIcon is already used elsewhere in the codebase
  • No TypeScript errors
  • Icon imports correctly from lucide-react

Screenshots

The pause icon now appears consistently in:

  1. The main workspace page stop button
  2. The workspace list table stop action

Fixes #20195

Replace CircleStopIcon and SquareIcon with PauseIcon from Lucide
for workspace stop actions to better represent the stop/pause
functionality.

Changes:
- WorkspaceActions/Buttons.tsx: CircleStopIcon -> PauseIcon
- WorkspacesTable.tsx: SquareIcon -> PauseIcon

Fixes #20195
@matifali matifali changed the title feat(ui): replace stop icon with pause icon chore(site): replace stop icon with pause icon Dec 8, 2025
@matifali matifali requested review from chrifro and Copilot December 8, 2025 20:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to standardize workspace stop action icons by replacing CircleStopIcon and SquareIcon with PauseIcon from Lucide React. However, the changes are incomplete and create inconsistencies rather than resolving them, as several other locations in the codebase continue to use SquareIcon for stop actions.

Key Issues

  • Only two of five locations using stop icons were updated, creating inconsistent UI
  • Semantic mismatch between pause icon and "Stop" label (pause suggests temporary suspension, stop suggests full shutdown)
  • Other stop-related icons remain unchanged (BuildIcon.tsx, WorkspacesPageView.tsx, workspace.tsx)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
site/src/pages/WorkspacesPage/WorkspacesTable.tsx Replaces SquareIcon with PauseIcon in workspace stop action button
site/src/pages/WorkspacePage/WorkspaceActions/Buttons.tsx Replaces CircleStopIcon with PauseIcon in StopButton component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

BanIcon,
CircleStopIcon,
CloudIcon,
PauseIcon,
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The pause icon is semantically incorrect for the "Stop" action. A pause suggests a temporary suspension that can be quickly resumed, while stop suggests a full shutdown. This creates a semantic mismatch between the icon (pause) and the button label ("Stop"). Consider either:

  1. Keeping the stop icon (SquareIcon or CircleStopIcon) for semantic accuracy, or
  2. If pause is the correct semantic, update the button label to "Pause" to match the icon

Additionally, there are other locations in the codebase still using SquareIcon for stop actions (WorkspacesPageView.tsx line 178, BuildIcon.tsx line 11, utils/workspace.tsx line 244), creating an inconsistent experience.

Suggested change
PauseIcon,
SquareIcon,

Copilot uses AI. Check for mistakes.
EllipsisVertical,
ExternalLinkIcon,
FileIcon,
PauseIcon,
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Inconsistent icon usage for stop actions across the codebase. While this file now uses PauseIcon, there are several other locations still using SquareIcon for the same stop action:

  • WorkspacesPageView.tsx (line 178): Bulk actions menu uses <SquareIcon /> Stop
  • BuildIcon.tsx (line 11): Maps stop transition to SquareIcon
  • utils/workspace.tsx (line 244): Displays SquareIcon for "stopped" status

This creates an inconsistent user experience where different parts of the UI use different icons for the same action. Consider updating all stop-related icons consistently across the entire codebase.

Copilot uses AI. Check for mistakes.
Address review feedback to ensure consistency across all stop
action icons in the codebase.

Additional changes:
- BuildIcon.tsx: SquareIcon -> PauseIcon for stop transition
- WorkspacesPageView.tsx: SquareIcon -> PauseIcon in batch actions
- workspace.tsx: SquareIcon -> PauseIcon for stopped status

All stop-related icons now consistently use PauseIcon throughout
the application.

Addresses review feedback from #21173
@matifali matifali marked this pull request as draft December 8, 2025 20:21
Copy link

@chrifro chrifro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@matifali matifali marked this pull request as ready for review December 9, 2025 09:34
@matifali matifali requested review from a team and jaaydenh and removed request for a team December 9, 2025 09:34
@jaaydenh
Copy link
Contributor

jaaydenh commented Dec 9, 2025

@matifali I made a comment in the original issue, I am trying to avoid the semantic mismatch between calling the action stop and using the "Pause" icon, if possible.

@matifali
Copy link
Member Author

matifali commented Dec 9, 2025

@matifali I made a comment in the original issue, I am trying to avoid the semantic mismatch between calling the action stop and using the "Pause" icon, if possible.

@chrifro FYI

@chrifro
Copy link

chrifro commented Dec 9, 2025

@jaaydenh I replied in the issue

@matifali matifali merged commit e31578d into main Dec 9, 2025
31 of 33 checks passed
@matifali matifali deleted the solve-issue-20195 branch December 9, 2025 15:57
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

swap "stop" icon

4 participants