feat(admin): unrestricted support ticket batch select and task ticket bind

Allow selecting support tickets of any status for batch actions; add optional support ticket binding when creating a dev plan task.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 08:08:17 +08:00
parent 528669f662
commit 490c26a7e1
2 changed files with 31 additions and 8 deletions
@@ -577,11 +577,7 @@ export default function SupportTicketsPage() {
isSuperAdmin
? {
selectedRowKeys,
onChange: (keys, rows) => {
const pending = rows.filter((r) => r.status === 'PENDING_REVIEW').map((r) => String(r.id));
setSelectedRowKeys(pending.length === rows.length ? (keys as string[]) : pending);
},
getCheckboxProps: (row) => ({ disabled: row.status !== 'PENDING_REVIEW' }),
onChange: (keys) => setSelectedRowKeys(keys as string[]),
}
: undefined
}