mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
## Summary Moves the stop action from the icon-button shortcuts to the kebab menu (WorkspaceMoreActions) in the workspaces list view. ## Problem The stop icon was difficult to recognize without context in the workspace list view. Users couldn't easily identify what the stop button did based on the icon alone. ## Solution - The stop action is not a primary action and doesn't need to be highlighted in the icon-button view - Moved the stop action into the kebab (⋮) menu - The start button remains as a primary action when the workspace is offline, since starting a workspace is a more common and expected action ## Changes - `WorkspaceMoreActions`: Added optional `onStop` and `isStopPending` props to conditionally render a "Stop" menu item - `WorkspacesTable`: Removed the stop `PrimaryAction` button and instead passes the stop callback to `WorkspaceMoreActions` when the workspace can be stopped ## Testing - TypeScript compiles without errors - All existing tests pass - Manually verified that the stop action appears in the kebab menu when the workspace is running Fixes #21516 --- Created on behalf of @jacobhqh1 --------- Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: Jake Howell <jake@hwll.me>