feat(web): add parameters field, improve styling, small mapping adjus… #1472
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.
…tments
template used:
{"title":"{{escrowTitle}}","description":"{{deliverableText}}","question":"Which party abided by the terms of the contract?","answers":[{"title":"Refund the Buyer","description":"Select this to return the funds to the Buyer."},{"title":"Pay the Seller","description":"Select this to release the funds to the Seller."}],"policyURI":"ipfs://TODO","attachment":{"label":"Transaction Terms","uri":"{{extraDescriptionUri}}"},"frontendUrl":"https://escrow-v2.kleros.builders/#/myTransactions/{{transactionId}}","arbitrableChainID":"421614","arbitrableAddress":"0x10f7A6f42Af606553883415bc8862643A6e63fdA","arbitratorChainID":"421614","arbitratorAddress":"0xA54e7A16d7460e38a8F324eF46782FB520d58CE8","metadata":{"buyer":"{{address}}","seller":"{{sendingRecipientAddress}}","amount":"{{sendingQuantity}}","asset":"{{asset}}","deadline":"{{deadline}}","transactionUri":"{{transactionUri}}"},"category":"Escrow","specification":"KIPXXX","aliases":{"Buyer":"{{address}}","Seller":"{{sendingRecipientAddress}}"},"version":"1.0"}
data mapping used:
[ { "type": "graphql", "endpoint": "https://api.thegraph.com/subgraphs/name/kemuru/escrow-v2-devnet", "query": "query GetTransaction($transactionId: ID!) { escrow(id: $transactionId) { transactionUri buyer seller amount asset deadline } }", "variables": { "transactionId": "30" }, "seek": ["escrow.transactionUri", "escrow.buyer", "escrow.seller", "escrow.amount", "escrow.asset", "escrow.deadline"], "populate": ["transactionUri", "address", "sendingRecipientAddress", "amount", "asset", "deadline"] }, { "type": "fetch/ipfs/json", "ipfsUri": "context.transactionUri", "seek": ["title", "description", "extraDescriptionUri"], "populate": ["escrowTitle", "deliverableText", "extraDescriptionUri"] } ]
PR-Codex overview
Detailed summary