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

Add navigation to code docs pages #44961

Merged
merged 11 commits into from
Feb 24, 2022
Merged

Conversation

bethanyaconnor
Copy link
Contributor

@bethanyaconnor bethanyaconnor commented Feb 22, 2022

Adds navigation to code docs! Creates PageContainer that adds NavigationBar to the left side of the page and the rest of the page, passed in as children to fill the rest of the page.

Screen Shot 2022-02-22 at 12 20 15 PM
Screen Shot 2022-02-22 at 12 26 55 PM

And just like on curriculumbuilder, the sections open and close when clicked

Screen.Recording.2022-02-23.at.8.31.41.AM.mov

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@bethanyaconnor bethanyaconnor changed the title Block docs navigation Add navigation to code docs pages Feb 23, 2022
@bethanyaconnor bethanyaconnor marked this pull request as ready for review February 23, 2022 16:33
@bethanyaconnor bethanyaconnor requested a review from a team as a code owner February 23, 2022 16:33
@bethanyaconnor bethanyaconnor requested a review from a team February 23, 2022 16:33
Copy link
Contributor

@tim-dot-org tim-dot-org left a comment

Choose a reason for hiding this comment

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

looks good! just a couple of minor things

import {expect} from '../../../util/reconfiguredChai';
import PageContainer from '@cdo/apps/templates/codeDocs/PageContainer';

describe('PageContainer', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this file is named "PageContainerText" instead of Test :p

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦‍♀️ I do this all the time but normally I catch it. Thanks!

currentCategoryKey
}) {
return (
<div>
Copy link
Contributor

Choose a reason for hiding this comment

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

this div could be a <></>

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.

None yet

2 participants