Skip to content

Conversation

90stm
Copy link

@90stm 90stm commented Aug 7, 2025

Summary

This PR fixes two issues with the Agent Management modal:

  1. Fixes scrolling issue preventing users from viewing all agents (No ability to edit already existing agents #259)
  2. Adds missing edit functionality for agents (No ability to edit already existing agents #259)

Changes Made

1. Fixed Agent Modal Scrolling

  • Replaced ScrollArea component with native overflow-y-scroll in AgentsModal.tsx
  • Changed container from overflow-hidden to min-h-0 to allow proper scrolling
  • Added max-h-[400px] constraint to ensure scrollbar appears
  • Added custom scrollbar styling for better UX

2. Added Edit Functionality

  • Added Edit button to each agent card in the modal
  • Implemented event system to pass agent data to CreateAgent component
  • Modified CreateAgent component to accept editing data via localStorage
  • Added proper cleanup logic for localStorage
  • Updated tab management to show "Edit: [Agent Name]" when editing

Testing

  • Verified all 11 agents are now visible with working scrollbar
  • Tested edit functionality with existing agents
  • Confirmed agent data properly loads in edit mode
  • Tested creating new agents still works as expected

90stm added 2 commits August 7, 2025 10:33
- Changed overflow-hidden to min-h-0 in AgentsModal to enable proper scrolling
- Added max-h constraint and overflow-y-scroll to agent list container
- Removed conflicting height constraints that prevented scrolling
- Now all agents are visible with proper scrollbar functionality

Fixes issue where users couldn't see all their agents in the modal
- Added Edit button to each agent in the Agent Management modal
- Implemented event system to pass agent data to CreateAgent component
- Modified CreateAgent to accept editing data from localStorage
- Added proper cleanup of localStorage after editing

Closes getAsterisk#259 - Users can now edit existing agents
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