You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-7Lines changed: 38 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@ A comprehensive tutorial project showcasing **Decompose** for building reactive,
10
10
11
11
Decompose provides powerful tools for creating independent UI components with their own lifecycle, state management, and navigation capabilities. This tutorial walks through implementing a Todo application with clean architecture principles and Decompose integration.
|**Overview**|| Main app overview showing the Todo list interface | Root component visualization, Overall app layout |
30
+
|**Todo Management**|| Todo list displaying items in different stages | List component, Item rendering |
31
+
||| Interface for creating a new Todo item | Form handling, User input |
32
+
|**Workflow Stages**|| Todo in initial stage with play button | State representation, Action buttons |
33
+
||| Todo in "In Progress" stage | State transition, Progress tracking |
34
+
||| Todo in "Done" stage with checked checkbox | Completion state, Visual feedback |
35
+
|**Item Details**|| Detailed view of a Todo item | Detail component, Information display |
36
+
||| Interface for editing a Todo item | Edit mode, Form validation |
||| Back navigation handling | Back stack, Component preservation |
39
+
|**Component Interaction**|| Components communicating with each other | Event handling, Component communication |
40
+
||| State update between components | State propagation, Reactive updates |
41
+
|**Advanced Features**|| Filtering and sorting capabilities | Filter component, State manipulation |
42
+
||| Todo statistics and metrics | Analytics component, Data aggregation |
43
+
||| Settings and configuration options | Preferences component, User customization |
1.**Todo Stage**: Initial state with play button to begin task
57
+
2.**In Progress Stage**: Active task with unchecked checkbox
58
+
3.**Done Stage**: Completed task with checked checkbox
59
+
24
60
## 🏗️ Architecture
25
61
26
62
This project follows Clean Architecture principles with a feature-based package structure combined with Decompose component architecture. This approach allows for better separation of concerns, high cohesion, and easier maintainability.
@@ -154,9 +190,6 @@ stateDiagram-v2
154
190
- Display: Checkbox (checked)
155
191
- Action: Unchecking the box moves todo back to "Todo" stage
156
192
157
-
<!-- TODO: Add screenshots for each stage -->
158
-

159
-
160
193
## 💻 Component Implementation
161
194
162
195
A simple Decompose component looks like:
@@ -226,8 +259,6 @@ fun `when todo is clicked, it navigates to details screen`() {
0 commit comments