-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic UI #14
Dynamic UI #14
Conversation
# Conflicts: # app/package-lock.json # app/src/main.ts
This reverts commit 38f538517f766606cb3858317f125c7281324329.
… before parenthesis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job ! Things that i checked:
- Tried the UI locally. UI works with both contracts Lottery and Voting, correctly replacing all values in the CLI command template when pressing the
invoke
button. - Code in general, i think is good for the demo.
- That the targets for the first demo are met (10% of the first milestone)
- Just missing the information for the readme but maybe this is for later.
app/src/Wizard.tsx
Outdated
</Modal.Header> | ||
<Modal.Body> | ||
<p> | ||
<pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a nitpick, would it be possible to add a more "terminal-like" style to the invoke modal ? Currently is in this way:
By adding this style property (playing around):
<pre style={{ backgroundColor: 'black' }}>
I was able to get this :) :
I like it more let me know what do you think. Also, i am wondering if the typical button of "copy to clipboard" would be easy to add.
Thanks for the great work 😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change it. As for the button - it is there and it works :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, maybe needs a bit more of elaboration as, with the code i shared before, affects every modal ofc .....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added both the background and button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you ! just a last thing i realised when copying the command into the terminal. We need the \
for the new lines 😝 . I took the liberty of pushing this commit df7125b , as i cannot send to you a patch over here (github does not allow patch file extension). Now looks fixed:
But let me know if you agree with it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Created initial UI with boostrap. * Reorganized UI, added settings and generated code for Lottery contract. * Clean up. * Code reformat. * Replaced the static UI with the dynamic one made in React. * Small layout change of buttons. * Code reformat * Revert "Auxiliary commit to revert individual files from 0645906" This reverts commit 38f538517f766606cb3858317f125c7281324329. * Code reformat with linter. * More reformat * Added navbar and readme page. * Code cleanup * Fixed prettier warnings, removed eslint flag to warn of space missing before parenthesis * Removed from eslint checking for trailing comma * Added black background 'copy to clipboard' button to invoke code dialog * Fix line breaks in invoke CLI commands --------- Co-authored-by: eloylp <eloylp@eloylp.dev>
No description provided.