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

allows sorting by clr estimates so that people can easily find where their $$s will go further and focus their attention there #5233

Closed
wants to merge 4 commits into from

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Sep 22, 2019

Description

allows sorting by clr estimates so that people can easily find where their $$s will go furthers

Refers/Fixes

https://twitter.com/owocki/status/1175530442818117633

Testing

tested locally
Screen Shot 2019-09-21 at 7 40 23 PM

@owocki owocki changed the title allows sorting by clr estimates so that people can easily find where their $$s will go furthers allows sorting by clr estimates so that people can easily find where their $$s will go further and focus their attention there Sep 22, 2019
@@ -293,6 +293,9 @@ def predict_clr(random_data=False, save_to_db=False):
if save_to_db:
grant.clr_prediction_curve = list(zip(potential_donations, potential_clr))
grant.save()
base = grant.clr_prediction_curve[0][1]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danlipert this adds a third array element, which is how much a specific contribution will net affect the clr match (as opposed to the previous index which is the total if they did)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2019-09-23 at 8 25 28 PM

@owocki Ah this would mean we'd also have to update fund.js cause grant.clr_prediction_curve
is gonna change from [[amount, clr_match]] -> [amount, clr_match_increased_from_current]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think so. the new schema is

[[amount, clr_match, clr_match_increased_from_current]

not

[amount, clr_match_increased_from_current]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh :P lol okie makes sense

@codecov
Copy link

codecov bot commented Sep 22, 2019

Codecov Report

Merging #5233 into stable will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           stable    #5233      +/-   ##
==========================================
- Coverage   30.55%   30.53%   -0.03%     
==========================================
  Files         223      223              
  Lines       18097    18110      +13     
  Branches     2527     2531       +4     
==========================================
  Hits         5529     5529              
- Misses      12335    12348      +13     
  Partials      233      233
Impacted Files Coverage Δ
app/grants/clr.py 0% <0%> (ø) ⬆️
app/grants/views.py 14.38% <0%> (-0.36%) ⬇️

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 787044a...2573bdd. Read the comment docs.

Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • reindent files needed ( 1tab == 2 spaces )
  • and empty line after CSS rule

I'll try and pretty it up a bit

@frankchen07
Copy link
Contributor

prioritizing this for sprint 19 for CLR marketing purposes. The purpose of adding the potential match for a contribution on the grants page is to help folks see where they can get furthest with CLR matching.

@thelostone-mc / @willsputra / @octavioamu for setting up one last discussion on this to confirm last minute look / design changes, and make sure it's aligned with the principles of CLR.

key actions:

  1. contributor coming to the grant page clearly understands that their money will go towards CLR matching on the currently open grants.

  2. contributor can filter on which grants can give them the most bang for their buck.

  3. design is less intrusive (perhaps smaller text)

Let's aim to get this out on the next deploy!

@willsputra
Copy link
Contributor

willsputra commented Sep 23, 2019

one idea to make the layout slightly cleaner. still kinda crowded though, might explore more.

clr

@owocki
Copy link
Contributor Author

owocki commented Sep 23, 2019

2573bdd

@thelostone-mc linter fixes

owocki added a commit that referenced this pull request Sep 23, 2019
@owocki
Copy link
Contributor Author

owocki commented Sep 23, 2019

ooh purdy

@frankchen07
Copy link
Contributor

@octavioamu - also made some quick fixes to the original PR while this is finalizaing

@octavioamu
Copy link
Contributor

Oh didn't saw that will , looks great

@frankchen07
Copy link
Contributor

@willsputra - can you attach the sketch file here for aditya?

@willsputra
Copy link
Contributor

added to grants details too
grants details

@owocki
Copy link
Contributor Author

owocki commented Sep 24, 2019

grants_index
latest from @willsputra

@willsputra
Copy link
Contributor

more emphasis on clr
grants index

@owocki owocki closed this Sep 24, 2019
@thelostone-mc thelostone-mc deleted the kevin/clr_grants_estimate branch September 25, 2019 06:28
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.

5 participants