-
Notifications
You must be signed in to change notification settings - Fork 41
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
Office page template #5636
Office page template #5636
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #5636 +/- ##
===========================================
+ Coverage 75.11% 75.12% +0.01%
===========================================
Files 125 125
Lines 8136 8144 +8
Branches 650 650
===========================================
+ Hits 6111 6118 +7
- Misses 2025 2026 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@johnnyporkchops Everything looks great in dev. Just noted two things:
|
@JonellaCulmer. Correct. In the template, I'll add a class or id to the H2 (or above the H2) that matchest the office title , replacing spaces with dashes. So it would be something like
Yes, thats the idea. Since it works that way, we don't need to create another field specifically for that |
@JonellaCulmer foe anchoring to an office section, I will add a separate anchor item above the H2-title for the office section instead of on the H2 to handle cases where we leave the H2-title off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great and works as expected @johnnyporkchops, just a small edit to put the develop branch back for the deploy hook. Then I will fully approve.
tasks.py
Outdated
@@ -74,7 +74,7 @@ def _detect_space(repo, branch=None, yes=False): | |||
DEPLOY_RULES = ( | |||
('prod', _detect_prod), | |||
('stage', lambda _, branch: branch.startswith('release')), | |||
('dev', lambda _, branch: branch == 'develop'), | |||
('dev', lambda _, branch: branch == 'feature/5602-office-page-template'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update back to develop branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great! Thanks, @johnnyporkchops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @johnnyporkchops !
Summary
Office page template. Mural board of mockups for pages that will need to be built with this template
Currently deployed to dev space for testing - Mockups:
https://dev.fec.gov/about/test-office/
https://dev.fec.gov/admin/pages/12755/view_draft/
Required reviewers
One UX , one frontend
Impacted areas of the application
MODIFIED: fec/static/scss/base.scss
MODIFIED: fec/static/scss/components/_contact-items.scss
MODIFIED: fec/home/blocks.py
MODIFIED: fec/home/models.py
MODIFIED: fec/home/templates/blocks/contact-info.html
NEW: fec/static/scss/components/_fec-offices.scss
NEW: fec/home/templates/blocks/simple-document.html
NEW: fec/home/templates/home/office_page.html
NEW: fec/home/migrations/0125_officepage.py
Screenshots
How to test
remove dev deploy task before merge
npm run build-sass
Go to Wagtaill admin
Test new OfficePage template
See examples here:
Mural board of mockups
Test pages are also created on Dev, such as:
Note: The only
subpage_types
dict it was added to isAboutLandingPage
, but it works as a child of the more generic page types like ResourcePage and CustomPage because they have no dict restricting allowable subpage_types`. If we need it as a child of any of the other other pages with restrictions, we need to add it to their lists.