Back to JetBrains

From Design to Shipped: React Meetup | JetBrains, Callstack, Expo, Chromatic

JetBrainsNovember 24, 20261h 30m
Topics55
Meetup Introduction0:00Speaker Introduction1:33Talk Titles4:01Speaker Background5:03AI Model Experiment Overview5:33Context: Token Limitations9:02The Figma Design Challenge10:30Figma MCP Integration12:31Verification Prompt with Agent Device13:01Screenshot Diff Methodology14:01Results: Frontier Models15:31Results: Cheap Models Without Verification Loop16:31Results: Cheap Models With Verification Loop17:00The Iteration Loop Process17:30Quantitative Results19:04Cost Analysis20:02Key Finding21:00Why Cheap Models Improve More With Loops22:02Diminishing Returns in Iteration23:30End-to-End Testing Discovery25:01E2E Testing Library26:02Writing E2E Tests27:30Attempts to Improve Luna Performance29:33Design System Recommendation31:03Code Maintainability and Quality Tools32:00Dependency Graphs and Codebase Visualization34:26Architecture Guards and Decision Records35:02Mutation Testing Explained36:00Performance Testing and Benchmarks37:32Takeaways: Context and Code Quality38:32Craig Walker Introduction41:00Survey Statistics and Developer Behavior46:00Casper and Storybook for Agents49:32Storybook Testing and Agent Integration52:00Headless CLI and IDE Integration54:00Verification and IDE Role56:32Figma Integration in WebStorm58:01Figma MCP Integration and Design Context1:00:11Chrome DevTools CLI Integration1:01:00AI Chat Functionality Release1:02:00Storybook MCP Integration and Review Flow1:02:30Embedded Browser and Visual Verification1:04:01Web Review Annotation System1:05:01WebStorm Development and Future Direction1:07:01Expo Mobile Development with Agents1:08:30Traditional Development Loop Transformation1:09:00Resource Constraints with Multiple Simulators1:11:30EV Charging Map Demo Project1:13:01Agent Simulator Competition Scenario1:16:01Cloud-Based Simulator Solution1:22:30Limitations of Linux VM Approaches1:24:03Cloud Simulator Integration Demo1:25:30Self-Improving Mobile Development Loop1:27:31Mobile Development Workflow with In-App Updates1:29:24Closing Remarks1:29:52
In a Nutshell

Agents using frontier models like Claude Sonnet can iterate on Figma designs to production-ready React Native code by combining screenshot diff verification (<2-3% target) with end-to-end behavioral testing, achieving 90%+ visual accuracy when using design systems. Cheap models like Luna reach 6-7% diff accuracy with iteration loops—matching frontier model results at 4x lower cost—but require separate visual and behavioral verification since pixels alone miss bugs like missing keyboards. Expo's cloud simulators and Storybook/WebStorm integrations provide the headless verification infrastructure needed to scale agent workflows beyond local resource constraints.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

This is a mobile app development meetup featuring speakers from Callstack, JetBrains, Expo, and Chromatic. The event focuses on building apps with new methods and infrastructure changes. Approximately the majority of attendees are building mobile apps while others are building web apps. The speaker notes that learnings from the mobile-focused talks should transfer across domains, and web developers can transition to mobile development using technologies like Expo or React Native.

Mihawa is a principal engineer at Callstack on the R&D team working primarily on open source projects. His current focus includes Apex, a coding model fine-tuned for React Native, and Device (an open source tool). The planned agenda includes talks from Mihawa, Kristoff (backup speaker), Craig, and Casper from JetBrains/Chromatic on Storybook integration with WebStorm.

Pizza is scheduled for 7:00 p.m. The speaker proposes an open mic session where attendees can share exciting projects, workflows, or animations. Networking will occur during pizza and drinks.

The three main talks are:

  • From Design to Done
  • Build, Verify, Ship Apps by Anyone, Anywhere
  • Agents Didn't Kill the UI Developer Workflow, They Changed It

This is the speaker's first time in Amsterdam city (previously only through the airport). As a mobile developer who has built multiple apps, the speaker now focuses on building tools for other developers to increase productivity. The speaker acknowledges the difficulty of inventing truly unique or innovative solutions.

The speaker shares recent experiments converting Figma designs to code using AI models. The experiment compared results using a cheap model versus frontier models. Attendees were polled about OpenAI Codex subscriptions and Claude usage.

