Chat stack: the default, also on a wide phone or tablet; a close button where the pile was
Chat stack is now the default phone chat navigation (a stored choice is kept), and on Android or iOS it stays on a wide layout (an unfolded foldable) above the active pane, where floating is ignored too. When expanded, the pile turns into a close button at its own spot and the column rises above it; while a chat is dragged that button is the remove target, replacing the separate x at the bottom. Chat widget tests start on Quick switch (they run as Android); the stack's tests choose it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:pipelines_app/features/chat/stack/mobile_chat_navigation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pipelines_app/application/app_session.dart';
|
||||
@@ -29,6 +30,12 @@ Widget host(AppSession session, {String? initialSessionId}) => MaterialApp(
|
||||
);
|
||||
|
||||
void main() {
|
||||
// These describe the Quick switch layout (the peek of the next chat).
|
||||
setUp(
|
||||
() => MobileChatNavigationController.instance.debugUse(
|
||||
MobileChatNavigation.quickSwitch,
|
||||
),
|
||||
);
|
||||
testWidgets('nothing is requested before the shared socket is ready', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:pipelines_app/features/chat/stack/mobile_chat_navigation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
@@ -293,6 +294,12 @@ Future<void> replyChatHistory(
|
||||
}
|
||||
|
||||
void main() {
|
||||
// These describe the Quick switch layout (the peek of the next chat).
|
||||
setUp(
|
||||
() => MobileChatNavigationController.instance.debugUse(
|
||||
MobileChatNavigation.quickSwitch,
|
||||
),
|
||||
);
|
||||
testWidgets(
|
||||
'a wide /chat/s1 deep link shows that thread beside the list and route Back returns to /chat',
|
||||
(tester) async {
|
||||
|
||||
Reference in New Issue
Block a user