Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JSConf JP 2026 Sponsor Session: 4 LT Mix

Money Forward, Inc.
November 22, 2026
12

JSConf JP 2026 Sponsor Session: 4 LT Mix

Event: JSConf JP 2026
Date: November 22, 2026
Speakers: seito, locol, Darren, Alghi
Event URL: https://jsconf.jp/2026/ja/talks/money-forward-sponsor-session
Description: マネーフォワードのエンジニア4名が、5〜7分のLT形式でそれぞれの開発現場での取り組みを紹介します。日本語と英語の発表が混在し、次の4つのテーマについてお話しします。 Four engineers from Money Forward will share their experiences in 5–7 minute lightning talks. Here's the mix of four talks in Japanese and English.

[JA] 自然言語を起点としたE2Eテスト基盤 by seito 自然言語のシナリオをもとに、AIによるテストの生成から実行・修復までをつなぎ、人間のレビューを組み合わせて継続的に改善するE2Eテスト基盤を紹介します。

[JA] AI時代のUI開発を支えるドメイン固有UIレイヤー by locol 共通デザインシステムでは扱いにくいプロダクト固有のUIを再利用可能なレイヤーにまとめ、AIによるコード生成の精度向上やデザイナーによるUI作成、PoCでの再利用につなげる取り組みを紹介します。

[EN] 93-Field Dynamic Form with Zod and RHF by Darren This talk covers how we used AI pair programming to build a dynamic form for a loan application feature with 93 fields across 12 input types.

[EN] Rails to Next.js Without a Big Bang: Feature Flags & Micro Frontends by Alghi This talk covers how we are gradually migrating a Rails-based payroll system to Next.js using feature flags and Micro Frontends, including how we use AI agents and the lessons learned along the way.

Money Forward, Inc.

November 22, 2026

Transcript

