How harytri87/odin-todo-list works
Todo List is a browser-based task manager organized around projects and their todos. On startup, the app loads saved projects (or seeds examples), checks recurring reset dates, and renders project categories and tasks. Users can create, edit, complete, and delete projects or todos; those actions update browser storage and refresh the relevant view. Scheduled projects show due dates, while daily, weekly, and monthly projects reset completion state on their respective schedule. The graph follows shown imports and calls; unexcerpted create behavior is included as a capability, but its internal call links are omitted where evidence is unavailable.
Main entry points: script.js Project and todo state · index.js DOM startup · read.js Project and todo rendering · trackers.js Navigation and task events
Components 15
App startup
- DOM startup
src/index.js
Task model and state
- Project and todo state
src/script.js - Project and todo models
src/utilities/classes.js - Example projects
src/utilities/seeder.js - Browser local storage
- Date and project helpers
src/utilities/utilities.js
Rendering and interaction
- Navigation and task events
src/ui-functions/trackers.js - Project and todo creation
src/ui-functions/create.js - Project and todo editing
src/ui-functions/edit.js - Project and todo deletion
src/ui-functions/delete.js - Project and todo rendering
src/ui-functions/read.js - Todo item template
src/ui-functions/todo-item-template.js - Interactive UI helper
src/utilities/interactive-ui.js
Recurring reset
- Reset date rules
src/utilities/reset-time.js
Other components
- User
Connections 27
- User → DOM startup: uses app
src/index.js - DOM startup → Project and todo state: checks resets
src/index.js - DOM startup → Project and todo rendering: renders projects
src/index.js - DOM startup → Navigation and task events: registers events
src/index.js - DOM startup → Project and todo creation: registers listeners
src/index.js - DOM startup → Project and todo editing: registers listeners
src/index.js - DOM startup → Project and todo deletion: registers listener
src/index.js - DOM startup → Interactive UI helper: imports helper
src/index.js - Project and todo state → Browser local storage: loads and saves
src/script.js - Project and todo state → Example projects: defaults to
src/script.js - Example projects → Project and todo models: constructs examples
src/utilities/seeder.js - Project and todo state → Reset date rules: checks schedule
src/script.js - Reset date rules → Project and todo state: saves reset dates
src/utilities/reset-time.js - Navigation and task events → Project and todo state: looks up and updates
src/ui-functions/trackers.js - Navigation and task events → Project and todo rendering: renders selected project
src/ui-functions/trackers.js - Navigation and task events → Project and todo editing: completes todos
src/ui-functions/trackers.js - Navigation and task events → Project and todo deletion: deletes todo
src/ui-functions/trackers.js - Project and todo editing → Project and todo state: updates records
src/ui-functions/edit.js - Project and todo editing → Project and todo rendering: rerenders completed todo
src/ui-functions/edit.js - Project and todo deletion → Project and todo state: deletes records
src/ui-functions/delete.js - Project and todo deletion → Project and todo rendering: refreshes project
src/ui-functions/delete.js - Project and todo rendering → Project and todo state: reads projects
src/ui-functions/read.js - Project and todo rendering → Todo item template: builds todo items
src/ui-functions/read.js - Project and todo rendering → Date and project helpers: formats dates
src/ui-functions/read.js - Todo item template → Date and project helpers: formats dates
src/ui-functions/todo-item-template.js - Date and project helpers → Project and todo state: finds project
src/utilities/utilities.js - Project and todo creation → Project and todo state: creates records
src/ui-functions/create.js