diff --git a/resources/views/admin/support_tickets/index.blade.php b/resources/views/admin/support_tickets/index.blade.php index bdac226..427df2d 100644 --- a/resources/views/admin/support_tickets/index.blade.php +++ b/resources/views/admin/support_tickets/index.blade.php @@ -4,13 +4,48 @@ @section('page_title', '客服中心 / 工单') @section('content') -
-

客服中心(工单)骨架页:用于后续接入“对账异常/退款异常/续费缺订阅”等治理工单闭环。

-

当前阶段仅做信息架构占位与路由/权限/数据模型埋口,避免后续大改。

+ -
-

工单列表(占位)

-

下一步将接入:筛选(scope/状态/优先级/关联对象)、创建工单、指派、SLA、升级链路与审计。

+
+
+
+

工单列表(占位)

+
下一步将接入:筛选(scope/状态/优先级/关联对象)、创建工单、指派、SLA、升级链路与审计。
+
+
+
+ + + + + + + + + + + + + + + + + +
ID范围标题优先级状态关联对象创建时间
暂无工单(占位:后续接入数据模型后展示)
+
@endsection diff --git a/tests/Feature/AdminSupportTicketsIndexShouldUsePageHeaderAndListCardTest.php b/tests/Feature/AdminSupportTicketsIndexShouldUsePageHeaderAndListCardTest.php new file mode 100644 index 0000000..a3a3a35 --- /dev/null +++ b/tests/Feature/AdminSupportTicketsIndexShouldUsePageHeaderAndListCardTest.php @@ -0,0 +1,43 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_admin_support_tickets_index_should_use_page_header_and_list_card(): void + { + $this->loginAsPlatformAdmin(); + + $response = $this->get('/admin/support-tickets'); + $response->assertOk(); + + // 护栏:占位页也要走统一的 PageHeader + ListCard 骨架,后续加功能不返工。 + $response->assertSee('page-header', false); + $response->assertSee('page-header-title', false); + $response->assertSee('page-header-subtitle', false); + $response->assertSee('page-header-actions', false); + $response->assertSee('page-header-meta', false); + + $response->assertSee('list-card', false); + $response->assertSee('list-card-header', false); + $response->assertSee('list-card-body', false); + $response->assertSee('list-card-table', false); + + $response->assertSee('table-empty', false); + } +}