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

Split Leadership onto multiple pages with navigation [fix #11878] #12002

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

craigcook
Copy link
Member

@craigcook craigcook commented Aug 3, 2022

One-line summary

Breaks leadership teams onto multiple pages with sidebar navigation instead of putting them all on a single page.

Issue / Bugzilla link

#11878

Testing

http://localhost:8000/about/leadership/

To test this work:

  • Make sure correct modal opens when a headshot is clicked.
  • Make sure correct modal opens onload when the person's name is in the URL hash (find the direct link to each bio in the bio modal).
  • Run functional tests: tests/functional/test_leadership.py
  • Double-check that any links to mozorg.about.leadership have updated to mozorg.about.leadership.index

@craigcook craigcook added P2 Second level priority - Should have Needs Review Awaiting code review Review: XS Code review time: up to 30min labels Aug 3, 2022
// trigger modal on page load if hash is present and matches a person with a bio
if (window.location.hash) {
var target = document.getElementById(window.location.hash.substr(1));
Copy link
Member Author

Choose a reason for hiding this comment

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

It seems this broke semi-recently because substr is deprecated. Likely still works in older browsers but doesn't work in current Nightly. I swiped the getHash function from /products/vpn/ and I'll work on another PR to fix a few more uses of hash.substr(1) elsewhere.

@craigcook craigcook added P1 First level priority - Must have WIP 🚧 Pull request is still work in progress and removed P2 Second level priority - Should have Needs Review Awaiting code review labels Aug 4, 2022
@craigcook
Copy link
Member Author

Got a few new updates to add. Standby...

Copy link
Contributor

@nathan-barrett nathan-barrett left a comment

Choose a reason for hiding this comment

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

Initial approval - I can take a look later when the final edits are added 🏖️

@craigcook craigcook removed Do Not Merge ⚠️ WIP 🚧 Pull request is still work in progress labels Aug 10, 2022
@nathan-barrett nathan-barrett merged commit ed7d5ea into mozilla:main Aug 10, 2022
@craigcook craigcook deleted the 11878-leadership branch August 10, 2022 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 First level priority - Must have Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants