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

UI: Created Navbar Component #230

Merged
merged 13 commits into from
Jun 25, 2021
Merged

UI: Created Navbar Component #230

merged 13 commits into from
Jun 25, 2021

Conversation

stableapple
Copy link
Contributor

@stableapple stableapple commented Apr 16, 2021

Description

Added Navbar Component

Fixes #208

Type of Change:

  • Code
  • User Interface

Code/Quality Assurance Only

  • New feature (non-breaking change which adds functionality pre-approved by mentors)

How Has This Been Tested?

ezgif com-gif-maker (4)

Checklist:

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials

Code/Quality Assurance Only

  • My changes generate no new warnings

@codesankalp codesankalp added Open Source Hack Status: Needs Review PR needs an additional review or a maintainer's review. labels Apr 16, 2021
Copy link
Member

@decon-harsh decon-harsh left a comment

Choose a reason for hiding this comment

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

@stableapple According to the mocks there should be Blogs after FAQs, also Contact should be Contact Us.

src/Navigation.js Outdated Show resolved Hide resolved
@devkapilbansal devkapilbansal added Status: Changes Requested Changes are required to be done by the PR author. and removed Status: Needs Review PR needs an additional review or a maintainer's review. labels Apr 17, 2021
Copy link
Contributor

@shades-7 shades-7 left a comment

Choose a reason for hiding this comment

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

It will be better if you will add a new gif in your PR with all the changes you have made.

src/Navigation.js Outdated Show resolved Hide resolved
src/Navigation.js Outdated Show resolved Hide resolved
@devkapilbansal devkapilbansal added Status: Needs Review PR needs an additional review or a maintainer's review. and removed Status: Changes Requested Changes are required to be done by the PR author. labels Apr 23, 2021
src/Navigation.js Outdated Show resolved Hide resolved
<li className="li_signIn">Sign In</li>
</Link>
<Link to="/" className="li">
<li className="active" >Sign Up</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

hello, I guess you have applied to the Active class only to Sign UP. I believe all the list elements in nav will have that active class on hover.
Apart from that things look good to me.
BITtesting
Am I right @Rahulm2310 @mtreacy002 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@shades-7 not sure about it. @VectoTec @Vuyanzi can you please tell what's the expected behaviour.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shades-7 According to the Figma file, a blue line appears upon hover. Active class is for the blue background of the signup button.

Copy link
Member

Choose a reason for hiding this comment

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

Here you can link to the existing Register page until we have the new Sign Up page created so not to block the contributor to access the Register feature.

@Rahulm2310
Copy link
Contributor

@stableapple your design has a light blue bar on the top of navbar.
navbar-error-bit
It is not present in the original navbar design.
image

src/Nav.css Outdated Show resolved Hide resolved
src/Nav.css Outdated Show resolved Hide resolved
@Rahulm2310 Rahulm2310 added Status: Changes Requested Changes are required to be done by the PR author. and removed Status: Needs Review PR needs an additional review or a maintainer's review. labels Apr 26, 2021
src/Nav.css Outdated Show resolved Hide resolved
@mtreacy002 mtreacy002 requested a review from Rahulm2310 April 27, 2021 04:56
@mtreacy002 mtreacy002 added Status: Needs Review PR needs an additional review or a maintainer's review. and removed Status: Changes Requested Changes are required to be done by the PR author. labels Apr 27, 2021
@Rahulm2310
Copy link
Contributor

As we don't have the designs for smaller screens, can't say about the hamburger button and the nav. @stableapple Can you please show the behaviour(toggling) of nav on smaller screens(mobile) in a GIF.

@stableapple
Copy link
Contributor Author

ezgif com-gif-maker (5)
I was facing some issues with the toggling of the navbar. I resolved it. But I still couldn't figure out the shifting of the hamburger icon when clicked.

@Vuyanzi
Copy link

Vuyanzi commented May 5, 2021

@mtreacy002 which section should I review exactly?

1 similar comment
@Vuyanzi
Copy link

Vuyanzi commented May 5, 2021

@mtreacy002 which section should I review exactly?

@mtreacy002
Copy link
Member

mtreacy002 commented May 5, 2021

@Vuyanzi, just want to confirm the design done here is as expected. The Figma did show the different colour styles. But I'm curious to few things:

  • whether the Sign Up tab is going to have a permanent blue solid background regardless of the active page
  • whether the Sign In tab is going to have a permanent blue colour font regardless of the active page
  • at the moment, on hover the tab will change to have blue underline, how are we going to show which page the user is currently at (active tab)?

@isabelcosta isabelcosta changed the base branch from develop to homepage-navigation May 23, 2021 11:51
@isabelcosta isabelcosta changed the base branch from homepage-navigation to develop May 23, 2021 11:56
Copy link
Member

@mtreacy002 mtreacy002 left a comment

Choose a reason for hiding this comment

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

@stableapple , sorry for taking a while to give my feedback. This is because I'm waiting for the sidebar to be created first or at least in progress, since otherwise contributors access to the existing features (upon login) will be blocked. Now that we have #254 in progress, hopefully we can avoid the blockage if we can finish this pr and #254 around the same time. Hope this make sense. I really appreciate your patience ❤️ .
On this point, please check my comments below 😉.

