Back to Field Notes
Log

Mock dashboards, and one line that broke the contact form until August

One Sunday sitting: ERP module pages, five mock dashboards of product screens that didn't exist, and the Cloud SQL claim taken off the site. A one-line change to the lead form that afternoon made every contact-form submission fail until August 17.

Covers
Written
Repositories
infinary.io
Reading time
2 min
#marketing-site#cloudflare
Contents

What we built

All of this week’s work happened on Sunday, April 26: 13 commits between 11:59 and 17:05.

  • A services page, and an ERP modules hub with eight module pages (accounting, assets, CRM, helpdesk, HR, inventory, manufacturing and project management), wired into a new “Platform” mega menu.
  • Five mock dashboards, built in SVG and CSS and embedded across the capabilities, IT management, security and services pages: an ERP core screen, an AI pipeline, a device-management console, a security operations dashboard and an agent orchestration view. The commit describes them as mockups “for demos and documentation”. None of them showed a screen that existed.
  • The navigation, footer and 404 page reworked around the new structure. The site went from 39 page files to 49.
  • Third-party scripts moved to Partytown, which runs them in a web worker, and the API address for the lead form exposed to the browser through Astro’s typed environment variables.

What we got wrong

The database. One commit, titled “Remove CloudSQL”, changed seven files that had promised Cloud SQL (“Cloud SQL Postgres” in one place, “Managed MariaDB / Cloud SQL” in another) to say “MariaDB VPC” instead. Frappe needs MariaDB, and Cloud SQL doesn’t offer it. When we built a real instance in June, the database became MariaDB on the instance’s own encrypted disk, and the architecture document was corrected to match.

The mock screens. They made the site look further along than the product was, and they joined an older one: a made-up cloud-console admin panel, added on April 12, that didn’t match the customer portal we later built. That panel was replaced in June by copies of the real customer portal’s screens, and fake terminal widgets came off the homepage in July.

The contact form. This is the expensive one, and we didn’t find it until August 17. The change that wired up the API address imported it in the form component’s frontmatter, the server-side part of an Astro component, with import { PUBLIC_API_URL } from 'astro:env/client'. It then used the name in the component’s client-side script block:

src/components/LeadCaptureForm.astro (script block, April 26)
const apiUrl = `${PUBLIC_API_URL}/leads`;

From April 26 until the August fix, every submission through that form failed this way. And had it not thrown, it still wouldn’t have reached anyone: the API address was empty in the live build, which we found the same night in August.

Partytown didn’t last either: in August it was crashing in its worker on Cloudflare, and we went back to loading Google Analytics with a plain async tag.

What we’d tell someone else

Exercise a form end to end on the deployed site, with the request watched in the browser’s network tab, not only in a build. A form that fails in the browser and recovers gracefully looks exactly like a form nobody has used yet.

After this Sunday the repository was quiet for seven weeks.