Enhancing the Mock Server: A User Interface Approach
Zalando's team built a UI on top of mirage.js so product managers and designers can switch which mocked response each API endpoint returns on a staging build, without code changes or redeploys. A React Context provider re-instantiates the mock server on demand, and the selected scenario is kept in session storage under an app-unique key so it survives the page reload that loading a new data set requires. The approach covers edge cases like stale or missing data, but it complements rather than replaces unit and contract tests, and the frontend-defined mocks must be kept in sync with the backend schema. A generalized version now ships as an internal NPM module.
Related posts
- Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready
Shopify Engineering mediumAdeptShopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite. The result is a 30% improvement in perceived load times. Statically globbed, typed route manifests replaced a runtime getRoutes function and give Search and Sidekick a single source of truth for all 1,017 routes. Remix loaders remove the code-then-data waterfall by fetching a 3.2kb loader in parallel with a 914kb component bundle, and idle-time prefetching of loaders warms an Apollo cache persisted in IndexedDB. Adding Remix actions and zod schemas lets the Sidekick AI fill and submit forms without loading UI JavaScript.
- Leveraging Testcontainers for Complex Integration Testing in Mattermost Plugins
Docker mediumAdeptMattermost replaced brittle mock-based plugin tests with Testcontainers-driven integration tests that spin up a Mattermost server, PostgreSQL on an internal Docker network, and optional API mock containers. A custom Go module exposes helpers for plugin installation, DB access, the Go API client and admin operations, while Testcontainers for Node.js pairs with Playwright for UI-level tests. The approach is used for the AI Copilot plugin (mocked LLM API) and the MS Teams plugin (mocked Microsoft Graph), giving isolated, repeatable tests where teams choose per-test or shared container lifetimes.
- How We Built The Deals Tab in Swift UI
Etsy Code as Craft mediumAdeptEtsy rebuilt its mobile Updates tab as a new Deals tab in SwiftUI inside a modular Tuist module, which made preview builds nearly instant and let the team build modules from mock preview data about two weeks before the APIs were ready. The screen is a SwiftUI List of typed API modules decoded with a Decodable-based APIv3 layer, and nested `Previews` enums supply mock models at every level. To meet the Cyber Week deadline without rewriting legacy Objective-C code, navigation, favoriting and logging are handed back to the main target through custom `@Environment` action handlers. Legacy listing cards are injected as UIViewRepresentable view builders from the UIKit hosting controller.
- Building with the OpenAI Apps SDK: A Field Guide
Render mediumAdept
OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with `_meta.openai/outputTemplate` metadata get rendered as inline React components in ChatGPT. Lessons from building a movie recommendation app (Express, TypeScript, Postgres, Valkey, Vite-bundled widgets) include keeping MCP tools portable across clients, iterating via an ngrok tunnel, and building a local widget harness with fixtures and a stubbed `window.openai.callTool()`. Opaque `424 Unhandled errors in TaskGroup` failures almost always come from response-shape mismatches, so log payloads and keep reference fixtures. The full chat loop has no built-in telemetry, so add timing instrumentation yourself.
- How we built it: incident.io Status Pages
incident.io mediumAdeptincident.io built its Status Pages product in three months on Vercel and Next.js, using Incremental Static Regeneration with per-fetch revalidate times (e.g. 30s) so the backend serves only a couple of requests per minute regardless of traffic spikes. Pages are pre-built via generateStaticParams, added on demand when created, and refreshed with stale-while-revalidate, while the client uses the SWR library with a 10s refreshInterval, revalidateOnFocus and server-rendered fallbackData for live updates. Server rendering is pinned to Vercel's Dublin region next to the API, and live-reload requests are proxied through Next rewrites. The main pain point was hydration mismatches from relative times and locale/time-zone formatting, handled with explicit luxon zones/locales and lint rules against unguarded "now".