Merge branch 'main' into pipelines/run-20261112-2239-files-path-keeps-the-current-folder-in-v-3cb2

# Conflicts:
#	app/tool/probe_files_fixture.dart
This commit is contained in:
2026-11-12 23:08:42 +00:00
7 changed files with 276 additions and 4 deletions
+10
View File
@@ -3,6 +3,9 @@ import 'package:pipelines_app/features/chat/files/files_urls.dart';
/// A static explorer fixture with a deep starting path and a long folder name.
/// Its files live in capture/fixtures/files.
/// Set [probeMissingRememberedFolder] to make the nested folder disappear so
/// browser captures can exercise the controller's parent fallback.
bool probeMissingRememberedFolder = false;
JsonMap probeFilesReply(JsonMap request) {
final fields = request['list_directory'] as Map?;
final requestedPath = '${fields?['path'] ?? '/srv/probe/release'}';
@@ -10,6 +13,13 @@ JsonMap probeFilesReply(JsonMap request) {
? '/srv/probe/release/operations/2026/quarterly/release-candidate'
: requestedPath;
final nested = path.endsWith('/assets');
if (probeMissingRememberedFolder && nested) {
return {
'id': request['id'],
'type': 'error',
'error': 'directory does not exist: $path',
};
}
final entries = nested
? <(String, int)>[('design.png', 18432), ('icon.jpg', 23000)]
: <(String, int)>[
+4 -1
View File
@@ -806,7 +806,10 @@ Future<void> main() async {
return;
}
configurePerfFixture(params);
if (params['files'] == '1') installFilesFixture();
if (params['files'] == '1') {
probeMissingRememberedFolder = params['filesMissing'] == '1';
installFilesFixture();
}
// `?font=inter` chooses a font as Settings would; otherwise the stored one.
final font = params['font'];
unawaited(