mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add data-use disclosures to the user report dialog (#42798)
## What changed - Show audience-specific data-use disclosure copy and links before report submission. - Keep the note editor and submit/cancel controls visible in short panes while allowing the disclosure to scroll with `PageUp` and `PageDown`. - Clarify the employee completion message with its report ID and link. ## Testing - Add snapshot coverage for both audiences, narrow widths, short panes, and four-row panes. - Cover submit and cancel behavior in the report note view. GitOrigin-RevId: c025bcfbbd39e462685b211ef9392664e7de4f71
This commit is contained in:
1 parent
47b0f7d540
commit
80ab0ffafe
16 files changed
+482
-50
No files matched your search
@@ -997,20 +997,14 @@ impl ChatWidget {
|
||||
&mut self,
|
||||
category: crate::app_event::FeedbackCategory,
|
||||
include_logs: bool,
|
||||
) {
|
||||
self.show_feedback_note(category, include_logs);
|
||||
}
|
||||
|
||||
fn show_feedback_note(
|
||||
&mut self,
|
||||
category: crate::app_event::FeedbackCategory,
|
||||
include_logs: bool,
|
||||
feedback_audience: crate::bottom_pane::FeedbackAudience,
|
||||
) {
|
||||
let view = crate::bottom_pane::FeedbackNoteView::new(
|
||||
category,
|
||||
self.turn_lifecycle.last_turn_id.clone(),
|
||||
self.app_event_tx.clone(),
|
||||
include_logs,
|
||||
feedback_audience,
|
||||
);
|
||||
self.bottom_pane.show_view(Box::new(view));
|
||||
self.request_redraw();
|
||||
|
||||
Reference in new issue
Block a user