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

enhance: Improve display for tool names when adding/removing tools fr… #454

Conversation

ryanhopperlowe
Copy link
Contributor

…om a chat

Now when adding or removing a tool from a chat. It will fetch the display name of the tool and display it with a tooltip containing the url. If no display name is found, it displays the url with no tooltip instead

#290

@thedadams
Copy link
Contributor

Looks like conflicts need to be resolved here.

@ryanhopperlowe ryanhopperlowe force-pushed the 290-names-of-the-tools-are-incorrect-when-adding-tools-using-add-tool-option-in-chat-threads branch from df1ec20 to cb79621 Compare September 9, 2024 14:18
Copy link
Contributor

@thedadams thedadams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. One piece of feedback on the UX:

When I add a tool, the name of the tool now looks like it is a hyperlink (see the screenshot). However, when I click on the name, nothing happens.

My suggestion is to either make it such that it doesn't look like a hyperlink or make the hyperlink work.

Screenshot 2024-09-09 at 10 51 56

@ryanhopperlowe ryanhopperlowe force-pushed the 290-names-of-the-tools-are-incorrect-when-adding-tools-using-add-tool-option-in-chat-threads branch from cb79621 to 793a7e0 Compare September 9, 2024 17:31
@ryanhopperlowe
Copy link
Contributor Author

ryanhopperlowe commented Sep 9, 2024

Looking good. One piece of feedback on the UX:

When I add a tool, the name of the tool now looks like it is a hyperlink (see the screenshot). However, when I click on the name, nothing happens.

My suggestion is to either make it such that it doesn't look like a hyperlink or make the hyperlink work.

Screenshot 2024-09-09 at 10 51 56

What if we went with a dotted underline instead?

Screenshot 2024-09-09 at 12 48 03 PM

@thedadams
Copy link
Contributor

@ryanhopperlowe In my opinion, something being a hyperlink is indicated by the fact that my mouse pointer changes when I hover over it. I think the dotted-underline is nice, but I think it would also need to not change the cursor.

g-linville
g-linville previously approved these changes Sep 9, 2024
) {
console.log('fire click outside');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: debug log should be removed

@ryanhopperlowe ryanhopperlowe force-pushed the 290-names-of-the-tools-are-incorrect-when-adding-tools-using-add-tool-option-in-chat-threads branch from f00cb84 to 13a5014 Compare September 10, 2024 16:06
@ryanhopperlowe ryanhopperlowe merged commit 4f9f425 into gptscript-ai:main Sep 10, 2024
1 check passed
@ryanhopperlowe ryanhopperlowe deleted the 290-names-of-the-tools-are-incorrect-when-adding-tools-using-add-tool-option-in-chat-threads branch September 10, 2024 17:32
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.

3 participants