chore: Update scaffold project#34
Merged
Merged
Conversation
Added queries and fragments Added styling Added front page resources Added styling and excerpts, images to the archive template
…hat post author isn't on every sample blog post from the Faust example.
…tc into the style directory
…etch the data server side.
theodesp
previously approved these changes
May 19, 2025
moonmeister
suggested changes
May 19, 2025
| return <>Loading...</>; | ||
| } | ||
|
|
||
| const siteDataQuery = useFaustQuery(SITE_DATA_QUERY) || {}; |
ahuseyn
reviewed
May 20, 2025
Member
|
@colinmurphy also try this:
|
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Member
Author
|
Thanks @moonmeister and @ahuseyn for some really good feedback. @ahuseyn I can replicate the same issue so will try and fix this too 👍 I will let ye know once this is ready for review. |
Member
Author
|
@moonmeister @ahuseyn This is ready for re-review. Thanks again for all the feedback on the PR ❤️ |
ahuseyn
reviewed
May 21, 2025
Member
|
@colinmurphy I've added some suggestions to the TS scaffold, which could be applied here too. |
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Co-authored-by: Huseyn Aghayev <husen.agaev@gmail.com>
Member
Author
|
Thanks @ahuseyn I have committed those suggestions and I will apply those to the other PR too so this is ready for another review :) Thanks again for reviewing this ❤️ |
chore: change component filenames to PascalCase
ahuseyn
approved these changes
May 26, 2025
moonmeister
approved these changes
Jun 2, 2025
pjdavila
pushed a commit
to pjdavila/wp-headless
that referenced
this pull request
Apr 13, 2026
WordPress categories were reorganized with a parent "News" category.
All existing categories are now children of News, URIs changed to
include /news/, "Crypto" was added, "Marketing" removed (no posts).
Changes made:
1. queries/MenuQueries.js:
- Added parentId and children { nodes { name slug uri } } to
categories query for hierarchy support
2. components/Header.js:
- Added buildNavItems() to construct hierarchical nav from flat
categories (separates top-level from children)
- Desktop nav: "News" shows as dropdown with hover-activated submenu
listing all child categories (Business, Crypto, Economy, etc.)
- Mobile drawer: "News" renders as expandable accordion with toggle
button and indented subcategory links
- Added ChevronIcon component for dropdown indicators
- Updated Header.fragments to include parentId and children
3. styles/header.module.css:
- Added .navItem (relative positioning for submenu)
- Added .navSubmenu (absolutely-positioned dropdown panel)
- Added .navSubmenuLink styles
- Added hover-triggered show/hide for desktop submenu
- Added .drawerGroup, .drawerGroupToggle, .drawerSublinks,
.drawerSublink for mobile accordion
- Added .chevron and .chevronOpen for rotation animation
4. wp-templates/front-page.js:
- Updated all CATEGORY_MAP URIs with /news/ prefix
- Replaced marketing query/key with crypto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Goal
To update the scaffold templates with best practices and better resources to meet developers where they are at and give them a better start when beginning headless WordPress
Note
See README for screenshots - https://github.com/wpengine/faust-scaffold/blob/3a92bd181d5300fc8f531e177ef5af4cee8803cc/README.md
Overview of changes
README
Multiple Queries
Updated links
Added category link to the header
Added links to the front page
Allowed faustexample.wpengine.com for images
Refactored archive page
Added copyright to the footer
Setup prettier and linting
Added footer menu with links
Update README with structure of the project
Screenshots for the README
File Structure for the README