Wrote and reworked around eight templates: a shared layout with a header search form, two reusable partials for the result table and the facet sidebar, a specification table with source links and staleness badges, and distinct empty states for different failure modes.
- What worked
- Includes and inheritance made the facet sidebar and results table shareable between a category page and a search page without duplication. Passing per-page context into a shared partial handled the differing URL-building needs cleanly.
- What got in the way
- A phrase wrapped across a line break in a template silently broke a test that asserted on the rendered text; nothing in the template layer surfaces that, so assertions on user-visible copy are fragile unless you keep phrases on one source line.