Merge: chat colours, Ctrl+1-9, starred chats alphabetical
# Conflicts: # app/lib/features/chat/conversation/chat_thread_view.dart # app/tool/perf/perf_fixture.dart # internal/protocol/chat.go # internal/server/chat_close.go # internal/server/chat_sessions.go
This commit is contained in:
@@ -44,7 +44,9 @@ const runPipelineActionKey = ValueKey<String>('run-pipeline-action');
|
||||
const runPipelinePromptKey = ValueKey<String>('run-pipeline-prompt');
|
||||
const runPipelineWorkspaceKey = ValueKey<String>('run-pipeline-workspace');
|
||||
const runPipelineNotifyKey = ValueKey<String>('run-pipeline-notify');
|
||||
const runPipelineOutputFormatKey = ValueKey<String>('run-pipeline-output-format');
|
||||
const runPipelineOutputFormatKey = ValueKey<String>(
|
||||
'run-pipeline-output-format',
|
||||
);
|
||||
const runPipelineCancelKey = ValueKey<String>('run-pipeline-cancel');
|
||||
const runPipelineConfirmKey = ValueKey<String>('run-pipeline-confirm');
|
||||
const runPipelineErrorKey = ValueKey<String>('run-pipeline-error');
|
||||
|
||||
@@ -3,6 +3,7 @@ import '../../../ui/layout/app_list_row.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../shell/shell_list_shortcuts.dart';
|
||||
import '../../../ui/adaptive/floating_bar_layout.dart';
|
||||
import '../../../ui/status/run_status_icon.dart';
|
||||
import '../pipeline_format.dart';
|
||||
@@ -53,7 +54,18 @@ class PipelineListPanel extends StatelessWidget {
|
||||
child: PipelineProgress(label: 'Refreshing pipelines'),
|
||||
),
|
||||
];
|
||||
return _content(context, header);
|
||||
// Ctrl+1…Ctrl+9 open the Nth pipeline shown, filtered and sorted.
|
||||
return ShellListShortcut(
|
||||
onOpenIndex: (index) {
|
||||
if (!controller.pipelinesLoaded) return false;
|
||||
final items = controller.visiblePipelines;
|
||||
if (index >= items.length) return false;
|
||||
final pipeline = items[index];
|
||||
controller.openPipeline(pipeline.id, version: pipeline.version);
|
||||
return true;
|
||||
},
|
||||
child: _content(context, header),
|
||||
);
|
||||
}
|
||||
|
||||
/// A state without rows: the controls stay at the top, below the bar.
|
||||
|
||||
Reference in New Issue
Block a user