How mindtrack-capstone-dbs/fe-mindtrack works
MindTrack is a React frontend for mood tracking, journaling, mental-health chat, and account management. Users enter through public landing/auth pages; authenticated routes expose journaling, chat, profile, and dashboard views. Journal and profile views call a separate backend, while chat loads session messages from its API; the dashboard requests journal statistics. The excerpts document these paths, but do not expose all journal write operations or the backend implementation, so those links are not inferred. The README also lists responsive UI and information pages; unsampled feature internals are represented only where the tree supports them.
Main entry points: App.jsx Route Coordinator · Navbar.jsx Navigation · Footer.jsx Footer Links · Dashboard-Page.jsx Dashboard Page
Components 20
App and Access
- Route Coordinator
src/App.jsx - Login and Register
src/components/AuthForm.jsx - Landing Page
src/pages/landing-page/LandingPage.jsx - Navigation
src/components/Navbar.jsx
Mood and Journal
- Dashboard Page
src/pages/Dashboard-Page/Dashboard-Page.jsx - Mood Dashboard
src/components/DashboardContent.jsx - Mood Journal
src/pages/journal/MoodJournal.jsx - Journal History
src/pages/journal/JournalHistory.jsx - Mental Status State
src/context/MentalStatusContext.jsx
Chat and Guidance
- Chat Interface
src/pages/chatbox/ChatBox.jsx
Account and Information
- Profile Page
src/pages/profile/Profile.jsx - Profile Form
src/components/ProfileForm.jsx - About Page
src/pages/aboutUs/aboutUs.jsx - FAQ Page
src/pages/faq/faq.jsx - Footer Links
src/components/Footer.jsx
Other components
- User
- Auth API
- Journal Statistics API
- Chat API
- Profile API
Connections 30
- User → Route Coordinator: opens app
src/App.jsx - Route Coordinator → Landing Page: routes public
src/App.jsx - Route Coordinator → Login and Register: routes auth
src/App.jsx - Route Coordinator → Dashboard Page: protects route
src/App.jsx - Route Coordinator → Mood Journal: protects route
src/App.jsx - Route Coordinator → Journal History: protects route
src/App.jsx - Route Coordinator → Chat Interface: protects route
src/App.jsx - Route Coordinator → Profile Page: protects route
src/App.jsx - Route Coordinator → About Page: routes page
src/App.jsx - Route Coordinator → FAQ Page: routes page
src/App.jsx - Login and Register → Auth API: submits credentials
src/components/AuthForm.jsx - Dashboard Page → Journal Statistics API: fetches statistics
src/pages/Dashboard-Page/Dashboard-Page.jsx - Dashboard Page → Mood Dashboard: renders dashboard
src/pages/Dashboard-Page/Dashboard-Page.jsx - Mood Dashboard → Mental Status State: uses status
src/components/DashboardContent.jsx - Chat Interface → Chat API: loads messages
src/pages/chatbox/ChatBox.jsx - Chat Interface → Mental Status State: uses status
src/pages/chatbox/ChatBox.jsx - Profile Page → Profile API: reads and updates
src/pages/profile/Profile.jsx - Profile Page → Profile Form: renders form
src/pages/profile/Profile.jsx - Dashboard Page → Navigation: renders navigation
src/pages/Dashboard-Page/Dashboard-Page.jsx - Chat Interface → Navigation: renders navigation
src/pages/chatbox/ChatBox.jsx - Profile Page → Navigation: renders navigation
src/pages/profile/Profile.jsx - About Page → Navigation: renders navigation
src/pages/aboutUs/aboutUs.jsx - About Page → Footer Links: renders footer
src/pages/aboutUs/aboutUs.jsx - Landing Page → Navigation: renders navigation
src/pages/landing-page/LandingPage.jsx - Landing Page → Footer Links: renders footer
src/pages/landing-page/LandingPage.jsx - Dashboard Page → Footer Links: renders footer
src/pages/Dashboard-Page/Dashboard-Page.jsx - Chat Interface → Footer Links: renders footer
src/pages/chatbox/ChatBox.jsx - Profile Page → Footer Links: renders footer
src/pages/profile/Profile.jsx - FAQ Page → Navigation: renders navigation
src/pages/faq/faq.jsx - FAQ Page → Footer Links: renders footer
src/pages/faq/faq.jsx