Dev.to WebDev 🛠 Dev 👁 0 📖 1 min read

Model a handover date without inventing a cure time

Total Epoxy Care describes garage epoxy systems and diamond grinding. AutoTech’s epoxy floor-coating FAQ gives product-specific guidance on curing and vehicle use. The form can capture an initial brief while leaving the

Total Epoxy Care describes garage epoxy systems and diamond grinding. AutoTech’s epoxy floor-coating FAQ gives product-specific guidance on curing and vehicle use. The form can capture an initial brief while leaving the site-specific decision for whoever assesses the job.

What the planner does today

The epoxy schema in flows.ts captures a desired project timing label. It contains no product data sheet or vehicle-return schedule. 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 epoxy planner to compare the interface to the source.

A proposed data model with a small test

A deadline for booking the job and permission to drive onto the new floor come from different actors. A planner that later adds a handover view should leave vehicle access pending until an installer supplies an instruction. 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 vehicleAccess = release => release?.installerConfirmed === true ? release.date : null;
assert.equal(vehicleAccess({ date: '2026-12-03' }), null);
assert.equal(vehicleAccess({ installerConfirmed: true, date: '2026-12-03' }), '2026-12-03');

What to check in the browser

Choose the fastest epoxy project timing and finish the preview. No date for vehicle access should be derived from that selection. 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.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.