feat: add assistant chat button and fix random assistant issue#7750
feat: add assistant chat button and fix random assistant issue#7750Vanalite merged 35 commits intojanhq:mainfrom
Conversation
…://github.com/markmehere/jan into feature/assistant-chat-button-nouselesspretty
…into feat/assistant-chat-button
|
hey @markmehere merged my #7725 into |
…nt-chat-button
|
@markmehere I have discuss with our UI/UX designer and we have a concern regarding the information architecture in this change. Currently, all tools are grouped under the “+” menu, but the assistant is being surfaced outside of that structure. This creates an inconsistency in how features are organized and may be confusing from a user experience perspective. would be more coherent to keep the assistant within the “+” menu alongside the other tools, rather than separating it out. Could we move the assistant back inside the “+” menu to maintain a more consistent and predictable structure? |
|
The problem is that's not going to solve #7513. A number of users have no idea what assistant they are using when they start a new chat. Same for https://discord.com/channels/1107178041848909847/1474119257465028700/1474119257465028700. One option is to make the separate button an option in the settings? That said I really do think even that isn't great - some users do use the assistants a lot and a setting they might never find is not going to help. |
|
Here's another idea what if we hide the button for users who only have one assistant? It's not great UX - because it's not entirely consistent or predictable. But it makes sense from the perspective if the user has never added an assistant they probably don't care about assistants but if they have added an assistant, they probably do care and want the ability to switch it up. Alternatively, if we put the separate button option in the assistant settings below the default assistant. Users who want this feature are more likely to find it. But it would be great to get a solution to #7513 either way. |
…ehere/jan into feat/assistant-chat-button
take ur time |
…nt-chat-button
…ehere/jan into feat/assistant-chat-button
|
@urmauur I've made it so the button only shows when starting new chats with more than two assistants installed. I've also added some unit tests. Have a look and approve/merge if you're happy with the results. |
|
Hi @markmehere, I think we can improve this PR with the followings: Add tooltip when hovering on the assistant icon, just say "Assistant" would suffice. Otherwise users will not understand what that icon on the screen is aboutThe color of the icon in chatInput is different from the original color, some background color has blended the foreground color
The assistant icon is displaying from the home screen only. Within an ongoing convo, this icon disappear. |
|
I've made those adjustments as requested - they all look fine and the PR is hopefully now ripe and ready to merge. cc: @urmauur @louis-jan |



Describe Your Changes
This adds an assistant button when you start a new chat. The button does not appear in projects
or in threads (in threads, the assistant menu returns under the plus button).Elaborate On Your Changes
AssistantMenu.tsxfileloadingstate to theAssistantStatefixing "jan" being selected because no other assistants are loadednew String('id') !== 'id'settings/assistant.tsxwhere it was not possible to view all assistants in long list of assistantsFixes Issues
Self Checklist