Skip to content
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

Merged
merged 10 commits into from
Mar 4, 2020

Conversation

zoek1
Copy link
Contributor

@zoek1 zoek1 commented Dec 24, 2019

Description
  1. Users now seeing a button to send kudos to this user:
    image
  2. When the sender user clicks the button, is redirected to the page with the user to field populated with the user info:
    image
Refers/Fixes

#5661

Testing

@codecov
Copy link

codecov bot commented Dec 24, 2019

Codecov Report

Merging #5683 into master will decrease coverage by 0.64%.
The diff coverage is 28.52%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
app/bounty_requests/admin.py 100% <ø> (ø) ⬆️
app/dashboard/utils.py 39.77% <ø> (-1%) ⬇️
app/grants/urls.py 100% <ø> (ø) ⬆️
app/quests/admin.py 46.55% <0%> (-0.82%) ⬇️
app/kudos/tasks.py 34.14% <0%> (-3.7%) ⬇️
app/kudos/models.py 51.71% <0%> (-0.72%) ⬇️
app/kudos/admin.py 60.24% <0%> (-0.74%) ⬇️
...eting/management/commands/assemble_leaderboards.py 42.2% <0%> (-21.04%) ⬇️
app/quests/models.py 41.89% <0%> (-0.96%) ⬇️
app/inbox/signals.py 24.13% <0%> (+4.13%) ⬆️
... and 70 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d03bff...e71a38a. Read the comment docs.

@owocki
Copy link
Contributor

owocki commented Dec 30, 2019

thanks; does the kudos target stick as they click 'pick a kudos' and browse the marketplace too?

@owocki
Copy link
Contributor

owocki commented Dec 31, 2019

@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.

@zoek1
Copy link
Contributor Author

zoek1 commented Jan 2, 2020

Yep, I missed that. I'm changing that to persist the username with this rules:

  1. Until the kudos is sent, clear persistent username
  2. Until the user removes the username manually and for a max period of one day. In such a case, the stored username will be discarded.

@owocki

@zoek1
Copy link
Contributor Author

zoek1 commented Jan 3, 2020

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?

@owocki
Copy link
Contributor

owocki commented Jan 3, 2020

@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.

@zoek1
Copy link
Contributor Author

zoek1 commented Jan 4, 2020

By click out what do you mean?

  1. when sending user select another user from the list or
  2. when sending user select another tab to send kudos (eth address, anywhere)

@zoek1 zoek1 closed this Jan 4, 2020
@zoek1 zoek1 reopened this Jan 4, 2020
@owocki
Copy link
Contributor

owocki commented Jan 6, 2020

@zoek1 both

@zoek1
Copy link
Contributor Author

zoek1 commented Jan 20, 2020

@owocki the users now is removed when:

  1. When sender user selects another user from the list or
  2. when sender user selects another tab to send kudos (eth address, anywhere)

@zoek1
Copy link
Contributor Author

zoek1 commented Jan 21, 2020 via email

@zoek1 zoek1 requested a review from danlipert January 27, 2020 07:27
@owocki
Copy link
Contributor

owocki commented Jan 31, 2020

pumped to get this live.. (once it passes code review).. seems like its close to me

@zoek1
Copy link
Contributor Author

zoek1 commented Feb 5, 2020

@owocki also this ready!

@zoek1 zoek1 requested a review from danlipert February 13, 2020 11:48
@zoek1
Copy link
Contributor Author

zoek1 commented Feb 25, 2020

fix conflicts 👍

@owocki
Copy link
Contributor

owocki commented Mar 3, 2020

pumped for this

Copy link
Contributor

@danlipert danlipert left a 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 }}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@zoek1 zoek1 requested a review from danlipert March 3, 2020 15:11
@thelostone-mc thelostone-mc merged commit 6c34cdd into gitcoinco:master Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants