How I work
I usually start by talking through the task with our CEO. Once I see how it fits into the app, I sometimes spot an easier way for someone to use it. I bring that up as we go. Here are a few decisions I’ve made while building things at RedLayers.
Apex Report Generator
The Word file should match the report
Say a clinician moves a section, edits it, and downloads the report. The Word file should have their saved edits in that order. The editor can keep a draft while they type. Both the report screen and the export read from the same saved report.
I also moved the Word library out of the initial page load. It loads when someone clicks Export. The first download has a bit more work to do, and everyone who just came to review a report skips that download.
Read the case studyInsulation Store Online & InsulationBee
Two stores, one frontend
I built a shared frontend for two insulation stores. One store can use a different name or description for a product. The app picks the right text for that store before it hands the product to either page. That keeps the catalog card and the product page in agreement, even when someone opens a direct link.
I kept filters, sort order, and page number in the URL. If someone sends you a link to page three of a filtered catalog, you can open it and see the same view.
Read the case studyHow I review AI code
I use Codex, Cursor, and ChatGPT to get familiar with a part of the code, try a fix, or work through a refactor. When I review a change, I follow it through the app. For the report export, that means checking which report the button hands to Word and what happens if someone clicks twice. I try the behavior myself before I decide what to commit.
What I test and write down
On this site, two quick clicks on the theme button should take you back to the theme you started with. The second click can happen while the cats are still crossing the screen. The code saves the new preference right away, so the next click can read it. There’s a test for those two clicks and a comment that explains why the timing matters.
Read the theme switch test excerpt
first.switchTheme()
assert.equal(color.preference, "light")
assert.equal(second.transitionDirection.value, "to-light")
second.switchTheme()
assert.equal(color.preference, "dark")
assert.equal(first.transitionDirection.value, "to-dark")