-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: add expand/collapse functionality to API Request section (#8755) #8757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Replace static double-arrow icon with expandable chevron for completed API requests - Add click handler to toggle expansion state - Display API request details in CodeAccordian when expanded - Maintain consistent UI behavior with other expandable sections Fixes #8755
- Remove code duplication in icon rendering logic - Use existing icon variable for non-expandable states - Fix CodeAccordion onToggleExpand handler
Review CompleteNo issues found. The implementation correctly addresses the bug reported in #8755. Changes verified:
The code follows existing patterns, maintains consistency with the codebase, and successfully addresses the user-reported inconsistency. |
|
|
||
| return ( | ||
| <> | ||
| <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For accessibility, consider adding role='button' and tabIndex='0' (with keyboard event handlers) to the clickable header <div> so that the expand/collapse functionality is accessible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found.
Description
This PR fixes the inconsistent behavior with the "API Request" section in the chat interface where a double-arrow icon (⇄) appeared instead of the expandable chevron icon, preventing users from viewing request details.
Issue
Fixes #8755
Changes Made
Testing
Screenshots
The API Request section now shows:
Review Notes
Important
Adds expand/collapse functionality to API Request section in
ChatRow.tsx, replacing static icon with dynamic chevron and improving code quality.ChatRow.tsx.ChatRowContent.CodeAccordionwhen expanded.ChatRow.tsx.This description was created by
for daaedc6. You can customize this summary. It will automatically update as commits are pushed.