fix(ticket): rework detail modal layout and restore urge

- Detail modal: fixed-height dialog, thread is the only (thin) scroll area
- Collapsible pinned summary bar (collapsed by default, state kept across re-render)
- Composer: toolbar (image / urge / close) above input, pending image tray with remove
- Paste screenshots to upload; create form uses the same button + tray
- Urge/close now POST (routes are CREATABLE); urge cooldown countdown via urge_wait
- Notify admins on urge when ticket is unassigned
- Split composer/form styles into tickets-compose.css; drop dead uploader code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-27 21:37:03 +08:00
1 parent b74381cfa2
commit 13bde11dda
7 files changed
+713 -392

No files matched your search

+10
View File
@@ -424,6 +424,16 @@ trait ScriptsPart1b {
(string) filemtime($tickets_css)
);
}
// 回复框 / 新建表单 / 待发送图片条:依赖 tickets.css 的 --tickets-* token。
$tickets_compose_css = get_template_directory() . '/assets/css/routes/tickets-compose.css';
if (file_exists($tickets_compose_css)) {
wp_enqueue_style(
'aksrt-tickets-compose',
$base_uri . '/assets/css/routes/tickets-compose.css',
['aksrt-tickets'],
(string) filemtime($tickets_compose_css)
);
}
// 共享工具层(请求 / 弹窗 / 上传 / 行内校验)先于面板脚本加载。
$ticket_core_js = get_template_directory() . '/assets/js/ticket-center-core.js';
if (file_exists($ticket_core_js)) {