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

feat: round 7 changes #7349

Merged
merged 50 commits into from
Sep 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c50e4a0
Add zkSync Checkout (#7314)
mds1 Sep 9, 2020
c785b1a
add list view for grants and migrate to vue (#7336)
zoek1 Sep 9, 2020
e4b36f7
fixes https://github.com/gitcoinco/web/issues/7223
owocki Sep 10, 2020
5037fb5
zkSync updates part 2 (#7348)
mds1 Sep 10, 2020
61e258e
updated dates, just in case we got it wrong with db migration
owocki Sep 10, 2020
d7e616e
Merge branch 'round-7-integration' of github.com:gitcoinco/web into r…
owocki Sep 10, 2020
5127794
round up fixes
thelostone-mc Sep 10, 2020
03c0df9
Merge branch 'round-7-integration' of github.com:gitcoinco/web into r…
owocki Sep 10, 2020
b7d6dff
fix for the anonymous user issue
owocki Sep 10, 2020
5dcfbb3
fix up clr info on cards
thelostone-mc Sep 10, 2020
0577cca
show contribution button only if user has logged in
thelostone-mc Sep 10, 2020
e908ab3
update icon
thelostone-mc Sep 10, 2020
788453e
hide browse grants button
thelostone-mc Sep 10, 2020
edfbe34
rounding issue
owocki Sep 10, 2020
90e4bc2
reload page on switch type/category
thelostone-mc Sep 10, 2020
61854b4
fix grants without round
octavioamu Sep 10, 2020
4fe463d
fix favorite
octavioamu Sep 10, 2020
d78aa4a
fix component initialization
octavioamu Sep 10, 2020
58ef5a2
eslint fix
octavioamu Sep 10, 2020
145e8f0
fix grant activity
octavioamu Sep 10, 2020
02edd7a
sloppy fix
owocki Sep 10, 2020
65a6a82
a few fixes
owocki Sep 10, 2020
387f5c3
add pagination
octavioamu Sep 10, 2020
3ee0b27
readd stuff
thelostone-mc Sep 10, 2020
f2457a3
switch btwn rinkeby+mainnet &show sybil info
thelostone-mc Sep 10, 2020
28fbbed
Fix my grants and add team members (#7354)
zoek1 Sep 11, 2020
5a1337a
Grants Round 7 Trust Bonus Improvements (#7353)
apbendi Sep 11, 2020
9c7cd08
fix for loading sidecart
thelostone-mc Sep 11, 2020
4818f9c
debounce search
octavioamu Sep 11, 2020
f47bd29
remove already loaded scripts
octavioamu Sep 11, 2020
de6e228
move filter "my grants"
octavioamu Sep 11, 2020
3cf8800
zkSync updates part 3 (#7356)
mds1 Sep 13, 2020
f6283ab
adds grant funding info; per lefteris feedback
owocki Sep 14, 2020
312755d
adds grant funding info; per lefteris feedback
owocki Sep 14, 2020
83e82ac
fix for sms verification
owocki Sep 14, 2020
f2a71d8
ads trust tab coming soon stuff
owocki Sep 14, 2020
436a1f8
stopgap for https://github.com/gitcoinco/web/issues/7131#issuecomment…
owocki Sep 14, 2020
c6f73c7
new grants header
owocki Sep 14, 2020
811b7ed
zkSync bug fixes (#7368)
mds1 Sep 14, 2020
49eb0fa
matic banner
octavioamu Sep 14, 2020
9a4353e
round 7 integration; adds brightid events to calenndar
owocki Sep 14, 2020
2bdb362
udpates img
owocki Sep 14, 2020
3887bf5
styles for banners and grid fixes
octavioamu Sep 14, 2020
039174f
Additional cart improvements (#7374)
mds1 Sep 14, 2020
27379ba
helper script to re-add team members that were removed by https://git…
owocki Sep 14, 2020
f4be1b3
Merge branch 'round-7-integration' of github.com:gitcoinco/web into r…
owocki Sep 14, 2020
dac367f
updates grant scripts
owocki Sep 14, 2020
bca61c0
adds learn more link
owocki Sep 14, 2020
dbc9614
adds brightID info to sybilscore
owocki Sep 14, 2020
61ed312
iexact
owocki Sep 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def preprocess(request):
"""Handle inserting pertinent data into the current context."""

# make lbcheck super lightweight

if request.path == '/lbcheck':
return {}

Expand Down
45 changes: 45 additions & 0 deletions app/app/fixtures/economy.json
Original file line number Diff line number Diff line change
Expand Up @@ -24328,5 +24328,50 @@
"metadata": {},
"approved": true
}
},
{
"model": "economy.token",
"pk": 363,
"fields": {
"created_on": "2020-08-28T00:52:18Z",
"modified_on": "2020-08-28T01:38:48.009Z",
"address": "0x3b00ef435fa4fcff5c209a37d1f3dcff37c705ad",
"symbol": "USDT",
"network": "rinkeby",
"decimals": 6,
"priority": 1,
"metadata": {},
"approved": true
}
},
{
"model": "economy.token",
"pk": 364,
"fields": {
"created_on": "2020-08-28T00:52:18Z",
"modified_on": "2020-08-28T01:38:48.009Z",
"address": "0xeb8f08a975ab53e34d8a0330e0d34de942c95926",
"symbol": "USDC",
"network": "rinkeby",
"decimals": 6,
"priority": 1,
"metadata": {},
"approved": true
}
},
{
"model": "economy.token",
"pk": 364,
"fields": {
"created_on": "2020-08-28T00:52:18Z",
"modified_on": "2020-08-28T01:38:48.009Z",
"address": "0x4da8d0795830f75be471f072a034d42c369b5d0a",
"symbol": "LINK",
"network": "rinkeby",
"decimals": 18,
"priority": 1,
"metadata": {},
"approved": true
}
}
]
59 changes: 57 additions & 2 deletions app/assets/v2/css/grants/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,38 @@
margin-top: 1.0625rem;
}

.grant-item--list {
padding-bottom: 10px;
}

.grant-item--list:hover {
background-color: #EFEAFD;
}

.flip-card__flipper {
border: 1px solid #D3D3D3;
}

.grant-item--list .grant-item__content {
margin-top: 0.938rem;
}

.grant-item__title {
line-height: 24px;
overflow-y: hidden;
font-weight: bold;
font-size: 1.25rem;
margin-bottom: 15px;
}

.grant-item__title a {
color: #454545;
}

.grant-item--list .grant-item__title {
font-size: 1rem;
margin-bottom: 2px;
}

.grant-item__pitch {
color: #666666;
height: 3.8rem;
Expand Down Expand Up @@ -65,6 +81,12 @@
margin: 13px;
}

.grant-item--list .grant-item__img {
height: 3.1rem;
overflow: hidden;
margin: 10px 12px;
}

.grant-item__owner-image,
.flip-card__flipper .grant__stakeholders-item {
height: 35px;
Expand Down Expand Up @@ -97,6 +119,11 @@
color: #0D0764;
}

.grant-item--list .grant-item__owner-image {
height: 20px;
width: 20px;
}

.grant-item__funding-label {
color: #BBBDBF;
}
Expand Down Expand Up @@ -208,6 +235,34 @@
color: #040404;
}

.match__round--inline {
color: #069953;
}
.clr-prediction .amount {
margin-top: 7px;
}
}

.star-action:hover {
color: var(--gc-blue-hover) !important;
}

@media (max-width: 500px) {
.grant-item--list .grant-item__owner {
align-items: baseline;
display: flex;
flex-direction: column;
}
.grant-item--list .match, .grant-item--list .star-action {
margin-top: 5px !important;
margin-left: 0 !important;
}

.grant-item--list .match {
flex-direction: column;
}

.grant-item--list .grant-action {
padding-top: 5px !important;
padding-bottom: 5px !important;
}
}
41 changes: 34 additions & 7 deletions app/assets/v2/css/grants/grant.css
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
}

.grants-hero .title-round{
font-size: 24px;
font-size: 24px;
}

.grants-hero .font-header,
Expand Down Expand Up @@ -450,7 +450,7 @@
background: transparent !important;
}