The original plan was to discuss Apex (Callstack's React/React Native fine-tuned model priced per million tokens), but a regression caused excessive token usage and overthinking. The speaker instead benchmarked accessible models: GPT-4o, Sonnet, and Luna.

The speaker describes running out of tokens on Tree Code subscriptions after running agents overnight. In this situation, alternatives include coding by hand, purchasing another subscription, or using a cheap model creatively.

The test case was a two-year-old WhatsApp design from Figma (pre-liquid glass iOS design). This presented an extra challenge because models were instructed to use native libraries and native APIs, requiring them to reimplement icons, images, and other elements rather than relying on pre-built components.

The task was to implement three screens (chat, conversation, calls) with simple instructions. The speaker posed the question of merge criteria: when would you merge an agent-implemented change? The answer involves matching functionality to design, ensuring interactions work (taps, scrolls, gestures), and maintaining code quality rather than accepting AI-generated slop.

Figma MCP (or connector) allows connecting Figma to any harness, model, or agent. The first prompt instructed models to implement the three screens using Figma MCP.

The second prompt added verification instructions: use Agent Device (a tool that enables agents to understand screen states and interact with simulators efficiently) to iterate until achieving a screenshot diff under 2%. Under 2% indicates very similar visual output.

Three models were tested via Open Code harness: GPT-4o, Luna, and Sonnet.

Agent Device provides screenshot diff functionality. The speaker fixed an issue where the tool expected equal width and height of screenshots. Agents can request diff information, which normalizes screenshots and provides a fixed threshold. Agents can inspect the diff image itself, not just the numeric percentage.

The speaker notes that certain design elements (like status bars) may need different constraints since they vary between iOS versions.

Visual comparison shows red areas indicating differences and white/gray areas showing no differences. Slight font rendering variations may result from design versus simulator iOS versions.

  • Sonnet achieved approximately 4% diff
  • Sonnet in Open Code harness performed even better
  • With improved looping instructions, models achieved better results

Cheap models without screenshot verification instructions achieved approximately 12% diff at best, typically ranging from 18-36%.

When instructed to loop and iterate until under 2% screenshot diff, cheap models achieved significantly closer results to the reference designs.

The loop consists of implementation phase, running, comparing, and correcting. Models either determine sufficiency based on instructions/goals or hit a time limit. Agent Device runs the app on the simulator, takes screenshots, and converts visual assessment into a numeric value that agents cannot dispute.

  • Luna: Simple prompt achieved 18-33% precision; with loop achieved 6-7%
  • Sonnet: Performed well with default instructions, improved further with optimization targets
  • GPT-4o (Sonnet): Achieved under 3% (target adjusted from 2% to 3% for practicality)

Models iterated for 10-30 minutes:

  • Sonnet: Nearly $2
  • Luna: Four times cheaper than Sonnet with similar results
  • GPT-4o: Cost equivalent to Sonnet for this task

The speaker emphasizes that model performance varies by task, and benchmarks matter less than real-world effectiveness.

Luna with simple loop and stop/optimize instructions achieved 6-7% diff. Sonnet without the loop achieved similar results at approximately four times the cost. Luna is recommended when budget is constrained and marginal percentage improvements aren't critical.

The speaker notes Hiku was not tested but warns it becomes 10 times more expensive beyond 100k tokens, which occurs quickly.

Frontier models were trained to complete tasks correctly in a single iteration, including self-verification. This differs from models from six to nine months ago. The distinction isn't weight count but training on long coding tasks with execution and result verification. Frontier models are better at spotting small screenshot differences due to this training.

Sonnet demonstrated this by using Agent Device (available in the environment) to continuously polish output even with a simple prompt.

Models typically improve across 2-4 iterations, with cheaper models showing more gains. Beyond this, improvement drops to zero. The speaker emphasizes the importance of knowing when to stop and having clear stop decisions, time blockers, and termination points.

Luna performed well visually but introduced bugs that end-to-end tests caught. One bug: the keyboard/composer was not showing, preventing message composition. This demonstrated that visual checking alone is insufficient—behavioral verification through end-to-end testing is necessary.

E2E (e2e.com) is an end-to-end testing library by Cluster Army (founded by former team members now in YC San Francisco). The library uses Agent Device under the hood. While popular on web, the speaker installed the mobile plugin for mobile development testing.

The speaker created four different testing flows. E2E's key differentiator is combining agent actions with exact assertions in the same test, unlike Maestro or Appium.

Tests use assertions like agent.act and expect. Example flow: export conversation as variable, instruct agent to send a message, then assert conversation visibility. The agent figures out the flow and parameters without manual accessibility configuration.

Inference cost is paid once; subsequent runs are cached locally or in cloud artifacts (like GitHub). When changes break functionality, the agent creates a new flow or files a bug.

Three approaches were tested:

  • Writing a design contract first (fonts, spacing, colors) before coding: minimal improvement
  • Checking behavior first (navigation, sending) before pixel polishing: caused regressions in other areas
  • Giving Luna more time to iterate: cheap models stopped progressing after initial iterations

The speaker concludes that cheap models excel at single tasks but struggle with multiple simultaneous goals.

Remaining visual differences primarily involve spacing and screenshot mismatches. The solution is using design systems with specified components, fonts, and spacing. Models could then achieve 90%+ accuracy. The experiment used only Expo 58 with no additional constraints.

The speaker shares learnings from developing a software factory in the Agent Device open source repository. Recommended tools for agent-contributed codebases:

  • ESLint or OxLint (faster) with plugins
  • Dependency checker for detecting duplications
  • Crap metric (complexity of functions relative to coverage): measures if/else statements and branches; low coverage on complex functions indicates need for additional tests
  • Setup requires specifying coverage provider (V8 or other) rather than allowing estimation

The speaker merged over 40 pull requests fixing crap metric issues, resulting in more test coverage and better complexity control.

The speaker uses the Stately graph library to visualize dependency graphs, though Follow can also work for many implementations. This creates a bird's-eye overview of the codebase and gives agents a tool to ask questions like optimizing collocation and modularity. Agents can analyze the last 200 commits to identify what is churning and what should be collocated better, making future contributions easier for other agents.

Architecture Decision Records function like M-P-O-C-K skills. The recommendation is to challenge implementations with both agents and yourself. Investment should be made in integration tests, differential tests, end-to-end tests, mutation testing, and fast testing. The speaker notes having more testing code than actual product code, which enables merging without reading the code 90% of the time.

Mutation testing generates millions of possible bugs in the codebase and checks whether tests catch them. If tests do not break when bugs are introduced, the test coverage is insufficient. The speaker learned about mutation testing while maintaining Jest but now uses BeTest because it is faster. These advanced testing concepts are typically only known at the principal architect level, but understanding them makes developers more effective with agents and more confident in what agents ship.

Nightly performance benchmarks and performance testing are recommended. The speaker previously worked at Callstack, where performance testing was sold as month-long efforts. Now agents can perform this work through prompts and CI time investment. The key is not only collecting data but getting insights and acting on the results.

Simple but often overlooked practices include giving agents useful context such as font spacing details, what is in Figma versus what is not, and where to find information. Agents.md or Claude.md files serve as routers for agent instructions. Behavior verification should go beyond visuals since pixels do not tell the full story.

Engineers remain responsible for code shape and code quality. When AI is wielded properly, the code will not become sloppy. With all available agents, developers should be able to produce higher quality code than ever before. Goals must be set at levels agents can actually reach, with proper time limits and harness scaling.

Craig Walker, Product Manager for WebStorm at JetBrains, discusses how developer experience is changing rapidly. He notes that 91% of surveyed developers work with AI several times a week, while 54% feel more creative with AI. The bottleneck has shifted from generation to correcting generated code, fixing bugs in loops, and handling unexpected results after 15 turns.

In an August survey of 13,000 people, 46% believed human-level AI might arrive within 10 years. When asked about generating tests, 55% of the audience had generated tests in the last few months. Only 5% reported not having to rewrite any code in the last month, highlighting the reality that tools do not take users straight to production without steering.

Casper from the Storybook team explains that Storybook used to be useful for humans but now agents will primarily use it. While MCP servers have been available for a long time and are useful for remote connections, CLI tools are more universally valuable. The team invested in npx storybook tools, a CLI that provides useful information without requiring MCP installation and works for both agentic and non-agentic use cases.

Storybook supports putting entire pages into isolated states with mocking via MSW. The platform includes interaction debugging and allows agents to take screenshots, run accessibility tests, and review work after extended agent sessions. Storybook 11, releasing in a couple of weeks in alpha or beta, will include a review page showing what agents accomplished during long sessions.

The CLI is completely headless, allowing information extraction even when Storybook is not running locally. This works across multiple agent instances on different ports without memory overhead. The tools expose functionality via CLI, MCP, or skills, and integrate with IDEs like WebStorm.

The verification piece remains a pain point as agents produce large amounts of output. Craig asks whether developers would commit code after seeing only videos and screenshots or if they would click through and test first. The answer varies by product importance.

JetBrains Connect plugin creates a WebSocket connection between Figma and WebStorm, exposing all Figma plugin APIs. This provides layer information and design context directly in the IDE. The integration allows adding Figma designs as context for agents working on responsive mobile design updates, keeping design and code connected without losing context.

Figma functions as an artifact file that passes design details into the agent context. Instead of passing all information upfront, the approach uses lightweight references to node IDs, allowing the agent to decide when to fetch images and additional details via the Figma MCP server.

A CLI-based skill was created to access Chrome DevTools functionality without requiring the MCP server. This enables headless verification loops where agents can compare designs and application output automatically. Steering guidance notes and skills operate behind the scenes to maintain workflow continuity.

A new AI chat functionality called "air" was released, replacing the previous AI assistant. The system is designed to be agent agnostic, allowing users to leverage their preferred CodeX and Claude skills within the IDE environment. Any agent—whether CLI-based or visual—can be accessed through the harnesses integrated into the development environment.

The review flow leverages Storybook MCP tooling to generate UI reviews within the context of ongoing agent work. Storybook has been integrated so that navigating between code and Storybook stories shows matching components and use cases side by side. This synchronization mirrors the approach used with Figma.

An enhanced embedded browser launches in November, enabling users with large monitors to verify work directly within the tooling. Code and visuals can be displayed side by side for reviewing loading states, shipping errors, empty states, tax calculations, and missing CTAs. The goal is to verify visually after receiving agent replies without needing to push the agent to make additional changes.

An annotation feature called "lens" (internal project name, with marketing finalizing the public name, likely "web review") enables commenting directly on page elements. Users can point to specific UI elements, capture screenshots, and send feedback to agents for fixes. The system extracts relevant TSX files and components into context so the agent understands exactly what needs modification. This supports both bug fixing and design iteration, and can connect to existing Storybook servers or localhost applications.

WebStorm joined the team in September of the previous year. While some users have switched away from WebStorm, renewed development focus aims to bring developers back through consistent releases and improved tooling. Academy resources offer courses on Python, React, full stack development, and early access previews of the tooling.

Chris Wri from Expo has worked on developer tools for approximately one year, primarily focusing on the CLI that agents now interact with instead of direct developer usage.

The conventional development cycle moves from design through coding, testing on simulators, bug fixing, patch creation, PR review, building, deployment to app stores, review waiting periods, user feedback analysis, and learning. With agents, code writing, test execution, result analysis, and bug fixing are automated, leaving humans primarily needed for PR approval on larger changes and final oversight.

Running multiple iOS simulators and Android emulators simultaneously is resource-intensive. Even successful simultaneous operation results in low frame rates and potential crashes. Memory usage reaches approximately 42GB out of 48GB available when running two Android simulators, each consuming nearly 8GB.

A hobby project called EV Charging Map demonstrates multi-feature development. The app helps identify charging providers across Europe by comparing local provider pricing against universal roaming apps. The demo involves working on two features simultaneously: opening release and development versions of the same app.

When two agents attempt to complete similar tasks, one agent claims the running simulator while the second agent encounters access issues. The second agent then prompts for intervention—whether to stop the previous work or use alternative resources. Agent Device provides session locking that prevents conflicts by returning errors when another agent attempts to use an already-claimed CLI resource.

Expo provides cloud-hosted simulators that replace local execution. This addresses memory constraints when working on multiple features simultaneously. The service supplies raw simulator access while preserving developer choice of tooling—whether Agent Device, Appium APIs, or other preferred solutions.

Many AI coding platforms run agents in Linux VMs that lack nested virtualization, preventing iOS builds and limiting Android development. Expo's approach of providing ES Build and ES Simulators allows mobile developers to leverage new agent-based workflows without being restricted to web-only development.

When an agent encounters a claimed local simulator, it can switch to Expo cloud simulators. The agent boots a cloud session and provides a URL for browser-based access. The integrated browser preview streams at 60 frames per second at full resolution when network conditions allow, matching local machine performance.

A continuous improvement cycle emerges where user feedback from any platform feeds into agent verification and bug reproduction. Once a bug is confirmed and fixed, the app rebuilds using established workflows, tests verify the fix via simulators, and JavaScript-based business logic updates deploy over-the-air without requiring app store resubmission or rebuild cycles.

Mobile development recently involves going to the settings of the app where there is a feedback box. The developer writes the prompt there, sends it, and then goes back to settings. Instead of selecting between stable updates or beta updates, there is an input box where they can specify wanting the update from PR 172. The app reloads and they can verify the change themselves without leaving the phone for developing the app.

This approach can represent the future for mobile development when all the necessary components are set up in place.

David closed by noting that the presentation had the wrong name because he reused his colleague's slide, giving a shout out to his colleague. The moderator thanked David for the last idea.

Keep JetBrains in your library

Save the videos and channels worth coming back to, and find them again in one place.