src/Navigation.js Show resolved Hide resolved
src/Navigation.js Show resolved Hide resolved
src/Navigation.js Show resolved Hide resolved
<Nav className="ml-auto">

<Link to="/" className="li">
<li >About Us</li>
Copy link
Member

Choose a reason for hiding this comment

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

This later can be linked to the video section (UI not completed yet, so no changes needed here 😉)

Copy link
Member

Choose a reason for hiding this comment

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

Screen Shot 2021-06-17 at 11 35 55 pm

<Link to="/" className="li">
<li >About Us</li>
</Link>
<Link to="/" className="li">
Copy link
Member

@mtreacy002 mtreacy002 Jun 17, 2021

Choose a reason for hiding this comment

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

Based on Figma, this later can be linked to the Why BridgeInTech section (pr #247 is still in progress). No changes needed atm.
Screen Shot 2021-06-17 at 11 33 12 pm

src/Navigation.js Show resolved Hide resolved
src/Navigation.js Show resolved Hide resolved
src/Navigation.js Outdated Show resolved Hide resolved
<li className="li_signIn">Sign In</li>
</Link>
<Link to="/" className="li">
<li className="active" >Sign Up</li>
Copy link
Member

Choose a reason for hiding this comment

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

Here you can link to the existing Register page until we have the new Sign Up page created so not to block the contributor to access the Register feature.

<Nav.Item>
<Card>
<Card.Header>
<Accordion.Toggle as={Link} to="/" eventKey="0" onClick={logout}>Logout</Accordion.Toggle>
Copy link
Member

Choose a reason for hiding this comment

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

Make sure this Logout option is shown for users who have successfully logged-in (instead of Sign In and Sign Up buttons).

@mtreacy002 mtreacy002 added Status: Changes Requested Changes are required to be done by the PR author. and removed Status: Needs Review PR needs an additional review or a maintainer's review. labels Jun 17, 2021
@mtreacy002
Copy link
Member

Also, @stableapple . I've just asked @Vuyanzi on Zulip about the sequence of the main nav menus. Please don't hesitate to share with us your thoughts by replying to that post on the zulip channel 😉

@stableapple
Copy link
Contributor Author

Should I implement the functionality around login and register in the current design or is there a separate design for it?

Copy link
Member

@mtreacy002 mtreacy002 left a comment

Choose a reason for hiding this comment

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

@stableapple , thank you for adding the routes to the sections that have already completed. About the Sign In and Sign Up designs, for now you can just link these menu items to the existing login and register pages. This is so at least the contributors can access the existing features of Login/Register and continue with the development. Later when the Sign In and Sign Up prs #248 #249 are completed, we can refactor the pages to the new designs.

src/Navigation.js Show resolved Hide resolved
mtreacy002
mtreacy002 previously approved these changes Jun 20, 2021
Copy link
Member

@mtreacy002 mtreacy002 left a comment

Choose a reason for hiding this comment

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

Thank you for accommodating to the changes requested, @stableapple. This looks good to me. The Login/Register and Logout features are now functioning as normal. I've also tested this on my local device and here's the outcome:

  1. Code review: done
  2. Tested on all possible behaviours

Expected behaviours:

  • Most of the menu items (not including Sign In/Sign Up) are linked to the relevant sections of the homepage (these menus are: FAQs, Blogs, Contact Us).
  • Sign In tab is linked to the Login page
  • Sign Up tab is linked to the Register page
  • user can sign in to existing account/register a new account
  • when user sign in the Sign In/Sign Up tabs are replaced by Logout tab

Actual behaviours: as expected (see gif below)
ezgif com-gif-maker (60)
ezgif com-gif-maker (61)

  1. Environment:
    OS: MacOS BigSur
    Browser: Microsoft Edge

Thank you again for your patience and contribution 🎉🎉🎉. Now we just need one more reviewer to approve this then we'll merge it 😉. Perhaps @Rahulm2310 or @vj-codes can help?

@mtreacy002 mtreacy002 dismissed their stale review June 20, 2021 13:09

test failing with unused var as the cause

Copy link
Member

@mtreacy002 mtreacy002 left a comment

Choose a reason for hiding this comment

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

Sorry, I overlooked the testing that failed. Please remove user from the AuthContext call then it should fix the test. Thanks

src/Navigation.js Outdated Show resolved Hide resolved
src/Navigation.js Outdated Show resolved Hide resolved
Copy link
Member

@mtreacy002 mtreacy002 left a comment

Choose a reason for hiding this comment

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

LGTM @stableapple 🎉🎉🎉.

@mtreacy002 mtreacy002 requested review from Rahulm2310 and removed request for Rahulm2310 June 20, 2021 14:02
@mtreacy002 mtreacy002 added Status: Needs Review PR needs an additional review or a maintainer's review. and removed Status: Changes Requested Changes are required to be done by the PR author. labels Jun 21, 2021
@mtreacy002 mtreacy002 merged commit 334ba9b into anitab-org:develop Jun 25, 2021
@Rahulm2310
Copy link
Contributor

Sorry, I was unable to review it. Anyway, great work @stableapple @mtreacy002 🎉 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Open Source Hack Status: Needs Review PR needs an additional review or a maintainer's review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Develop Top Navigation
8 participants