From 0481b90681b32497bd08b67a6422bc5b7f0e9a70 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 04:48:14 +0000 Subject: [PATCH] Create Staff internal collaboration page cgen-faa92222a91047fdbe00290a28284303 --- client/pages/staff/StaffChat.tsx | 224 +++++++++++++++++++++++++++++++ 1 file changed, 224 insertions(+) create mode 100644 client/pages/staff/StaffChat.tsx diff --git a/client/pages/staff/StaffChat.tsx b/client/pages/staff/StaffChat.tsx new file mode 100644 index 00000000..cd204905 --- /dev/null +++ b/client/pages/staff/StaffChat.tsx @@ -0,0 +1,224 @@ +import { useEffect } from "react"; +import Layout from "@/components/Layout"; +import { useAuth } from "@/contexts/AuthContext"; +import { useNavigate } from "react-router-dom"; +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card"; +import { Button } from "@/components/ui/button"; +import { Badge } from "@/components/ui/badge"; +import { MessageSquare, Users, Hash, Lock, Plus } from "lucide-react"; + +const channels = [ + { + name: "announcements", + description: "Company announcements and updates", + type: "public", + members: 45, + }, + { + name: "engineering", + description: "Engineering team discussions", + type: "private", + members: 12, + }, + { + name: "product", + description: "Product and feature discussions", + type: "public", + members: 28, + }, + { + name: "design", + description: "Design and UX team", + type: "private", + members: 8, + }, + { + name: "random", + description: "Off-topic and casual chat", + type: "public", + members: 42, + }, +]; + +const directMessages = [ + { name: "Sarah Johnson", role: "CEO", status: "online" }, + { name: "Mike Chen", role: "CTO", status: "online" }, + { name: "Emma Davis", role: "Product Lead", status: "away" }, + { name: "Alex Kim", role: "Designer", status: "offline" }, +]; + +export default function StaffChat() { + const { user, loading } = useAuth(); + const navigate = useNavigate(); + + useEffect(() => { + if (!loading && !user) { + navigate("/staff/login"); + } + }, [user, loading, navigate]); + + if (loading) return
Loading...
; + + return ( + +
+
+
+

Team Chat

+

Internal collaboration and team discussions

+
+ +
+ {/* Sidebar */} +
+ {/* Channels */} +
+
+

+ + Channels +

+ +
+
+ {channels.map((channel) => ( + + ))} +
+
+ + {/* DMs */} +
+
+

+ + Direct Messages +

+ +
+
+ {directMessages.map((dm) => ( + + ))} +
+
+
+ + {/* Main Chat Area */} +
+ {/* Channel Info */} + + +
+
+ + + announcements + + + Company announcements and updates + +
+ + 45 members + +
+
+
+ + {/* Messages Area */} + + +
+
+
+

Sarah Johnson

+

+ Welcome to the internal team chat! This is where we collaborate and share updates. +

+

10:30 AM

+
+
+ +
+
+
+

Mike Chen

+

+ Great! Looking forward to building amazing things together. +

+

10:35 AM

+
+
+ + +
+
+ + +
+
+ + + {/* Info */} + + + + + Team Chat Coming Soon + + + +

+ • Full-featured internal messaging platform +

+

+ • Channels for teams and projects +

+

+ • Direct messages and group chats +

+

+ • File sharing and integrations +

+
+
+
+
+
+
+ + ); +}