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

[WIP] Grants #2393

Closed
wants to merge 359 commits into from
Closed
Show file tree
Hide file tree
Changes from 77 commits
Commits
Show all changes
359 commits
Select commit Hold shift + click to select a range
30dbb9a
Fix isort in grants views
mbeacom Oct 16, 2018
8e762c5
grants/detail : refactor + design clean + responsive (#2482)
thelostone-mc Oct 16, 2018
9fe683c
Create Grant, Subscription & Approve functionality (#2418)
captnseagraves Oct 17, 2018
38d5f52
Merge branch 'master' into grants
mbeacom Oct 17, 2018
f7b94f2
Grants - Require login on some views and help_text on all model attrs…
Oct 17, 2018
6156d98
Grants team members and full transaction receipt (#2486)
Oct 17, 2018
99436c9
Adds metamask check in grant form (#2487)
SaptakS Oct 18, 2018
f447f15
cleaning up 'fund grant' view
captnseagraves Oct 17, 2018
813e892
'fund grant' view cleaned up
captnseagraves Oct 18, 2018
0bb5e58
remove new.js network log
captnseagraves Oct 18, 2018
f8c1107
grants/admin: base setup (#2484)
thelostone-mc Oct 18, 2018
30bf6ba
grants/fund : refactor
thelostone-mc Oct 18, 2018
9eb479a
Merge pull request #2490 from thelostone-mc/grants-fe
thelostone-mc Oct 18, 2018
e5950ed
decimals work in fund
captnseagraves Oct 19, 2018
48351e8
resolve merge
captnseagraves Oct 20, 2018
daf3257
approve() zero working. fixed picture bleed through on detail
captnseagraves Oct 20, 2018
7cb0ff8
cancelSubscription Contract funtion implemented. Was only using appro…
captnseagraves Oct 20, 2018
452b1fe
run linters
captnseagraves Oct 20, 2018
4641ea1
fix stickler errors
captnseagraves Oct 20, 2018
004be85
grant/detail: updated UI (#2499)
thelostone-mc Oct 20, 2018
0b2d924
period selection on grants/new is dynamic
captnseagraves Oct 20, 2018
36a326a
changes per review by mbeacom
captnseagraves Oct 20, 2018
6e2a908
period selection on grants/fund is dynamic. plus some dopy edits on f…
captnseagraves Oct 20, 2018
84c9b1e
resolve dynamic_periods merge
captnseagraves Oct 20, 2018
91bced5
remove network=testrpc
captnseagraves Oct 20, 2018
746c041
run linters
captnseagraves Oct 20, 2018
739eba4
Merge branch 'grants' into ks_work
captnseagraves Oct 20, 2018
6f3d9c9
grants/fund : populate token in dropdown
thelostone-mc Oct 20, 2018
00c0a89
routes refactored to be restful
captnseagraves Oct 20, 2018
606295d
clean up spacing and logs
captnseagraves Oct 21, 2018
7d8669a
add Goal <p> back to detail.html
captnseagraves Oct 21, 2018
06c0e35
WIP: Making aesthetic changes before logic.
Anish-Agnihotri Oct 21, 2018
07be084
Merge pull request #2502 from thelostone-mc/grants-fe
thelostone-mc Oct 22, 2018
318e8c4
Merge pull request #2503 from gitcoinco/restful_routes
captnseagraves Oct 22, 2018
a62d868
cleaned up subscription_cancel view
captnseagraves Oct 22, 2018
c3f2561
lint views.py
captnseagraves Oct 22, 2018
48794b9
Merge pull request #2511 from gitcoinco/cancel_view
captnseagraves Oct 22, 2018
9f0685d
Adding grants QS and referencing.
Anish-Agnihotri Oct 22, 2018
40bede7
address PR comments
captnseagraves Oct 22, 2018
b802437
Merge branch 'grants' into ks_work
captnseagraves Oct 22, 2018
3d424df
Implemented warning label on 'new' and 'fund' with style given by KO …
captnseagraves Oct 22, 2018
b28d559
move 'now' into subscription_cancel (#2513)
captnseagraves Oct 22, 2018
49dc6cf
changed 'supported by me' tab in grants/profile to display grants I s…
captnseagraves Oct 22, 2018
8fba38d
remove subscription from 'created by me' query and add sort to subs q…
captnseagraves Oct 22, 2018
cad76d2
Fixes web3 version conflicts in various parts
SaptakS Oct 22, 2018
a15f096
Merge pull request #2514 from gitcoinco/profile_subscriptions
thelostone-mc Oct 23, 2018
74d4b9d
minor css
thelostone-mc Oct 23, 2018
504e280
Merge pull request #2501 from gitcoinco/ks_work
thelostone-mc Oct 23, 2018
7dbd296
implemented dynamic token functionality
captnseagraves Oct 23, 2018
bfa0f54
resolve grants merge
captnseagraves Oct 23, 2018
c33538b
changed aplha warning copy at suggestion of KO
captnseagraves Oct 23, 2018
db5377f
Adds required to admin address
SaptakS Oct 24, 2018
ef07666
Merge branch 'grants' of github.com:gitcoinco/web into fix-web3-check
SaptakS Oct 24, 2018
5f000a9
Add metamask unlock error banners in funding and cancel page
SaptakS Oct 24, 2018
7e6aca0
update alpha banner
thelostone-mc Oct 24, 2018
521e3b8
Merge pull request #2509 from SaptakS/fix-web3-check
thelostone-mc Oct 24, 2018
12a2001
Merge pull request #2519 from gitcoinco/dynamic_tokens
captnseagraves Oct 24, 2018
85d0ff3
added fields to Contribution model
captnseagraves Oct 24, 2018
b8f7883
make migrations and resolve stickler errors
captnseagraves Oct 25, 2018
e97df52
fixing new and fund js files.
captnseagraves Oct 26, 2018
3cd85b8
js fixed, now working on bad redirect
captnseagraves Oct 26, 2018
43b5448
Adding final revised Grant Cancellation email.
Anish-Agnihotri Oct 27, 2018
c12c17e
Fixing alt and trans - grant cancellation.
Anish-Agnihotri Oct 27, 2018
fbeae9e
Adding final revised update notification email.
Anish-Agnihotri Oct 27, 2018
a862053
Fixing links + adding new_supporter email.
Anish-Agnihotri Oct 27, 2018
c3e141e
Adding subscription_terminated email.
Anish-Agnihotri Oct 27, 2018
54d68fd
Adding TODO's and img trans missed in last.
Anish-Agnihotri Oct 27, 2018
d15a854
Adding support cancellation email + fixes.
Anish-Agnihotri Oct 27, 2018
c26f39b
Adding final thank_you_for_supporting email.
Anish-Agnihotri Oct 27, 2018
ae13233
Revising changes to final files.
Anish-Agnihotri Oct 27, 2018
21f4fb6
css fix
thelostone-mc Oct 28, 2018
d5b200e
Merge pull request #2551 from thelostone-mc/x
thelostone-mc Oct 28, 2018
bff9e60
bad redirect fixed
captnseagraves Oct 28, 2018
b66e7c0
fixed period_seconds data
captnseagraves Nov 5, 2018
d3d4379
Merge pull request #2466 from anish-agnihotri2/revised-emails
captnseagraves Nov 5, 2018
aace1db
emailed rendered, but data broken.
captnseagraves Nov 6, 2018
e60720c
new_grant email mostly done. need to update refrence urls functionality.
captnseagraves Nov 6, 2018
6126635
Merge branch 'master' of github.com:gitcoinco/web
mbeacom Nov 6, 2018
29a13b3
Remove grants index stub view
mbeacom Nov 6, 2018
edc159e
Remove pgweb
mbeacom Nov 6, 2018
d38b895
new_grant email link urls working
captnseagraves Nov 6, 2018
e2de0e2
Pin on old compose version...
mbeacom Nov 6, 2018
a612980
Adjust migrations since rebase
mbeacom Nov 6, 2018
ba93b0b
added fields to Contribution model
captnseagraves Oct 24, 2018
b20bea4
make migrations and resolve stickler errors
captnseagraves Oct 25, 2018
bad82f1
fixing new and fund js files.
captnseagraves Oct 26, 2018
9c06952
js fixed, now working on bad redirect
captnseagraves Oct 26, 2018
7f15046
bad redirect fixed
captnseagraves Oct 28, 2018
158564e
fixed period_seconds data
captnseagraves Nov 5, 2018
b9b2e13
emailed rendered, but data broken.
captnseagraves Nov 6, 2018
d442b0f
new_grant email mostly done. need to update refrence urls functionality.
captnseagraves Nov 6, 2018
4a9190e
new_grant email link urls working
captnseagraves Nov 6, 2018
1d3e3a1
implementing user facing new_grant email
captnseagraves Nov 6, 2018
4f007cb
runnning into error on contract deployment. working through. merging …
captnseagraves Nov 6, 2018
421d0c3
resolving merge and mirgations errors
captnseagraves Nov 6, 2018
0c0ed34
getting state to match grants branch
captnseagraves Nov 7, 2018
fb757b4
remove extra migration
captnseagraves Nov 7, 2018
c83335e
Revert "Adjust migrations since rebase"
captnseagraves Nov 7, 2018
fb6890d
run migrations
captnseagraves Nov 7, 2018
c50442e
resolve conflict
captnseagraves Nov 7, 2018
ff27031
email sent on user action (with borken images), and contract deployme…
captnseagraves Nov 8, 2018
99bf709
resolve merge conflicts
captnseagraves Nov 8, 2018
7ef6ace
Merge pull request #2526 from gitcoinco/contribution_model
captnseagraves Nov 8, 2018
975842f
Merge pull request #2468 from anish-agnihotri2/trans_summ
captnseagraves Nov 8, 2018
7c7e5b2
new_supporter email admin view and user generated email working. imag…
captnseagraves Nov 8, 2018
4ffa21c
thank_you_for_supporting email admin view and user generated email wo…
captnseagraves Nov 8, 2018
8d5fdc3
support_cancellation admin view and user generated email created. Can…
captnseagraves Nov 8, 2018
c5f6da9
Merge branch 'grants' of https://github.com/gitcoinco/web into grants
captnseagraves Nov 8, 2018
8e023bc
add gasPrice to resolve rinkeby issues
captnseagraves Nov 8, 2018
3165399
minor fixes for PR
captnseagraves Nov 8, 2018
368d3fe
Merge pull request #2742 from gitcoinco/rinkeby_fixes
captnseagraves Nov 8, 2018
1c79929
Merge branch 'grants' of https://github.com/gitcoinco/web into grants
captnseagraves Nov 8, 2018
f298f12
resolve grants merge
captnseagraves Nov 8, 2018
7dcf230
grants: added quickstart
thelostone-mc Nov 9, 2018
9b0ca19
implemented search functionality via form
captnseagraves Nov 9, 2018
f0441f3
run linter
captnseagraves Nov 9, 2018
0144dc1
appease stickler
captnseagraves Nov 9, 2018
17d4f92
grants/profile: added placeholder when user has no activity
thelostone-mc Nov 10, 2018
1a397a0
fixing cancel_subscription functionality
captnseagraves Nov 12, 2018
8359ac2
fix cancel_subscription functionality
captnseagraves Nov 12, 2018
aa76f15
Merge pull request #2747 from thelostone-mc/grants-quickstart
thelostone-mc Nov 13, 2018
4b8e183
support_cancelled email sent on user action
captnseagraves Nov 13, 2018
b88dd7f
fund frequency data wired correctly
captnseagraves Nov 13, 2018
5d5c63d
Fix jumping into profile if not available in grants
mbeacom Nov 13, 2018
a3773a2
solve field change on submit
captnseagraves Nov 13, 2018
7e1ad6e
submit form
captnseagraves Nov 13, 2018
fa8589f
added muli fonts back
captnseagraves Nov 13, 2018
cae11d0
Merge branch 'grants' of https://github.com/gitcoinco/web into grants
captnseagraves Nov 13, 2018
4db1bcc
Merge branch 'grants' into ks_cancel_fixes
captnseagraves Nov 13, 2018
44553bb
Merge branch 'grants' into ks_search
captnseagraves Nov 13, 2018
9f4da56
Merge branch 'grants' into ks_emails
captnseagraves Nov 13, 2018
85a96af
Merge pull request #2776 from gitcoinco/ks_cancel_fixes
captnseagraves Nov 13, 2018
00a80a6
Merge branch 'grants' into ks_search
captnseagraves Nov 13, 2018
6b008b6
Merge pull request #2750 from gitcoinco/ks_search
captnseagraves Nov 13, 2018
74848b8
resolve conflicts
captnseagraves Nov 13, 2018
e7b5dfa
run linter. fix logs and spacing for PR.
captnseagraves Nov 13, 2018
748ab50
Ks details buttons (#2827)
captnseagraves Nov 14, 2018
34f6742
uncomment form.submit()
captnseagraves Nov 14, 2018
29eebce
Merge branch 'grants' into ks_emails
captnseagraves Nov 14, 2018
9fed040
qa : fixes
thelostone-mc Nov 14, 2018
55d31e2
cancel grant functionality implemented
captnseagraves Nov 14, 2018
cfa4755
appease stickler
captnseagraves Nov 14, 2018
bc34beb
Merge pull request #2806 from gitcoinco/ks_emails
captnseagraves Nov 14, 2018
d924de6
appease stickler
captnseagraves Nov 14, 2018
e53931a
ensure compiledSubscription is correct
captnseagraves Nov 14, 2018
50b8d95
Merge branch 'grants' into cancel_grant
captnseagraves Nov 14, 2018
032c25d
added feedback comments
thelostone-mc Nov 14, 2018
223a374
sort fucntionality working and index only showing active grants. need…
captnseagraves Nov 14, 2018
5a8bb90
- profile: show placeholder
thelostone-mc Nov 14, 2018
3c2b771
implementing grant_cancellation email
captnseagraves Nov 14, 2018
5fce377
Merge pull request #2828 from thelostone-mc/grants-fix
thelostone-mc Nov 15, 2018
bd0fac5
card: clickable + image (#2843)
thelostone-mc Nov 15, 2018
06c5460
inline -> bulk edit (#2846)
thelostone-mc Nov 15, 2018
242e048
Merge branch 'grants' into cancel_grant
captnseagraves Nov 15, 2018
2e4ea7e
Merge pull request #2831 from gitcoinco/cancel_grant
captnseagraves Nov 15, 2018
72f84ba
Cancel grant functionality and emails implemented.
captnseagraves Nov 15, 2018
09b4e82
Merge branch 'grants' into ks_emails
captnseagraves Nov 15, 2018
f16fe5f
Fix migrations
mbeacom Nov 15, 2018
8980007
run linters
captnseagraves Nov 15, 2018
00f1797
removed minutes and hours. removed admin from user detail view.
captnseagraves Nov 15, 2018
995b209
compliedSubscription to compiledSubscription. Fix on chain functional…
captnseagraves Nov 15, 2018
c70b6a8
more QA fixes
captnseagraves Nov 15, 2018
fa79577
reordered inputs and added tooltip for token approval limit
captnseagraves Nov 15, 2018
efa984b
run linters
captnseagraves Nov 16, 2018
e96db1a
Merge branch 'grants' into qa_fixes
captnseagraves Nov 16, 2018
d9249b3
Merge branch 'grants' into ks_emails
captnseagraves Nov 16, 2018
aceb821
appease stickler
captnseagraves Nov 16, 2018
404a522
grants/card: same size
thelostone-mc Nov 16, 2018
924c40f
Merge pull request #2856 from thelostone-mc/grants-fix
thelostone-mc Nov 16, 2018
b59a246
Merge pull request #2849 from gitcoinco/ks_emails
captnseagraves Nov 16, 2018
63e69b8
appease stickler #2
captnseagraves Nov 16, 2018
c77255d
Fix thank_you_for_supporting email template with no logo
mbeacom Nov 16, 2018
c6b9841
Remove logo from thank you for supporting text email
mbeacom Nov 16, 2018
3043fb9
grant/detail: revamp
thelostone-mc Nov 16, 2018
b293cfb
Merge pull request #2860 from thelostone-mc/grants-fix
captnseagraves Nov 16, 2018
9b8f557
Merge branch 'grants' into qa_fixes
captnseagraves Nov 16, 2018
d74fe45
resolve merge
captnseagraves Nov 16, 2018
8645191
change p tag to span
captnseagraves Nov 16, 2018
6ee503d
trying to appease stickler #3
captnseagraves Nov 16, 2018
4ad4285
resolve conflicts
captnseagraves Nov 16, 2018
70bafa0
change monthly_goal to be amount_goal
captnseagraves Nov 16, 2018
47f4119
commiting yapf changes
captnseagraves Nov 17, 2018
464feab
add isort back inro pre-hook config
captnseagraves Nov 17, 2018
f0f2517
Merge pull request #2853 from gitcoinco/qa_fixes
captnseagraves Nov 17, 2018
03cfc22
qa fixes
thelostone-mc Nov 19, 2018
79676d5
Merge pull request #2880 from thelostone-mc/grants-fix
thelostone-mc Nov 19, 2018
f8d9bfb
detail: css fixes
thelostone-mc Nov 19, 2018
30f5537
Merge pull request #2881 from thelostone-mc/grants-fix
thelostone-mc Nov 19, 2018
bad8c05
make default required periodSeconds 0 instead of 30 days and remove y…
captnseagraves Nov 19, 2018
bc39821
cancel_subscription functionality working
captnseagraves Nov 19, 2018
d68ea0c
min value of amount_goal in grants/new validation implemented
captnseagraves Nov 19, 2018
338aa16
rename input_name to input_title in grants/new to prevent chrome user…
captnseagraves Nov 19, 2018
bbebbe3
grants/details display long titles and urls, while remaining editable
captnseagraves Nov 19, 2018
8446d35
Qa fixes (#2889)
captnseagraves Nov 19, 2018
799713a
Merge branch 'grants' into qa_fixes
captnseagraves Nov 19, 2018
c451849
inactive subscriptions no longer showing in grants/details
captnseagraves Nov 19, 2018
f9ca1a2
milestones now refer to due dates and completion dates, instead of st…
captnseagraves Nov 19, 2018
e3ae0a9
saving raw frequency, frequency_unit, real_period_seconds, and token_…
captnseagraves Nov 20, 2018
b756d3b
smooth out typos in models and templates for previous commit. All wor…
captnseagraves Nov 20, 2018
a6f17c5
fix css height on detail page
thelostone-mc Nov 20, 2018
aba8e11
changed line length in forms.py and copy in details
captnseagraves Nov 20, 2018
30efda5
updating tooltip for grants
thelostone-mc Nov 20, 2018
1963db7
Merge pull request #2896 from gitcoinco/qa_fixes
captnseagraves Nov 20, 2018
12fbf0c
Adjust grants views/paths to use slug from title, add creator to team…
mbeacom Nov 20, 2018
3270bab
remove ETH and add Any Token to token drop downs. Also, ensure that u…
captnseagraves Nov 21, 2018
9ba8a7e
qa changes (#2910)
thelostone-mc Nov 21, 2018
1e8b04a
Update migrations
mbeacom Nov 21, 2018
2338563
update doc strings
thelostone-mc Nov 21, 2018
7dc3333
Add DRF serializers and base viewsets for grants
mbeacom Nov 21, 2018
66918a0
added label
thelostone-mc Nov 21, 2018
a600a63
Merge branch 'master' into grants
mbeacom Nov 21, 2018
9fa662d
css fixes
thelostone-mc Nov 22, 2018
c497823
rename grant/fund_grant.js to grant/fund.js
thelostone-mc Nov 22, 2018
bacc0ea
Fix new grants reverse name in the grants_nav.html
SaptakS Nov 26, 2018
dcf49a5
Merge pull request #2941 from SaptakS/fix/nav_new_grants
thelostone-mc Nov 26, 2018
f5c3fb8
Fix my grants reverse url
SaptakS Nov 26, 2018
27764e7
Merge pull request #2942 from SaptakS/fix_nav_grants
thelostone-mc Nov 26, 2018
958faf6
Remove the duplicate view and url for grants in dashboard
SaptakS Nov 26, 2018
64f428a
Merge pull request #2943 from SaptakS/remove_duplicate_url
thelostone-mc Nov 26, 2018
f0e8946
grants/fund : redesign
thelostone-mc Nov 22, 2018
9b4f7f7
grants/fund: added summary
thelostone-mc Nov 22, 2018
6db4463
grants: added metamask connect banner across new + fund + cancel
thelostone-mc Nov 24, 2018
c851a35
grant/fund : fixed variable not declared
thelostone-mc Nov 26, 2018
68affd3
lint fix
thelostone-mc Nov 26, 2018
1c5d869
Merge pull request #2921 from thelostone-mc/grants
thelostone-mc Nov 26, 2018
85b5029
Refactor landing poage for grants
SaptakS Nov 26, 2018
7afdd3d
css + grid fixes
thelostone-mc Nov 26, 2018
24e698b
Merge pull request #2944 from SaptakS/grant_landing_new
thelostone-mc Nov 26, 2018
1c85b75
css fixes
thelostone-mc Nov 26, 2018
1bab5e2
commented out conflicting lines in grants/migrations_005, and merged …
captnseagraves Nov 26, 2018
8410d0e
grant/cancel-contribute revamp
thelostone-mc Nov 26, 2018
dfd97b2
review feedback: DRY fund + cancel code
thelostone-mc Nov 26, 2018
7ec3641
qa fixes
thelostone-mc Nov 26, 2018
a30b60a
add pgweb
captnseagraves Nov 26, 2018
834f395
added metamask unlock fix
thelostone-mc Nov 26, 2018
b41fd07
Merge pull request #2946 from thelostone-mc/grants
thelostone-mc Nov 26, 2018
4546003
implemented contract versioning state variable.
captnseagraves Nov 26, 2018
ffa71b0
implementing data and propogating to web3 functionality
captnseagraves Nov 26, 2018
98489db
Merge branch 'ks_rebase_migration_fixes' into ks_contract_versioning
captnseagraves Nov 26, 2018
6855f95
add migrations for new field
captnseagraves Nov 26, 2018
278d5c8
fixed variable scoping
captnseagraves Nov 26, 2018
a406244
remove pgweb
captnseagraves Nov 26, 2018
6acef6e
resolve conflicts
captnseagraves Nov 26, 2018
59018a2
refactor to have function in grants/shared.js
captnseagraves Nov 26, 2018
eb21f08
remove console logs
captnseagraves Nov 26, 2018
22fe0d7
uncomment migration_005 function call
captnseagraves Nov 26, 2018
43f1360
fixed grants/nav
thelostone-mc Nov 27, 2018
4952473
Adjust grant admin.py based on model changes and merge migrations
mbeacom Nov 27, 2018
abc9c68
Merge pull request #2951 from gitcoinco/ks_contract_versioning
captnseagraves Nov 27, 2018
b6a3f05
remove duplicate migrations_merge
captnseagraves Nov 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
34 changes: 3 additions & 31 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,8 @@ gitcoin.co/slack
Provide a general summary of the issue in the title above and use relevant fields below to define the problem.

-->
### Who

### User Story
### What

[comment]: # (As a <user type>, I want to <task> so that <goal>.)

### Why Is this Needed

[comment]: # (Describe the problem and why this task is needed. Provide description of the current state, what you would like to happen, and what actually happen)
*Summary*:

### Description

[comment]: # (Feature or Bug? i.e Type: Bug)
*Type*:

### Current Behavior
[comment]: # (Describe what actually happened.)

### Expected Behavior
[comment]: # (Describe what you expected to happen.)

### Reproduction
[comment]: # (Describe how we can replicate the bug step by step.)

### Solution
[comment]: # (Provide a summary of the solution and a task list on what needs to be fixed.)
*Summary*:

### Definition of Done
[comment]: # (Any other information that would be useful, bullets are helpful.)

### Additional Information
[comment]: # (Any other information that would be useful, content, screenshots, etc.)
### Why
7 changes: 0 additions & 7 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ gitcoin.co/slack
### Expected Behavior
[comment]: # (Describe what you expected to happen.)

### Reproduction
[comment]: # (Describe how we can replicate the bug step by step.)

### Solution
[comment]: # (Provide a summary of the solution and a task list on what needs to be fixed.)
*Summary*:

### Definition of Done
[comment]: # (Any other information that would be useful, bullets are helpful.)

Expand Down
30 changes: 19 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ cache:
- $HOME/.cache/pip
- node_modules

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: _build/site
fqdn: docs.gitcoin.co
target-branch: gh-pages
on:
branch: master

jobs:
include:
# Lint and test the repository.
Expand All @@ -41,6 +30,15 @@ jobs:
- cp app/app/travis.env app/app/.env
- pip install pip setuptools --upgrade
- pip install codecov
# Fetch and Install GeoIP database files.
- sudo apt-get update && sudo apt-get install -y libmaxminddb-dev
- wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz

Choose a reason for hiding this comment

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

[error] line too long (87 > 80 characters) (line-length)

- wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz

Choose a reason for hiding this comment

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

[error] line too long (90 > 80 characters) (line-length)

- gunzip GeoLite2-City.mmdb.gz && gunzip GeoLite2-Country.mmdb.gz
- sudo mkdir -p /opt/GeoIP/
- sudo mv *.mmdb /opt/GeoIP/
# Install libvips dependencies.
- sudo apt-get install -y libvips libvips-dev
# Install Node and Python dependencies.
- npm install
- pip install -r requirements/test.txt
Expand All @@ -54,6 +52,16 @@ jobs:
env:
- PYTHONPATH="${TRAVIS_BUILD_DIR}/app/"
- DJANGO_SETTINGS_MODULE="app.settings"
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: _build/site
fqdn: docs.gitcoin.co
target-branch: gh-pages
on:

Choose a reason for hiding this comment

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

[warning] truthy value should be true or false (truthy)

branch: master
# Deploy to Docker Hub and initiate a rolling update for web.
- stage: deploy-stage
if: branch = master AND NOT type = pull_request
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ COPY bin/docker-command.bash /bin/docker-command.bash
RUN dos2unix /bin/docker-command.bash && \
apt-get purge -y --auto-remove dos2unix wget gcc libc6-dev libc-dev libssl-dev make automake libtool autoconf pkg-config libffi-dev apt-utils

RUN apt-get update && apt-get install -y libmagickwand-dev
RUN apt-get update && apt-get install -y libvips libvips-dev

ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["bash", "/bin/docker-command.bash"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ push: ## Push the Docker image to the Docker Hub repository.
@docker push "${REPO_NAME}"

collect-static: ## Collect newly added static resources from the assets directory.
@docker-compose exec web python3 app/manage.py collectstatic -i other
@docker-compose exec -i web bash -c "cd /code/app && python3 manage.py collectstatic -i other"

compress-images: ## Compress and optimize images throughout the repository. Requires optipng, svgo, and jpeg-recompress.
@./scripts/compress_images.bash
Expand Down
3 changes: 3 additions & 0 deletions app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def insert_settings(request):
'protocol': settings.IPFS_API_SCHEME,
'root': settings.IPFS_API_ROOT,
},
'access_token': profile.access_token if profile else '',
'is_staff': request.user.is_staff if user_is_authenticated else False,
'is_moderator': profile.is_moderator if profile else False,
}
context['json_context'] = json.dumps(context)

Expand Down
2 changes: 0 additions & 2 deletions app/app/local.env
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ GITHUB_API_TOKEN=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_APP_NAME=


4 changes: 2 additions & 2 deletions app/app/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@

"""
from django.conf import settings
from django.core.exceptions import SuspiciousOperation

from app.utils import setup_lang, sync_profile


def save_profile(backend, user, response, request, *args, **kwargs):
"""Associate a Profile with a User."""

if backend.name == 'github':
handle = user.username
if handle in settings.BLOCKED_USERS:
raise Exception('You cannot login')
raise SuspiciousOperation('You cannot login')

sync_profile(handle, user, hide_profile=False)
setup_lang(request, user)
6 changes: 4 additions & 2 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
'tdi',
'gas',
'git',
'healthcheck.apps.HealthcheckConfig',
'legacy',
'chartit',
'email_obfuscator',
Expand All @@ -100,7 +101,8 @@
'external_bounties',
'dataviz',
'impersonate',
'bounty_requests'
'grants',
'bounty_requests',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -586,7 +588,7 @@

STABLE_COINS = ['DAI', 'USDT', 'TUSD']

BLOCKED_USERS = env('BLOCKED_USERS', default=[])
BLOCKED_USERS = env('BLOCKED_USERS', default=[])


# Silk Profiling and Performance Monitoring
Expand Down
8 changes: 8 additions & 0 deletions app/app/templates/shared/current_profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script type="text/javascript">
var currentProfile = {
username: "{{ github_handle }}",
githubToken: "{{ access_token }}",
isStaff: "{{ is_staff }}" != "False",
isModerator: "{{ is_moderator }}" != "False"
};
</script>
1 change: 1 addition & 0 deletions app/app/travis.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ DATABASE_URL=psql://postgres:postgres@localhost/testdb
ENV=test
REDIS_URL=rediscache://localhost:6379/0?client_class=django_redis.client.DefaultClient
CACHEOPS_REDIS=redis://localhost:6379/0
GEOIP_PATH=/opt/GeoIP/
11 changes: 9 additions & 2 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import external_bounties.views
import faucet.views
import gitcoinbot.views
import healthcheck.views
import linkshortener.views
import marketing.views
import marketing.webhookviews
Expand All @@ -64,7 +65,10 @@

# Health check endpoint
re_path(r'^health/', include('health_check.urls')),
re_path(r'^lbcheck/?', retail.views.lbcheck, name='lbcheck'),
re_path(r'^lbcheck/?', healthcheck.views.lbcheck, name='lbcheck'),

# grant views
path('grants/', include('grants.urls', namespace='grants')),

# dashboard views

Expand Down Expand Up @@ -176,7 +180,7 @@
# sync methods
url(r'^sync/web3/?', dashboard.views.sync_web3, name='sync_web3'),
url(r'^sync/get_amount/?', dashboard.helpers.amount, name='helpers_amount'),
url(r'^sync/get_issue_details/?', dashboard.helpers.issue_details, name='helpers_issue_details'),
re_path(r'^sync/get_issue_details/?', dashboard.helpers.issue_details, name='helpers_issue_details'),

# modals
re_path(r'^modal/get_quickstart_video/?', dashboard.views.get_quickstart_video, name='get_quickstart_video'),
Expand Down Expand Up @@ -232,6 +236,9 @@
re_path(r'^youtube/?', retail.views.youtube, name='youtube'),
re_path(r'^web3/?', retail.views.web3, name='web3'),

# increase funding limit
re_path(r'^requestincrease/?', retail.views.increase_funding_limit_request, name='increase_funding_limit_request'),

# link shortener
url(r'^l/(.*)$/?', linkshortener.views.linkredirect, name='redirect'),
url(r'^credit/(.*)$/?', credits.views.credits, name='credit'),
Expand Down
5 changes: 5 additions & 0 deletions app/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ def sync_profile(handle, user=None, hide_profile=True):
if email and profile:
get_or_save_email_subscriber(email, 'sync_profile', profile=profile)

if profile and not profile.github_access_token:
token = profile.get_access_token(save=False)
profile.github_access_token = token
profile.save()

return profile


Expand Down
1 change: 0 additions & 1 deletion app/assets/cookielaw/css/cookielaw.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
background-color: #F2F6F9;
width: 100%;
z-index: 999999999;
font-family: 'Muli', sans-serif;
}

#CookielawBanner .container {
Expand Down
23 changes: 13 additions & 10 deletions app/assets/ens/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
function signMsgAndCreateSubdomain(message, from) {
var msg = web3.toHex(message)
var params = [msg, from];
var msg = web3.toHex(message);
var params = [ msg, from ];
var method = 'personal_sign';

web3.currentProvider.sendAsync({
method,
params,
from,
}, function (err, result) {
if (err) return console.error(err)
if (result.error) return console.error(result.error)
$.post( "", { 'signedMsg' : result.result, 'signer': from }, function( data ) {
alert(data.msg);
location.reload();
});
from
}, function(err, result) {
if (err)
return console.error(err);

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)

if (result.error)
return console.error(result.error);

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)

$.post('', { 'signedMsg': result.result, 'signer': from }, function(data) {
alert(data.msg);
location.reload();
});
});
}

21 changes: 11 additions & 10 deletions app/assets/ens/register.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
window.onload = function () {
$("#register")[0].onclick = function (e) {
if ($("#tos")[0].checked === false) {
return alert('Please check the TOS checkbox.')
window.onload = function() {
$('#register')[0].onclick = function(e) {
if ($('#tos')[0].checked === false) {
return alert('Please check the TOS checkbox.');
}
if (typeof web3 == 'undefined') {
return alert('Please install metamask in your browser and try again.')
return alert('Please install metamask in your browser and try again.');
}
// Get the github handle
githubHandle = $("#githubHandle").text()
githubHandle = $('#githubHandle').text();
// Get the current account and call sign function:
web3.eth.getAccounts(function (err, accounts) {
if (!accounts) return
signMsgAndCreateSubdomain('Github Username : ' + $("#githubHandle").text(), accounts[0]);
web3.eth.getAccounts(function(err, accounts) {
if (!accounts)
return;
signMsgAndCreateSubdomain('Github Username : ' + $('#githubHandle').text(), accounts[0]);
});
};
}
};
22 changes: 1 addition & 21 deletions app/assets/onepager/css/main.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
/* One-Pager CSS */
@charset "UTF-8";
/* stylelint-disable no-descending-specificity */

/* ...because sometimes descending-specificity is a PIA to clean up */

/* Futura */

@font-face {
font-family: 'futura-pt';
src: url('/static/v2/fonts/futura/font4.ttf')/* TTF file for CSS3 browsers */
}

/* Muli Regular */

@font-face {
font-family: 'Muli';
src: url('/static/v2/fonts/Muli/Regular.ttf');
font-weight: 400;
}

body {
line-height: 1;
font-family: 'Muli', sans-serif !important;
-webkit-text-size-adjust: none;
overflow: hidden;
width: 100%;
Expand Down Expand Up @@ -72,7 +55,6 @@ body.is-loading:after {
text-transform: uppercase;
font-size: 14px;
padding: 4px 7px;
font-family: 'Muli', sans-serif;
font-weight: 100;
letter-spacing: 0.15em;
margin: 5px;
Expand Down Expand Up @@ -716,8 +698,6 @@ dl dd {
position: absolute;
}

/* Footer */

#footer {
-moz-align-self: -moz-flex-end;
-webkit-align-self: -webkit-flex-end;
Expand Down
6 changes: 3 additions & 3 deletions app/assets/onepager/js/receive.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ $(document).ready(function() {
nonce: web3.toHex(nonce),
to: forwarding_address,
from: holding_address,
value: amount_in_wei
value: amount_in_wei.toString()
};
web3.eth.estimateGas(rawTx, function(err, gasLimit) {
var buffer = new BigNumber(0);
Expand Down Expand Up @@ -146,7 +146,7 @@ $(document).ready(function() {
} else {

// send ERC20
var data = token_contract.transfer.getData(forwarding_address, amount_in_wei);
var data = token_contract.transfer.getData(forwarding_address, amount_in_wei.toString());

rawTx = {
nonce: web3.toHex(nonce),
Expand All @@ -157,7 +157,7 @@ $(document).ready(function() {
};

web3.eth.estimateGas(rawTx, function(err, gasLimit) {
rawTx['gasPrice'] = gas_price_wei;
rawTx['gasPrice'] = gas_price_wei.toNumber();
rawTx['gas'] = gasLimit;
rawTx['gasLimit'] = gasLimit;
var will_fail_at_this_gas_price = (gas_price_wei * gasLimit) > balance;
Expand Down
Loading