Skip to content

Commit c25c425

Browse files
committed
feat: add global realtime websocket infrastructure and activity tracking
1 parent 2ea92dc commit c25c425

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

web/src/app/(dashboard)/layout.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
import { ReactNode } from "react"
2-
import { AppShell } from "@/components/shell/app-shell"
3-
import { CommandMenu } from "@/components/cmdk/command-menu"
4-
import { SystemToasts } from "@/components/system/system-toasts"
5-
61
import { ReactNode } from "react"
72

83
import { AppShell } from "@/components/shell/app-shell"
9-
104
import { CommandMenu } from "@/components/cmdk/command-menu"
11-
125
import { SystemToasts } from "@/components/system/system-toasts"
13-
146
import { RealtimeProvider } from "@/components/system/realtime-provider"
157

8+
9+
1610
export default function DashboardLayout({
1711
children,
1812
}: {

web/src/hooks/use-realtime-system.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { useEffect } from "react"
44

55
import { toast } from "sonner"
66

7-
import { useRealtimeStore } from "@/stores/realtime-store"
8-
7+
import { useRealtimeStore } from "@/app/stores/realtime-store"
98
export function useRealtimeSystem() {
109
const setConnected =
1110
useRealtimeStore(

0 commit comments

Comments
 (0)