Back to blog
EngineeringNov 4, 2026· min read

When Your Carousel Becomes Its Own Module

We extracted the Proof Beats slideshow into an isolated module with content-hash verification. Here's why treating UI components like versioned dependencies changes how content drift gets caught.

Two weeks ago we shipped the design gate for the Proof Beats carousel—1,919 lines of design artifacts before any implementation code. Now the implementation is live, and it's structured differently than the other components on the site.

The Proof Beats slideshow is now an isolated, versioned module. It has its own directory structure, its own content hash file, and its own verification script. The host component that renders it on the homepage imports it like you'd import a package dependency.

Why Extract It?

Carousels are weird. They're half content, half component. The markup changes when you add a new beat. The styles change when you adjust spacing. The behavior changes when you add animations. It's not clear where "configuration" ends and "implementation" begins.

When you mix content and code in the same file, content drift becomes invisible. Someone edits a beat title. Someone tweaks the layout. Someone adjusts the animation timing. Each change is legitimate on its own, but together they can drift away from the design spec without anyone noticing.

The Content Hash Guard

The module ships with a CONTENT_HASH file and a verification script. When you change anything inside the Proof Beats module—a beat title, an image path, a CSS class—the hash changes. The test suite catches the mismatch.

This isn't about preventing changes. It's about making changes visible. If you edit the slideshow content, the hash verification fails, and you have to acknowledge the change by regenerating the hash. It's a forcing function. You can't drift accidentally.

The .gitattributes Detail

One of the changed files was .gitattributes. We added a pattern to treat the CONTENT_HASH file as binary. This prevents Git from trying to merge it during conflict resolution. If two branches both change the slideshow content, the hash file will conflict, and you'll be forced to regenerate it after merging. Another forcing function.

The Host Component

The homepage doesn't render the slideshow directly anymore. It renders a host component that imports the versioned module. The host is thin—just enough glue to position the slideshow in the page layout. The slideshow itself is fully encapsulated.

This separation means you can test the slideshow in isolation. The test file proof-beats-host.test.tsx verifies the module loads, the content hash matches, and the host integration works. If the module breaks, the test catches it before the homepage does.

What's Next

The versioned module pattern is now proven. We'll use it for other content-heavy components—testimonials, feature grids, pricing tables. Anywhere content and code mix, a content hash can make drift visible.

The Proof Beats slideshow is still just a scaffold. The design spec from PR #86 defined the layout, transitions, and interaction patterns. Now we'll populate it with real beats—the actual proof points customers need to see. But the infrastructure to prevent content drift is in place first.