kleros-v2 icon indicating copy to clipboard operation
kleros-v2 copied to clipboard

feat(web): dispute-maintenance-buttons

Open Harman-singh-waraich opened this issue 7 months ago • 6 comments

  • 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.
  • Enhancements

    • Updated CaseDetails page layout to integrate the new maintenance buttons within the header.
  • Improvements

    • Enhanced the dispute details query to include the number of votes in the current round.
  • Utilities

    • Added useTransactionBatcher hook for batching contract transactions.

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}

Harman-singh-waraich avatar Jul 04 '24 13:07 Harman-singh-waraich