-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(explorer): replace hamburger menu with top bar #104457
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
Conversation
| <Button | ||
| ref={sessionHistoryButtonRef} | ||
| icon={<IconTimer />} | ||
| onClick={() => onSessionHistoryClick(sessionHistoryButtonRef)} |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| const panelRect = anchorElement | ||
| .closest('[data-seer-explorer-root]') | ||
| ?.getBoundingClientRect(); |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| isSessionHistoryOpen: boolean; | ||
| onFeedbackClick: () => void; | ||
| onNewChatClick: () => void; | ||
| onSessionHistoryClick: (buttonRef: React.RefObject<HTMLElement | null>) => void; |
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.
Bug: Type signature mismatch for unused callback parameter
The onSessionHistoryClick prop is typed to accept a buttonRef parameter, and the button's onClick handler passes sessionHistoryButtonRef to it. However, the actual function passed from explorerPanel.tsx (openSessionHistory) takes no parameters and completely ignores the ref. The interface signature is misleading and the passed argument is never used.
Replaces the hamburger menu with a small top bar with buttons. This addresses feedback that the actions were hard to discover. Slash commands are still supported and the position of any menus changes to match whether you used the button or the slash command
Closes AIML-1953