Add AI Summaries index page at /summaries.
Deploy Ladill Meet / deploy (push) Successful in 51s

List org summaries with status and preview, wire sidebar navigation, and
link back from the individual summary view.
This commit is contained in:
isaacclad
2026-07-16 00:17:45 +00:00
parent 9121f01b1c
commit d940ac768e
6 changed files with 112 additions and 0 deletions
+33
View File
@@ -5,6 +5,7 @@ namespace Tests\Feature;
use App\Http\Middleware\EnsurePlatformSession;
use App\Models\Member;
use App\Models\Organization;
use App\Models\AiSummary;
use App\Models\Recording;
use App\Models\Room;
use App\Models\Session;
@@ -423,6 +424,38 @@ class MeetWebTest extends TestCase
->assertSee('Recordings');
}
public function test_user_can_view_summaries_index(): void
{
$room = $this->createRoom();
$session = Session::create([
'owner_ref' => $this->user->public_id,
'room_id' => $room->id,
'media_room_name' => 'room-'.$room->uuid,
'status' => 'ended',
'started_at' => now()->subHour(),
'ended_at' => now(),
]);
AiSummary::create([
'owner_ref' => $this->user->public_id,
'session_id' => $session->id,
'status' => 'ready',
'summary' => 'We agreed to ship the dashboard on Friday.',
'decisions' => ['Ship Friday'],
]);
$this->actingAs($this->user)
->get('/summaries')
->assertOk()
->assertSee('AI Summaries')
->assertSee($room->title)
->assertSee('We agreed to ship the dashboard on Friday.');
$this->actingAs($this->user)
->get('/summaries/')
->assertOk()
->assertSee('AI Summaries');
}
public function test_admin_can_update_security_policy(): void
{
$this->actingAs($this->user)