Skip to content
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

Dev 0.0.6 #150

Merged
merged 8 commits into from
Jan 9, 2025
Merged

Dev 0.0.6 #150

merged 8 commits into from
Jan 9, 2025

Conversation

crazygo
Copy link
Contributor

@crazygo crazygo commented Jan 9, 2025

This pull request includes several changes to improve the user interface and functionality of the ask-panel component, as well as some configuration updates.

UI and Functionality Improvements:

  • Added a maximize button to the AskPanel component, allowing the panel to be expanded and collapsed. This includes changes to the panel's CSS classes and the addition of the isMaximized state. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
  • Updated the CopyButton and AskMessage components to improve the user experience, including changes to button positioning and visibility. [1] [2]

Configuration Updates:

  • Removed the fastRequestCurrentProjectConfig.json configuration file, which contained various API documentation templates and project settings.
  • Updated the .husky/pre-commit script to use pnpm lint-staged directly instead of pnpm dlx lint-staged.

Codebase Enhancements:

  • Added the usePreventOverflowHidden hook to prevent overflow hidden styles from being applied to the document, and integrated this hook into the ToolDropdown and ModelDropdown components. [1] [2] [3] [4] [5] [6] [7] [8]

These changes collectively enhance the user interface, improve functionality, and clean up the codebase.

- Introduced a maximize/minimize toggle for the AskPanel, enhancing user experience by allowing users to expand the panel for better visibility.
- Updated the layout to adjust the panel size dynamically based on the maximize state.
- Improved styling for the quote display area and input components to ensure a consistent and user-friendly interface.
- Refactored code for better readability and maintainability.
…yling

- Added a new custom hook, usePreventOverflowHidden, to prevent unwanted overflow styles on the document element.
- Integrated the usePreventOverflowHidden hook into ToolDropdown and ModelDropdown components to enhance usability.
- Updated dropdown components to include isolation styles for better rendering and interaction.
- Improved overall styling for dropdown menus to ensure a consistent user experience.
…der info

- Added shortName property to model objects for improved readability.
- Updated dropdown display to show short names alongside provider information, enhancing user experience and clarity.
- Adjusted the layout of dropdown items to enhance readability and user interaction.
- Updated the styling to ensure provider information is displayed more clearly on hover, improving overall user experience.
- Added event propagation prevention for Escape and '@' key presses to enhance dropdown interaction.
- Updated Enter key handling to prevent default behavior during composition, improving user experience.
- Implemented onKeyUp event to stop propagation, ensuring consistent keyboard behavior across input interactions.
- Updated the positioning of the CopyButton in the AskMessage component to enhance its visibility and accessibility.
- Changed the top margin from `top-0` to `top-[-6px]` to better align the button with the message text, improving user interaction.
@crazygo crazygo added the type: feature request New feature or request label Jan 9, 2025
@crazygo crazygo added this to the 2025-01 milestone Jan 9, 2025
@crazygo crazygo self-assigned this Jan 9, 2025
@crazygo crazygo mentioned this pull request Jan 9, 2025
23 tasks
@crazygo crazygo merged commit 0544b0a into main Jan 9, 2025
3 checks passed
@crazygo crazygo deleted the dev-0.0.6 branch January 9, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant