Implement chat backend and frontend scaffolding

Expanded chat backend with message reply, edit, delete, and reaction support in consumers and models. Updated routing to use chat_id. Added chat-related view stubs. On the frontend, introduced ChatLayout and ChatPage scaffolding, and routed protected routes through ChatLayout.
This commit is contained in:
2025-12-26 17:39:11 +01:00
parent deb853b564
commit f7605812c1
7 changed files with 177 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
import Footer from "../components/Footer/footer";
import { Outlet } from "react-router";
import SiteNav, { type User } from "../components/navbar/SiteNav";
const userexists: User = {
username: "Bruno",
email: "",
avatarUrl: "",
};
import styles from "./HomeLayout.module.css";
export default function ChatLayout(){
return(
<div className={styles.root}>
<SiteNav user={userexists} onLogin={() => {}} onLogout={() => {}} />
<Outlet />
</div>
)
}