How ankush00123/mini_project works
This is a client-side study tracker organized around a React dashboard, subject management, timed study sessions, and settings. The principal workflow is to create or select a subject, time a session, save it to that subject, and review study-hour summaries. Redux slices hold user, subject/session, and goal state; chart utilities derive aggregates from session data. The README is the default Vite template and documents no product-specific capabilities. Connections for unsampled components rely only on SOURCE INDEX references.
Main entry points: App.jsx Route shell · SettingsPage.jsx Settings page · userSlice.js User state · subjectSlice.js Subject and sessions
Components 31
App navigation
- Route shell
src/App.jsx - Sidebar
src/components/Sidebar/Sidebar.jsx
Study tracking
- Subject list
src/components/Subjects/SubjectsPage.jsx - Subject editor
src/components/Subjects/SubjectForm.jsx - Subject detail
src/components/Subjects/SingleSubjectPage.jsx - Session timer
src/components/Session/SessionPage.jsx
Progress insights
- Dashboard
src/components/Dashboard/Dashboard.jsx - First-use setup
src/components/Dashboard/UserNotOnboarded.jsx - Study overview
src/components/Dashboard/UserOnboarded.jsx - Goal summary
src/components/Dashboard/GoalCard.jsx - Chart selector
src/components/Charts/ChartContainer.jsx - Weekly bar chart
src/components/Charts/WeeklyHoursBarChart.jsx - Weekly line chart
src/components/Charts/WeeklyHoursLineChart.jsx - Subject-hours chart
src/components/Charts/WeeklyHoursPieChart.jsx
Profile and settings
- Settings page
src/components/Settings/SettingsPage.jsx - Goal editor
src/components/Settings/GoalEdit.jsx - Import and export
src/components/Settings/ImportExport.jsx - Profile deletion
src/components/Settings/DeleteProfile.jsx - Username editor
src/components/Settings/UsernameEdit.jsx - Sample data
src/components/Settings/DummyDataSeeder.jsx
State and utilities
- Redux store
src/store/store.js - User state
src/store/features/userSlice.js - Subject and sessions
src/store/features/subjectSlice.js - Timer state
src/store/features/sessionSlice.js - Goal state
src/store/features/goalSlice.js - Study aggregates
src/utils/dataUtils.js - Subject helpers
src/utils/subjectUtils.js - Session helpers
src/utils/sessionUtils.js - Time conversion
src/utils/timeUtils.js - State transfer helpers
src/utils/exportImportUtils.js
Other components
- User
Connections 48
- User → Route shell: opens app
- Route shell → Sidebar: renders
src/App.jsx - Route shell → Dashboard: routes to
src/App.jsx - Route shell → Subject list: routes to
src/App.jsx - Route shell → Subject detail: routes to
src/App.jsx - Route shell → Session timer: routes to
src/App.jsx - Route shell → Settings page: routes to
src/App.jsx - Dashboard → First-use setup: renders
src/components/Dashboard/Dashboard.jsx - Dashboard → Study overview: renders
src/components/Dashboard/Dashboard.jsx - First-use setup → User state: reads state
src/components/Dashboard/UserNotOnboarded.jsx - Study overview → Chart selector: renders
src/components/Dashboard/UserOnboarded.jsx - Study overview → Goal summary: renders
src/components/Dashboard/UserOnboarded.jsx - Chart selector → Weekly bar chart: selects chart
src/components/Charts/ChartContainer.jsx - Chart selector → Weekly line chart: selects chart
src/components/Charts/ChartContainer.jsx - Chart selector → Subject-hours chart: selects chart
src/components/Charts/ChartContainer.jsx - Weekly bar chart → Study aggregates: derives data
src/components/Charts/WeeklyHoursBarChart.jsx - Weekly line chart → Study aggregates: derives data
src/components/Charts/WeeklyHoursLineChart.jsx - Subject-hours chart → Study aggregates: derives data
src/components/Charts/WeeklyHoursPieChart.jsx - Subject list → Subject editor: renders
src/components/Subjects/SubjectsPage.jsx - Subject list → Subject helpers: creates subjects
src/components/Subjects/SubjectsPage.jsx - Subject editor → Subject and sessions: dispatches changes
src/components/Subjects/SubjectForm.jsx - Subject editor → Subject helpers: creates subject
src/components/Subjects/SubjectForm.jsx - Subject detail → Weekly bar chart: renders
src/components/Subjects/SingleSubjectPage.jsx - Session timer → Subject and sessions: saves session
src/components/Session/SessionPage.jsx - Session timer → Timer state: dispatches timer actions
src/components/Session/SessionPage.jsx - Session timer → Session helpers: creates session
src/components/Session/SessionPage.jsx - Session timer → Time conversion: formats duration
src/components/Session/SessionPage.jsx - Settings page → Goal editor: renders
src/components/Settings/SettingsPage.jsx - Settings page → Import and export: renders
src/components/Settings/SettingsPage.jsx - Settings page → Profile deletion: renders
src/components/Settings/SettingsPage.jsx - Settings page → Username editor: renders
src/components/Settings/SettingsPage.jsx - Settings page → Sample data: renders
src/components/Settings/SettingsPage.jsx - Goal editor → Goal state: updates goal
src/components/Settings/GoalEdit.jsx - Username editor → User state: updates username
src/components/Settings/UsernameEdit.jsx - Profile deletion → User state: resets profile
src/components/Settings/DeleteProfile.jsx - Profile deletion → Subject and sessions: resets subjects
src/components/Settings/DeleteProfile.jsx - Profile deletion → Timer state: resets timer
src/components/Settings/DeleteProfile.jsx - Profile deletion → Goal state: resets goal
src/components/Settings/DeleteProfile.jsx - Import and export → State transfer helpers: uses transfer helpers
src/components/Settings/ImportExport.jsx - State transfer helpers → User state: imports state
src/utils/exportImportUtils.js - State transfer helpers → Subject and sessions: imports state
src/utils/exportImportUtils.js - State transfer helpers → Goal state: imports state
src/utils/exportImportUtils.js - Sample data → Subject helpers: adds sample subjects
src/components/Settings/DummyDataSeeder.jsx - Subject helpers → User state: mounts sample user
src/utils/subjectUtils.js - Subject helpers → Subject and sessions: adds subjects
src/utils/subjectUtils.js - Redux store → User state: registers reducer
src/store/store.js - Redux store → Subject and sessions: registers reducer
src/store/store.js - Redux store → Timer state: registers reducer
src/store/store.js