Skip to content

Styling tools selection shortcut buttons #11

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

Merged
merged 3 commits into from
Mar 11, 2025
Merged

Conversation

shahariaazam
Copy link
Member

@shahariaazam shahariaazam commented Mar 11, 2025

This pull request includes updates to the ToolsToggle component and the toolIcons configuration to enhance the styling and functionality of tool icons. The most important changes include adding color properties to the tool icon mappings and updating the ToolsToggle component to use these new properties.

Improvements to tool icon styling:

Updated the tool selection logic to use regex for more precise matching, replacing the simple pattern-based approach. Introduced required regex fields in `toolIconMappings` for consistent behavior across tool integrations. Expanded `toolIcons.tsx` with additional tool mappings and refined titles.
Introduced a `colors` property in `toolIconMappings` to define background, hover, and text colors for tool icons. Updated `ToolsToggle` to utilize these properties for consistent and customizable styling across all tools. This enhances clarity and flexibility in visual representation.
# Conflicts:
#	src/components/ChatInputButton/toolIcons.tsx
@shahariaazam shahariaazam changed the title Add more tools icon Styling tools selection shortcut buttons Mar 11, 2025
@shahariaazam shahariaazam merged commit 7c6f5da into main Mar 11, 2025
3 checks passed
@shahariaazam shahariaazam deleted the add-more-tools-icon branch March 11, 2025 00:38
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