-
Notifications
You must be signed in to change notification settings - Fork 310
add bitcoin receiving address to profile #1814
Conversation
This introduces bitcoin address field in gittip profile
I changed the title to the old one from #1437 for better scanability in the PR listing. |
I am reviewing this PR. Do we want to keep our own copy of bitcoin validation code in bitcoin.json.spt? I see that there exists python-bitcoinaddress package that we could use. The validation code in this PR is pretty simplistic - it throws ValueError if there is a character in the bc address that is not allowed, thus creating false report in Sentry (logs all exceptions in production). I would also appreciate having the input box large enough to actually see the address I am entering (maybe put the save & cancel buttons under the input box instead of next to it?), also the edit link is not very touch friendly (too small). We need to
|
@galuszkak To add a new package to gittip you download it from pypi and put the tarball to vendor directory and a reference to it to the requirements.txt file (see the file for examples). The goal being here that we have everything at hand at deploy time and it is also pinned so it does not change without us noticing. If something is not obvious feel free to ask question (here or at irc). |
One more thing - the current validation code allows me to prepend additional characters and still considers the address valid. That does not seem right (but I know close to nothing about bitcoin). >>> check_bc('1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i')
True
>>> check_bc('111111111AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i')
True |
Could you please also factor out the changes done to schema.sql into a separate branch.sql? Are you familiar with this concept already? We need to add a description somewhere #1846. Changes to db schema are introduced in a separate file branch.sql and only folded to schema.sql after a merge to master. We need this for deployment of the changes and easy updates of the production database (sourcing the branch.sql file into psql for updates). I would have done it myself but you are not working on a branch where I do not have access to. |
@zwn no problem. I was curious why this was in seperate file like branch.sql. Ok I will add this there. |
Conflicts: schema.sql www/%username/public.json.spt
@galuszkak Thanks! I am almost happy. Can we do something about the tiny size of the edit link? I can hardly hit it with a mouse. I can't imagine what a user with a touch screen would do. @seanlinsley Do I remember right that that you were the one trying to make the site more responsive and touch friendly? Maybe you could help here too. Thanks. |
@zwn no problem. I will update |
@zwn updated. please check |
Thanks. Since no one has voiced any concerns about the UI (I am not an UI person) I am going to merge. |
I just tested the UI locally, and it looks good to me 🐱 |
@@ -70,7 +70,7 @@ a.mini-user:hover { | |||
|
|||
#accounts { | |||
margin-bottom: 12pt; | |||
|
|||
width: 400px; |
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.
Shouldn't this be 100%
?
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 didn't need more that is why I didn't used 100% because 400px was ok and whole address was seen in input very clearly.
add bitcoin receiving address to profile
Rebase to master PR #1437 for fixing #1163
Please review. :)
Tests seems that works.