ChainBrainApp / ChainBrain

No-code, blockchain data analytics platform
https://ethdenver-buidlathon-2023.vercel.app
MIT License
8 stars 0 forks source link

Update Frontend Dropdown #7

Open marissaposner opened 1 year ago

marissaposner commented 1 year ago

Update Frontend Dropdown in frontend/src/Components/CustomizedInputBase.js. Update the frontend dropdown to include 'Solana Blockchain' as an option. This can be done by modifying the frontend code where the dropdown options are defined such changing where the subgraph state is set from aave-governance to Solana Blockchain:

const [subgraph, setSubgraph] = React.useState("aave-governance"); Add a new option with the value and display text as 'Solana Blockchain'.

ellipsis-dev[bot] commented 1 year ago

:alert: BitBuilder wasn't able to find any files references in the Issue body. :robot:

First, check that you're referencing files correctly. Reference a file by writing the file name between backticks, such as main.py, by using a markdown link, like [main.py](main.py), or by simply copy/pasting the URL from GitHub. For more information and to see examples, check the documentation. Once you've edited the issue description, add the bitbuilder:create label back to this issue. Commenting with more details will not create an implementation plan. You must edit the issue body and add the bitbuilder:create label back on.

If that doesn't work, BitBuilder Junior probably isn't configured to ingest files of the language or framework you're using. Please join our Slack and share the file extensions in the #help-pull-requests channel.

ellipsis-dev[bot] commented 1 year ago

To have BitBuilder create a Pull Request with the implementation, the user who created the issue (@marissaposner) can comment below with "LGTM".


Implementation Steps

  1. Add Solana Blockchain to subgraphs array
    • In the file /frontend/src/Components/CustomizedInputBase.js, locate the subgraphs array. Add a new object to this array with the properties 'id' and 'subgraph' both set to 'solana-blockchain'. The updated subgraphs array should look like this:

const subgraphs = [ {"id": "uniswap-v3", "subgraph": "uniswap-v3"}, {"id": "opensea-v2", "subgraph": "opensea-v2"}, {"id": "compound-governance", "subgraph": "compound-governance"}, {"id": "sporkdao-token", "subgraph": "sporkdao-token"}, {"id": "aave-governance", "subgraph": "aave-governance"}, {"id": "uniswap-governance", "subgraph": "uniswap-governance"}, {"id": "solana-blockchain", "subgraph": "solana-blockchain"} ];


Generated with :heart: by www.bitbuilder.ai. Questions? Check out our the documentation.

marissaposner commented 1 year ago

LGTM