52 slides
  1. 4 LT Mix JSConf JP 2026 Sponsor Session ⾃然⾔語起点のE2Eテスト基盤 AI時代のドメイン固有UIレイヤー

    Seito Hirai locol 93-Field Dynamic Form Rails to Next.js Without a Big Bang Darren Avinesh Chand Alghi 2026/11/22 © Money Forward, Inc.
  2. ⼈がレビューするSSoT:Zephyr Scale 形式CSV CSVファイルの具体例) Step No Step(操作) 1 ユーザー管理画⾯(/users)を開いている 2〜5

    追加ボタン押下‧ユーザーとロール選 択‧追加実⾏ 6 (検証ステップ) 「ユーザーを追加しました」という トーストが表⽰される 7 (検証ステップ) 追加したユーザーが実API GET /api/users の⼀覧に存在する © Money Forward, Inc. Expected Result(期待結果) 7
  3. 失敗時の3分類診断と⾃動修復 アクセシビリティツリーと期待結果の照合により失敗原因を⾃動切り分け drift(画⾯の変化) bug(製品の回帰) env(環境の問題) ボタン表記やルート名の変 更などUI側の仕様変更に起 因する失敗です。AIがヘル パーやYAMLを⾃動修復しま す。

    期待結果そのものを満たせ ない製品側の不具合です。 ⾃動修復は⾏わず、即座に バグとして報告します。 サーバー停⽌やシードデー タ不備など実⾏環境の異常 です。コードは触らず環境 の復旧を促します。 © Money Forward, Inc. 11
  4. SSoTを「壊れやすいコード」から「読める⽂章」へ CSV⽣成 Playwright⽣成 チケットとプロダクト背景情 報から⼈がレビューするテス トケースを作成する CSV → YAML →

    spec 実⾏時はAIなしのコードだけ 再生成して 10回連続で緑なら採用 実行して赤くなったら CSVは⼈だけが直す 壊れた際の⾃動修復 AIによる修復プロセスではCSVには 触れない 壊れた原因を三つに分け、必要 な修正をする © Money Forward, Inc. 原因の分類 Drift … 画⾯の変化 Bug … 本物の不具合 Env … 環境の問題 13
  5. ⾃⼰紹介 / About me - 名前 / Name: locol 仕事

    / Job: MyPageプロダクトのSoftware Engineer 役割 / Roles: React Tokyo Staff / JSConf Japan Staff X: @locol23 Bluesky: locol23.bsky.social 好きなもの / Likes: React, Anime, Movies, and TV dramas 1
  6. 2

  7. MyPage とは / What is MyPage Login Once, Do Everything

    - 勤怠の打刻 Clock in / out - 経費等の各種申請 Expense claims and other requests - 給与の確認 Check your payslip - 会社からのお知らせ確認 Read company announcements - 年末調整の連絡等 Year-end tax adjustment notices - 申請の承認、差し戻された申請の確認等 Approve requests, review returned ones 3
  8. 課題1:ドメイン固有なUIはデザインシステムに置きにくい Problem 1: Domain-specific UI doesn't fit a design system

    デザインシステムが扱うのは、会社共通のUI A design system is for company-wide UI 向いている:会社共通のUI 向かない:ドメイン固有のUI Fits: company-wide UI Doesn't fit: domain-specific UI ボタン‧⼊⼒欄‧ダイアログ 打刻の時計‧申請⽤のカード Buttons, inputs, dialogs Time clock, request cards 7
  9. 課題1:ドメイン固有なUIはデザインシステムに置きにくい Problem 1: Domain-specific UI doesn't fit a design system

    デザインシステムが扱うのは、会社共通のUI A design system is for company-wide UI MyPage でしか これらのUIを使用しないので 全社的なデザインシステムには 向いている:会社共通のUI 置きにくい Onlycompany-wide MyPage uses this UI UI, so it doesn't fit a Fits: 向かない:ドメイン固有のUI Doesn't fit: domain-specific UI company-wide design system ボタン‧⼊⼒欄‧ダイアログ 打刻の時計‧申請⽤のカード Buttons, inputs, dialogs Time clock, request cards 8
  10. co-locationで解決? Solved by co-location? 関連するものを同じ場所に置くことで管理しやすく、捨てやすさも上がる Keeping related code together makes

    it easier to manage and delete 今までの開発:問題なし AI時代のPoC先⾏の開発:困る Regular development: good enough PoC-first in the AI era: breaks down 使うのは1つのアプリだけ PoCからアプリ内のUIを使えない Only one app uses it PoCs can't use UI that lives in the app 9
  11. 課題2:PoCで作ったUIが無駄になっていた Problem 2: PoC UI went to waste PoCで確かめたUIを、本番で1から作り直していました UI

    validated in a PoC was rebuilt from scratch for production PoC 再利⽤ゼロ 本番 Prototype Nothing is reused Production 何パターンかUIを試し、 最終案を出す 作ったUIは全部捨てる 1から作り直す Try UI patterns, pick one Thrown away after the PoC Rebuild from scratch 10
  12. 解決案:ドメイン固有UIレイヤー Solution: Domain-specific UI layer ドメイン固有UIレイヤーとして、mypage-uiというUIライブラリを作成 We built mypage-ui, a

    UI library, as our domain-specific UI layer PoC‧アプリ:同じ部品を使う アプリ PoC & apps: same components PoC & apps ドメイン固有UIレイヤー mypage-ui:ドメイン固有UI Domain-specific UI layer mypage-ui: domain UI (clock, card) 基盤レイヤー MFUI:共通デザインシステム Foundation layer MFUI: company-wide design system 11
  13. PoC エージェントスキルで採用案を mypage-ui用に仕上げ、 デザイナーの確認後にPRを作成 Agent skills polish the chosen UI;

    PR opened after the designer’s review @moneyforward/ mypage-ui 本番アプリ Production app 14
  14. まとめ / Recap - MFUIとアプリの間にドメイン固有UIレイヤーを置くことで、 PoC Firstでの開発を促進した A domain-specific UI

    layer between MFUI and apps drives PoC-first development - mypage-uiを再利用することで、PoCでも本番同様のクオリティを 出せるようにした Reusing mypage-ui lets PoCs reach production-level quality, too - 新しいUIをデザイナーの方に PoCの中で何パターンも制約なく自由に作って欲しかったため、 PoC後に採用した案をスキルで仕上げる形にした Designers explore UI freely in the PoC; skills then polish the chosen one - PoCで作ったUIを本番で再利用できるプロセスができた We now have a process to reuse PoC-built UI in production 17
  15. JSConf JP 2026 93Field Dynamic Form with Zod and RHF

    Zod と RHF で作る93項目の動的フォーム Darren Avinesh Chand Software Engineer @ Money Forward X
  16. The problem: A long Application form. Our loan application form

    asks for a lot of information. ローン申込では、多くの情報を⼊⼒してもらう必要があり ます。 93 Form fields • • • 12 Input types Text boxes, dropdowns, dates, amounts, file input etc: 12 kinds of input, repeated across 93 fields.テキ スト‧選択‧⽇付‧⾦額‧ファイルアップロードなど、 12種類の⼊⼒が93項⽬にわたって使われます。 Every form field needs a label, validation rules, show/hide logic and auto focus on errors etc. すべての項⽬にラベル‧検証ルール‧表⽰切替のロジッ クが必要です。 Different tenants want different form fields. 貸し⼿ごとに必要な項⽬が違います。 Three Pieces of Logic / 3つの要素 💻 UI code 画⾯コード 🛡 👁 Validation rules Show / hide logic 検証ルール 表⽰‧⾮表⽰ の制御 ⚠ Hand-written, these three drift apart. ⼿書きだと、この3つはズレていきます。
  17. The idea: Describe the form as data. 1 DATADRIVEN SCHEMA

    データ駆動のスキーマ • • Describe the form as JSON, not JSX, including limits and validation. 制限やバリデーションも含 め、フォームをJSXではなく JSONで記述する。 One source of truth. 信頼できる唯一の情報源を 持つ。 USE EXISTING TOOLS 既存ツールを活用 2 • We already use Zod and React Hook Form. ZodとReact Hook Formは 既に使っている。 • We also have AI. It can help us build the logic. AIもある。ロジックの構築を 手伝ってくれる。 3 DYNAMIC FORM RENDERING ENGINE 動的フォーム描画エンジン • Move this logic into a package so other forms can use the same engine. このロジックをパッケージ化 し、他のフォームも同じエン ジンを使えるようにする。
  18. Zod + RHF read the JSON and render the form.

    Zod checks the rules. RHF keeps the state. JSON drives both. Hidden fields are skipped, so they never block submit. We pair programmed with AI: plan, verify, test, tweak. Zodがルールを検証。RHFが状態を保持。 JSONが両⽅を動かす。 ⾮表⽰の項⽬は検証されず、送信を妨げな い。 AIとペアプログラミング。計画、検証、テスト、調整 を、動くまで何度も繰り返した。
  19. Results and Lessons / 成果と学び 1 • RESULTS 成果 Running

    in production, no issues so far. 2 • 本番稼働中。今のところ問題な し。 • Good: 50 ms INP on our heaviest step. 高速:最も重いステップでも INP 50ms。 • 93 fields, 12 input types, one engine. 93項目・12種類の入力を 1つのエ ンジンで。 BUILT WITH WHAT WE HAD 既存のもので構築 Zod, React Hook Form, date-fns: already in the app. Zod、React Hook Form、 date-fnsは既にアプリにあるも の。 • 3 • • No new third-party packages. New input type = one registry entry. Reusable by other forms. 入力タイプは 1つ追加するだけ。他 のフォームでも再利用可能。 AIとの学び AI sped up the build. AIで開発が速くなった。 Tested and verified: we checked everything. AI missed few cases, review caught it. テストと検証は私たちが担当。 AIは非表示項目を見落とし、レ ビューで発見。 新しいサードパーティパッケージは なし。 • LESSONS WITH AI • Write the rules down so AI stops repeating mistakes. ルールを文書化すれば、 AIは 同じミスを繰り返さない。
  20. JSConf Japan 2026 Rails to Next.js Without a Big Bang

    ビッグバンなしで Rails から Next.js へ Modernizing a Rails monolith's UI: Feature Flags, Micro Frontends, AI agents RailsモノリスのUIをモダン化:フラグ‧マイクロフロントエンド‧AI Alghi / アルギ Software Engineer @ Money Forward Web Frontend Committee Core Member | OpenFeature & Flipt Contributor (OSS)
  21. Nobody dreams of migrating. 誰も移⾏を夢⾒てはいない。 Everybody is doing one. でも、みんなやっている。

    What goes on the roadmap • New feature 新機能 What we actually do • Upgrade the stack スタックのアップグレード • Redesign • Move old pages to the new UI リデザイン 古いページを新しいUIへ移⾏ • AI assistant • Same behavior, new code AIアシスタント 同じ動作、新しいコード • Shiny dashboard かっこいいダッシュボード • Keep payroll correct 給与計算の正しさを守る Hands up: have you ever worked on a migration? ⼿を挙げて:移⾏プロジェクトに関わったことはありますか? © Money Forward, Inc. 1
  22. Legacy is just code that made money レガシーとは、お⾦を⽣んだコードのこと A big

    bang puts it at risk. Our Payroll UI today (approx.) ビッグバンでの書き換えはそれを危険にさらす So we go gradual: ✓ No feature freeze 機能凍結なし ✓ One page at a time 1ページずつ ✓ Roll back by flipping a flag Rails-rendered UI React UI 80% 20% Mostly Rails-rendered. React is growing. フラグで元に戻せる © Money Forward, Inc. 2
  23. Rails stays the front door Rails が⼊り⼝のまま Routing rules never

    change per page. A flag does the switching. ルーティングルールはページごとに変わらない。切り替えはフラグが⾏う。 Next.js app /new/* (e.g. /new/settings) Router Browser simple path rules Flag ON Rails redirects to the new page Rails monolith everything else (e.g. /settings) © Money Forward, Inc. 3
  24. Ship dark. Turn on later. Delete the flag. こっそり出荷。あとでオン。フラグは削除。 Tool

    1: Feature flags ツール1:フィーチャーフラグ evaluate flag Client app locally, no network call Feature Flag SDK local flag cache refresh flags periodically on error: keep cached flags Feature Flag Server self-hosted Next.js page (React side) Flag OFF New React page returns 404. Rails page stays. Flag ON New React page shows content. Rails redirects to React. © Money Forward, Inc. const [enabled] = useFlag("new-page"); return enabled ? <New /> : <NotFound />; 4
  25. Migrate a widget before a page ページより先にウィジェットを移⾏する Tool 2: Micro

    frontends ツール2:マイクロフロントエンド Micro frontends in production Rails page (server-rendered) 本番で動くマイクロフロントエンド React + Vite, not Next.js React widget: Notification React + Vite(Next.js ではない) React widget: Feature X Started with one small widget ⼩さなウィジェット1つから始めた 1. Request Browser asks Rails for the page (/settings) © Money Forward, Inc. 2. Render Rails returns HTML with a custom element for the widget 3. Load Loads the Vite bundle from /new/mfe/*, served by Next.js 4. Mount Widget mounts in the page, calls the API and renders 5
  26. Skills turn a migration into a pipeline スキルで移⾏をパイプラインにする Tool 3:

    AI agents ツール3:AIエージェント 1 Scope 2 Explore Spec API UI Validate Release Orange circles are human checkpoints. A flag is mandatory. ~60% faster specs AI exploratory testing Open to non-engineers 仕様作成が約60%速い AIによる探索的テスト エンジニア以外にも開かれている Spec writing time (est.) Finds bugs, reduces manual testing A designer shipped a page in 2 to 3 weeks © Money Forward, Inc. 6
  27. Build got fast. Release didn't. ビルドは速くなった。リリースは速くならなかった。 Plot twist, the bottleneck

    moved どんでん返し:ボトルネックが移った React pages (illustrative) Live ▪ Live ▪ In progress ▪ Still to go Still to go QA effort (illustrative) QA effort needed QA capacity available Our answer (pilot): AI agents to help impact analysis, test cases creation, and test execution using Playwright MCP and knowledge bases 私たちの答え(パイロット):AIエージェントで影響分析、テストケース作成、テスト実⾏を⽀援 © Money Forward, Inc. 7
  28. AI exploratory testing: how it works AI探索的テストの仕組み The agent drives

    the browser. Humans read the report. エージェントがブラウザを操作し、⼈がレポートを読む Plan Spec, test plan, knowledge base Agent Skill runs the plan step by step Playwright MCP Drives a real browser Report PASS, FAIL or OBSERVATION Human Reads the report and decides Setup and rules Origins Only localhost, staging, production © Money Forward, Inc. Production Read-only: navigate and assert Feature Flags Confirm ON or OFF before each run 8
  29. Three things I would tell my past self 過去の⾃分に伝えたい3つのこと Lessons

    learned 学んだこと 1 2 3 Flags are debt Slice by user value フラグは負債 ユーザー価値で分割する AI moves the bottleneck Plan the deletion on day one. Not by code size. Small pages first. AIはボトルネックを移す Fix the next one before it hits you. A migration without a big bang is a lot of small, boring wins. Make them cheap and reversible. ビッグバンなしの移⾏は、⼩さく地味な成功の積み重ね。安く、元に戻せるようにしよう。 Alghi | Q&A | linkedin.com/in/alghi | github.com/falghi © Money Forward, Inc. 9

More Decks by Money Forward, Inc.