create-auto-app 0.21.0 → 0.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/templates/kanban-todo/.context/auto-ia-scheme.json +0 -427
- package/templates/kanban-todo/.context/schema.graphql +0 -60
- package/templates/kanban-todo/.context/schema.json +0 -1134
- package/templates/kanban-todo/client/.gitignore +0 -24
- package/templates/kanban-todo/server/.gitignore +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-auto-app",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "Create Auto Engineer apps with no configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"fs-extra": "^11.2.0",
|
|
34
34
|
"inquirer": "^9.2.15",
|
|
35
35
|
"ora": "^8.0.1",
|
|
36
|
-
"@auto-engineer/id": "0.21.
|
|
36
|
+
"@auto-engineer/id": "0.21.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema_description": "Kanban-style todo application with drag-and-drop task management, real-time statistics, and celebration animations",
|
|
3
|
-
"atoms": {
|
|
4
|
-
"description": "Atomic UI primitives for the todo application",
|
|
5
|
-
"items": {}
|
|
6
|
-
},
|
|
7
|
-
"molecules": {
|
|
8
|
-
"description": "Reusable UI components composed from atoms",
|
|
9
|
-
"items": {
|
|
10
|
-
"TaskCard": {
|
|
11
|
-
"description": "Individual task card displaying task information with drag-and-drop support",
|
|
12
|
-
"composition": {
|
|
13
|
-
"atoms": ["card", "badge"]
|
|
14
|
-
},
|
|
15
|
-
"specs": [
|
|
16
|
-
"display task description with clear readable typography",
|
|
17
|
-
"show status indicator with color-coded dot or icon",
|
|
18
|
-
"display creation timestamp in subtle text",
|
|
19
|
-
"show completion timestamp for completed tasks",
|
|
20
|
-
"include quick action buttons appearing on hover",
|
|
21
|
-
"support click to expand for future task details",
|
|
22
|
-
"apply strike-through animation for completed tasks",
|
|
23
|
-
"use gradient borders matching task status"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"ColumnHeader": {
|
|
27
|
-
"description": "Header for Kanban columns with title and count badge",
|
|
28
|
-
"composition": {
|
|
29
|
-
"atoms": ["badge"]
|
|
30
|
-
},
|
|
31
|
-
"specs": [
|
|
32
|
-
"display column title with clear typography",
|
|
33
|
-
"show task count badge with colored background",
|
|
34
|
-
"use gradient or accent colors per column type",
|
|
35
|
-
"apply sticky positioning within scrollable columns",
|
|
36
|
-
"include subtle shadow for depth",
|
|
37
|
-
"maintain consistent height across all columns"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"ProgressRing": {
|
|
41
|
-
"description": "Circular progress indicator showing completion percentage",
|
|
42
|
-
"composition": {
|
|
43
|
-
"atoms": ["progress"]
|
|
44
|
-
},
|
|
45
|
-
"specs": [
|
|
46
|
-
"display circular progress ring with gradient stroke",
|
|
47
|
-
"show completion percentage prominently in center",
|
|
48
|
-
"animate progress changes with smooth easing",
|
|
49
|
-
"display total task count below percentage",
|
|
50
|
-
"use vibrant colors for high completion rates",
|
|
51
|
-
"show subtle pulse animation on milestone achievements",
|
|
52
|
-
"position prominently at top of dashboard or sidebar"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"StatCard": {
|
|
56
|
-
"description": "Card displaying a single statistic with icon and value",
|
|
57
|
-
"composition": {
|
|
58
|
-
"atoms": ["card"]
|
|
59
|
-
},
|
|
60
|
-
"specs": [
|
|
61
|
-
"show total tasks count with large prominent number",
|
|
62
|
-
"display tasks completed today with celebration icon",
|
|
63
|
-
"show breakdown: pending, in-progress, completed counts",
|
|
64
|
-
"display completion percentage with visual indicator",
|
|
65
|
-
"use card-based layout with glass morphism styling",
|
|
66
|
-
"include subtle icons for each statistic",
|
|
67
|
-
"update in real-time when tasks change status",
|
|
68
|
-
"animate number changes with counting effect"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
"ActivityItem": {
|
|
72
|
-
"description": "Single item in the recent activity feed",
|
|
73
|
-
"composition": {
|
|
74
|
-
"atoms": []
|
|
75
|
-
},
|
|
76
|
-
"specs": [
|
|
77
|
-
"display recent task completions in chronological order",
|
|
78
|
-
"show completion timestamp in relative format",
|
|
79
|
-
"include task description with completed styling",
|
|
80
|
-
"show subtle celebration icon for each completion",
|
|
81
|
-
"use minimalist list design with dividers",
|
|
82
|
-
"support click to view task details"
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"QuickAddInput": {
|
|
86
|
-
"description": "Input field for quickly adding new tasks",
|
|
87
|
-
"composition": {
|
|
88
|
-
"atoms": ["button"]
|
|
89
|
-
},
|
|
90
|
-
"specs": [
|
|
91
|
-
"display floating action button with plus icon",
|
|
92
|
-
"position fixed in bottom-right corner for easy access",
|
|
93
|
-
"expand into input form with smooth scale animation on click",
|
|
94
|
-
"include elegant input field with placeholder text",
|
|
95
|
-
"show submit button with icon when text is entered",
|
|
96
|
-
"support keyboard shortcut (Ctrl/Cmd + K) to focus input",
|
|
97
|
-
"auto-focus input when opened",
|
|
98
|
-
"clear and collapse after successful task addition",
|
|
99
|
-
"show loading state during task submission"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
"ViewToggle": {
|
|
103
|
-
"description": "Toggle control for switching between Kanban and List views",
|
|
104
|
-
"composition": {
|
|
105
|
-
"atoms": ["toggle-group", "button"]
|
|
106
|
-
},
|
|
107
|
-
"specs": [
|
|
108
|
-
"provide toggle between Kanban and List views",
|
|
109
|
-
"use segmented control or tab-style switcher",
|
|
110
|
-
"position in top toolbar for easy access",
|
|
111
|
-
"highlight active view with accent color",
|
|
112
|
-
"animate view transitions with fade and slide effects",
|
|
113
|
-
"preserve scroll position when switching views",
|
|
114
|
-
"remember user preference in local storage"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"ThemeToggle": {
|
|
118
|
-
"description": "Toggle button for switching between light and dark themes",
|
|
119
|
-
"composition": {
|
|
120
|
-
"atoms": ["button"]
|
|
121
|
-
},
|
|
122
|
-
"specs": [
|
|
123
|
-
"support light and dark theme modes",
|
|
124
|
-
"display sun/moon icon toggle in top bar",
|
|
125
|
-
"transition smoothly between themes with fade animation",
|
|
126
|
-
"adjust all colors including gradients for theme",
|
|
127
|
-
"maintain high contrast and readability in both modes",
|
|
128
|
-
"remember user preference in local storage",
|
|
129
|
-
"use system preference as default"
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
"EmptyState": {
|
|
133
|
-
"description": "Display component for empty columns or lists",
|
|
134
|
-
"composition": {
|
|
135
|
-
"atoms": ["button"]
|
|
136
|
-
},
|
|
137
|
-
"specs": [
|
|
138
|
-
"display welcoming illustration when no tasks exist",
|
|
139
|
-
"show encouraging message to add first task",
|
|
140
|
-
"provide quick-add button directly in empty state",
|
|
141
|
-
"show column-specific empty states with relevant illustrations",
|
|
142
|
-
"use consistent visual style matching overall design system",
|
|
143
|
-
"include helpful tips for new users"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"TopNavBar": {
|
|
147
|
-
"description": "Top navigation bar with app branding and controls",
|
|
148
|
-
"composition": {
|
|
149
|
-
"atoms": ["button"]
|
|
150
|
-
},
|
|
151
|
-
"specs": [
|
|
152
|
-
"display clean top navigation bar spanning full width",
|
|
153
|
-
"include app logo or name on left side of top bar",
|
|
154
|
-
"show view toggle controls in center of top bar",
|
|
155
|
-
"display theme toggle, search, and profile menu on right side",
|
|
156
|
-
"use gradient or glass morphism effect for top bar",
|
|
157
|
-
"maintain top bar fixed position during scroll",
|
|
158
|
-
"apply subtle shadow to separate top bar from content"
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"organisms": {
|
|
164
|
-
"description": "Smart UI components with data-fetching and business logic",
|
|
165
|
-
"items": {
|
|
166
|
-
"KanbanBoard": {
|
|
167
|
-
"description": "Main Kanban board with three columns for task management",
|
|
168
|
-
"composition": {
|
|
169
|
-
"molecules": ["ColumnHeader", "TaskCard", "EmptyState"]
|
|
170
|
-
},
|
|
171
|
-
"data_requirements": [
|
|
172
|
-
{
|
|
173
|
-
"type": "query",
|
|
174
|
-
"description": "Fetch all todos to display in Kanban columns",
|
|
175
|
-
"trigger": "on page load",
|
|
176
|
-
"details": {
|
|
177
|
-
"source": "AllTodos query",
|
|
178
|
-
"gql": "query AllTodos {\n todos {\n todoId\n description\n status\n addedAt\n completedAt\n }\n}",
|
|
179
|
-
"payload_schema": {}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"type": "mutation",
|
|
184
|
-
"description": "Move task to in progress column",
|
|
185
|
-
"trigger": "on drag to in progress column",
|
|
186
|
-
"details": {
|
|
187
|
-
"source": "MarkTodoInProgress mutation",
|
|
188
|
-
"gql": "mutation MarkTodoInProgress($input: MarkTodoInProgressInput!) {\n markTodoInProgress(input: $input) {\n success\n error {\n type\n message\n }\n }\n}",
|
|
189
|
-
"payload_schema": {
|
|
190
|
-
"todoId": "string"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"type": "mutation",
|
|
196
|
-
"description": "Mark task as complete",
|
|
197
|
-
"trigger": "on drag to done column",
|
|
198
|
-
"details": {
|
|
199
|
-
"source": "MarkTodoComplete mutation",
|
|
200
|
-
"gql": "mutation MarkTodoComplete($input: MarkTodoCompleteInput!) {\n markTodoComplete(input: $input) {\n success\n error {\n type\n message\n }\n }\n}",
|
|
201
|
-
"payload_schema": {
|
|
202
|
-
"todoId": "string"
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"specs": [
|
|
208
|
-
"display three distinct columns: To Do, In Progress, and Done",
|
|
209
|
-
"show elegant column headers with gradient backgrounds",
|
|
210
|
-
"display count badges on each column showing number of tasks",
|
|
211
|
-
"support drag-and-drop of task cards between columns",
|
|
212
|
-
"animate smooth transitions when tasks move between columns",
|
|
213
|
-
"show visual feedback during drag operations with shadow elevation",
|
|
214
|
-
"display task cards with glass morphism effect and subtle backdrop blur",
|
|
215
|
-
"add hover effects with gentle scale and shadow transitions",
|
|
216
|
-
"show empty state with beautiful illustrations when columns are empty",
|
|
217
|
-
"maintain consistent card spacing and grid alignment",
|
|
218
|
-
"allow reordering tasks within same column via drag-and-drop",
|
|
219
|
-
"auto-scroll columns when dragging near edges",
|
|
220
|
-
"show drop zones with visual indicators",
|
|
221
|
-
"prevent invalid drops with visual feedback",
|
|
222
|
-
"support keyboard-based task movement for accessibility",
|
|
223
|
-
"show task count updates immediately on column changes",
|
|
224
|
-
"maintain smooth 60fps animations during all interactions"
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
"QuickAddWidget": {
|
|
228
|
-
"description": "Floating action button that expands into task input form",
|
|
229
|
-
"composition": {
|
|
230
|
-
"molecules": ["QuickAddInput"]
|
|
231
|
-
},
|
|
232
|
-
"data_requirements": [
|
|
233
|
-
{
|
|
234
|
-
"type": "mutation",
|
|
235
|
-
"description": "Add a new todo to the list",
|
|
236
|
-
"trigger": "on form submit",
|
|
237
|
-
"details": {
|
|
238
|
-
"source": "AddTodo mutation",
|
|
239
|
-
"gql": "mutation AddTodo($input: AddTodoInput!) {\n addTodo(input: $input) {\n success\n error {\n type\n message\n }\n }\n}",
|
|
240
|
-
"payload_schema": {
|
|
241
|
-
"todoId": "string",
|
|
242
|
-
"description": "string"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
"specs": [
|
|
248
|
-
"display floating action button with plus icon",
|
|
249
|
-
"position fixed in bottom-right corner for easy access",
|
|
250
|
-
"expand into input form with smooth scale animation on click",
|
|
251
|
-
"include elegant input field with placeholder text",
|
|
252
|
-
"show submit button with icon when text is entered",
|
|
253
|
-
"support keyboard shortcut (Ctrl/Cmd + K) to focus input",
|
|
254
|
-
"auto-focus input when opened",
|
|
255
|
-
"clear and collapse after successful task addition",
|
|
256
|
-
"show loading state during task submission"
|
|
257
|
-
]
|
|
258
|
-
},
|
|
259
|
-
"StatisticsDashboard": {
|
|
260
|
-
"description": "Dashboard showing task statistics and completion metrics",
|
|
261
|
-
"composition": {
|
|
262
|
-
"molecules": ["ProgressRing", "StatCard"]
|
|
263
|
-
},
|
|
264
|
-
"data_requirements": [
|
|
265
|
-
{
|
|
266
|
-
"type": "query",
|
|
267
|
-
"description": "Fetch summary statistics for all todos",
|
|
268
|
-
"trigger": "on page load and when tasks change",
|
|
269
|
-
"details": {
|
|
270
|
-
"source": "TodoListSummary query",
|
|
271
|
-
"gql": "query TodoListSummary {\n todoListSummary {\n totalTodos\n pendingCount\n inProgressCount\n completedCount\n completionPercentage\n }\n}",
|
|
272
|
-
"payload_schema": {}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"specs": [
|
|
277
|
-
"show total tasks count with large prominent number",
|
|
278
|
-
"display tasks completed today with celebration icon",
|
|
279
|
-
"show breakdown: pending, in-progress, completed counts",
|
|
280
|
-
"display completion percentage with visual indicator",
|
|
281
|
-
"use card-based layout with glass morphism styling",
|
|
282
|
-
"include subtle icons for each statistic",
|
|
283
|
-
"update in real-time when tasks change status",
|
|
284
|
-
"animate number changes with counting effect"
|
|
285
|
-
]
|
|
286
|
-
},
|
|
287
|
-
"RecentActivityFeed": {
|
|
288
|
-
"description": "Feed showing recent task completions",
|
|
289
|
-
"composition": {
|
|
290
|
-
"molecules": ["ActivityItem"]
|
|
291
|
-
},
|
|
292
|
-
"data_requirements": [
|
|
293
|
-
{
|
|
294
|
-
"type": "query",
|
|
295
|
-
"description": "Fetch recently completed todos",
|
|
296
|
-
"trigger": "on page load and when tasks are completed",
|
|
297
|
-
"details": {
|
|
298
|
-
"source": "AllTodos query filtered for completed",
|
|
299
|
-
"gql": "query AllTodos {\n todos {\n todoId\n description\n status\n addedAt\n completedAt\n }\n}",
|
|
300
|
-
"payload_schema": {}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"specs": [
|
|
305
|
-
"display recent task completions in chronological order",
|
|
306
|
-
"show completion timestamp in relative format",
|
|
307
|
-
"limit to last 5 completed tasks",
|
|
308
|
-
"include task description with completed styling",
|
|
309
|
-
"show subtle celebration icon for each completion",
|
|
310
|
-
"use minimalist list design with dividers",
|
|
311
|
-
"support click to view task details",
|
|
312
|
-
"auto-scroll new completions into view with smooth animation"
|
|
313
|
-
]
|
|
314
|
-
},
|
|
315
|
-
"CelebrationOverlay": {
|
|
316
|
-
"description": "Overlay component for celebration animations",
|
|
317
|
-
"composition": {
|
|
318
|
-
"molecules": []
|
|
319
|
-
},
|
|
320
|
-
"specs": [
|
|
321
|
-
"trigger confetti animation when task is completed",
|
|
322
|
-
"show satisfying check mark animation",
|
|
323
|
-
"play subtle success sound effect (optional, user configurable)",
|
|
324
|
-
"display special animation for completing all tasks",
|
|
325
|
-
"show streak celebration for consecutive daily completions",
|
|
326
|
-
"use particle effects that do not obstruct UI",
|
|
327
|
-
"respect reduced motion preferences for accessibility"
|
|
328
|
-
]
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
"pages": {
|
|
333
|
-
"description": "Top-level views composed of organisms",
|
|
334
|
-
"items": {
|
|
335
|
-
"TodoDashboardPage": {
|
|
336
|
-
"route": "/",
|
|
337
|
-
"description": "Main dashboard page with Kanban board, statistics, and quick add functionality",
|
|
338
|
-
"layout": {
|
|
339
|
-
"organisms": [
|
|
340
|
-
"KanbanBoard",
|
|
341
|
-
"QuickAddWidget",
|
|
342
|
-
"StatisticsDashboard",
|
|
343
|
-
"RecentActivityFeed",
|
|
344
|
-
"CelebrationOverlay"
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
"navigation": [],
|
|
348
|
-
"specs": [
|
|
349
|
-
"display clean top navigation bar spanning full width",
|
|
350
|
-
"include app logo or name on left side of top bar",
|
|
351
|
-
"show view toggle controls in center of top bar",
|
|
352
|
-
"display theme toggle, search, and profile menu on right side",
|
|
353
|
-
"use gradient or glass morphism effect for top bar",
|
|
354
|
-
"maintain top bar fixed position during scroll",
|
|
355
|
-
"apply subtle shadow to separate top bar from content",
|
|
356
|
-
"occupy full viewport height below top bar",
|
|
357
|
-
"apply subtle gradient or textured background",
|
|
358
|
-
"center Kanban board with max-width container for large screens",
|
|
359
|
-
"provide adequate padding around content on all sides",
|
|
360
|
-
"support smooth transitions when switching between views",
|
|
361
|
-
"maintain responsive layout for tablet and mobile devices",
|
|
362
|
-
"use CSS Grid for Kanban column layout",
|
|
363
|
-
"display three equal-width columns in desktop view",
|
|
364
|
-
"apply consistent gap spacing between columns",
|
|
365
|
-
"stack columns vertically on mobile devices",
|
|
366
|
-
"support horizontal scrolling on smaller screens if needed",
|
|
367
|
-
"maintain minimum column width for readability",
|
|
368
|
-
"apply max-height with scroll for columns with many tasks",
|
|
369
|
-
"show subtle scrollbar styling matching theme",
|
|
370
|
-
"position fixed in bottom-right corner of viewport",
|
|
371
|
-
"display prominent plus icon or \"Add\" text",
|
|
372
|
-
"use vibrant gradient or solid accent color",
|
|
373
|
-
"apply circular shape with consistent size",
|
|
374
|
-
"show shadow for elevation effect",
|
|
375
|
-
"animate subtle pulse or glow on hover",
|
|
376
|
-
"expand into input form with smooth scale animation on click",
|
|
377
|
-
"maintain z-index above all other content",
|
|
378
|
-
"hide on mobile when keyboard is visible",
|
|
379
|
-
"display on right side of screen in desktop view",
|
|
380
|
-
"show progress ring at top of sidebar",
|
|
381
|
-
"include statistics cards in vertical stack",
|
|
382
|
-
"display recent activity feed below statistics",
|
|
383
|
-
"apply glass morphism or card-based design",
|
|
384
|
-
"collapse into expandable panel on tablet devices",
|
|
385
|
-
"move to bottom sheet on mobile devices",
|
|
386
|
-
"support toggle to show/hide for more workspace",
|
|
387
|
-
"collapse top bar controls into hamburger menu on small screens",
|
|
388
|
-
"show essential actions as bottom tab bar on mobile",
|
|
389
|
-
"include tabs for: Kanban, Statistics, Add, Settings",
|
|
390
|
-
"highlight active tab with accent color",
|
|
391
|
-
"use icons for tabs with optional labels",
|
|
392
|
-
"maintain fixed position at bottom of viewport",
|
|
393
|
-
"apply safe area insets for notched devices",
|
|
394
|
-
"support desktop layout for screens 1024px and wider",
|
|
395
|
-
"adapt to tablet layout for screens 768px to 1023px",
|
|
396
|
-
"optimize for mobile devices below 768px",
|
|
397
|
-
"stack Kanban columns vertically on screens below 640px",
|
|
398
|
-
"adjust font sizes and spacing for each breakpoint",
|
|
399
|
-
"maintain touch-friendly tap targets on all devices",
|
|
400
|
-
"test on common device dimensions for consistency",
|
|
401
|
-
"show skeleton loaders for initial page load",
|
|
402
|
-
"display shimmer effect on loading cards",
|
|
403
|
-
"include spinner for async operations",
|
|
404
|
-
"maintain layout stability during loading",
|
|
405
|
-
"show optimistic UI updates for immediate feedback",
|
|
406
|
-
"handle slow network conditions gracefully",
|
|
407
|
-
"provide timeout fallback with retry option",
|
|
408
|
-
"display inline error messages near relevant fields",
|
|
409
|
-
"show toast notifications for global errors",
|
|
410
|
-
"include helpful error messages with suggested actions",
|
|
411
|
-
"use consistent error styling with red accent color",
|
|
412
|
-
"provide retry buttons for failed operations",
|
|
413
|
-
"log errors to console for debugging",
|
|
414
|
-
"support error boundary for graceful failure recovery",
|
|
415
|
-
"support full keyboard navigation throughout app",
|
|
416
|
-
"provide ARIA labels for all interactive elements",
|
|
417
|
-
"include skip links for main content areas",
|
|
418
|
-
"maintain focus indicators with high contrast",
|
|
419
|
-
"support screen reader announcements for dynamic changes",
|
|
420
|
-
"respect prefers-reduced-motion for animations",
|
|
421
|
-
"ensure color contrast meets WCAG AA standards",
|
|
422
|
-
"provide alt text for all decorative images and icons"
|
|
423
|
-
]
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
todoListSummary: TodoListSummary!
|
|
3
|
-
todos: [TodoState!]!
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
type TodoListSummary {
|
|
7
|
-
totalTodos: Float!
|
|
8
|
-
pendingCount: Float!
|
|
9
|
-
inProgressCount: Float!
|
|
10
|
-
completedCount: Float!
|
|
11
|
-
completionPercentage: Float!
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type TodoState {
|
|
15
|
-
todoId: String!
|
|
16
|
-
description: String!
|
|
17
|
-
status: TodoStateStatus!
|
|
18
|
-
addedAt: DateTimeISO!
|
|
19
|
-
completedAt: DateTimeISO
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
enum TodoStateStatus {
|
|
23
|
-
PENDING
|
|
24
|
-
IN_PROGRESS
|
|
25
|
-
COMPLETED
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
"""
|
|
29
|
-
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.
|
|
30
|
-
"""
|
|
31
|
-
scalar DateTimeISO
|
|
32
|
-
|
|
33
|
-
type Mutation {
|
|
34
|
-
addTodo(input: AddTodoInput!): MutationResponse!
|
|
35
|
-
markTodoInProgress(input: MarkTodoInProgressInput!): MutationResponse!
|
|
36
|
-
markTodoComplete(input: MarkTodoCompleteInput!): MutationResponse!
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
type MutationResponse {
|
|
40
|
-
success: Boolean!
|
|
41
|
-
error: MutationError
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type MutationError {
|
|
45
|
-
type: String!
|
|
46
|
-
message: String
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
input AddTodoInput {
|
|
50
|
-
todoId: String!
|
|
51
|
-
description: String!
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
input MarkTodoInProgressInput {
|
|
55
|
-
todoId: String!
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
input MarkTodoCompleteInput {
|
|
59
|
-
todoId: String!
|
|
60
|
-
}
|