fix: allow cross subdomain cookies at posthog (#243)

This commit is contained in:
Sabiha Khan 2026-04-17 11:47:20 +05:30 committed by GitHub
parent 1d0a7cd2d8
commit 5ecc0d4da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 7 deletions

View file

@ -457,6 +457,7 @@ export default function UsagePage() {
<TableRow className="bg-muted/50">
<TableHead className="font-semibold">Run ID</TableHead>
<TableHead className="font-semibold">Agent Name</TableHead>
<TableHead className="font-semibold">Call Type</TableHead>
<TableHead className="font-semibold">Phone Number</TableHead>
<TableHead className="font-semibold">Disposition</TableHead>
<TableHead className="font-semibold">Date</TableHead>
@ -479,6 +480,15 @@ export default function UsagePage() {
#{run.id}
</TableCell>
<TableCell>{run.workflow_name || 'Unknown'}</TableCell>
<TableCell>
{run.call_type ? (
<Badge variant={run.call_type === 'inbound' ? "secondary" : "default"}>
{run.call_type === 'inbound' ? 'Inbound' : 'Outbound'}
</Badge>
) : (
<span className="text-sm text-muted-foreground">-</span>
)}
</TableCell>
<TableCell className="text-sm">
{run.phone_number || '-'}
</TableCell>

View file

@ -3344,6 +3344,16 @@ export type ValidationError = {
* Error Type
*/
type: string;
/**
* Input
*/
input?: unknown;
/**
* Context
*/
ctx?: {
[key: string]: unknown;
};
};
/**
@ -3818,6 +3828,10 @@ export type WorkflowRunUsageResponse = {
* Phone Number
*/
phone_number?: string | null;
/**
* Call Type
*/
call_type?: string | null;
/**
* Disposition
*/

View file

@ -53,6 +53,7 @@ const initPostHog = () => {
capture_pageview: 'history_change',
capture_pageleave: true,
capture_exceptions: true,
cross_subdomain_cookie: true,
debug: process.env.NEXT_PUBLIC_NODE_ENV === 'development',
});
console.log('PostHog initialized from NEXT_PUBLIC config');
@ -68,6 +69,7 @@ const initPostHog = () => {
capture_pageview: 'history_change',
capture_pageleave: true,
capture_exceptions: true,
cross_subdomain_cookie: true,
debug: process.env.NEXT_PUBLIC_NODE_ENV === 'development',
});
console.log('PostHog initialized from API config');