-
Notifications
You must be signed in to change notification settings - Fork 815
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 Rewriter]: Introduce placeholder UI behind a flag #23688
Conversation
chromium_src/chrome/browser/ui/webui/chrome_untrusted_web_ui_configs.cc
Outdated
Show resolved
Hide resolved
4bbb86d
to
7dc64bf
Compare
A Storybook has been deployed to preview UI for the latest push |
7dc64bf
to
a534a33
Compare
A Storybook has been deployed to preview UI for the latest push |
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.
LGTM 👍
chromium_src/chrome/browser/renderer_context_menu/render_view_context_menu.cc
Show resolved
Hide resolved
a534a33
to
71fc3c4
Compare
A Storybook has been deployed to preview UI for the latest push |
71fc3c4
to
6cb6138
Compare
A Storybook has been deployed to preview UI for the latest push |
6cb6138
to
d377b5d
Compare
A Storybook has been deployed to preview UI for the latest push |
d377b5d
to
abc0b89
Compare
A Storybook has been deployed to preview UI for the latest push |
chromium_src/chrome/browser/renderer_context_menu/render_view_context_menu.cc
Show resolved
Hide resolved
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.
string reviewers ++
abc0b89
to
a93268e
Compare
A Storybook has been deployed to preview UI for the latest push |
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.
lgtm with few things to fix.
make sure to add unconditional buildflags
dep wherever you have if (enable_ai_rewriter) { ... }
.
a93268e
to
dd4d0fb
Compare
dd4d0fb
to
7663cbb
Compare
[puLL-Merge] - brave/brave-core@23688 Here is my review of the pull request: DescriptionThis PR adds a new AI-powered text rewriting feature called "AI Rewriter". It introduces a new UI accessible at chrome://rewriter that allows rewriting selected text using AI models. The feature is enabled on desktop platforms (Windows, Mac, Linux) if the brave://flags/#brave-ai-chat flag is enabled. ChangesChanges
Overall, this is a significant new feature addition that touches browser, renderer, and resources code. Security HotspotsNone found. The new code does not appear to introduce any major security risks. The main untrusted data appears to be the user-selected text passed from the renderer to the browser for rewriting, but this seems to be handled safely. Let me know if you have any other questions! |
A Storybook has been deployed to preview UI for the latest push |
Resolves brave/brave-browser#38357
The UI is behind the brave://flags/#brave-ai-rewriter flag
Screencast.from.2024-05-16.14-10-27.webm
Note: The UI is not wired up to Leo at all, and has no functionality beyond showing/hiding the dialog.
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: