Scenario
A publisher has moved its homepage to a small frontend backed by the WordPress REST API. The redesign is online, but the editorial rules did not survive the move: drafts and scheduled posts appear publicly, sticky posts are misplaced, and the category and page controls return the wrong articles.
The workspace starts the site on port 8080 before the assessment begins. Open the preview to inspect it.
Your task
Repair the publishing, ordering, filtering, and pagination behavior in src/site.js. You may also adjust src/styles.css, but appearance is not scored.
Use **Run tests** in the workspace. From the terminal, run:
text node --test --test-reporter=spec /opt/signal/public-tests/homepage.test.js
Public tests demonstrate the main publication and navigation rules. Hidden tests use different WordPress payloads and cover boundary cases.