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

NavBar extended middleware #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pratyush1718
Copy link
Contributor

Tracking Info

Resolves #37

Changes

Added middleware to make general categories pull data from backend. Also added blank component template for each sub-category.

Testing

Checked dev tools to make sure data received from backend, tested admin on localhost to see frontend changes

Confirmation of Change

image
image

@pratyush1718 pratyush1718 changed the title initial commit NavBar extended middleware May 22, 2024
@Anthonyp0329 Anthonyp0329 requested review from a team, EdwardLinS and meganleongg and removed request for a team May 28, 2024 16:18
Copy link
Collaborator

@Anthonyp0329 Anthonyp0329 left a comment

Choose a reason for hiding this comment

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

Looking awesome! Just a few small changes to implement, which will be easier once Edward and Lillian's pr gets merged as well. Also, once it gets merged, make sure the All buttons for the Search and Principles dropdowns route to the appropriate pages.

}

const port = process.env.DEV_PORT || 3001;
const CATEGORIES_URL = `http://localhost:${port}/api/categories`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure to have this url pull from a .env so it works in deployment. Lillian and Edwards pr has a similar file though, maybe you can just use this one once their pr is merged

})();
}, []);

const generalPrinciples = items.filter(category => category.type === 'General Principle');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure there is a tab called 'All' at the top:
image

Copy link
Contributor

@EdwardLinS EdwardLinS left a comment

Choose a reason for hiding this comment

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

Great work Pratyush! Other than the changes that Anthony requested, everything looks clean and great!

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

Successfully merging this pull request may close these issues.

Navbar Extended
3 participants