) {
+ event.preventDefault();
+ setSearchedHintCode(hintCodeInput.trim());
+ }
+
async function toggleEntity(entityId: string) {
if (expandedEntityId === entityId) {
setExpandedEntityId(null);
@@ -5194,6 +5216,28 @@ function CustomerMasterPanel({
}
}
+ useEffect(() => {
+ if (!selectedPostId) {
+ setSelectedPostGraph(null);
+ return;
+ }
+ let active = true;
+ fetchLineageGraph(accessToken, selectedPostId)
+ .then((nextGraph) => {
+ if (active) setSelectedPostGraph(nextGraph);
+ })
+ .catch(() => {
+ if (active) setSelectedPostGraph({ nodes: [], edges: [] });
+ });
+ return () => {
+ active = false;
+ };
+ }, [accessToken, selectedPostId]);
+
+ function openPost(postId: string) {
+ setSelectedPostId(postId);
+ }
+
const filteredEntities = (master?.corporate_entities ?? []).filter((entity) =>
customerMasterScopeBuckets(entity).some((bucket) => scopeFilter.has(bucket)),
);
@@ -5208,6 +5252,25 @@ function CustomerMasterPanel({
{master?.corporate_entities.length === 0 ? (
{t("No customer entities are connected to this account.")}
) : null}
+
+ {searchedHintCode && master && master.source_customer_hints.length === 0 ? (
+
+ {tf("No source customer evidence matches {code}.", { code: searchedHintCode })}
+
+ ) : null}
{master && master.corporate_entities.length > 0 ? (