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

disable my projects filters if user not logged in #771

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

kziemianek
Copy link
Contributor

Description

If user is not logged in, my projects filters are disabled.

Checklist
  • linter status: 100% pass
  • changes don't break existing behavior
  • commit message follows commit guidelines
Affected core subsystem(s)

frontend

Testing

tested manually

Refers/Fixes

Refs: #769

@kziemianek
Copy link
Contributor Author

Alert preview:

image

@codecov
Copy link

codecov bot commented Apr 2, 2018

Codecov Report

Merging #771 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #771   +/-   ##
=======================================
  Coverage   33.94%   33.94%           
=======================================
  Files         101      101           
  Lines        5697     5697           
  Branches      667      667           
=======================================
  Hits         1934     1934           
  Misses       3686     3686           
  Partials       77       77

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 d8fcd09...9b247ae. Read the comment docs.

Copy link
Contributor

@mbeacom mbeacom left a comment

Choose a reason for hiding this comment

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

Per @PixelantDesign's comment on the source issue: #769 (comment)

Would you mind updating this to hide the My Projects filter all together if the user isn't logged in?

@mbeacom mbeacom added frontend This needs frontend expertise. waiting on contributor labels Apr 2, 2018
@@ -61,6 +61,7 @@
</div>
</div>

{% if github_handle is not False %}
Copy link
Member

Choose a reason for hiding this comment

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

{% if github_handle %} should suffice ^_^

@@ -82,6 +83,7 @@
</div>
</div>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

Could we we indent this component by 1 ?
( Cause it's within an if condition )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, my formatting tool doesnt recognize this syntax.

@thelostone-mc
Copy link
Member

Also could we squash the commits into one commit ?

@kziemianek kziemianek force-pushed the disabled_my_projects_filters branch from f5740e4 to 9b247ae Compare April 3, 2018 08:45
@kziemianek
Copy link
Contributor Author

@thelostone-mc I though commits can be squashed just before merge by GitHub.

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.

LGTM

@thelostone-mc
Copy link
Member

@mbeacom this looks good for merge 👍

@owocki owocki merged commit c88a620 into gitcoinco:master Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend This needs frontend expertise.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants