+ {check.superseded ? (
+ {KIN_MONEY_IN_COPY.superseded}
+ ) : null}
+ {check.title}
+ {check.changes === null ? null : {check.changes}
}
+ {shown.rows.length === 0 ? null : (
+
+ {shown.rows.map((row) => (
+ -
+ {row.heading === null ? null : (
+
{row.heading}
+ )}
+ {row.text}
+
+ ))}
+
+ )}
+ {shown.toggle === null ? null : (
+
+
+
+ )}
+
+ );
+}
+
function KinChoiceCard(props: {
readonly choice: KinChoiceCardView;
readonly environmentId: EnvironmentId;
diff --git a/packages/client-runtime/src/kin/kinCardPresentation.ts b/packages/client-runtime/src/kin/kinCardPresentation.ts
index 31242fddad48..3cae356d8a61 100644
--- a/packages/client-runtime/src/kin/kinCardPresentation.ts
+++ b/packages/client-runtime/src/kin/kinCardPresentation.ts
@@ -5,6 +5,7 @@ import {
KIN_HOST_TROUBLE_CARD,
KIN_MAIL_RULE_CARD_TYPE,
KIN_MEMORY_CHANGES_CARD,
+ KIN_MONEY_IN_CHECK_CARD,
KIN_SOCIAL_PACK_CARD,
KIN_SOCIAL_WEEK_CARD,
KIN_STATEMENT_PASSWORD_CARD,
@@ -33,6 +34,7 @@ import { kinDocCardView, type KinDocCardView } from "./kinDocs.ts";
import { kinHostTroubleCardView } from "./kinHostCare.ts";
import { kinLinkLabel, kinSafeWebUrl } from "./kinLinks.ts";
import { kinMailRuleCardView } from "./kinMailRules.ts";
+import { kinMoneyInCheckView, type KinMoneyInCheckView } from "./kinMoneyInCheck.ts";
import { kinSentences } from "./kinScreenState.ts";
import { kinZoneLabel } from "./kinTimeZone.ts";
import {
@@ -100,6 +102,7 @@ export type KinCardView =
| { readonly kind: "statement_review"; readonly review: KinStatementReviewView }
| { readonly kind: "statement_password"; readonly password: KinStatementPasswordView }
| { readonly kind: "bill_batch"; readonly bills: KinBillBatchCardView }
+ | { readonly kind: "money_in_check"; readonly check: KinMoneyInCheckView }
| { readonly kind: "social_week"; readonly week: KinSocialWeekView }
| { readonly kind: "social_pack"; readonly pack: KinSocialPackView }
/** Drawn with the reader's clock (`kinHostTroubleCardView`), so it carries the widget. */
@@ -646,6 +649,10 @@ function kinLiveCardView(
const bills = kinBillBatchCardView(widget);
return bills === null ? unknown(widget) : { kind: "bill_batch", bills };
}
+ case KIN_MONEY_IN_CHECK_CARD: {
+ const check = kinMoneyInCheckView(widget);
+ return check === null ? unknown(widget) : { kind: "money_in_check", check };
+ }
case KIN_MEMORY_CHANGES_CARD: {
const changes = kinMemoryChangesView(widget);
return changes === null ? unknown(widget) : { kind: "memory_changes", changes };
diff --git a/packages/client-runtime/src/kin/kinMoneyInCheck.test.ts b/packages/client-runtime/src/kin/kinMoneyInCheck.test.ts
new file mode 100644
index 000000000000..d049eb6cbbde
--- /dev/null
+++ b/packages/client-runtime/src/kin/kinMoneyInCheck.test.ts
@@ -0,0 +1,131 @@
+import {
+ KIN_MONEY_IN_CHECK_CARD,
+ type EnvironmentId,
+ type KinMoneyInCheckCard,
+ type KinWidget,
+} from "@t3tools/contracts";
+import { describe, expect, it } from "vite-plus/test";
+
+import { kinCardView } from "./kinCardPresentation.ts";
+import { kinMoneyInShown, type KinMoneyInCheckView } from "./kinMoneyInCheck.ts";
+
+const TITLE = "Money in, 1 Nov to 28 Nov, against the bank";
+const MATCHED = "BNK-2, ₹47,200.00 received 10 Nov; INV-1: ₹47,200.00 recorded as received 10 Nov.";
+const BANK_ONLY = "BNK-3, ₹18,500.00 received 17 Nov: Kin can't tell what it is.";
+
+const line = (
+ id: string,
+ group: KinMoneyInCheckCard["lines"][number]["group"],
+ text: string,
+): KinMoneyInCheckCard["lines"][number] => ({
+ id,
+ group,
+ day: "2026-11-10",
+ payments: [],
+ text,
+ printed: "NEFT CR TIDEWATER FREIGHT HDFC0001234",
+});
+
+const card = (overrides: Partial