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

Hack nav #5917

Merged
merged 8 commits into from
Feb 5, 2020
Merged

Hack nav #5917

merged 8 commits into from
Feb 5, 2020

Conversation

octavioamu
Copy link
Contributor

@octavioamu octavioamu commented Jan 31, 2020

Description

This is a menu redesign for all the app, keeping the menu consistent in all places, more arguments on "why" on the issue ticket.
Also a few others fixes:

  • Clicking outside dropdown will close the dropdown.
  • Design care
  • Bring help links to menu
  • Show the last 2 post from wordpress checks each hour if data changed.
  • Show you the product you are seeing.
  • Add codefund links also as other products.
  • Add search tribes link to menu, verify profile and a few more.

image
image
image
image

Refers/Fixes

fix #5485

Testing

https://share.vidyard.com/watch/gtg81fg57HXXUkDaBtqquY?

@codecov
Copy link

codecov bot commented Jan 31, 2020

Codecov Report

Merging #5917 into master will decrease coverage by 11.84%.
The diff coverage is 14.09%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #5917       +/-   ##
===========================================
- Coverage   29.35%   17.51%   -11.85%     
===========================================
  Files         270      259       -11     
  Lines       23097    23179       +82     
  Branches     3353     3372       +19     
===========================================
- Hits         6781     4059     -2722     
- Misses      16021    19106     +3085     
+ Partials      295       14      -281
Impacted Files Coverage Δ
app/app/urls.py 0% <ø> (-90.57%) ⬇️
app/quests/admin.py 46.55% <0%> (-0.82%) ⬇️
app/retail/views.py 0% <0%> (-22.88%) ⬇️
app/kudos/admin.py 60.24% <0%> (-0.74%) ⬇️
app/retail/emails.py 19.37% <0%> (-3.91%) ⬇️
app/marketing/utils.py 14.36% <0%> (-16.12%) ⬇️
app/app/context.py 0% <0%> (-69.34%) ⬇️
app/townsquare/views.py 0% <0%> (-10.55%) ⬇️
app/grants/views.py 0% <0%> (-14.48%) ⬇️
app/economy/admin.py 62.96% <0%> (-2.43%) ⬇️
... and 107 more

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 9b4fabf...4ca3b2e. Read the comment docs.

@owocki
Copy link
Contributor

owocki commented Feb 1, 2020

the community subnav looks pretty thin/inconsitent with the others navs (which look awesome btw) https://docs.google.com/document/d/1q382lpfVdORIuol4NIiTYLaAQa6nQQyRqmdj5-AYRAg/edit

@owocki
Copy link
Contributor

owocki commented Feb 1, 2020

hover cutoff issues https://bits.owocki.com/yAuLEg5R

@owocki
Copy link
Contributor

owocki commented Feb 1, 2020

hmm the nav changes quite substantially as i go to the kudos or grants pages.. is this by design?

@octavioamu
Copy link
Contributor Author

octavioamu commented Feb 3, 2020

the community subnav looks pretty thin/inconsitent with the others navs (which look awesome btw)

Yes that is the normal dropdown but what do you think we can put there to justify a full width dropdown?

hmm the nav changes quite substantially as i go to the kudos or grants pages.. is this by design?

Good catch forgot to change kudos one

hover cutoff issues

taking a look

@octavioamu
Copy link
Contributor Author

Made a slide with 3 diff messages with autoplay, about chat, tribes and leaderboard and fixed the size problem.

image

image

# cache.get_or_set('last_posts', last_posts, 100)
# posts = {
# 'last_posts': last_posts
# }
Copy link
Member

Choose a reason for hiding this comment

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

^ should we remove these ?

# }

# posts['json_context'] = json.dumps(posts)
print(last_posts)
Copy link
Member

Choose a reason for hiding this comment

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

remove print stmt

.navbar.following img,
.navbar.following .nav-item,
.navbar.following i.fa-angle-right {
display: none !important;
}
} */
Copy link
Member

Choose a reason for hiding this comment

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

^ remove these ?

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.

left a few comments ! lgtm otherwise

Copy link
Contributor

@danlipert danlipert left a comment

Choose a reason for hiding this comment

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

This is probably my favorite hack week project - so excited for this! Just a couple of copywriting suggestions but otherwise looks good!

$navbar.removeClass('following');
navFollowState = false;
}
// if (!navFollowState && scrollContainer.scrollTop() > followStateHeight) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👀 Should we just remove these ;)

<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/grants_symbol_dark.svg" %}" alt="Bounties" height="48">
<b class="gc-megamenu-title">{% trans "Grants" %}</b>
</a>
<p class="px-2 m-0 mb-2 text-wrap font-smaller-2">{% trans "Recurring Funding for open source" %}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Capitalize "open source"? what do you think? I notice the capitalization is a bit different on some of the items

<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/codefund_symbol_dark.svg" %}" alt="Bounties" height="48">
<b class="gc-megamenu-title">{% trans "Codefund" %}</b>
</a>
<p class="px-2 m-0 mb-2 text-wrap font-smaller-2">{% trans "Ethical ads to power open source" %}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should capitalize the codefund items

<ul class="col-md-4 col-lg-2 list-unstyled {% if '/quests' in request.path %}gc-megamenu-active{% endif %}">
<li>
<a class="text-reset" href="{% url 'quests_index' %}">
<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/quests_symbol_dark.svg" %}" alt="Bounties" height="48">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt tag here should be for quests

<ul class="col-md-4 col-lg-2 list-unstyled {% if '/hackathon' in request.path %}gc-megamenu-active{% endif %}">
<li>
<a class="text-reset" href="{% url 'get_hackathons' %}">
<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/hackathons_symbol_dark.svg" %}" alt="Bounties" height="48">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt tag here should be hackathons

<ul class="col-md-4 col-lg-2 list-unstyled {% if '/grants' in request.path %}gc-megamenu-active{% endif %}">
<li>
<a class="text-reset" href="{% url 'grants:grants' %}">
<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/grants_symbol_dark.svg" %}" alt="Bounties" height="48">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt should be grants

<ul class="col-md-4 col-lg-2 list-unstyled">
<li>
<a class="text-reset" href="https://codefund.app/">
<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/codefund_symbol_dark.svg" %}" alt="Bounties" height="48">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt should be codefund

<ul class="col-md-4 col-lg-2 list-unstyled {% if '/kudos' in request.path %}gc-megamenu-active{% endif %}">
<li>
<a class="text-reset" href="{% url 'kudos_main' %}">
<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/kudos_symbol_dark.svg" %}" alt="Bounties" height="48">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt tag for kudos

<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/quests_symbol_dark.svg" %}" alt="Bounties" height="48">
<b class="gc-megamenu-title">{% trans "Quests" %}</b>
</a>
<p class="px-2 m-0 mb-2 text-wrap font-smaller-2">{% trans "Learn about web3 & earn rewards" %}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Capitalization here

<img class="mw-100 logo-static" src="{% static "v2/images/top-bar/kudos_symbol_dark.svg" %}" alt="Bounties" height="48">
<b class="gc-megamenu-title">{% trans "Kudos" %}</b>
</a>
<p class="px-2 m-0 mb-2 text-wrap font-smaller-2">{% trans "Show appreciation for each other." %}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

None of the other descriptions have punctuation, so I think we should remove the . here

@octavioamu
Copy link
Contributor Author

All done guys!!!!

@octavioamu octavioamu merged commit 3cc5da9 into master Feb 5, 2020
@thelostone-mc thelostone-mc deleted the hack-nav branch June 27, 2020 00:49
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.

Simplify menu
4 participants