-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Quickstart screen for bounty creation flow #1029
Conversation
@SaptakS Oh you might wanna use 2 spaces as against 4 in The box svg + green background for the issue svgs still feels a lil off 😓 |
Yes yes. I haven't checked the linting. I will definitely do that. No worries. |
I thought it goes well with the current design of the entire website. What would you suggest? |
I figured we'd have the svgs in green against a white background but yeah that might throw off the color balance !! Let's stick to the design for now in that case ( Oh btw how does it look when you swap out the grey with light shade from the filters on the explorer pages ? ) |
Codecov Report
@@ Coverage Diff @@
## master #1029 +/- ##
==========================================
+ Coverage 31.08% 31.24% +0.15%
==========================================
Files 122 120 -2
Lines 8521 8404 -117
Branches 1117 1100 -17
==========================================
- Hits 2649 2626 -23
+ Misses 5764 5669 -95
- Partials 108 109 +1
Continue to review full report at Codecov.
|
ce35d93
to
ce710e6
Compare
app/dashboard/views.py
Outdated
@@ -719,6 +719,17 @@ def bounty_details(request, ghuser='', ghrepo='', ghissue=0, stdbounties_id=None | |||
return TemplateResponse(request, 'bounty_details.html', params) | |||
|
|||
|
|||
|
|||
def quickstart(request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E303 too many blank lines (3)
c4414e1
to
6804829
Compare
6804829
to
7c2dd8b
Compare
dd60f0e
to
42beea2
Compare
@SaptakS so a good chunk of the code base uses the following classes for font-size to ensure we don't have different font-size! I know the design had the font-size bigger, but should we update it to match what is being used ? Part 1- Use a mix of : `font-subheader` + `font-title` + `font-body` for this : - Checkbox , we should reuse the styles like [here](https://github.com/gitcoinco/web/blob/master/app/dashboard/templates/shared/sidebar_search.html#L104-L110)Part 2
Part 3The Metamask status is longer as compared to the status present on the dashboard & bounty details page. We could annoy @PixelantDesign to make it uniform :P Part 4
Part 5
Part 6When I click on fund issue without filling the issue details and stuff, it redirects me back to quickstart page ? 😅 Part 7 - Mobile
@SaptakS Feel free to buy me food for helping with the review :P Also @mbeacom would it be okay to merge this in once these issues are addressed & disable the url so that @SaptakS doesn't spend his life resolving conflicts ? |
@SaptakS Would you mind resolving the conflicts on this PR? Once that's done, we'll get this pushed to staging. |
What should I hyperlink this to? @owocki @PixelantDesign |
Right now what I have is you need to click the checkbox and then click "Ok, I'm ready" button. And the localstorage value gets set so that next time you visit a new funder issue, it doesn't redirect. I am still not sure whether to do it via JS or do we maintain a table to just save the information about users who have clicked on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am committing the changes I've referenced in my comments. This just needs tested on staging. I'll deploy it once I commit my changes.
</div> | ||
<div class="col-lg-2 col-sm-12"> | ||
<p> | ||
<a class="btn btn-sm btn-info mt-3 pulseClick" role="button" id="submit" href="/faucet" target="_blank" rel="noopener noreferrer">{% trans "View Faucet" %}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is merely a note since it was already like this, but we'll want to be mindful of replacing hard coded URLs in templates with {% url 'url_reverse_name' %}
app/dashboard/views.py
Outdated
|
||
context = { | ||
'active': 'video', | ||
'title': 'Quickstart Video', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to wrap this in gettext_lazy via: _()
app/dashboard/views.py
Outdated
@ratelimit(key='ip', rate='5/m', method=ratelimit.UNSAFE, block=True) | ||
def get_quickstart_video(request): | ||
"""Show quickstart video.""" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new line between method start/docstring and the first line of logic.
app/dashboard/views.py
Outdated
@@ -710,6 +710,16 @@ def bounty_details(request, ghuser='', ghrepo='', ghissue=0, stdbounties_id=None | |||
return TemplateResponse(request, 'bounty_details.html', params) | |||
|
|||
|
|||
def quickstart(request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm adding staff_member_required
to the new views until we're ready to launch quickstart
<li>{% trans "4) Confirm the transaction in metamask" %}</li> | ||
</ol> | ||
<p> | ||
{% trans "Once confirmed on blockchain, your bounty is posted to Gitcoin! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll want to be careful using {% trans "" %}
spanning multiple lines with heavy whitespace between line segments.
app/assets/v2/images/Lightbulb.svg
Outdated
@@ -0,0 +1,19 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs squashed. You can do that via make compress-images
or simply svgo app/assets/v2/images/Lightbulb.svg
for the time being.
@SaptakS As we discussed previously, I think storing the preference in the DB is a solid choice, so we can ensure persistence regardless of where the user is browsing from. If we wanted to offload the check for this and avoid the query in most cases, we could store it in the DB once they opt in to |
Looking good on the quick start!
Funder Form
Thanks! |
@PixelantDesign Done! |
Wait for developers across the world to discover your bounty and | ||
start working on your issue. | ||
{% endblocktrans %} | ||
{% trans "Once confirmed on blockchain, your bounty is posted to Gitcoin! Wait for developers across the world to discover your bounty and start working on your issue." %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SaptakS Wanna break this up into multiple lines? Avoids horizontal scrolling 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had this broken but then it was causing problem with {% trans
. Instead of rendering, it was showing {% trans
as normal text.
app/app/urls.py
Outdated
@@ -73,6 +73,7 @@ | |||
url(r'^explorer/?', dashboard.views.dashboard, name='explorer'), | |||
|
|||
# action URLs | |||
url(r'^bounty/quickstart/?', dashboard.views.quickstart, name='quickstart'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving forward, can we use re_path
and path
for new urls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looked good to me
Description
Checklist
Affected core subsystem(s)
Testing
Refers/Fixes
Fixes: #982
Refs: #429