Merge branch 'chat/header-islands'
# Conflicts: # app/tool/capture/README.md
This commit is contained in:
@@ -15,7 +15,6 @@ import '../domain/chat_attachment_picker.dart';
|
||||
import '../domain/chat_colors.dart';
|
||||
import '../domain/chat_transcript.dart';
|
||||
import '../ui/sessions/chat_adaptive.dart';
|
||||
import 'chat_next_chat_button.dart';
|
||||
import '../ui/sessions/chat_color_picker.dart';
|
||||
import '../ui/sessions/session_actions.dart';
|
||||
import '../ui/transcript/chat_markdown_view.dart';
|
||||
@@ -103,8 +102,7 @@ class ChatThreadView extends StatefulWidget {
|
||||
|
||||
final ApiGateway gateway;
|
||||
|
||||
/// Opens the chat after this one in the list (wrapping to the first), from
|
||||
/// the bar's Next chat button; null when there is no other chat to open.
|
||||
/// Retained for existing callers; Next chat is no longer shown in the header.
|
||||
final VoidCallback? onNextChat;
|
||||
final List<Widget> paneControls;
|
||||
final Widget? sidebarControl;
|
||||
@@ -1326,12 +1324,9 @@ class _ChatThreadViewState extends State<ChatThreadView> {
|
||||
: widget.showBackButton == true
|
||||
? widget.onBack
|
||||
: (inShellBar ? null : widget.onBack),
|
||||
// Each control is its own action, so each pops in (and sinks) on its
|
||||
// own. Natural width while the bar has room; past the title's share
|
||||
// the model ellipsises, and the mode keeps its whole name until it
|
||||
// would take more than half the pill. A session without a mode draws
|
||||
// no mode control, so no empty pill is ever drawn.
|
||||
controls: [
|
||||
// Keep selectors in their own island before Files and the actions menu.
|
||||
// Sidebar and pane actions retain their native overflow contracts.
|
||||
actions: [
|
||||
ChatBarAction(
|
||||
label: 'Files',
|
||||
identifier: 'chat-files-toggle',
|
||||
@@ -1341,8 +1336,9 @@ class _ChatThreadViewState extends State<ChatThreadView> {
|
||||
? CupertinoIcons.folder_fill
|
||||
: CupertinoIcons.folder,
|
||||
),
|
||||
?widget.sidebarControl,
|
||||
...widget.paneControls,
|
||||
],
|
||||
moreActions: [?widget.sidebarControl, ...widget.paneControls],
|
||||
controls: [
|
||||
if (hasModel)
|
||||
ChatModelControl(
|
||||
key: ValueKey<String>('chat-model-${widget.sessionId}'),
|
||||
@@ -1353,8 +1349,6 @@ class _ChatThreadViewState extends State<ChatThreadView> {
|
||||
answeredBy: answeredBy,
|
||||
),
|
||||
if (hasMode) _modeControl(),
|
||||
if (widget.onNextChat case final next?)
|
||||
ChatNextChatButton(key: const Key('chat-next'), onPressed: next),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user