Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@delfipolito
Copy link
Contributor

@delfipolito delfipolito commented Jul 8, 2020

image

The first commit is just the voting app like it is on master.
The second one is the disputable changes from the PRs already approved.
And the other two is the new stuff. The changes on the voting app so it works here.

To try it out:
1- Include this line [appIds['VotingDisputable']]: { script: '/script.js', start_url: '/index.html', }, on enviroment.js on the client after this line
2- Run the app
3- Run the client with: ARAGON_APP_LOCATOR=0x705b5084c67966bb8e4640b28bab7a1e51e03d209d84e3a04d2a4f7415f93b34 npm run start:rinkeby

@auto-assign auto-assign bot requested review from Evalir and bpierre July 8, 2020 00:20
@delfipolito delfipolito requested review from andy-hook and sohkai and removed request for Evalir and bpierre July 8, 2020 12:09
Copy link

@andy-hook andy-hook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me! 🚀 I added some points for clarification and an assortment of nits on the previous layout code now that we have it all together :)

align-items: center;
`}
>
{challengeAmount} {collateralToken}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, did we make a decision on whether to show the token icon? I know we discussed it previously, no worries if it's going to be a separate improvement!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I will add it in a separate PR :)

Icon: IconClock,
},
[VOTE_STATUS_CANCELLED]: {
background: String(theme.surfaceUnder),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove these string conversions as they are already being performed in the template string when passed to the component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I passed down like this cause theme.surfaceUnder is an extended String object, and on this Tag component is seen as an object instead of a normal string and throughs an error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! the template string that's being passed to the component at the moment should already be converting this so you shouldn't be seeing any errors by removing them 🤔 .

I did find an error in this file with an icon import though which might be causing the problems! We're importing IconClosed which should probably be IconClose

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I modified it, thanks :)

@delfipolito delfipolito merged commit fa7de4f into disputable_voting_app Jul 15, 2020
@delfipolito delfipolito deleted the disputable_voting_app_frontend branch July 15, 2020 20:45
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
* Voting app frontend

* Disputable voting components

* Modify voting app files for disputable voting

* Frontend data intoo manifest.json

* imports and css change suggestions

* Fix on status label

* Add padding to info boxes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants