Skip to content
This repository has been archived by the owner on Apr 26, 2019. It is now read-only.

Add warning icon when user profile is incomplete #374

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

vitvly
Copy link

@vitvly vitvly commented Mar 26, 2018

Fixes #352

Following changes are made:

  1. Update user profile data each minute (along with bounty/activity data)
  2. Check whether Ethereum address is set, and whether user has any associated repos (can be dismissed if user profile is contributor-only). Display a warning icon next to profile picture if any of the former is false.
  3. Store boolean dismiss flag along with is_hidden_in_hunters flag in a opts JSONB field.

Status: Done

@churik
Copy link
Member

churik commented Apr 6, 2018

1. All links on SOB redirect to landing page

Steps:

Actual result:

no redirect to Open bounties

Expected result:

Open bounties is opened

Video: http://take.ms/sTY0j
OS: Mac OS High Sierra
Browser: Chrome 64

Status Open Bounty
Monosnap screenshot tool
Monosnap — the best tool to take & share your screenshots.

@vitvly
Copy link
Author

vitvly commented Apr 6, 2018

Tracking it down.

@martinklepsch
Copy link
Contributor

@siphiuel not entirely sure but could be CircleCI is failing because this isn't rebased against master?

repo-count (rf/subscribe [:get-in [:user :repo_count]])
hide-address-warning (rf/subscribe [:get-in [:user :hide_address_warning]])
hide-gh-repos-warning (rf/subscribe [:get-in [:user :hide_gh_repos_warning]])
warning-open? (rf/subscribe [:warning-open?])]
Copy link
Contributor

Choose a reason for hiding this comment

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

These :get-in subscriptions can lead to problems should we ever change the structure of our app-db. Not a big deal for now but worth keeping in mind. Suggestions: Have a :user subscription that returns full user map.

[:div [:input {:type "checkbox"
:id :hide-warning
:on-change on-change-fn}]
[:label {:for :hide-warning} "Do not show this again"]]])])))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice one on using for 👍

@vitvly
Copy link
Author

vitvly commented Apr 10, 2018

@martinklepsch Regarding CircleCI - yes, the branch still does not contain generated Java contracts.

@churik
Copy link
Member

churik commented Apr 11, 2018

@siphiuel 404 - page not found after deployment on testing env
404_not

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants