-
Notifications
You must be signed in to change notification settings - Fork 761
feat: add footer for chat-panel chat input and change settings button #5354
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
…models, and a send button
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| PlusIcon, | ||
| SendIcon, | ||
| Settings, | ||
| Square, |
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.
super nit: i try to add *Icon instead (e.g. SquareIcon) because they always conflict with other components
| icon={<BotMessageSquareIcon />} | ||
| /> | ||
| )} | ||
| {chats.map((chat) => ( |
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.
maybe its fixed now, but last i opened this, the chat item in the history did not extend the full width. just wanted to callout in case you saw the same
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.
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.
yea exactly. it would be nice to be a single column list (and not centered). im not sure what happened.
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.
feel free to design as you see fit too
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.
| </SelectContent> | ||
| </Select> */} | ||
| <Select value={currentModel} onValueChange={handleModelChange}> | ||
| <SelectTrigger className="h-6 text-xs border-0 bg-transparent hover:bg-muted/30 focus:ring-0 focus:shadow-none py-0 px-2 gap-1"> |
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.
suggestion to make it clearer h-6 text-xs border-border !shadow-none !ring-0 bg-muted
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.
Way better! thanks. Especially this: !shadow-none
…marimo-team#5354) ## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes marimo-team#123). --> Added a footer with mode and model dropdowns. Updated the Settings button to an icon on the right side <img width="434" alt="Screenshot 2025-06-19 at 1 11 14 AM" src="https://github.com/user-attachments/assets/2ca46d04-98eb-4173-a4c5-f1e2235624d9" /> ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> - Added footer in chat input (see image): - Added mode dropdown with two options: **ask** and **manual** (Commented out until we add tools for ask mode) - Added a model dropdown for easy updating and visibility - Added send button that also functions as stop button while the LLM is generating text - Changed the ai settings button to an icon on the right side (see image) Next PR: Set up /tool endpoint and call it from the onToolCall() function in chat-panel.tsx ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [ ] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. ## 📜 Reviewers <!-- Tag potential reviewers from the community or maintainers who might be interested in reviewing this pull request. Your PR will be reviewed more quickly if you can figure out the right person to tag with @ --> @mscolnick
…marimo-team#5354) ## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes marimo-team#123). --> Added a footer with mode and model dropdowns. Updated the Settings button to an icon on the right side <img width="434" alt="Screenshot 2025-06-19 at 1 11 14 AM" src="https://github.com/user-attachments/assets/2ca46d04-98eb-4173-a4c5-f1e2235624d9" /> ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> - Added footer in chat input (see image): - Added mode dropdown with two options: **ask** and **manual** (Commented out until we add tools for ask mode) - Added a model dropdown for easy updating and visibility - Added send button that also functions as stop button while the LLM is generating text - Changed the ai settings button to an icon on the right side (see image) Next PR: Set up /tool endpoint and call it from the onToolCall() function in chat-panel.tsx ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [ ] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. ## 📜 Reviewers <!-- Tag potential reviewers from the community or maintainers who might be interested in reviewing this pull request. Your PR will be reviewed more quickly if you can figure out the right person to tag with @ --> @mscolnick


📝 Summary
Added a footer with mode and model dropdowns. Updated the Settings button to an icon on the right side
🔍 Description of Changes
Next PR: Set up /tool endpoint and call it from the onToolCall() function in chat-panel.tsx
📋 Checklist
📜 Reviewers
@mscolnick