Represent outlet verification independently of tank replacement
Hilton Plumbing describes Perth hot-water system supply and installation. WA Building and Energy’s heated-water delivery bulletin sets out applicable heated-water delivery temperature requirements and distinguishes relev
Hilton Plumbing describes Perth hot-water system supply and installation. WA Building and Energy’s heated-water delivery bulletin sets out applicable heated-water delivery temperature requirements and distinguishes relevant outlets. The form can capture an initial brief while leaving the site-specific decision for whoever assesses the job.
What the planner does today
The hot-water questions in flows.ts capture project intent, existing equipment and household. They do not inspect the supply path to individual outlets. The shared script in frontend/src/scripts/project-flow.ts keeps answers in a map and builds summary rows from the selected labels. The six-step layout is declared in frontend/src/components/ProjectFlow.astro. You can inspect the Perth Quotes hot water planner to compare the interface to the source.
A proposed data model with a small test
A later project record needs separate observations about outlets. Recording that a detached bathroom exists must not transition that bathroom to verified. The following self-contained example uses illustrative values only. Save the block as example.cjs and run node example.cjs.
const assert = require('node:assert/strict');
const pending = outlets => outlets.filter(outlet => outlet.verification !== 'verified');
assert.deepEqual(pending([{ name: 'main', verification: 'verified' }, { name: 'studio' }]), [{ name: 'studio' }]);
What to check in the browser
Select replacement on the hot-water planner. The resulting brief should describe replacement intent without implying that any outlet has been checked. This is a manual test design. The isolated Node example passed its assertions when executed locally for this draft. The browser interaction above was specified and has not been executed as part of this editorial run.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.