Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

[$40] - Several fixes related to Join / Log In buttons in the top menu #940

Closed
birdofpreyru opened this issue Jan 23, 2017 · 8 comments · Fixed by #945 · May be fixed by topcoder-archive/appirio_tech-webpack-config#30
Closed
Assignees

Comments

@birdofpreyru
Copy link
Collaborator

Log out of TopCoder, and open a challenge details page (e.g. https://www.topcoder.com/challenge-details/30056183/?type=develop). When the window is wide you see such header:
tmp-1
Note that both JOIN and LOG IN buttons do redirect to the same login page. Correct the JOIN button to redirect to the proper endpoint page (https://accounts.topcoder.com/member/registration).
Now, check the same page in a narrow window:
tmp-2
You'll see that JOIN button is present, but differs in style from the wide-screen view, and is not functional, while the LOG IN button is missing. We should have here the same styled and functional buttons, as in the wide-screen view.

In case the header code is not found in this repo, then it should be here: https://github.com/appirio-tech/tc-site

@shubhendusaurabh
Copy link
Contributor

@birdofpreyru please assign this to me. Thansk

@birdofpreyru
Copy link
Collaborator Author

@shubhendusaurabh OK.

@shubhendusaurabh
Copy link
Contributor

@birdofpreyru The login and register buttons actually hide under the dropdown in responsive mode. The login link appearing is extraneous.
buttons

So expected fix for this would be to hide it and correct the endpoint for join button?

@birdofpreyru
Copy link
Collaborator Author

@shubhendusaurabh Let's duplicate these buttons for now. I.e. those in the dropdown menu should remain and function as they do now, and you still add to the corner of the top menu these buttons looking and functioning similarly to how they do in the widescreen mode.

@birdofpreyru
Copy link
Collaborator Author

@shubhendusaurabh OK. What you have done looks fine, but needs one additional thing: similar changes should be done in this repo: https://github.com/appirio-tech/tc-site which hosts the code for challenge listings and challenge details pages. It has its own copy of the header menu, which also should be corrected accordingly. Just add you changes in there, and we'll be done with this.

birdofpreyru added a commit that referenced this issue Jan 24, 2017
@birdofpreyru birdofpreyru reopened this Jan 24, 2017
@shubhendusaurabh
Copy link
Contributor

@birdofpreyru
Copy link
Collaborator Author

@shubhendusaurabh Can you further look into how this works in tc-site repo?

Your changes there looks to me like a movement in the right direction, but when I run that code locally, in the narrow screen view, the Join button does not work. The Log in button in the narrow screen mode, and both Join and Log in buttons in the wide screen mode do work, but they redirect to some other Login/Register pages (I guess, those are old, and not functional anymore). The reason for that is that they call not that version of vm.login() you have modified, but another one, defined in tc-site/wp/wp-content/themes/tcs-responsive/footer.php. I'd like you look further into that mess to understand, how it all works, and to fix it that it all works as it should. I'll bump the payment on this ticket.

P.S.: Are you testing with the locally deployed version of tc-site? If not, I believe, you really should. Though that Vagrant environment to run it locally, needs slight modifications to run, so if you have problems with that - just ask!

@birdofpreyru birdofpreyru changed the title [$20] - Several fixes related to Join / Log In buttons in the top menu [$40] - Several fixes related to Join / Log In buttons in the top menu Jan 25, 2017
@shubhendusaurabh
Copy link
Contributor

@birdofpreyru I have updated my PR. Thanks for the help, I have made the changes as per your info.
Challenge details page uses the HTML version while rest of the pages use PHP version, so this fix should work now.
I had a previous vagrant setup, so I am using that. :)

vikasrohit pushed a commit that referenced this issue Jan 27, 2017
* dev:
  updated display name
  updated cognitive description
  test changing react-components version in package.json
  fix issue 947
  Replace URL %20 to dash
  Fix #905
  fixes #940 top menu login/join buttons
  fixed #904 added check for copilot
  Update CAB members on the Community Overview page

Conflicts:
	app/settings/email/email.controller.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants