Make folders selectable and downloadable with item count and sharing status.
Deploy Ladill Transfer / deploy (push) Successful in 35s

Folder rows match the file table layout, support zip download, and participate in bulk selection, share, and copy-link actions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-08 22:21:39 +00:00
co-authored by Cursor
parent 449b9dc2ff
commit be3b719437
5 changed files with 278 additions and 67 deletions
+24
View File
@@ -225,4 +225,28 @@ class TransferFilesTest extends TestCase
'original_name' => 'cover.png',
]);
}
public function test_owner_can_download_folder_as_zip(): void
{
Storage::fake('qr');
$this->fakeTransferBillingApi();
$user = $this->createUser();
$folder = $this->createFolder($user, 'Forum');
$this->actingAs($user)
->postJson(route('transfer.files.upload'), [
'folder' => $folder->id,
'files' => [
UploadedFile::fake()->create('notes.txt', 10, 'text/plain'),
UploadedFile::fake()->create('photo.jpg', 10, 'image/jpeg'),
],
])
->assertOk();
$this->actingAs($user)
->get(route('transfer.files.folders.download', $folder))
->assertOk()
->assertHeader('content-type', 'application/zip');
}
}