Skip to content

feat(ios-scanner): 読取フローをデンソーのかんばんに対応させる (#108) - #115

Merged
rimtty merged 1 commit into
masterfrom
codex/denso-ios-scanner
Sep 7, 2026
Merged

rimtty merged 1 commit into
masterfrom
codex/denso-ios-scanner

Conversation

@rimtty

@rimtty rimtty commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Closes #108 (parent #106). Builds on #113.

変更

  • ScannerViewModel: 品番表示をセッションの仕向地で整形(デンソーは 6-4、受理メッセージ・結果表示・履歴の code)。QR / Code 128 のゲートは feat(matching): 共通フィクスチャと照合コアに仕向地「デンソー」を追加する (#107) #113Destination.detect / isValidScanPayload(_:destination:) 経由なので変更なし。デンソーのサンプル定数を追加(起動引数は増やさない)。
  • ScannerScreen: 結果ビューの品番 4 箇所を仕向地付きで整形。シミュレータ限定のモックボタン demoBluetoothDensoQRButton / demoBluetoothDensoBarcodeButtonモックQR(デンソー) / モックCode 128(デンソー)、ja/en)。
  • HistoryStore: コメントのみ(デンソーは澤井製作所と同じ QR 全文の重複経路、品番ごとの N 箱目)。
  • 澤井製作所・モルテンの挙動と既存断言は不変。

テスト

  • BluetoothScannerFlowTests +10(一致・2 箱目・同一かんばん再読取の重複・デンソーロック時の澤井/モルテン拒否・澤井セッションでのデンソー拒否・澤井/モルテンでの 6-4 拒否・順序違い・ロック復元・不一致非記録・カメラ経路の 品目番号 860150-7722)、HistoryStoreTests +2、CodeMatchUITests.testMockBluetoothScannerDensoFlowLocksDestination
  • CodeMatchTests: 153 tests, 0 failures。新 UI テストと既存のモルテン UI テストがシミュレータで緑。

🤖 Generated with Claude Code

The view model formats part numbers with the session's destination (6-4
for Denso, 4-2-4 / 4-2-3 otherwise) in the accepted-QR message, the
result view and the recorded code, adds the Denso sample payloads and
simulator-only mock buttons, and documents that Denso shares the
QR-only duplicate rule and per-part box count with Sawai. Flow, store
and UI tests cover match, second kanban, duplicate rescan, the
destination lock in both directions and the 6-4 tag rejection.

Refs #108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: スキャナ画面と履歴ストアをデンソーに対応させる(6-4 表示・デモ・フローテスト)

1 participant