Merged
Conversation
added 3 commits
March 28, 2026 19:50
- POST /api/strategy/proposals/batch/{action}: batch approve/reject
up to 50 proposals, individual audit log per proposal
- GET /api/strategy/proposals/batch-approve-all?token=: one-click
approve all pending (Telegram URL button)
- 12 tests in test_batch_decide.py
Closes #493
- Checkbox column in proposals table (pending rows only) - Select-all toggle, batch action bar, batch confirmation dialog - batchDecide() API client + batchAct hook callback - Selection auto-clears on data refresh Closes #493
- When ≥2 proposals notified in one batch, sends summary message with '一鍵全部核准 (N)' URL button → /proposals/batch-approve-all - Only 'approve all' offered (no 'reject all' for safety) - Non-blocking: failure to send summary doesn't affect main flow Closes #493
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
POST /api/strategy/proposals/batch/{action}— 批量核准/拒絕,最多 50 筆/次,逐筆寫 audit log,partial failure handlingGET /api/strategy/proposals/batch-approve-all?token=— Telegram URL 按鈕一鍵核准所有 pendingTest plan
test_batch_decide.py): happy path, validation, partial failure, audit log, URL endpointnpm run build)Closes #493
🤖 Generated with Claude Code