Merge commit 'a823a6e8a398ab1327ff22f9c393d970e52a6f4b' into pipelines/run-20261111-1947-use-desktop-dialogs-for-remaining-sheets-4d07

This commit is contained in:
2026-11-11 20:47:24 +00:00
87 changed files with 707 additions and 833 deletions
@@ -5,6 +5,8 @@ import 'package:pipelines_app/core/api_gateway.dart';
import 'package:pipelines_app/features/chat/screen.dart';
import 'package:pipelines_app/features/chat/ui/sessions/session_actions.dart';
import 'package:pipelines_app/features/chat/workspace/chat_workspace.dart';
import 'package:pipelines_app/features/search/search_screen.dart';
import 'package:pipelines_app/features/search/ui/search_bar_controls.dart';
import 'package:pipelines_app/shell/adaptive_shell.dart';
import 'package:pipelines_app/shell/destination.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -51,6 +53,11 @@ Future<void> _setup(WidgetTester tester) async {
destination: AppDestination.chat,
destinationBodies: {
AppDestination.chat: (_) => ChatScreen(gateway: gateway),
AppDestination.search: (_) => SearchScreen(
gateway: gateway,
onOpen: (_) {},
embedded: true,
),
},
),
),
@@ -104,8 +111,8 @@ void main() {
expect(await _slash(tester), isFalse);
expect(_editable(tester, 'a').focusNode.hasPrimaryFocus, isTrue);
// Shift+/ (a question mark) and Alt+/ are not the shortcut; Ctrl+/ is
// the shell's own Search chord.
// Shift+/ (a question mark) is not the shortcut. Alt+/ opens the Search
// destination, while Ctrl+/ remains the shell's own Search chord.
await _focusSidebar(tester);
await tester.sendKeyDownEvent(LogicalKeyboardKey.shiftLeft);
await tester.sendKeyEvent(LogicalKeyboardKey.slash, character: '?');
@@ -114,7 +121,11 @@ void main() {
await tester.sendKeyEvent(LogicalKeyboardKey.slash);
await tester.sendKeyUpEvent(LogicalKeyboardKey.altLeft);
await tester.pumpAndSettle();
expect(_editable(tester, 'a').focusNode.hasPrimaryFocus, isFalse);
expect(find.byKey(searchFieldKey), findsOneWidget);
expect(
tester.widget<TextField>(find.byKey(searchFieldKey)).focusNode!.hasFocus,
isTrue,
);
await tester.pumpWidget(const SizedBox.shrink());
});
@@ -10,7 +10,7 @@ void main() {
}) async {
final bubble = ChatBubbleColor(
name: color,
child: const ChatUserBubble(cupertino: false, child: Text('Hello')),
child: const ChatUserBubble(child: Text('Hello')),
);
await tester.pumpWidget(
MaterialApp(
@@ -68,9 +68,7 @@ void main() {
testWidgets('a bubble with no colour scope stays neutral', (tester) async {
await tester.pumpWidget(
const MaterialApp(
home: Scaffold(
body: ChatUserBubble(cupertino: false, child: Text('Hello')),
),
home: Scaffold(body: ChatUserBubble(child: Text('Hello'))),
),
);
final context = tester.element(find.byType(ChatUserBubble));