brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.42k stars 2.25k forks source link

Add ability to modify prompts for user actions (slash tools) #39705

Open yrliou opened 1 month ago

yrliou commented 1 month ago

Platforms

Linux, macOS, Windows

Description

Brought up in https://github.com/brave/brave-browser/issues/35342#issuecomment-2223459852

aguscruiz commented 1 month ago

Adding my proposal here:

https://www.figma.com/design/m0Gdbf0wtqyfEFGm32VLLc/%F0%9F%94%84-Leo-%5BIN-PROGRESS%5D?node-id=5348-103350&t=bcCc7x4Qj4r7rkBu-1

When the person clicks on edit promt, with a tool already selected, they will have two choices:

The tool label will show a pencil icon that will open the dropdown of all the tools, with the active one selected. They won't be able to type to search/filter in this case, that would make the UI very messy. If they select a new tool, the menu closes.

The person will still have to click "Save" to submit the prompt again, even if they don't change the prompt.

They can also click on the X button to remove the tool from being used.

image