Skip to content

Conversation

@masonjames
Copy link

What is this PR about?

Adds a per-service Move action to each service card on the environment page, reusing the existing bulk move infrastructure with zero new components or files.

Changes (1 file, ~76 additions):

  • Adds a MoreHorizontalIcon dropdown menu to each service card (matching the Projects page pattern)
  • The "Move" action pre-selects the single service and opens the existing bulk move dialog
  • Fixes dialog title/description grammar for singular ("Move Service" / "this service") vs plural
  • Repositions the service-type icon to the left of the service name, consistent with the Projects page card layout

What stays the same:

  • All existing bulk move functionality is untouched
  • The same handleBulkMove function handles both single and bulk moves
  • Same target project/environment selection UI
  • Same cache invalidation and error handling

Checklist

Screenshots (if applicable)

Service card with action menu and icon repositioned to left of name:

  • Each card now shows a menu on hover with "Move" action
  • Clicking Move opens the existing move dialog scoped to that single service
  • Service-type icon (globe, database icons, etc.) now appears to the left of the service name

🤖 Generated with Claude Code

Add a three-dot menu (MoreHorizontalIcon) to each service card that
exposes a per-service Move action. Reuses the existing bulk move
dialog — selecting Move on a single card pre-selects that service
and opens the shared move dialog with singular grammar.

Also repositions the service-type icon to the left of the service
name, consistent with the project card layout in the Projects page.

Changes:
- Add MoreHorizontalIcon and DropdownMenuItem imports
- Restructure CardHeader: icon left of name, action menu on right
- Per-card dropdown triggers the existing move dialog for one service
- Fix Move dialog title/description grammar for single vs multiple

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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