-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
as a end user I would like to be able to attach ETH/tokens to my status update on gitcoin, so i can share money #5884
Conversation
I'm based on changes of #5883, is the UI fine to specify the amount and award the tokens? |
f8b8c0a
to
bcd11de
Compare
Codecov Report
@@ Coverage Diff @@
## master #5884 +/- ##
=======================================
Coverage 26.70% 26.70%
=======================================
Files 293 293
Lines 27675 27675
Branches 4086 4086
=======================================
Hits 7391 7391
Misses 20019 20019
Partials 265 265 Continue to review full report at Codecov.
|
Excited for this! Let me know once its ready for review |
I'm asking to solve some questions in the original issue to unlock this 😃 |
i wanna push on this soon.. r u still blocked? link me the questions? |
No problem @owocki, in working on this right now! In the morning the PR will ve ready to Review :thumbs_up: |
It's ready for review @owocki @danlipert 😃 |
feedback -
|
i'm not sure what region should be black, The button, the comments or the status: 😅 |
@owocki fix conflicts done! |
@owocki I recently read the tip functionality is live, is this PR still relevant? |
I will say yes, still totally valid and interesting feature. |
yeah staking on posts is an important mechanism.. would love to get this working on the new townsquare + get it into an upcoming release... |
Do you consider change something based on what you tested? I'll integrate this weekend the new square town into this. |
a24f38f
to
0fc7a56
Compare
6bffa80
to
716bc0e
Compare
<select class="form-control" id="attachToken"> | ||
<option value="0x0">ETH</option> | ||
{% for token in TOKENS %} | ||
<option value="{{ token.token_addres }}">{{ token.token_name }}</option> |
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.
Was this only tested with ETH? There is a typo here for the token_address
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.
@danlipert do you think this could be merge soon? it's tested with eth and tokens 😛 |
Description
a 'attach tokens' button on the status update bottom
when its clicked, a user is prompted to select a token (any token listed at /settings/tokens can be added) and enter an amount
user can submit the status update and when they do this function ( https://github.com/gitcoinco/web/blob/master/app/assets/v2/js/pages/bulk_payout.js#L140-L155 ) is called and they are prompted to send tokens. once they send tokens, the status update is posted
on the status update, there is a nice visual box that shows there are tokens attached to the post.
after users comment on the post, the poster (and only the poster) can click an "award" button next to each comment to award any commenter the tokens.
Refers/Fixes
#5881
Testing