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

issue#17 create navbar sub-menu #37

Merged

Conversation

mtreacy002
Copy link
Member

Description

Add sub-menu so user can navigate to member's private pages under My Space

Fixes #17

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?

Checked that all functionalities that have been done so far work as expected.

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
  • New and existing unit tests pass locally with my changes

@mtreacy002 mtreacy002 requested review from meenakshi-dhanani and a team July 12, 2020 00:38
@mtreacy002 mtreacy002 self-assigned this Jul 12, 2020
@mtreacy002 mtreacy002 added Category: Coding Changes to code base or refactored code that doesn't fix a bug. Category: User Interface Improvements or additions to design. Program: GSOC Related to work completed during the Google Summer of Code Program. labels Jul 12, 2020
@mtreacy002 mtreacy002 added this to the GSoC: Coding Phase II milestone Jul 12, 2020
@mtreacy002
Copy link
Member Author

Update @anitab-org/bridgeintech-maintainers and @meenakshi-dhanani. I've ecompleted the Navbar sub-menu tasks. Can you please reeview? In the meantime I'll work on the View /user/personal_details page. Thanks

src/Routes.js Outdated
path="/my-space"
>
<MySpace />
exact path="/my-portfolio">
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we just say /portfolio /profile ? this my my doesn't sound right

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. I've removed My. Now it's only Portfolio/Profile
Screen Shot 2020-07-13 at 1 03 16 am

@@ -0,0 +1,21 @@
import React from "react";

export default function MyPortfolio() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Again I just find My My in everything unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

done. now without My

foongminwong
foongminwong previously approved these changes Jul 13, 2020
Copy link

@foongminwong foongminwong left a comment

Choose a reason for hiding this comment

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

Here's a test, looks good to me:
test-bit-pr-37

</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav">

Copy link
Contributor

Choose a reason for hiding this comment

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

why so many lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

sorry, I missed that. It's fixed now.

</Card>
</Accordion>
</Nav.Item>

Copy link
Contributor

Choose a reason for hiding this comment

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

why so many lines

Copy link
Member Author

Choose a reason for hiding this comment

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

as above 😁

<Nav.Link as={Link} to="/profile">Profile</Nav.Link>
<Nav.Link as={Link} to="/request-history">Request History</Nav.Link>
</Nav>

Copy link
Contributor

Choose a reason for hiding this comment

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

there is a closing tag and indentation. why so many lines?

Copy link
Member Author

Choose a reason for hiding this comment

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

as above 😁

<Accordion>
<Card>
<Card.Header>
<Accordion.Toggle as={Link} to="my-portfolio" eventKey="0">My Space</Accordion.Toggle>
Copy link
Contributor

Choose a reason for hiding this comment

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

are there two routes now? /portfolio and /my-portfolio?

Copy link
Member Author

Choose a reason for hiding this comment

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

nop. that's a bug. I've fixed it now. Thanks for pointing that out, @meenakshi-dhanani 😁

@mtreacy002
Copy link
Member Author

Update @meenakshi-dhanani . I've just pushed the requested changes. Can you please re-review? Thanks

@meenakshi-dhanani
Copy link
Contributor

@foongminwong can you approve again?

@foongminwong foongminwong merged commit 6d68383 into anitab-org:develop Jul 14, 2020
@mtreacy002 mtreacy002 deleted the issue#17-create-navbar-sub-menu branch September 12, 2020 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Category: User Interface Improvements or additions to design. Program: GSOC Related to work completed during the Google Summer of Code Program.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigation to sub menus
3 participants