{/* === SELF === */}
selfExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{/* === PARTNER === */}
partnerExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{/* === CHILDREN === */}
childrenExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{children.map((child) => (
))}
{/* === PARENTS === */}
parentsExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{parents.map((person) => (
))}
{/* === IN-LAWS === */}
inlawsExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{inlaws.map((person) => (
))}
{/* === ADDRESSES === */}
addressesExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{addresses.map((addr) => (
))}
{/* === VEHICLES === */}
vehiclesExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{vehicles.map((v) => (
))}
{/* === MEMBERSHIPS === */}
membershipsExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{memberships.map((m) => (
))}
{/* === BANKS === */}
banksExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{banks.map((b) => (
Checking Account
Credit Card
))}
{/* === EMPLOYMENT === */}
employmentExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{/* === LEARNED === */}
learnedExpanded.get() ? "block" : "none"
),
...sectionContentStyle,
}}
>
{/* Personas */}
{computed(() => learned.key("personas").get().length > 0) &&
(
{learned.key("personas").map((persona) => (
{persona}
))}
)}
{/* Facts Table */}
{computed(() =>
learned.key("facts").get().length === 0
) && (
No facts learned yet. Facts will appear here as you
use the app.
)}
{computed(() => learned.key("facts").get().length > 0) &&
(
|
Fact
|
Conf.
|
Source
|
When
|
{learned.key("facts").map((fact) => (
|
{fact.content}
|
fact.confidence > 0.8
? "#dcfce7"
: fact.confidence > 0.5
? "#fef9c3"
: "#fee2e2"
),
color: computed(() =>
fact.confidence > 0.8
? "#166534"
: fact.confidence > 0.5
? "#854d0e"
: "#991b1b"
),
borderRadius: "4px",
fontSize: "12px",
fontWeight: "500",
}}
>
{computed(
() =>
`${
Math.round(fact.confidence * 100)
}%`,
)}
|
{fact.source}
|
{computed(() => {
const ts = fact.timestamp;
if (!ts) return "-";
const d = new Date(ts);
return `${
d.getMonth() + 1
}/${d.getDate()}`;
})}
|
))}
)}
{/* Preferences Table */}
{computed(() =>
learned.key("preferences").get().length > 0
) && (
|
Key
|
Value
|
Conf.
|
{learned.key("preferences").map((pref) => (
|
{pref.key}
|
{pref.value}
|
pref.confidence > 0.8
? "#dcfce7"
: pref.confidence > 0.5
? "#fef9c3"
: "#fee2e2"
),
color: computed(() =>
pref.confidence > 0.8
? "#166534"
: pref.confidence > 0.5
? "#854d0e"
: "#991b1b"
),
borderRadius: "4px",
fontSize: "12px",
fontWeight: "500",
}}
>
{computed(
() =>
`${
Math.round(pref.confidence * 100)
}%`,
)}
|
))}
)}
{/* Open Questions - Plain Text */}
{computed(() => {
const questions = learned.key("openQuestions").get();
const pending = questions.filter(
(q) => q.status === "pending",
);
return pending.length > 0;
}) && (
{learned.key("openQuestions").map((q) => (
q.status === "pending" ? "block" : "none"
),
}}
>
[{q.category}]
{" "}
{q.question}
{computed(() =>
q.options && q.options.length > 0
? ` (${q.options.join(" | ")})`
: ""
)}
))}
)}
{/* === NOTES === */}