-
-
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
Add option to send kudos from profile #5683
Add option to send kudos from profile #5683
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5683 +/- ##
==========================================
- Coverage 29.51% 28.87% -0.65%
==========================================
Files 265 273 +8
Lines 22885 24331 +1446
Branches 3324 3576 +252
==========================================
+ Hits 6754 7025 +271
- Misses 15853 17023 +1170
- Partials 278 283 +5
Continue to review full report at Codecov.
|
thanks; does the kudos target stick as they click 'pick a kudos' and browse the marketplace too? |
@zoek1 note that this PR differs slightly from the expected behaviour in the ticket in that the kudos to username specification will be lost when the user browses to select their kudos.. it should probably stick until cleared. |
Yep, I missed that. I'm changing that to persist the username with this rules:
|
The changes are ready @owocki, maybe three hours could be better instead of one day to remove the receiver user from local storage, what do you think? |
@zoek1 i think 3 hours is fine.. also if the sending user clicks out of that user; then i think that should remove it too. |
By click out what do you mean?
|
@zoek1 both |
@owocki the users now is removed when:
|
Sure, i'll check and fix it!
El mar., 21 de enero de 2020 6:47 a. m., Dan Lipert <
[email protected]> escribió:
… ***@***.**** requested changes on this pull request.
------------------------------
In app/kudos/templates/transaction/send.html
<#5683 (comment)>:
> + date: new Date()
+ }));
+ document.getElementById('clearSelectedUser').style.display = 'block'
+{% else %}
+ let encoded_data = localStorage.getItem('current_receiver')
+ if (encoded_data !== null) {
+ let data = JSON.parse(encoded_data);
+ let current = new Date();
+ let past = new Date(Date.parse(data.date))
+
+ if ((current.getTime() - past.getTime()) / (60 * 60) > 1440) {
+ localStorage.removeItem('current_receiver')
+ } else {
+ let option = document.createElement('option')
+ option.value = data.id
+ option.setAttribute('avatar_id', data.avatar_id)
Theres a couple places in this PR with some spacing issues - can you take
another look and clean these up? thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5683?email_source=notifications&email_token=AAFBL3LTFSBMGNKBIV7VVHTQ63VHJA5CNFSM4J65HAV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCSOUCKQ#pullrequestreview-345850154>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFBL3II57XHTFPEAAGTUCLQ63VHJANCNFSM4J65HAVQ>
.
|
pumped to get this live.. (once it passes code review).. seems like its close to me |
@owocki also this ready! |
fix conflicts 👍 |
pumped for this |
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.
just one question about the deleted line
@@ -1,7 +1,6 @@ | |||
{% load i18n static avatar_tags add_url_schema email_obfuscator %} | |||
|
|||
<h1 class="profile-header__handle"> | |||
@{{ profile.name }} |
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 removed by mistake?
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.
🙈 Thanks, yes deleted by mistake. I just restored this line.
Description
Refers/Fixes
#5661
Testing