From 98901957f282b4ebcd8164ee3ff5a21fb3d6d063 Mon Sep 17 00:00:00 2001 From: lowcarbdev Date: Sat, 15 Nov 2025 15:10:12 -0700 Subject: [PATCH] Add Calls tab --- frontend/src/App.jsx | 24 +++ frontend/src/components/Calls.jsx | 279 ++++++++++++++++++++++++++++++ internal/database.go | 44 ++++- internal/handlers.go | 53 +++++- main.go | 3 +- 5 files changed, 400 insertions(+), 3 deletions(-) create mode 100644 frontend/src/components/Calls.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 936e0a9..b69b65a 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -6,6 +6,7 @@ import { useAuth } from './contexts/AuthContext' import ConversationList from './components/ConversationList' import MessageThread from './components/MessageThread' import Activity from './components/Activity' +import Calls from './components/Calls' import DateFilter from './components/DateFilter' import Upload from './components/Upload' import Search from './components/Search' @@ -38,6 +39,8 @@ function App() { // Derive activeView from URL const activeView = location.pathname.startsWith('/activity') ? 'activity' + : location.pathname.startsWith('/calls') + ? 'calls' : location.pathname.startsWith('/search') ? 'search' : 'conversations' @@ -112,6 +115,8 @@ function App() { const handleViewChange = (view) => { if (view === 'activity') { navigate('/activity') + } else if (view === 'calls') { + navigate('/calls') } else if (view === 'search') { navigate('/search') } else { @@ -207,6 +212,17 @@ function App() { Conversations +
  • + +