How cbenel/todolist works
This repository is a React to-do application. A user opens the task list, can search and filter it, and can submit a task through an add-task form; App owns the in-memory task state, filtering, and deletion-confirmation behavior. The UI is divided into page components and task/filter models. The excerpts show no persistence integration; although a SQL file exists, its role and any runtime connection are not evidenced.
Main entry points: App.jsx App controller · FilterButtons.jsx Filter buttons · To-dos.jsx Task list · Button.jsx Button primitive
Components 15
Application state
- React entry
frontend/src/main.jsx - App controller
frontend/src/App.jsx
Task interface
- Header and actions
frontend/src/components/pageComponent/Header.jsx - Search bar
frontend/src/components/pageComponent/SearchBar.jsx - Filter buttons
frontend/src/components/pageComponent/FilterButtons.jsx - Task list
frontend/src/components/pageComponent/To-dos.jsx - Add-task form
frontend/src/components/addTask/addTask.jsx - Footer
frontend/src/components/pageComponent/Footer.jsx - Button primitive
frontend/src/components/Button.jsx
Task and filters
- Filter computation
frontend/src/assets/functions/filterToDosFunction.js - Task model
frontend/src/components/Tables/To-dos.js - Due-date color
frontend/src/assets/functions/getColorByDueDate.js - Filter definitions
frontend/src/components/Tables/Filter.js - Text formatting
frontend/src/assets/functions/capitalise.js
Other components
- User
Connections 22
- User → React entry: opens app
- React entry → App controller: renders
frontend/src/main.jsx - App controller → Header and actions: renders
frontend/src/App.jsx - App controller → Search bar: renders
frontend/src/App.jsx - App controller → Filter buttons: renders
frontend/src/App.jsx - App controller → Task list: renders
frontend/src/App.jsx - App controller → Footer: renders
frontend/src/App.jsx - App controller → Add-task form: renders
frontend/src/App.jsx - App controller → Filter computation: computes filters
frontend/src/App.jsx - App controller → Task model: constructs tasks
frontend/src/App.jsx - Add-task form → App controller: submits payload
frontend/src/components/addTask/addTask.jsx - App controller → Search bar: passes search state
frontend/src/App.jsx - App controller → Filter buttons: passes filter state
frontend/src/App.jsx - App controller → Task list: passes filtered tasks
frontend/src/App.jsx - Task model → Due-date color: gets color
frontend/src/components/Tables/To-dos.js - Filter buttons → Filter definitions: uses styles
frontend/src/components/pageComponent/FilterButtons.jsx - Header and actions → Button primitive: renders
frontend/src/components/pageComponent/Header.jsx - Search bar → Button primitive: renders
frontend/src/components/pageComponent/SearchBar.jsx - Filter buttons → Button primitive: renders
frontend/src/components/pageComponent/FilterButtons.jsx - Task list → Button primitive: renders
frontend/src/components/pageComponent/To-dos.jsx - Filter buttons → Text formatting: formats labels
frontend/src/components/pageComponent/FilterButtons.jsx - Task list → Text formatting: formats priority
frontend/src/components/pageComponent/To-dos.jsx