#search_form .select2-container {
#top-filters .select2-container, #search_form .select2-container {
width: auto !important;
font-weight: normal;
text-align: left;
Expand All @@ -462,22 +462,22 @@

}

#search_form .select2-network-container {
#top-filters .select2-network-container, #search_form .select2-network-container {
width: 5rem !important;
}

#search_form .network-container .select2-container {
#top-filters .select2-container, #search_form .network-container .select2-container {
min-width: 5rem;
}

#search_form .select2-selection {
#top-filters .select2-selection, #search_form .select2-selection {
background: none;
outline: none;
border: none !important;
color: var(--gc-blue);
}

#search_form .select2-selection span {
#top-filters .select2-selection span, #search_form .select2-selection span {
color: #3E00FF;
font-weight: bold;
}
Expand Down Expand Up @@ -629,15 +629,32 @@ background: linear-gradient(85.75deg, #03008D -17.8%, #000000 139.56%); /* W3C,
letter-spacing: 2px;
}

.grants_hero_img{
background-position-x: 50%;
background-color: #030118;
}
.grants_hero_img .container{
min-height: 400px;
}

#container_bar{
background-color: #030118;
}

@media (max-width: 991.98px) {
#sidebar_container form#filters {
.grants_hero_img .container{
min-height: 350px;
}
.hide_filters {
height: 0;
display: none;
}

#sidebar_container form#search_form {
display: inline-block;
width: 95%;
}
}

