kleros-v2
kleros-v2 copied to clipboard
feat(web): dispute-maintenance-buttons
- adds dispute maintenance buttons to manually do operations in case bots fails or in development.
- The ripple shows when a Period is over or Execution is pending. Not showing it for rewards distribution, since that is not straightforward to determine and want to keep these buttons minimal.
closes #1601
Summary by CodeRabbit
-
New Features
- Introduced a comprehensive maintenance interface with various buttons (e.g.,
MaintenanceButtons
,DrawButton
,ExecuteRulingButton
,MenuButton
,PassPeriodButton
) for dispute management. - Added
DistributeRewards
component for handling reward distribution.
- Introduced a comprehensive maintenance interface with various buttons (e.g.,
-
Enhancements
- Updated
CaseDetails
page layout to integrate the new maintenance buttons within the header.
- Updated
-
Improvements
- Enhanced the dispute details query to include the number of votes in the current round.
-
Utilities
- Added
useTransactionBatcher
hook for batching contract transactions.
- Added
PR-Codex overview
This PR adds maintenance buttons functionality to the Case Details page, including buttons for executing rulings, passing periods, drawing, and distributing rewards.
Detailed summary
- Added
MaintenanceButtons
component with buttons for various actions - Created buttons for executing rulings, passing periods, drawing, and distributing rewards
- Updated styles for the Case Details page components
The following files were skipped due to too many changes:
web/src/pages/Cases/CaseDetails/MaintenanceButtons/DistributeRewards.tsx
,web/src/pages/Cases/CaseDetails/MaintenanceButtons/index.tsx
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}