How ivantumanow/dcut-test works
This is a React SPA for sign-in-gated todo management: users sign in, manage and filter todos on the home page, track completion, and view deleted items in an archive. The router protects home and archive routes; Zustand stores user/todo data persistently, while a separate token store supports the simulated authentication flow. The README also documents logout and theme switching. Some connections—especially header integration and unsampled widgets—are not visible in the excerpts, so those links are omitted rather than inferred.
Main entry points: page.tsx Home page · router.tsx Route dispatch · todo-carousel.tsx Todo carousel · user.store.ts User and todo store
Components 21
Application
- App bootstrap
src/app/main.tsx - Route dispatch
src/app/routing/router.tsx - Route guards
src/app/routing/routes.tsx - Login page
src/page/login/ui/page.tsx - Home page
src/page/home/ui/page.tsx - Archive page
src/page/archive/ui/page.tsx - Header
src/widgets/header/ui/header.tsx
Authentication
- Login form
src/widgets/form-login/ui/login.tsx - Token store
src/features/token/model/token.store.ts - Logout feature
src/features/logout/ui/logout.tsx
Todo management
- User and todo store
src/entities/users/model/user.store.ts - Todo entity
src/entities/todos/ui/todo.tsx - Todo carousel
src/widgets/todo-lists/ui/todo-carousel.tsx - Todo editing
src/widgets/todo-lists/model/use-todo-edit.hooks.tsx - Completion filter
src/widgets/todo-filter/model/use-filter.hooks.tsx - Custom tag filtering
src/widgets/todo-subtag/ui/todo-sub-tag.tsx - Unique tag service
src/widgets/todo-subtag/model/unique-sub-tags.services.ts - Completion progress
src/widgets/todo-progress/ui/todo-progress.tsx
Shared UI and state
- Theme switching
src/features/change-theme/ui/change-theme.tsx - Theme configuration
src/app/theme/theme.ts
Other components
- User
Connections 26
- User → App bootstrap: opens app
src/app/main.tsx - App bootstrap → Route dispatch: mounts
src/app/main.tsx - Route dispatch → Login page: routes to
src/app/routing/router.tsx - Route dispatch → Home page: routes to
src/app/routing/router.tsx - Route dispatch → Archive page: routes to
src/app/routing/router.tsx - Route dispatch → Route guards: applies guards
src/app/routing/router.tsx - Route guards → Token store: checks token
src/app/routing/routes.tsx - Login page → Login form: renders
src/page/login/ui/page.tsx - Login form → Token store: saves token
src/widgets/form-login/ui/login.tsx - Login form → User and todo store: creates user
src/widgets/form-login/ui/login.tsx - Home page → User and todo store: reads todos
src/page/home/ui/page.tsx - Home page → Completion filter: filters completion
src/page/home/ui/page.tsx - Home page → Custom tag filtering: filters by tags
src/page/home/ui/page.tsx - Home page → Todo carousel: renders todos
src/page/home/ui/page.tsx - Home page → Completion progress: shows progress
src/page/home/ui/page.tsx - Archive page → User and todo store: reads archive
src/page/archive/ui/page.tsx - Archive page → Todo carousel: renders archived
src/page/archive/ui/page.tsx - Todo carousel → User and todo store: updates todos
src/widgets/todo-lists/ui/todo-carousel.tsx - Todo carousel → Todo entity: renders cards
src/widgets/todo-lists/ui/todo-carousel.tsx - Todo carousel → Todo editing: opens editor
src/widgets/todo-lists/ui/todo-carousel.tsx - Custom tag filtering → Unique tag service: uses tag service
src/widgets/todo-subtag/ui/todo-sub-tag.tsx - Unique tag service → User and todo store: derives tags
- Logout feature → Token store: clears token
src/features/logout/ui/logout.tsx - App bootstrap → Theme configuration: configures theme
src/app/main.tsx - User → Header
- Header → Theme switching