fix(dashboard): improvements for both funnel and conversion chart

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-02-06 08:22:57 +00:00
parent 40b0774ef8
commit fc3b6fb891
13 changed files with 579 additions and 632 deletions

View File

@@ -1,5 +1,5 @@
import { op } from '@/utils/op';
import { useLocation, useRouteContext } from '@tanstack/react-router';
import { useRouteContext } from '@tanstack/react-router';
import { SparklesIcon } from 'lucide-react';
import { Button } from './ui/button';
@@ -12,13 +12,15 @@ export function FeedbackButton() {
icon={SparklesIcon}
onClick={() => {
op.track('feedback_button_clicked');
if ('uj' in window) {
(window.uj as any).identify({
if ('uj' in window && window.uj !== undefined) {
(window as any).uj.identify({
id: context.session?.userId,
firstName: context.session?.user?.firstName,
email: context.session?.user?.email,
});
(window.uj as any).showWidget();
setTimeout(() => {
(window as any).uj.showWidget();
}, 10);
}
}}
>