/* sidebar_search.css */

Expand All @@ -652,7 +669,17 @@ background: linear-gradient(85.75deg, #03008D -17.8%, #000000 139.56%); /* W3C,
}


@media (max-width: 540px) {
.grants_hero_img .container{
min-height: 220px;
}
}


@media (max-width: 390px) {
.grants_hero_img .container{
min-height: 200px;
}
#search_form .sort_container .select2-container {
width: 200px !important;
}
Expand Down
5 changes: 0 additions & 5 deletions app/assets/v2/css/sidebar_search.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@
}

@media (max-width: 991.98px) {
#sidebar_container form {
height: 0;
display: none;
}

#expand {
display: inherit;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/v2/images/grants/matic-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions app/assets/v2/images/grants/zksync.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions app/assets/v2/js/abi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,693 changes: 1,545 additions & 148 deletions app/assets/v2/js/cart.js

Large diffs are not rendered by default.

46 changes: 12 additions & 34 deletions app/assets/v2/js/grants/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,40 +200,18 @@ $(document).ready(function() {

$('#cancel_grant').on('click', function(e) {
$('.modal-cancel-grants').on('click', function(e) {
let contract_address = $('#contract_address').val();
let grant_cancel_tx_id;
let deployedSubscription = new web3.eth.Contract(compiledSubscription.abi, contract_address);

web3.eth.getAccounts(function(err, accounts) {
deployedSubscription.methods.endContract()
.send({
from: accounts[0],
gas: 3000000
}).on('transactionHash', function(transactionHash) {
grant_cancel_tx_id = $('#grant_cancel_tx_id').val();
const linkURL = get_etherscan_url(transactionHash);

document.issueURL = linkURL;
$('#transaction_url').attr('href', linkURL);
$('.modal .close').trigger('click');
enableWaitState('#grants-details');
})
.on('confirmation', function(confirmationNumber, receipt) {
$.ajax({
type: 'post',
url: '',
data: {
'contract_address': contract_address,
'grant_cancel_tx_id': grant_cancel_tx_id
},
success: function(json) {
window.location.reload(false);
},
error: function() {
_alert({ message: gettext('Canceling your grant failed to save. Please try again.') }, 'error');
}
});
});
$.ajax({
type: 'post',
url: '',
data: {
'grant_cancel_tx_id': '0x0'
},
success: function(json) {
window.location.reload(false);
},
error: function() {
_alert({ message: gettext('Canceling your grant failed to save. Please try again.') }, 'error');
}
});
});
});
Expand Down
16 changes: 3 additions & 13 deletions app/assets/v2/js/grants/funding.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,19 +239,9 @@ function hideSideCart() {
}

function toggleSideCart() {
$('#grants-details').toggleClass('col-12');
$('#grants-details').toggleClass('col-md-8');
$('#grants-details').toggleClass('col-lg-9');
$('#grants-details').toggleClass('d-none');
$('#grants-details').toggleClass('d-md-block');
$('#grants-details > div').toggleClass('col-12 col-md-8 col-lg-9 d-none d-md-block');

$('#side-cart').toggle();
$('#side-cart').toggleClass('col-12');
$('#side-cart').toggleClass('col-md-4');
$('#side-cart').toggleClass('col-lg-3');

$('#funding-card').toggleClass('mr-md-5');
$('#funding-card').toggleClass('mr-md-3');
$('#funding-card').toggleClass('d-none');
$('#funding-card').toggleClass('d-lg-block');
$('#side-cart').toggleClass('col-12 col-md-4 col-lg-3');
$('#funding-card').toggleClass('mr-md-5 mr-md-3 d-none d-lg-block');
}
Loading