From 723cf409b64fccd15a0bd18c527295a363921810 Mon Sep 17 00:00:00 2001 From: Chibuotu Amadi Date: Fri, 19 Nov 2021 17:25:16 +0100 Subject: [PATCH 1/5] apply new design --- app/dashboard/sync/helpers.py | 2 +- .../tests/factories/bounty_factory.py | 2 +- .../tests/factories/fulfillment_factory.py | 4 +- app/dashboard/tests/views/test_bounty_api.py | 2 +- .../tests/views/test_bounty_payout.py | 4 +- .../grants/detail/template-grant-details.html | 137 ++++++++---------- app/grants/views.py | 6 - 7 files changed, 71 insertions(+), 86 deletions(-) diff --git a/app/dashboard/sync/helpers.py b/app/dashboard/sync/helpers.py index cf27dd53c24..8268b75d0b7 100644 --- a/app/dashboard/sync/helpers.py +++ b/app/dashboard/sync/helpers.py @@ -1,9 +1,9 @@ import logging +from decimal import Decimal from dashboard.helpers import bounty_activity_event_adapter, get_bounty_data_for_activity from dashboard.models import Activity, BountyEvent, BountyFulfillment -from decimal import Decimal logger = logging.getLogger(__name__) diff --git a/app/dashboard/tests/factories/bounty_factory.py b/app/dashboard/tests/factories/bounty_factory.py index 9d0fe04d5e3..02fb6c8a603 100644 --- a/app/dashboard/tests/factories/bounty_factory.py +++ b/app/dashboard/tests/factories/bounty_factory.py @@ -12,4 +12,4 @@ class Meta: is_open = True expires_date = datetime.now() + timedelta(days=365) raw_data = {} - bounty_owner_github_username = 'gitcoin' \ No newline at end of file + bounty_owner_github_username = 'gitcoin' diff --git a/app/dashboard/tests/factories/fulfillment_factory.py b/app/dashboard/tests/factories/fulfillment_factory.py index fba77211583..699ad1d37fd 100644 --- a/app/dashboard/tests/factories/fulfillment_factory.py +++ b/app/dashboard/tests/factories/fulfillment_factory.py @@ -1,6 +1,6 @@ import factory - from dashboard.models import BountyFulfillment + from .bounty_factory import BountyFactory from .profile_factory import ProfileFactory @@ -10,4 +10,4 @@ class Meta: model = BountyFulfillment bounty = factory.SubFactory(BountyFactory) - profile = factory.SubFactory(ProfileFactory) \ No newline at end of file + profile = factory.SubFactory(ProfileFactory) diff --git a/app/dashboard/tests/views/test_bounty_api.py b/app/dashboard/tests/views/test_bounty_api.py index 7e6edf31083..0a5e9f99984 100644 --- a/app/dashboard/tests/views/test_bounty_api.py +++ b/app/dashboard/tests/views/test_bounty_api.py @@ -13,4 +13,4 @@ def test_retrieves_activities(self, django_user_model): client.force_login(user) response = client.get('/actions/api/v0.1/bounty/', github_url, format='json') - assert response.status_code == 200 \ No newline at end of file + assert response.status_code == 200 diff --git a/app/dashboard/tests/views/test_bounty_payout.py b/app/dashboard/tests/views/test_bounty_payout.py index b7ee7043333..29e09f50aa4 100644 --- a/app/dashboard/tests/views/test_bounty_payout.py +++ b/app/dashboard/tests/views/test_bounty_payout.py @@ -1,7 +1,7 @@ import pytest -from dashboard.tests.factories.profile_factory import ProfileFactory from dashboard.tests.factories.bounty_factory import BountyFactory from dashboard.tests.factories.fulfillment_factory import FulfillmentFactory +from dashboard.tests.factories.profile_factory import ProfileFactory from rest_framework.test import APIClient @@ -31,4 +31,4 @@ def test_pays_out_bounty(self, django_user_model): response = client.post(f'/api/v1/bounty/payout/{fulfillment.id}', payload) - assert response.status_code == 200 \ No newline at end of file + assert response.status_code == 200 diff --git a/app/grants/templates/grants/detail/template-grant-details.html b/app/grants/templates/grants/detail/template-grant-details.html index 37296709590..c3db6ce5195 100644 --- a/app/grants/templates/grants/detail/template-grant-details.html +++ b/app/grants/templates/grants/detail/template-grant-details.html @@ -482,7 +482,7 @@

Team

- +
Verify Grant Ownership

Verify your grant ownership to ensure that your supporters are contributing to the correct grant.

Verify with twitter @@ -490,7 +490,7 @@
Verify Grant Ownership
- +
Verify Grant Ownership with Twitter

Step 1: Fill your twitter account into the grants twitter field @@ -508,31 +508,17 @@

Verify Grant Ownership with Twitter
+
- -
- Drag & Drop or Browse - - -
-
-
- - -
-
- - Required + + required @@ -541,8 +527,8 @@
Verify Grant Ownership with Twitter
- - Required + + required Verify Grant Ownership with Twitter [[errors.description]]
+
+ +
+ Drag & Drop or Browse + + +
+
+
+ + +
+ + +
+ + +
- +
- - Required + + required
[[errors.reference_url]] @@ -569,8 +575,8 @@
Verify Grant Ownership with Twitter
- - Required + + required @@ -581,7 +587,7 @@
Verify Grant Ownership with Twitter
- + @@ -590,15 +596,9 @@
Verify Grant Ownership with Twitter
- -
- - -
-
- +