layout | title |
---|---|
test |
Gutenberg Sidebar |
The purpose of this exercise is for us to get a sense of how you would approach designing and implementing a simple WordPress integration before the next interview. We're avoiding tricky algorithmic tests in favor of something that shows us how you approach problems and organise a codebase, via some of our actual product requirements.
There is no time limit for this test, but we expect most applicants to complete the requirements in roughly 3-4 hours.
If you make any assumptions about requirements, or use any online resources to solve a problem, please make note of these in your code comments.
Your solution will be evaluated internally by your potential co-workers. You should expect a response from us within two business days.
As an editor or journalist
I can access advertising features in a single location
So I can easily find all advertising-related settings
- In the Gutenberg/Block Editor, a new custom panel is visible in the sidebar for the standard "post" type
- The custom panel title is "Advertising Settings"
- Three fields appear in the custom panel, their requirements are outlined below
- These fields should be disabled while post is being saved/updated/published
- Label: "Advertisements"
- Type: Toggle control
- Default: On
- Label: "Commercial content type"
- Type: Radio control
- Options: "None", "Sponsored content", "Partnered content" and "Brought to you by"
- Default: "None"
- Label: "Advertiser name"
- Type: Text control
- Visibility: The advertiser name field is hidden while "None" is the selected commercial content type
The following tasks are not required, but nice to have:
- Test WordPress environment to be hosted and publicly accessible (with username/password)
- Local environment is ideally run via Docker
- Frontend code is ideally Typescript
- Code has unit and/or functional tests
All acceptance criteria should be met (to the best of your ability and time available). A link to your repo should be sent to: amp HYPHEN tech HYPHEN test HYPHEN submissions HYPHEN group AT fairfaxmedia DOT com DOT au