-
Notifications
You must be signed in to change notification settings - Fork 883
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
AI Chat: fix action menu #26555
AI Chat: fix action menu #26555
Conversation
@@ -125,10 +123,8 @@ export const getFirstValidAction = (actionList: mojom.ActionGroup[]) => | |||
|
|||
export function useActionMenu( | |||
filter: string, | |||
getActions: () => Promise<mojom.ActionGroup[]> |
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.
Couldn't see the advantage of a "getter" param instead vs the data
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.
++
A Storybook has been deployed to preview UI for the latest push |
@@ -314,8 +310,7 @@ export function ConversationContextProvider( | |||
}) | |||
}, [context.conversationUuid, context.faviconCacheKey]) | |||
|
|||
const actionList = useActionMenu(context.inputText, () => | |||
Promise.resolve(aiChatContext.allActions) |
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.
I'm very confused about this 😆
Released in v1.75.31 |
Verified on
STEPS:
ACTUAL RESULTS:
|
AI Chat: fix action menu (#26555) Resolves brave/brave-browser#41635 Resolves brave/brave-browser#42279
AI Chat: fix action menu (#26555) Resolves brave/brave-browser#41635 Resolves brave/brave-browser#42279
Resolves brave/brave-browser#42279
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: