Giter Site home page Giter Site logo

kleros / dispute-resolver Goto Github PK

View Code? Open in Web Editor NEW
6.0 13.0 4.0 4.22 MB

The Dispute Resolver by Kleros

Home Page: https://resolve.kleros.io

License: MIT License

HTML 1.03% CSS 15.82% JavaScript 78.92% SCSS 4.23%
ethereum web3 dapp dispute-resolution arbitrable frontend dispute-resolver

dispute-resolver's Introduction

Netlify Status

Quality Gate Status

Reliability Rating Maintainability Rating

Bugs Duplicated Lines (%) Technical Debt Code Smells

Dispute Resolver

A general purpose arbitrable application.

  • Create disputes just by filling a form.
  • List open disputes.
  • See dispute details.
  • Submit evidence.
  • Fund appeals.

This user interface implements IDisputeResolver. Any arbitrable smart contract will be fully compatible (for submitting evidence and funding appeals) with this user interface if it implements IDisputeResolver . Otherwise interface will work except evidence submissions and appeal funding.

See deployed contracts here.

To allow viewing app data without a web3 browser, set the REACT_APP_WEB3_PROVIDER_URL environment variable to a web3 provider endpoint. Sending transactions will not be possible without a wallet.

Reporting an Issue

Please open up a Github issue describing your problem and if it's urgent reach out to me via email or Telegram.

dispute-resolver's People

Contributors

0xferit avatar dependabot[bot] avatar eccentricexit avatar fnanni-0 avatar twur avatar unknownunknown1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dispute-resolver's Issues

feat(have some options optional)

Party A Address
Party B Address
First Ruling Description
Second Ruling Description
Primary document

should be optional.

We can signal them with "*" or "(optional)".

If some mandatory fields are not filled, don't grey out the "Create Dispute" button, but show in red fields which are missing.

Bad % display

bug
It shows that I contributed 200% which is obviously a bug?

The decimals of % do not seem interesting, let's round them down (to be sure you can't make it look like 100% funded while 1 wei is missing).

In English the % sign is on the right of the number (I guess you got confused with Turkish where it's the opposite).

Reload On Ethereum Events

Currently, after a transaction, UI is not updated. Requires a page reload to see the updated state.

feat(Use the court id)

We should use court id. Having multiple ID for the same thing is gonna confuse users (it did confuse me, I thought it was a bug).

Handle ties in the interface

bug
"Previous Round Tie" is not very informative, I suggest removing it.

The warning text is not adapted to tie. I suggest another text when there is a tie.
"If a side is funded but the other is not, the funded side will automatically win the case."

Withdraw Funds Button still enabled with case closed

The Withdraw Funds button, in Dispute Resolver, is enabled even when the case has been closed. It confuses the juror because I thought I had funds to withdraw, I clicked the button, it discounts me the transaction fee and nothing happens.
I think that the solution must be to disable the button when the case is closed and the juror don't have any funds to withdraw to avoid misunderstandings.

image

You can see it for example in case #200
https://resolve.kleros.io/cases/200

Fix styling for links in markdown dispute description

The * universal selector there apparently overrides the Bootstrap styling for links:

.form-group > input,
.form-group > textarea,
body > div.confirmation.modal > div > div > div.modal-body > form > div:nth-child(4) > div > div > p,
.markdown * {
  color: #4d00b4;
}

https://github.com/kleros/dispute-resolver/blob/e8b3cfff7ac232a9c9f426e0ffc54bcf4889663d/src/app.css

By removing the * selector, the text turns black with blue links.
, .markdown * could perhaps be removed altogether or target specific elements such as titles to turn purple, if need be.

.markdown * {

Personally, I would prefer the dispute description in black text to resemble traditional legal briefs and to be consistent with the evidence text below which is in black.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.