[PR #4419] [CLOSED] fix(agents): remove the duplicate drag handle on agent cards #6369

Closed
opened 2026-10-23 04:09:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4419
Author: @Gunterlie
Created: 8/1/2026
Status: ❌ Closed

Base: staging ← Head: fix/agent-card-duplicate-drag-handle


📝 Commits (1)

  • 9c2a769 fix(agents): remove the duplicate drag handle on agent cards

📊 Changes

2 files changed (+1 additions, -19 deletions)

View changed files

📝 packages/client/src/components/panels/AgentsPanel.tsx (+1 -18)
📝 packages/client/src/localization/locales/en.json (+0 -1)

📄 Description

Follow-up to #4413.

Why

That PR added a TouchDragHandle to agent cards so agents could be touch-dragged. Agent cards already carried their own decorative grip — hover-revealed, [@media(pointer:coarse)]:hidden, no handler, purely an affordance for the native HTML5 drag. The new handle also hover-reveals on fine pointers, so hovering an agent card on desktop showed two grips side by side.

What

Remove the decorative grip and keep TouchDragHandle, which already covers both pointer types and is exactly what the other six library panels do. The handle now also reuses the existing ui.panels.agentcard.dragAgent key, so the duplicate ui.panels.agentspanel.dragAgent key added in #4413 is dropped.

One small behavior difference: the old grip was hidden in selection mode, the shared handle is not — again matching the other panels.

Validation

  • pnpm check
  • pnpm localization:check

Test plan

  • Manually verify hovering an agent card on desktop shows exactly one drag handle
  • Manually verify the native desktop drag of an agent card still works
  • Manually verify the handle is visible on a touch device and still starts a touch drag
  • Manually verify agent cards in selection mode look right with the handle present

Summary by CodeRabbit

  • UI Improvements
    • Simplified agent cards by removing the redundant desktop drag handle.
    • Retained touch-based drag-and-drop controls for supported devices.
    • Removed an unused localization entry.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4419 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/1/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `fix/agent-card-duplicate-drag-handle` --- ### 📝 Commits (1) - [`9c2a769`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9c2a769ecd9bf76d280ebc9ebfcf27d088fd9412) fix(agents): remove the duplicate drag handle on agent cards ### 📊 Changes **2 files changed** (+1 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+1 -18) 📝 `packages/client/src/localization/locales/en.json` (+0 -1) </details> ### 📄 Description Follow-up to #4413. ## Why That PR added a `TouchDragHandle` to agent cards so agents could be touch-dragged. Agent cards already carried their own decorative grip — hover-revealed, `[@media(pointer:coarse)]:hidden`, no handler, purely an affordance for the native HTML5 drag. The new handle also hover-reveals on fine pointers, so hovering an agent card on desktop showed **two** grips side by side. ## What Remove the decorative grip and keep `TouchDragHandle`, which already covers both pointer types and is exactly what the other six library panels do. The handle now also reuses the existing `ui.panels.agentcard.dragAgent` key, so the duplicate `ui.panels.agentspanel.dragAgent` key added in #4413 is dropped. One small behavior difference: the old grip was hidden in selection mode, the shared handle is not — again matching the other panels. ## Validation - [ ] `pnpm check` - [ ] `pnpm localization:check` ## Test plan - [ ] Manually verify hovering an agent card on desktop shows exactly one drag handle - [ ] Manually verify the native desktop drag of an agent card still works - [ ] Manually verify the handle is visible on a touch device and still starts a touch drag - [ ] Manually verify agent cards in selection mode look right with the handle present <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **UI Improvements** * Simplified agent cards by removing the redundant desktop drag handle. * Retained touch-based drag-and-drop controls for supported devices. * Removed an unused localization entry. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:45 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6369
No description provided.