Show a chat turn's changed files as a chip that opens its diff
The answer footer shows '3 files changed +9 -2'; tapping opens the turn's files in the sheet (wide) or a full-screen page (narrow), and a file opens the run Changes diff viewer. Patches load through the chat's own gateway.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
import 'package:pipelines_app/core/api_gateway.dart';
|
||||
|
||||
import 'chat_new_session_fixture.dart';
|
||||
import 'chat_turn_diff_fixture.dart';
|
||||
import 'chat_question_fixture.dart';
|
||||
import 'chat_scroll_fixture.dart';
|
||||
|
||||
@@ -374,7 +375,11 @@ JsonMap? perfChatReply(JsonMap request) {
|
||||
'next_cursor': '',
|
||||
'has_more': false,
|
||||
},
|
||||
if (_params['turndiffs'] == '1')
|
||||
'chat_turn_diffs': chatTurnDiffFixtureList(session),
|
||||
};
|
||||
case 'chat_turn_diff':
|
||||
return chatTurnDiffFixtureReply(id, request);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user