@tuturuuu/ui 0.16.0 → 0.18.0

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.
Files changed (597) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/biome.json +1 -1
  3. package/package.json +78 -119
  4. package/src/components/ui/calendar-app/calendar-client-page.tsx +12 -3
  5. package/src/components/ui/calendar-app/calendar-page-shell.tsx +38 -28
  6. package/src/components/ui/custom/notification-popover-client.tsx +3 -3
  7. package/src/components/ui/storefront/browse-panel.tsx +161 -0
  8. package/src/components/ui/storefront/bundle-selection-dialog.tsx +1 -1
  9. package/src/components/ui/storefront/cart-popover.tsx +1 -1
  10. package/src/components/ui/storefront/hero-panel.tsx +35 -30
  11. package/src/components/ui/storefront/listing-card.tsx +10 -5
  12. package/src/components/ui/storefront/merch-sections.tsx +7 -5
  13. package/src/components/ui/storefront/product-detail.tsx +79 -6
  14. package/src/components/ui/storefront/product-dialog.tsx +5 -1
  15. package/src/components/ui/storefront/storefront-surface.test.tsx +72 -0
  16. package/src/components/ui/storefront/storefront-surface.tsx +67 -63
  17. package/src/components/ui/storefront/types.ts +28 -0
  18. package/src/components/ui/storefront/utils.ts +4 -5
  19. package/src/components/ui/tasks/progress/activity-heatmap.tsx +256 -0
  20. package/src/components/ui/tasks/progress/breakdown-bars.tsx +79 -0
  21. package/src/components/ui/tasks/progress/cumulative-progress-chart.tsx +185 -0
  22. package/src/components/ui/tasks/progress/daily-bar-chart.tsx +97 -0
  23. package/src/components/ui/tasks/progress/habit-gauge.tsx +92 -0
  24. package/src/components/ui/tasks/progress/mini-sparkline.tsx +56 -0
  25. package/src/components/ui/tasks/progress/weekday-distribution-chart.tsx +72 -0
  26. package/src/components/ui/text-editor/editor.tsx +7 -1
  27. package/src/components/ui/text-editor/extensions.ts +4 -1
  28. package/src/components/ui/text-editor/mention-extension.tsx +33 -121
  29. package/src/globals.css +1 -0
  30. package/src/lib/workspace-actions.ts +15 -4
  31. package/src/components/ui/calendar-app/components/actions-dropdown.tsx +0 -269
  32. package/src/components/ui/calendar-app/components/auto-schedule-comprehensive-dialog.tsx +0 -220
  33. package/src/components/ui/calendar-app/components/calendar-header-actions.tsx +0 -67
  34. package/src/components/ui/calendar-app/components/experimental-feature-dialog.tsx +0 -56
  35. package/src/components/ui/calendar-app/components/habits-panel.tsx +0 -335
  36. package/src/components/ui/calendar-app/components/load-smart-scheduling-tasks.tsx +0 -143
  37. package/src/components/ui/calendar-app/components/priority-dropdown.tsx +0 -113
  38. package/src/components/ui/calendar-app/components/priority-view.tsx +0 -954
  39. package/src/components/ui/calendar-app/components/quick-task-dialog.tsx +0 -335
  40. package/src/components/ui/calendar-app/components/quick-task-timer.tsx +0 -112
  41. package/src/components/ui/calendar-app/components/scheduling-dialog.tsx +0 -664
  42. package/src/components/ui/calendar-app/components/sidebar/calendar-sidebar.tsx +0 -128
  43. package/src/components/ui/calendar-app/components/sidebar/index.tsx +0 -1
  44. package/src/components/ui/calendar-app/components/smart-schedule-button.tsx +0 -117
  45. package/src/components/ui/calendar-app/components/smart-schedule-preview-dialog.tsx +0 -845
  46. package/src/components/ui/calendar-app/components/smart-schedule-preview-panel.tsx +0 -941
  47. package/src/components/ui/calendar-app/components/task-fetcher.ts +0 -51
  48. package/src/components/ui/calendar-app/components/task-form.tsx +0 -132
  49. package/src/components/ui/calendar-app/components/task-list-form.tsx +0 -84
  50. package/src/components/ui/calendar-app/components/task-scheduler-panel.tsx +0 -494
  51. package/src/components/ui/calendar-app/components/tasks-sidebar-content.tsx +0 -232
  52. package/src/components/ui/calendar-app/components/tasks-sidebar.tsx +0 -31
  53. package/src/components/ui/calendar-app/components/time-tracker/components/active-session-card.tsx +0 -113
  54. package/src/components/ui/calendar-app/components/time-tracker/components/index.ts +0 -3
  55. package/src/components/ui/calendar-app/components/time-tracker/components/session-card.tsx +0 -153
  56. package/src/components/ui/calendar-app/components/time-tracker/components/stats-cards.tsx +0 -58
  57. package/src/components/ui/calendar-app/components/time-tracker/dialogs/create-task-dialog.tsx +0 -190
  58. package/src/components/ui/calendar-app/components/time-tracker/dialogs/delete-session-dialog.tsx +0 -52
  59. package/src/components/ui/calendar-app/components/time-tracker/dialogs/edit-session-dialog.tsx +0 -173
  60. package/src/components/ui/calendar-app/components/time-tracker/dialogs/index.ts +0 -3
  61. package/src/components/ui/calendar-app/components/time-tracker/hooks/index.ts +0 -2
  62. package/src/components/ui/calendar-app/components/time-tracker/hooks/use-sessions.ts +0 -191
  63. package/src/components/ui/calendar-app/components/time-tracker/hooks/use-time-tracker.ts +0 -408
  64. package/src/components/ui/calendar-app/components/time-tracker/index.tsx +0 -907
  65. package/src/components/ui/calendar-app/components/time-tracker/tabs/history-tab.tsx +0 -28
  66. package/src/components/ui/calendar-app/components/time-tracker/tabs/index.ts +0 -2
  67. package/src/components/ui/calendar-app/components/time-tracker/tabs/recent-sessions-tab.tsx +0 -173
  68. package/src/components/ui/calendar-app/components/time-tracker/time-tracker-trigger.tsx +0 -50
  69. package/src/components/ui/calendar-app/components/time-tracker/utils/category-colors.ts +0 -38
  70. package/src/components/ui/calendar-app/components/time-tracker/utils/format-time.ts +0 -26
  71. package/src/components/ui/calendar-app/components/time-tracker/utils/index.ts +0 -2
  72. package/src/components/ui/calendar-app/components/time-tracker.tsx +0 -2040
  73. package/src/components/ui/custom/settings/task-settings.tsx +0 -543
  74. package/src/components/ui/custom/settings/task-sound-settings.test.tsx +0 -146
  75. package/src/components/ui/text-editor/__tests__/task-mention-chip.test.tsx +0 -476
  76. package/src/components/ui/text-editor/task-mention-chip.tsx +0 -1397
  77. package/src/components/ui/text-editor/task-mention-resolution.ts +0 -235
  78. package/src/components/ui/text-editor/task-summary-popover.tsx +0 -360
  79. package/src/components/ui/tu-do/boards/__tests__/board-share-dialog.test.tsx +0 -286
  80. package/src/components/ui/tu-do/boards/__tests__/quick-create-board-dialog.test.tsx +0 -52
  81. package/src/components/ui/tu-do/boards/__tests__/task-board-form.test.tsx +0 -142
  82. package/src/components/ui/tu-do/boards/__tests__/workspace-projects-client-page.test.tsx +0 -169
  83. package/src/components/ui/tu-do/boards/analytics/GanttChart.tsx +0 -419
  84. package/src/components/ui/tu-do/boards/analytics/GanttControls.tsx +0 -123
  85. package/src/components/ui/tu-do/boards/analytics/GanttHeader.tsx +0 -48
  86. package/src/components/ui/tu-do/boards/analytics/GanttTimeline.tsx +0 -355
  87. package/src/components/ui/tu-do/boards/analytics/StatusDistribution.tsx +0 -130
  88. package/src/components/ui/tu-do/boards/analytics/TaskCreationAnalytics.tsx +0 -285
  89. package/src/components/ui/tu-do/boards/analytics/TaskDetailCard.tsx +0 -270
  90. package/src/components/ui/tu-do/boards/analytics/TaskGroup.tsx +0 -282
  91. package/src/components/ui/tu-do/boards/analytics/TaskWorkflowAnalytics.tsx +0 -280
  92. package/src/components/ui/tu-do/boards/board-public-link-section.tsx +0 -231
  93. package/src/components/ui/tu-do/boards/board-selector.tsx +0 -301
  94. package/src/components/ui/tu-do/boards/board-share-dialog.tsx +0 -69
  95. package/src/components/ui/tu-do/boards/board-share-settings-panel.tsx +0 -351
  96. package/src/components/ui/tu-do/boards/boardId/__tests__/list-actions.test.tsx +0 -199
  97. package/src/components/ui/tu-do/boards/boardId/board-column-external-retry.test.tsx +0 -127
  98. package/src/components/ui/tu-do/boards/boardId/board-column-initial-load.test.ts +0 -38
  99. package/src/components/ui/tu-do/boards/boardId/board-column.tsx +0 -893
  100. package/src/components/ui/tu-do/boards/boardId/board-text-utils.test.ts +0 -24
  101. package/src/components/ui/tu-do/boards/boardId/board-text-utils.ts +0 -11
  102. package/src/components/ui/tu-do/boards/boardId/enhanced-task-list.tsx +0 -543
  103. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/__tests__/bulk-mutations-external-workspaces.test.tsx +0 -392
  104. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/__tests__/bulk-mutations-move.test.tsx +0 -252
  105. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-actions-island.test.tsx +0 -57
  106. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-actions-island.tsx +0 -106
  107. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-actions-menu.tsx +0 -689
  108. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-custom-date-dialog.tsx +0 -82
  109. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-delete-dialog.tsx +0 -58
  110. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-clear-delete.ts +0 -418
  111. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-move.ts +0 -662
  112. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-relations-assignees.ts +0 -375
  113. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-relations-labels.ts +0 -278
  114. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-relations-projects.ts +0 -297
  115. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-relations.ts +0 -12
  116. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-mutations-updates.ts +0 -462
  117. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-operation-i18n.ts +0 -524
  118. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-operation-types.ts +0 -34
  119. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-operation-utils.ts +0 -377
  120. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-operations.ts +0 -348
  121. package/src/components/ui/tu-do/boards/boardId/kanban/bulk/bulk-personal-external-move.ts +0 -132
  122. package/src/components/ui/tu-do/boards/boardId/kanban/data/kanban-deadline-query.ts +0 -90
  123. package/src/components/ui/tu-do/boards/boardId/kanban/data/use-applied-sets.ts +0 -79
  124. package/src/components/ui/tu-do/boards/boardId/kanban/data/use-bulk-resources.ts +0 -112
  125. package/src/components/ui/tu-do/boards/boardId/kanban/data/use-filtered-resources.ts +0 -54
  126. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/__tests__/column-reorder.test.ts +0 -80
  127. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/auto-scroll.test.ts +0 -118
  128. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/auto-scroll.ts +0 -160
  129. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/column-reorder.ts +0 -65
  130. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/drag-preview.tsx +0 -117
  131. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/kanban-sort-helpers.ts +0 -76
  132. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-cache.ts +0 -367
  133. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-geometry.test.ts +0 -67
  134. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-geometry.ts +0 -94
  135. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-order.ts +0 -150
  136. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-pending.test.ts +0 -37
  137. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-pending.ts +0 -42
  138. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-preview.test.ts +0 -318
  139. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-preview.ts +0 -260
  140. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-drag-types.ts +0 -39
  141. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/task-sort-key.ts +0 -47
  142. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/use-kanban-dnd.test.ts +0 -859
  143. package/src/components/ui/tu-do/boards/boardId/kanban/dnd/use-kanban-dnd.ts +0 -1659
  144. package/src/components/ui/tu-do/boards/boardId/kanban/kanban-column-collapse.ts +0 -16
  145. package/src/components/ui/tu-do/boards/boardId/kanban/kanban-constants.ts +0 -43
  146. package/src/components/ui/tu-do/boards/boardId/kanban/planner/__tests__/kanban-planner-island.test.tsx +0 -380
  147. package/src/components/ui/tu-do/boards/boardId/kanban/planner/kanban-planner-dialog.tsx +0 -204
  148. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-digest-panel.tsx +0 -61
  149. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-item-strip.tsx +0 -54
  150. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-plan-toolbar.tsx +0 -251
  151. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-scope-badge.tsx +0 -27
  152. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-section.tsx +0 -58
  153. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-share-dialog.tsx +0 -238
  154. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-target-controls.tsx +0 -143
  155. package/src/components/ui/tu-do/boards/boardId/kanban/planner/planner-utils.ts +0 -65
  156. package/src/components/ui/tu-do/boards/boardId/kanban/planner/use-kanban-planner-state.ts +0 -234
  157. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-column-width.ts +0 -30
  158. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-columns.test.tsx +0 -1077
  159. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-columns.tsx +0 -447
  160. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-deadline-panels.tsx +0 -703
  161. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-deadline-tasks.test.ts +0 -267
  162. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-deadline-tasks.ts +0 -112
  163. package/src/components/ui/tu-do/boards/boardId/kanban/rendering/kanban-skeleton.tsx +0 -113
  164. package/src/components/ui/tu-do/boards/boardId/kanban/selection/use-keyboard-shortcuts.ts +0 -137
  165. package/src/components/ui/tu-do/boards/boardId/kanban/selection/use-multi-select.ts +0 -119
  166. package/src/components/ui/tu-do/boards/boardId/kanban.tsx +0 -631
  167. package/src/components/ui/tu-do/boards/boardId/list-actions.tsx +0 -522
  168. package/src/components/ui/tu-do/boards/boardId/menus/__tests__/task-estimation-menu.test.tsx +0 -261
  169. package/src/components/ui/tu-do/boards/boardId/menus/__tests__/task-menus.test.tsx +0 -708
  170. package/src/components/ui/tu-do/boards/boardId/menus/index.ts +0 -12
  171. package/src/components/ui/tu-do/boards/boardId/menus/task-assignees-menu.tsx +0 -176
  172. package/src/components/ui/tu-do/boards/boardId/menus/task-blocking-menu.tsx +0 -304
  173. package/src/components/ui/tu-do/boards/boardId/menus/task-due-date-menu.tsx +0 -201
  174. package/src/components/ui/tu-do/boards/boardId/menus/task-estimation-menu.tsx +0 -103
  175. package/src/components/ui/tu-do/boards/boardId/menus/task-labels-menu.tsx +0 -134
  176. package/src/components/ui/tu-do/boards/boardId/menus/task-move-menu.tsx +0 -66
  177. package/src/components/ui/tu-do/boards/boardId/menus/task-parent-menu.tsx +0 -228
  178. package/src/components/ui/tu-do/boards/boardId/menus/task-picker-popover.tsx +0 -300
  179. package/src/components/ui/tu-do/boards/boardId/menus/task-priority-menu.tsx +0 -178
  180. package/src/components/ui/tu-do/boards/boardId/menus/task-projects-menu.tsx +0 -143
  181. package/src/components/ui/tu-do/boards/boardId/menus/task-related-menu.tsx +0 -242
  182. package/src/components/ui/tu-do/boards/boardId/menus/task-scheduling-menu.tsx +0 -465
  183. package/src/components/ui/tu-do/boards/boardId/menus/task-scheduling-utils.ts +0 -109
  184. package/src/components/ui/tu-do/boards/boardId/status-grouped-board.tsx +0 -533
  185. package/src/components/ui/tu-do/boards/boardId/status-section.tsx +0 -274
  186. package/src/components/ui/tu-do/boards/boardId/task-actions.tsx +0 -675
  187. package/src/components/ui/tu-do/boards/boardId/task-board-server-page.test.tsx +0 -209
  188. package/src/components/ui/tu-do/boards/boardId/task-board-server-page.tsx +0 -109
  189. package/src/components/ui/tu-do/boards/boardId/task-card/TaskCardCheckbox.tsx +0 -50
  190. package/src/components/ui/tu-do/boards/boardId/task-card/TaskCardDates.tsx +0 -123
  191. package/src/components/ui/tu-do/boards/boardId/task-card/TaskCardHeader.tsx +0 -97
  192. package/src/components/ui/tu-do/boards/boardId/task-card/TaskCardMetadata.tsx +0 -152
  193. package/src/components/ui/tu-do/boards/boardId/task-card/measured-task-card.tsx +0 -118
  194. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-archive-visibility.test.ts +0 -44
  195. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-archive-visibility.ts +0 -17
  196. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-checkbox-style.ts +0 -39
  197. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-comparator.test.ts +0 -104
  198. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-comparator.ts +0 -123
  199. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-completion-checkbox-visibility.test.ts +0 -31
  200. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-completion-checkbox-visibility.ts +0 -9
  201. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-identifier-row.test.tsx +0 -124
  202. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-identifier-row.tsx +0 -88
  203. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-label-options.ts +0 -24
  204. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-open-options.test.ts +0 -166
  205. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-open-options.ts +0 -148
  206. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-resource-context.test.ts +0 -113
  207. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-resource-context.ts +0 -50
  208. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-visibility.test.ts +0 -41
  209. package/src/components/ui/tu-do/boards/boardId/task-card/task-card-visibility.ts +0 -14
  210. package/src/components/ui/tu-do/boards/boardId/task-card/task-card.tsx +0 -2889
  211. package/src/components/ui/tu-do/boards/boardId/task-card/task-scheduling-badge.tsx +0 -174
  212. package/src/components/ui/tu-do/boards/boardId/task-dialogs/BoardEstimationConfigDialog.tsx +0 -499
  213. package/src/components/ui/tu-do/boards/boardId/task-dialogs/TaskCustomDateDialog.tsx +0 -109
  214. package/src/components/ui/tu-do/boards/boardId/task-dialogs/TaskDeleteDialog.tsx +0 -96
  215. package/src/components/ui/tu-do/boards/boardId/task-dialogs/TaskNewLabelDialog.tsx +0 -178
  216. package/src/components/ui/tu-do/boards/boardId/task-dialogs/TaskNewProjectDialog.tsx +0 -127
  217. package/src/components/ui/tu-do/boards/boardId/task-filter.test.tsx +0 -152
  218. package/src/components/ui/tu-do/boards/boardId/task-filter.tsx +0 -996
  219. package/src/components/ui/tu-do/boards/boardId/task-form.tsx +0 -498
  220. package/src/components/ui/tu-do/boards/boardId/task-list-drag-preview.test.ts +0 -101
  221. package/src/components/ui/tu-do/boards/boardId/task-list-form.tsx +0 -91
  222. package/src/components/ui/tu-do/boards/boardId/task-list.tsx +0 -535
  223. package/src/components/ui/tu-do/boards/boardId/task-parent-badge-state.test.ts +0 -64
  224. package/src/components/ui/tu-do/boards/boardId/task-parent-badge-state.ts +0 -31
  225. package/src/components/ui/tu-do/boards/boardId/task.tsx +0 -2
  226. package/src/components/ui/tu-do/boards/boardId/timeline/task-edit-dialog.tsx +0 -109
  227. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-display.ts +0 -103
  228. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-grid.tsx +0 -381
  229. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-task-row.tsx +0 -339
  230. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-toolbar.tsx +0 -356
  231. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-utils.test.ts +0 -169
  232. package/src/components/ui/tu-do/boards/boardId/timeline/timeline-utils.ts +0 -517
  233. package/src/components/ui/tu-do/boards/boardId/timeline-board-open-task.test.tsx +0 -164
  234. package/src/components/ui/tu-do/boards/boardId/timeline-board.test.tsx +0 -217
  235. package/src/components/ui/tu-do/boards/boardId/timeline-board.tsx +0 -834
  236. package/src/components/ui/tu-do/boards/boards-list-skeleton.tsx +0 -62
  237. package/src/components/ui/tu-do/boards/columns.tsx +0 -159
  238. package/src/components/ui/tu-do/boards/copy-board-dialog.tsx +0 -156
  239. package/src/components/ui/tu-do/boards/enhanced-boards-view.tsx +0 -347
  240. package/src/components/ui/tu-do/boards/form.tsx +0 -264
  241. package/src/components/ui/tu-do/boards/quick-create-board-dialog.tsx +0 -75
  242. package/src/components/ui/tu-do/boards/row-actions.tsx +0 -397
  243. package/src/components/ui/tu-do/boards/share-section.tsx +0 -100
  244. package/src/components/ui/tu-do/boards/workspace-projects-client-page.tsx +0 -192
  245. package/src/components/ui/tu-do/boards/workspace-projects-page.tsx +0 -155
  246. package/src/components/ui/tu-do/cycles/task-cycles-client.tsx +0 -753
  247. package/src/components/ui/tu-do/cycles/task-cycles-page.tsx +0 -103
  248. package/src/components/ui/tu-do/drafts/draft-card.tsx +0 -204
  249. package/src/components/ui/tu-do/drafts/draft-convert-dialog.tsx +0 -195
  250. package/src/components/ui/tu-do/drafts/drafts-page.tsx +0 -122
  251. package/src/components/ui/tu-do/drafts/task-drafts-page.tsx +0 -90
  252. package/src/components/ui/tu-do/estimates/client.tsx +0 -292
  253. package/src/components/ui/tu-do/estimates/edit-estimation-dialog.tsx +0 -374
  254. package/src/components/ui/tu-do/estimates/task-estimates-page.tsx +0 -57
  255. package/src/components/ui/tu-do/estimates/use-task-estimates.ts +0 -324
  256. package/src/components/ui/tu-do/habits/client.tsx +0 -263
  257. package/src/components/ui/tu-do/habits/habit-card.tsx +0 -183
  258. package/src/components/ui/tu-do/habits/habit-form-dialog.tsx +0 -701
  259. package/src/components/ui/tu-do/habits/habits-page.tsx +0 -27
  260. package/src/components/ui/tu-do/hooks/__tests__/useDraftPersistence.test.ts +0 -494
  261. package/src/components/ui/tu-do/hooks/__tests__/useTaskDialog.test.tsx +0 -127
  262. package/src/components/ui/tu-do/hooks/__tests__/useTaskDialogState.test.ts +0 -217
  263. package/src/components/ui/tu-do/hooks/__tests__/useTaskLabelManagement.test.tsx +0 -572
  264. package/src/components/ui/tu-do/hooks/__tests__/useTaskProjectManagement.test.tsx +0 -144
  265. package/src/components/ui/tu-do/hooks/useDraftPersistence.ts +0 -199
  266. package/src/components/ui/tu-do/hooks/useTaskCardRelationships.ts +0 -340
  267. package/src/components/ui/tu-do/hooks/useTaskDialog.ts +0 -122
  268. package/src/components/ui/tu-do/hooks/useTaskDialogState.ts +0 -145
  269. package/src/components/ui/tu-do/hooks/useTaskFormState.ts +0 -206
  270. package/src/components/ui/tu-do/hooks/useTaskKeyboardShortcuts.ts +0 -58
  271. package/src/components/ui/tu-do/hooks/useTaskLabelManagement.ts +0 -425
  272. package/src/components/ui/tu-do/hooks/useTaskProjectManagement.ts +0 -454
  273. package/src/components/ui/tu-do/initiatives/task-initiatives-client.tsx +0 -889
  274. package/src/components/ui/tu-do/initiatives/task-initiatives-page.tsx +0 -116
  275. package/src/components/ui/tu-do/labels/client.tsx +0 -201
  276. package/src/components/ui/tu-do/labels/components/delete-label-dialog.tsx +0 -57
  277. package/src/components/ui/tu-do/labels/components/label-card.tsx +0 -86
  278. package/src/components/ui/tu-do/labels/components/label-dialog.tsx +0 -259
  279. package/src/components/ui/tu-do/labels/components/label-list.tsx +0 -83
  280. package/src/components/ui/tu-do/labels/hooks/use-task-labels.ts +0 -170
  281. package/src/components/ui/tu-do/labels/task-labels-page.tsx +0 -53
  282. package/src/components/ui/tu-do/labels/types.ts +0 -6
  283. package/src/components/ui/tu-do/logs/columns.tsx +0 -755
  284. package/src/components/ui/tu-do/logs/logs-client.tsx +0 -1006
  285. package/src/components/ui/tu-do/logs/logs-timeline.tsx +0 -2483
  286. package/src/components/ui/tu-do/logs/task-logs-page.tsx +0 -59
  287. package/src/components/ui/tu-do/my-tasks/__tests__/my-tasks-content.test.tsx +0 -408
  288. package/src/components/ui/tu-do/my-tasks/__tests__/use-my-tasks-query.test.ts +0 -469
  289. package/src/components/ui/tu-do/my-tasks/__tests__/use-my-tasks-state.test.ts +0 -1017
  290. package/src/components/ui/tu-do/my-tasks/__tests__/use-task-context-actions.test.ts +0 -584
  291. package/src/components/ui/tu-do/my-tasks/ai-credit-indicator.tsx +0 -143
  292. package/src/components/ui/tu-do/my-tasks/board-selector-dialog.tsx +0 -239
  293. package/src/components/ui/tu-do/my-tasks/command-bar.tsx +0 -1351
  294. package/src/components/ui/tu-do/my-tasks/label-project-filter.tsx +0 -194
  295. package/src/components/ui/tu-do/my-tasks/my-task-context-menu.tsx +0 -356
  296. package/src/components/ui/tu-do/my-tasks/my-tasks-content.tsx +0 -328
  297. package/src/components/ui/tu-do/my-tasks/my-tasks-data-loader.tsx +0 -17
  298. package/src/components/ui/tu-do/my-tasks/my-tasks-filters.tsx +0 -258
  299. package/src/components/ui/tu-do/my-tasks/my-tasks-header.tsx +0 -121
  300. package/src/components/ui/tu-do/my-tasks/my-tasks-page.tsx +0 -40
  301. package/src/components/ui/tu-do/my-tasks/personal-placement-dialog.tsx +0 -188
  302. package/src/components/ui/tu-do/my-tasks/task-filter.tsx +0 -235
  303. package/src/components/ui/tu-do/my-tasks/task-list-with-completion.tsx +0 -832
  304. package/src/components/ui/tu-do/my-tasks/task-list.tsx +0 -258
  305. package/src/components/ui/tu-do/my-tasks/task-preview-dialog.tsx +0 -1597
  306. package/src/components/ui/tu-do/my-tasks/task-section.tsx +0 -261
  307. package/src/components/ui/tu-do/my-tasks/use-my-tasks-query.ts +0 -149
  308. package/src/components/ui/tu-do/my-tasks/use-my-tasks-state.ts +0 -1037
  309. package/src/components/ui/tu-do/my-tasks/use-task-context-actions.ts +0 -474
  310. package/src/components/ui/tu-do/notes/note-edit-dialog.tsx +0 -118
  311. package/src/components/ui/tu-do/notes/note-list.tsx +0 -799
  312. package/src/components/ui/tu-do/notes/notes-content.tsx +0 -178
  313. package/src/components/ui/tu-do/notes/notes-page.tsx +0 -27
  314. package/src/components/ui/tu-do/progress/task-progress-import-panel.tsx +0 -60
  315. package/src/components/ui/tu-do/progress/task-progress-leaderboards-panel.tsx +0 -156
  316. package/src/components/ui/tu-do/progress/task-progress-page.tsx +0 -394
  317. package/src/components/ui/tu-do/progress/task-progress-panels.tsx +0 -303
  318. package/src/components/ui/tu-do/projects/components/index.ts +0 -11
  319. package/src/components/ui/tu-do/projects/components/project-actions-menu.tsx +0 -66
  320. package/src/components/ui/tu-do/projects/components/project-badges.tsx +0 -84
  321. package/src/components/ui/tu-do/projects/components/project-filter-menu.tsx +0 -170
  322. package/src/components/ui/tu-do/projects/components/project-grid-card.tsx +0 -198
  323. package/src/components/ui/tu-do/projects/components/project-list-item.tsx +0 -195
  324. package/src/components/ui/tu-do/projects/components/project-metrics.tsx +0 -87
  325. package/src/components/ui/tu-do/projects/components/project-progress-meter.tsx +0 -33
  326. package/src/components/ui/tu-do/projects/components/project-sort-menu.tsx +0 -71
  327. package/src/components/ui/tu-do/projects/components/projects-empty-state.tsx +0 -38
  328. package/src/components/ui/tu-do/projects/components/projects-loading-state.tsx +0 -26
  329. package/src/components/ui/tu-do/projects/components/projects-toolbar.tsx +0 -179
  330. package/src/components/ui/tu-do/projects/dialogs/create-project-dialog.tsx +0 -117
  331. package/src/components/ui/tu-do/projects/dialogs/edit-project-dialog.tsx +0 -125
  332. package/src/components/ui/tu-do/projects/dialogs/index.ts +0 -3
  333. package/src/components/ui/tu-do/projects/dialogs/manage-tasks-dialog.tsx +0 -205
  334. package/src/components/ui/tu-do/projects/hooks/index.ts +0 -2
  335. package/src/components/ui/tu-do/projects/hooks/use-project-filters.ts +0 -248
  336. package/src/components/ui/tu-do/projects/hooks/use-task-projects.ts +0 -238
  337. package/src/components/ui/tu-do/projects/projectId/components/__tests__/tasks-tab-layout.test.tsx +0 -169
  338. package/src/components/ui/tu-do/projects/projectId/components/documents-tab.tsx +0 -90
  339. package/src/components/ui/tu-do/projects/projectId/components/index.ts +0 -9
  340. package/src/components/ui/tu-do/projects/projectId/components/overview/description-card.tsx +0 -77
  341. package/src/components/ui/tu-do/projects/projectId/components/overview/linked-documents-card.tsx +0 -81
  342. package/src/components/ui/tu-do/projects/projectId/components/overview/linked-tasks-card.tsx +0 -85
  343. package/src/components/ui/tu-do/projects/projectId/components/overview/updates-card.tsx +0 -85
  344. package/src/components/ui/tu-do/projects/projectId/components/overview-tab.tsx +0 -35
  345. package/src/components/ui/tu-do/projects/projectId/components/project-configuration.tsx +0 -229
  346. package/src/components/ui/tu-do/projects/projectId/components/project-header.tsx +0 -115
  347. package/src/components/ui/tu-do/projects/projectId/components/project-lead-selector.tsx +0 -55
  348. package/src/components/ui/tu-do/projects/projectId/components/project-overview-context.tsx +0 -82
  349. package/src/components/ui/tu-do/projects/projectId/components/project-sidebar.tsx +0 -246
  350. package/src/components/ui/tu-do/projects/projectId/components/tasks-tab.tsx +0 -266
  351. package/src/components/ui/tu-do/projects/projectId/components/update-card.tsx +0 -162
  352. package/src/components/ui/tu-do/projects/projectId/components/updates-tab.tsx +0 -129
  353. package/src/components/ui/tu-do/projects/projectId/dialogs/index.ts +0 -1
  354. package/src/components/ui/tu-do/projects/projectId/dialogs/link-task-dialog.tsx +0 -114
  355. package/src/components/ui/tu-do/projects/projectId/hooks/index.ts +0 -4
  356. package/src/components/ui/tu-do/projects/projectId/hooks/use-animation-variants.ts +0 -68
  357. package/src/components/ui/tu-do/projects/projectId/hooks/use-project-form.ts +0 -214
  358. package/src/components/ui/tu-do/projects/projectId/hooks/use-project-updates.ts +0 -209
  359. package/src/components/ui/tu-do/projects/projectId/hooks/use-task-linking.ts +0 -101
  360. package/src/components/ui/tu-do/projects/projectId/task-project-detail-page-client.tsx +0 -93
  361. package/src/components/ui/tu-do/projects/projectId/task-project-detail-page.tsx +0 -78
  362. package/src/components/ui/tu-do/projects/projectId/task-project-detail.tsx +0 -367
  363. package/src/components/ui/tu-do/projects/projectId/types.ts +0 -51
  364. package/src/components/ui/tu-do/projects/task-projects-client.tsx +0 -270
  365. package/src/components/ui/tu-do/projects/task-projects-page.tsx +0 -97
  366. package/src/components/ui/tu-do/projects/types.ts +0 -62
  367. package/src/components/ui/tu-do/providers/__tests__/task-dialog-provider.test.tsx +0 -616
  368. package/src/components/ui/tu-do/providers/task-dialog-provider.tsx +0 -923
  369. package/src/components/ui/tu-do/providers/workspace-presence-provider.tsx +0 -88
  370. package/src/components/ui/tu-do/shared/AccessibleButton.tsx +0 -79
  371. package/src/components/ui/tu-do/shared/__tests__/assignee-select.test.tsx +0 -143
  372. package/src/components/ui/tu-do/shared/__tests__/board-client.test.tsx +0 -358
  373. package/src/components/ui/tu-do/shared/__tests__/board-header.test.tsx +0 -598
  374. package/src/components/ui/tu-do/shared/__tests__/board-query-cache.test.ts +0 -219
  375. package/src/components/ui/tu-do/shared/__tests__/board-switcher.test.tsx +0 -374
  376. package/src/components/ui/tu-do/shared/__tests__/board-views.test.tsx +0 -1288
  377. package/src/components/ui/tu-do/shared/__tests__/create-list-dialog.test.tsx +0 -118
  378. package/src/components/ui/tu-do/shared/__tests__/task-board-loading-state.test.tsx +0 -99
  379. package/src/components/ui/tu-do/shared/__tests__/task-cache-patches.test.ts +0 -147
  380. package/src/components/ui/tu-do/shared/__tests__/task-detail-page.test.tsx +0 -170
  381. package/src/components/ui/tu-do/shared/__tests__/task-dialog-manager.test.tsx +0 -945
  382. package/src/components/ui/tu-do/shared/__tests__/task-legacy-route-recovery.test.tsx +0 -101
  383. package/src/components/ui/tu-do/shared/__tests__/use-progressive-board-loader.test.tsx +0 -645
  384. package/src/components/ui/tu-do/shared/assignee-select.tsx +0 -592
  385. package/src/components/ui/tu-do/shared/board-broadcast-context.tsx +0 -45
  386. package/src/components/ui/tu-do/shared/board-client.tsx +0 -283
  387. package/src/components/ui/tu-do/shared/board-config-storage.ts +0 -94
  388. package/src/components/ui/tu-do/shared/board-header.tsx +0 -803
  389. package/src/components/ui/tu-do/shared/board-layout-settings.tsx +0 -1134
  390. package/src/components/ui/tu-do/shared/board-query-cache.ts +0 -157
  391. package/src/components/ui/tu-do/shared/board-switcher.tsx +0 -322
  392. package/src/components/ui/tu-do/shared/board-user-presence-avatars.tsx +0 -578
  393. package/src/components/ui/tu-do/shared/board-views.tsx +0 -1238
  394. package/src/components/ui/tu-do/shared/clear-menu-item.tsx +0 -34
  395. package/src/components/ui/tu-do/shared/create-list-dialog.tsx +0 -401
  396. package/src/components/ui/tu-do/shared/cursor-overlay-multi-wrapper.tsx +0 -245
  397. package/src/components/ui/tu-do/shared/cursor-overlay.tsx +0 -78
  398. package/src/components/ui/tu-do/shared/custom-date-picker/custom-date-picker-dialog.tsx +0 -157
  399. package/src/components/ui/tu-do/shared/description-overflow-warning-dialog.tsx +0 -68
  400. package/src/components/ui/tu-do/shared/edit-list-dialog.tsx +0 -383
  401. package/src/components/ui/tu-do/shared/empty-state-card.tsx +0 -46
  402. package/src/components/ui/tu-do/shared/estimation-mapping.test.ts +0 -32
  403. package/src/components/ui/tu-do/shared/estimation-mapping.ts +0 -74
  404. package/src/components/ui/tu-do/shared/estimation-utils.ts +0 -54
  405. package/src/components/ui/tu-do/shared/fade-setting-initializer.tsx +0 -61
  406. package/src/components/ui/tu-do/shared/label-chip.tsx +0 -46
  407. package/src/components/ui/tu-do/shared/list-view-context-menu.test.tsx +0 -203
  408. package/src/components/ui/tu-do/shared/list-view-sorting.test.ts +0 -50
  409. package/src/components/ui/tu-do/shared/list-view-sorting.ts +0 -108
  410. package/src/components/ui/tu-do/shared/list-view.tsx +0 -1248
  411. package/src/components/ui/tu-do/shared/mention-system/__tests__/mention-system.test.ts +0 -250
  412. package/src/components/ui/tu-do/shared/mention-system/mention-menu.tsx +0 -217
  413. package/src/components/ui/tu-do/shared/mention-system/types.ts +0 -141
  414. package/src/components/ui/tu-do/shared/mention-system/use-mention-suggestions.ts +0 -244
  415. package/src/components/ui/tu-do/shared/progressive-loader-context.tsx +0 -45
  416. package/src/components/ui/tu-do/shared/recent-sidebar-events.ts +0 -58
  417. package/src/components/ui/tu-do/shared/recycle-bin-panel.tsx +0 -651
  418. package/src/components/ui/tu-do/shared/relationship-task-identifier.ts +0 -14
  419. package/src/components/ui/tu-do/shared/slash-commands/__tests__/slash-commands.test.ts +0 -315
  420. package/src/components/ui/tu-do/shared/slash-commands/definitions.ts +0 -167
  421. package/src/components/ui/tu-do/shared/slash-commands/slash-command-menu.tsx +0 -114
  422. package/src/components/ui/tu-do/shared/special-task-list-pins.ts +0 -51
  423. package/src/components/ui/tu-do/shared/sync-warning-dialog.tsx +0 -133
  424. package/src/components/ui/tu-do/shared/task-board-errors.ts +0 -19
  425. package/src/components/ui/tu-do/shared/task-board-loading-state.tsx +0 -82
  426. package/src/components/ui/tu-do/shared/task-cache-patches.ts +0 -394
  427. package/src/components/ui/tu-do/shared/task-detail-page.tsx +0 -176
  428. package/src/components/ui/tu-do/shared/task-detail-server-page.tsx +0 -37
  429. package/src/components/ui/tu-do/shared/task-dialog-manager.tsx +0 -596
  430. package/src/components/ui/tu-do/shared/task-dialog-presentation.test.ts +0 -53
  431. package/src/components/ui/tu-do/shared/task-dialog-presentation.ts +0 -30
  432. package/src/components/ui/tu-do/shared/task-dialog-wrapper.tsx +0 -28
  433. package/src/components/ui/tu-do/shared/task-due-date-visibility.test.ts +0 -72
  434. package/src/components/ui/tu-do/shared/task-due-date-visibility.ts +0 -38
  435. package/src/components/ui/tu-do/shared/task-edit-dialog/components/compact-task-create-popover.test.tsx +0 -325
  436. package/src/components/ui/tu-do/shared/task-edit-dialog/components/compact-task-create-popover.tsx +0 -268
  437. package/src/components/ui/tu-do/shared/task-edit-dialog/components/mobile-floating-save-button.tsx +0 -46
  438. package/src/components/ui/tu-do/shared/task-edit-dialog/components/quick-settings-popover.tsx +0 -198
  439. package/src/components/ui/tu-do/shared/task-edit-dialog/components/smart-task-suggestions-panel.test.tsx +0 -129
  440. package/src/components/ui/tu-do/shared/task-edit-dialog/components/smart-task-suggestions-panel.tsx +0 -358
  441. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-description-editor.tsx +0 -496
  442. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-dialog-header.tsx +0 -545
  443. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-list-picker-panel.tsx +0 -220
  444. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-list-selector.tsx +0 -165
  445. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-list-trigger-styles.ts +0 -69
  446. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-name-input.test.tsx +0 -180
  447. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-name-input.tsx +0 -218
  448. package/src/components/ui/tu-do/shared/task-edit-dialog/components/task-suggestion-menus.tsx +0 -148
  449. package/src/components/ui/tu-do/shared/task-edit-dialog/constants.ts +0 -18
  450. package/src/components/ui/tu-do/shared/task-edit-dialog/context-menu-guard.test.ts +0 -37
  451. package/src/components/ui/tu-do/shared/task-edit-dialog/description-diff-viewer.tsx +0 -1665
  452. package/src/components/ui/tu-do/shared/task-edit-dialog/description-versions.test.ts +0 -97
  453. package/src/components/ui/tu-do/shared/task-edit-dialog/description-versions.ts +0 -210
  454. package/src/components/ui/tu-do/shared/task-edit-dialog/field-diff-viewer.tsx +0 -716
  455. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-dialog-close.test.ts +0 -218
  456. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-dialog-keyboard-shortcuts.test.ts +0 -140
  457. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-mutations.test.tsx +0 -231
  458. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-overrides.test.ts +0 -412
  459. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-realtime-sync.test.tsx +0 -237
  460. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-task-yjs-sync.test.ts +0 -190
  461. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/__tests__/use-update-shared-task.test.ts +0 -107
  462. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/task-api.test.ts +0 -171
  463. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/task-api.ts +0 -296
  464. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-editor-commands.ts +0 -314
  465. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-suggestion-menus.ts +0 -503
  466. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-change-detection.ts +0 -175
  467. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-data.ts +0 -401
  468. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-dependencies.ts +0 -773
  469. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-dialog-close.ts +0 -193
  470. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-dialog-keyboard-shortcuts.ts +0 -365
  471. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-form-reset.ts +0 -231
  472. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-form-state.ts +0 -307
  473. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-mutations.ts +0 -609
  474. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-overrides.ts +0 -134
  475. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-realtime-sync.ts +0 -270
  476. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-relationships.test.tsx +0 -212
  477. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-relationships.ts +0 -554
  478. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-revert.ts +0 -140
  479. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-save.test.ts +0 -289
  480. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-save.ts +0 -1473
  481. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-snapshot.ts +0 -59
  482. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-task-yjs-sync.ts +0 -224
  483. package/src/components/ui/tu-do/shared/task-edit-dialog/hooks/use-update-shared-task.ts +0 -60
  484. package/src/components/ui/tu-do/shared/task-edit-dialog/personal-overrides-section.tsx +0 -368
  485. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/components/clickable-task-item.tsx +0 -90
  486. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/components/index.ts +0 -4
  487. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/components/subtask-action-buttons.tsx +0 -140
  488. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/components/tab-button.tsx +0 -76
  489. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/components/task-relationship-action-buttons.tsx +0 -178
  490. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/dependencies-section.tsx +0 -140
  491. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/index.ts +0 -35
  492. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/parent-section.tsx +0 -70
  493. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/related-section.tsx +0 -81
  494. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/subtasks-section.tsx +0 -87
  495. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/task-search-popover.tsx +0 -229
  496. package/src/components/ui/tu-do/shared/task-edit-dialog/relationships/types/task-relationships.types.ts +0 -194
  497. package/src/components/ui/tu-do/shared/task-edit-dialog/selective-revert-panel.test.tsx +0 -91
  498. package/src/components/ui/tu-do/shared/task-edit-dialog/selective-revert-panel.tsx +0 -365
  499. package/src/components/ui/tu-do/shared/task-edit-dialog/task-activity-section.tsx +0 -802
  500. package/src/components/ui/tu-do/shared/task-edit-dialog/task-delete-dialog.tsx +0 -104
  501. package/src/components/ui/tu-do/shared/task-edit-dialog/task-description-change-dialog.test.tsx +0 -63
  502. package/src/components/ui/tu-do/shared/task-edit-dialog/task-description-change-dialog.tsx +0 -218
  503. package/src/components/ui/tu-do/shared/task-edit-dialog/task-description-restore-banner.tsx +0 -83
  504. package/src/components/ui/tu-do/shared/task-edit-dialog/task-description-version-restore-dialog.test.tsx +0 -120
  505. package/src/components/ui/tu-do/shared/task-edit-dialog/task-description-version-restore-dialog.tsx +0 -180
  506. package/src/components/ui/tu-do/shared/task-edit-dialog/task-dialog-actions.test.tsx +0 -68
  507. package/src/components/ui/tu-do/shared/task-edit-dialog/task-dialog-actions.tsx +0 -239
  508. package/src/components/ui/tu-do/shared/task-edit-dialog/task-instances-section.tsx +0 -173
  509. package/src/components/ui/tu-do/shared/task-edit-dialog/task-properties-section.test.tsx +0 -303
  510. package/src/components/ui/tu-do/shared/task-edit-dialog/task-properties-section.tsx +0 -2213
  511. package/src/components/ui/tu-do/shared/task-edit-dialog/task-relationships-properties.tsx +0 -315
  512. package/src/components/ui/tu-do/shared/task-edit-dialog/task-snapshot-dialog.tsx +0 -167
  513. package/src/components/ui/tu-do/shared/task-edit-dialog/types/pending-relationship.test.ts +0 -52
  514. package/src/components/ui/tu-do/shared/task-edit-dialog/types/pending-relationship.ts +0 -134
  515. package/src/components/ui/tu-do/shared/task-edit-dialog/types.ts +0 -64
  516. package/src/components/ui/tu-do/shared/task-edit-dialog/user-display.test.ts +0 -58
  517. package/src/components/ui/tu-do/shared/task-edit-dialog/user-display.ts +0 -45
  518. package/src/components/ui/tu-do/shared/task-edit-dialog/utils/inline-task-target-list.test.ts +0 -98
  519. package/src/components/ui/tu-do/shared/task-edit-dialog/utils/inline-task-target-list.ts +0 -39
  520. package/src/components/ui/tu-do/shared/task-edit-dialog/utils.test.ts +0 -504
  521. package/src/components/ui/tu-do/shared/task-edit-dialog/utils.ts +0 -582
  522. package/src/components/ui/tu-do/shared/task-edit-dialog/yjs-prosemirror-compat.test.ts +0 -65
  523. package/src/components/ui/tu-do/shared/task-edit-dialog.tsx +0 -3196
  524. package/src/components/ui/tu-do/shared/task-estimation-display.tsx +0 -52
  525. package/src/components/ui/tu-do/shared/task-estimation-picker.tsx +0 -226
  526. package/src/components/ui/tu-do/shared/task-filter.types.ts +0 -65
  527. package/src/components/ui/tu-do/shared/task-label-selector.tsx +0 -217
  528. package/src/components/ui/tu-do/shared/task-labels-display.test.tsx +0 -51
  529. package/src/components/ui/tu-do/shared/task-labels-display.tsx +0 -119
  530. package/src/components/ui/tu-do/shared/task-legacy-route-recovery.tsx +0 -65
  531. package/src/components/ui/tu-do/shared/task-projects-display.tsx +0 -80
  532. package/src/components/ui/tu-do/shared/task-quick-create-target-list.ts +0 -20
  533. package/src/components/ui/tu-do/shared/task-resource-search-field.tsx +0 -49
  534. package/src/components/ui/tu-do/shared/task-resource-search-filters.ts +0 -27
  535. package/src/components/ui/tu-do/shared/task-row-actions-menu.test.tsx +0 -138
  536. package/src/components/ui/tu-do/shared/task-row-actions-menu.tsx +0 -402
  537. package/src/components/ui/tu-do/shared/task-share-dialog/components/share-link-settings.tsx +0 -86
  538. package/src/components/ui/tu-do/shared/task-share-dialog/components/shares-list.tsx +0 -85
  539. package/src/components/ui/tu-do/shared/task-share-dialog/hooks/use-task-sharing.ts +0 -296
  540. package/src/components/ui/tu-do/shared/task-share-dialog.tsx +0 -144
  541. package/src/components/ui/tu-do/shared/task-sound-effects.test.ts +0 -189
  542. package/src/components/ui/tu-do/shared/task-sound-effects.tsx +0 -468
  543. package/src/components/ui/tu-do/shared/task-url.ts +0 -56
  544. package/src/components/ui/tu-do/shared/text-diff-viewer.tsx +0 -55
  545. package/src/components/ui/tu-do/shared/types.ts +0 -14
  546. package/src/components/ui/tu-do/shared/unsaved-changes-warning-dialog.tsx +0 -71
  547. package/src/components/ui/tu-do/shared/use-progressive-board-loader.ts +0 -312
  548. package/src/components/ui/tu-do/shared/user-avatar.tsx +0 -46
  549. package/src/components/ui/tu-do/shared/user-presence-avatars.tsx +0 -415
  550. package/src/components/ui/tu-do/shared/utils/translate-task-list-display-name.ts +0 -28
  551. package/src/components/ui/tu-do/tasks-route-context.tsx +0 -50
  552. package/src/components/ui/tu-do/templates/client.tsx +0 -505
  553. package/src/components/ui/tu-do/templates/marketplace/client.tsx +0 -487
  554. package/src/components/ui/tu-do/templates/marketplace/task-marketplace-page.tsx +0 -169
  555. package/src/components/ui/tu-do/templates/save-as-template-dialog.tsx +0 -381
  556. package/src/components/ui/tu-do/templates/task-template-api.ts +0 -142
  557. package/src/components/ui/tu-do/templates/task-template-card.tsx +0 -118
  558. package/src/components/ui/tu-do/templates/task-template-client.test.tsx +0 -52
  559. package/src/components/ui/tu-do/templates/task-template-client.tsx +0 -258
  560. package/src/components/ui/tu-do/templates/task-template-dialogs.test.tsx +0 -167
  561. package/src/components/ui/tu-do/templates/task-template-dialogs.tsx +0 -376
  562. package/src/components/ui/tu-do/templates/task-templates-hub.test.tsx +0 -114
  563. package/src/components/ui/tu-do/templates/task-templates-hub.tsx +0 -53
  564. package/src/components/ui/tu-do/templates/task-templates-page.tsx +0 -157
  565. package/src/components/ui/tu-do/templates/templateId/client.tsx +0 -674
  566. package/src/components/ui/tu-do/templates/templateId/edit-template-dialog.tsx +0 -300
  567. package/src/components/ui/tu-do/templates/templateId/share-template-dialog.tsx +0 -261
  568. package/src/components/ui/tu-do/templates/templateId/task-template-detail-page-client.tsx +0 -127
  569. package/src/components/ui/tu-do/templates/templateId/task-template-detail-page.tsx +0 -89
  570. package/src/components/ui/tu-do/templates/templateId/use-template-dialog.tsx +0 -165
  571. package/src/components/ui/tu-do/templates/types.ts +0 -53
  572. package/src/components/ui/tu-do/utils/__tests__/label-colors.test.ts +0 -43
  573. package/src/components/ui/tu-do/utils/__tests__/taskColorUtils.test.ts +0 -267
  574. package/src/components/ui/tu-do/utils/__tests__/taskConstants.test.ts +0 -178
  575. package/src/components/ui/tu-do/utils/__tests__/taskDateUtils.test.ts +0 -226
  576. package/src/components/ui/tu-do/utils/__tests__/weekDateUtils.test.ts +0 -182
  577. package/src/components/ui/tu-do/utils/label-colors.test.ts +0 -15
  578. package/src/components/ui/tu-do/utils/label-colors.ts +0 -59
  579. package/src/components/ui/tu-do/utils/taskColorUtils.ts +0 -116
  580. package/src/components/ui/tu-do/utils/taskConstants.ts +0 -102
  581. package/src/components/ui/tu-do/utils/taskDateUtils.ts +0 -81
  582. package/src/components/ui/tu-do/utils/taskPriorityUtils.tsx +0 -80
  583. package/src/components/ui/tu-do/utils/weekDateUtils.ts +0 -64
  584. package/src/hooks/__tests__/use-task-actions.test.tsx +0 -2098
  585. package/src/hooks/__tests__/useBoardPresence.test.tsx +0 -191
  586. package/src/hooks/__tests__/useBoardRealtime.test.tsx +0 -1036
  587. package/src/hooks/__tests__/useCursorTracking.test.tsx +0 -212
  588. package/src/hooks/task-actions-personal-external.ts +0 -313
  589. package/src/hooks/use-task-actions.ts +0 -1910
  590. package/src/hooks/useBoardPresence.ts +0 -364
  591. package/src/hooks/useBoardRealtime.ts +0 -428
  592. package/src/hooks/useBoardRealtime.types.ts +0 -56
  593. package/src/hooks/useBoardRealtimeEventHandler.ts +0 -452
  594. package/src/hooks/useCursorTracking.ts +0 -402
  595. package/src/hooks/usePresence.ts +0 -272
  596. package/src/hooks/useTaskUserRealtime.ts +0 -340
  597. /package/src/{components/ui/tu-do/shared → lib}/task-open-events.ts +0 -0
@@ -1,1037 +0,0 @@
1
- 'use client';
2
-
3
- import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
4
- import {
5
- createWorkspaceLabel,
6
- createWorkspaceTaskBoard,
7
- createWorkspaceTaskProject,
8
- listWorkspaceBoardsWithLists,
9
- listWorkspaceLabels,
10
- listWorkspaceMembers,
11
- listWorkspaces,
12
- listWorkspaceTaskBoards,
13
- listWorkspaceTaskLists,
14
- listWorkspaceTaskProjects,
15
- updateWorkspaceTaskList,
16
- } from '@tuturuuu/internal-api';
17
- import type { TaskPriority } from '@tuturuuu/types/primitives/Priority';
18
- import { AI_CREDITS_QUERY_KEY } from '@tuturuuu/ui/hooks/use-ai-credits';
19
- import { useTaskUserRealtime } from '@tuturuuu/ui/hooks/useTaskUserRealtime';
20
- import { toast } from '@tuturuuu/ui/sonner';
21
- import { useTaskDialog } from '@tuturuuu/ui/tu-do/hooks/useTaskDialog';
22
- import { useBoardConfig } from '@tuturuuu/utils/task-helper';
23
- import dayjs from 'dayjs';
24
- import timezone from 'dayjs/plugin/timezone';
25
- import utc from 'dayjs/plugin/utc';
26
- import { useTranslations } from 'next-intl';
27
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
28
- import { getTaskApiUrl } from '../../../../lib/tasks-app-url';
29
- import { getRandomNewLabelColor } from '../utils/taskConstants';
30
- import type { TaskOptions } from './command-bar';
31
- import type { JournalTaskResponse } from './task-preview-dialog';
32
- import {
33
- MY_COMPLETED_TASKS_QUERY_KEY,
34
- MY_TASKS_QUERY_KEY,
35
- useCompletedTasksQuery,
36
- useMyTasksQuery,
37
- } from './use-my-tasks-query';
38
-
39
- dayjs.extend(utc);
40
- dayjs.extend(timezone);
41
-
42
- interface UseMyTasksStateProps {
43
- disableAutoCreateBoard?: boolean;
44
- initialBoard?: {
45
- id: string;
46
- name: string | null;
47
- };
48
- initialListId?: string;
49
- initialLists?: Array<{
50
- deleted?: boolean | null;
51
- id: string;
52
- name: string | null;
53
- position?: number | null;
54
- }>;
55
- wsId: string;
56
- userId: string;
57
- isPersonal: boolean;
58
- }
59
-
60
- export function useMyTasksState({
61
- disableAutoCreateBoard = false,
62
- initialBoard,
63
- initialListId,
64
- initialLists,
65
- wsId,
66
- userId,
67
- isPersonal,
68
- }: UseMyTasksStateProps) {
69
- const t = useTranslations();
70
- const queryClient = useQueryClient();
71
- const { onUpdate, openTaskById } = useTaskDialog();
72
- useTaskUserRealtime(userId);
73
-
74
- // Filter state (declared before query so it can be passed as param)
75
- const [taskFilters, setTaskFilters] = useState<{
76
- workspaceIds: string[];
77
- boardIds: string[];
78
- labelIds: string[];
79
- projectIds: string[];
80
- selfManagedOnly: boolean;
81
- }>({
82
- workspaceIds: ['all'],
83
- boardIds: ['all'],
84
- labelIds: [],
85
- projectIds: [],
86
- selfManagedOnly: false,
87
- });
88
-
89
- // Fetch tasks via TanStack Query (filters applied server-side)
90
- const { data: queryData, isLoading: queryLoading } = useMyTasksQuery(
91
- wsId,
92
- isPersonal,
93
- taskFilters
94
- );
95
-
96
- // Completed tasks with infinite scrolling (same filters as active tasks)
97
- const completedQuery = useCompletedTasksQuery(wsId, isPersonal, taskFilters);
98
- const completedTasks = useMemo(
99
- () => completedQuery.data?.pages.flatMap((p) => p.completed) ?? [],
100
- [completedQuery.data]
101
- );
102
- const hasMoreCompleted = completedQuery.hasNextPage ?? false;
103
- const fetchMoreCompleted = completedQuery.fetchNextPage;
104
- const isFetchingMoreCompleted = completedQuery.isFetchingNextPage;
105
- const totalCompletedTasks =
106
- completedQuery.data?.pages[0]?.totalCompletedTasks ?? 0;
107
-
108
- // Derive raw task arrays from query data
109
- const overdueTasks = queryData?.overdue;
110
- const todayTasks = queryData?.today;
111
- const upcomingTasks = queryData?.upcoming;
112
-
113
- // Board selector state
114
- const [boardSelectorOpen, setBoardSelectorOpen] = useState(false);
115
- const [selectedWorkspaceId, setSelectedWorkspaceId] = useState<string>(wsId);
116
- const [selectedBoardId, setSelectedBoardId] = useState<string>(
117
- initialBoard?.id ?? ''
118
- );
119
- const [selectedListId, setSelectedListId] = useState<string>(
120
- initialListId ??
121
- initialLists
122
- ?.filter((list) => !list.deleted)
123
- .sort((a, b) => (a.position ?? 0) - (b.position ?? 0))[0]?.id ??
124
- ''
125
- );
126
- const [newBoardDialogOpen, setNewBoardDialogOpen] = useState(false);
127
- const [newBoardName, setNewBoardName] = useState<string>('');
128
- const [newListDialogOpen, setNewListDialogOpen] = useState(false);
129
- const [newListName, setNewListName] = useState<string>('');
130
-
131
- // Command bar state
132
- const [commandBarLoading, setCommandBarLoading] = useState(false);
133
- const [commandBarInput, setCommandBarInput] = useState('');
134
-
135
- // Task creation state
136
- const [pendingTaskTitle, setPendingTaskTitle] = useState<string>('');
137
- const [taskCreatorMode, setTaskCreatorMode] = useState<
138
- 'simple' | 'ai' | null
139
- >(null);
140
-
141
- // AI Generation settings
142
- const [aiGenerateDescriptions, setAiGenerateDescriptions] = useState(true);
143
- const [aiGeneratePriority, setAiGeneratePriority] = useState(true);
144
- const [aiGenerateLabels, setAiGenerateLabels] = useState(true);
145
-
146
- // Auto-assign to me
147
- const [autoAssignToMe, setAutoAssignToMe] = useState(true);
148
-
149
- // AI flow step: idle → reviewing → selecting-destination
150
- type AiFlowStep = 'idle' | 'reviewing' | 'selecting-destination';
151
- const [aiFlowStep, setAiFlowStep] = useState<AiFlowStep>('idle');
152
-
153
- // Confirmed tasks from the review step (before destination selection)
154
- const [confirmedTasks, setConfirmedTasks] = useState<
155
- Array<{
156
- title: string;
157
- description: string | null;
158
- priority: TaskPriority | null;
159
- labels: Array<{ id?: string; name: string }>;
160
- dueDate: string | null;
161
- estimationPoints?: number | null;
162
- projectIds?: string[];
163
- }>
164
- >([]);
165
-
166
- // Preview state
167
- const [previewOpen, setPreviewOpen] = useState(false);
168
- const [previewEntry, setPreviewEntry] = useState<string | null>(null);
169
- const [lastResult, setLastResult] = useState<any | null>(null);
170
- const [selectedLabelIds, setSelectedLabelIds] = useState<string[]>([]);
171
- const [currentPreviewIndex, setCurrentPreviewIndex] = useState(0);
172
-
173
- // Collapsible sections state (all collapsed by default)
174
- const [collapsedSections, setCollapsedSections] = useState({
175
- overdue: true,
176
- today: true,
177
- upcoming: true,
178
- completed: true,
179
- });
180
-
181
- // Label creation dialog state
182
- const [newLabelDialogOpen, setNewLabelDialogOpenState] = useState(false);
183
- const [newLabelName, setNewLabelName] = useState('');
184
- const [newLabelColor, setNewLabelColor] = useState(() =>
185
- getRandomNewLabelColor()
186
- );
187
- const [creatingLabel, setCreatingLabel] = useState(false);
188
- const setNewLabelDialogOpen = useCallback((open: boolean) => {
189
- if (open) {
190
- setNewLabelColor((previousColor) =>
191
- getRandomNewLabelColor(previousColor)
192
- );
193
- }
194
- setNewLabelDialogOpenState(open);
195
- }, []);
196
-
197
- // Project creation dialog state
198
- const [newProjectDialogOpen, setNewProjectDialogOpen] = useState(false);
199
- const [newProjectName, setNewProjectName] = useState('');
200
- const [creatingProject, setCreatingProject] = useState(false);
201
-
202
- const clientTimezone = useMemo(() => {
203
- try {
204
- return Intl.DateTimeFormat().resolvedOptions().timeZone ?? 'UTC';
205
- } catch {
206
- return 'UTC';
207
- }
208
- }, []);
209
-
210
- const toggleSection = (
211
- section: 'overdue' | 'today' | 'upcoming' | 'completed'
212
- ) => {
213
- setCollapsedSections((prev) => ({
214
- ...prev,
215
- [section]: !prev[section],
216
- }));
217
- };
218
-
219
- // Invalidate query cache instead of router.refresh()
220
- const handleUpdate = useCallback(() => {
221
- queryClient.invalidateQueries({
222
- queryKey: [MY_TASKS_QUERY_KEY, wsId, isPersonal],
223
- });
224
- queryClient.invalidateQueries({
225
- queryKey: [MY_COMPLETED_TASKS_QUERY_KEY, wsId, isPersonal],
226
- });
227
- queryClient.invalidateQueries({ queryKey: ['user-workspaces'] });
228
- queryClient.invalidateQueries({ queryKey: ['workspace', wsId] });
229
- }, [queryClient, wsId, isPersonal]);
230
-
231
- // Connect centralized task dialog update to query invalidation
232
- useEffect(() => {
233
- const cleanup = onUpdate(handleUpdate);
234
- return cleanup;
235
- }, [onUpdate, handleUpdate]);
236
-
237
- // Fetch user's workspaces (only if in personal workspace)
238
- const { data: workspacesData } = useQuery({
239
- queryKey: ['user-workspaces'],
240
- queryFn: async () => {
241
- return listWorkspaces();
242
- },
243
- enabled: isPersonal,
244
- });
245
-
246
- const { data: allBoardsData = [] } = useQuery({
247
- queryKey: ['all-user-boards'],
248
- queryFn: async () => {
249
- const workspaces = await listWorkspaces();
250
- const workspaceIds = workspaces.map((workspace) => workspace.id);
251
- if (workspaceIds.length === 0) return [];
252
-
253
- const fetchAllWorkspaceBoards = async (workspaceId: string) => {
254
- const pageSize = 200;
255
- const boards: Awaited<
256
- ReturnType<typeof listWorkspaceTaskBoards>
257
- >['boards'] = [];
258
- let page = 1;
259
-
260
- while (true) {
261
- const payload = await listWorkspaceTaskBoards(workspaceId, {
262
- page,
263
- pageSize,
264
- });
265
- const pageBoards = payload.boards ?? [];
266
- boards.push(...pageBoards);
267
-
268
- if (pageBoards.length < pageSize) {
269
- break;
270
- }
271
-
272
- page += 1;
273
- }
274
-
275
- return boards;
276
- };
277
-
278
- const boardGroups = await Promise.all(
279
- workspaceIds.map((workspaceId) => fetchAllWorkspaceBoards(workspaceId))
280
- );
281
-
282
- return boardGroups
283
- .flat()
284
- .filter((board) => !board.deleted_at)
285
- .map((board) => ({
286
- id: board.id,
287
- name: board.name,
288
- ws_id: board.ws_id,
289
- }));
290
- },
291
- enabled: isPersonal,
292
- });
293
-
294
- // Check if current workspace has any boards (eager, for auto-creation)
295
- const { data: wsBoardCount, isLoading: wsBoardCountLoading } = useQuery({
296
- queryKey: ['workspace', wsId, 'board-count'],
297
- queryFn: async () => {
298
- const payload = await listWorkspaceTaskBoards(wsId, {
299
- page: 1,
300
- pageSize: 1,
301
- });
302
- return payload.count ?? 0;
303
- },
304
- enabled: !disableAutoCreateBoard,
305
- });
306
-
307
- // Auto-create a board if the workspace has none
308
- const autoCreateAttemptedRef = useRef(false);
309
-
310
- // Translated names for the auto-created board and its default lists
311
- const defaultBoardName = t('ws-tasks.default_board_name');
312
- const defaultListNames: Record<string, string> = useMemo(
313
- () => ({
314
- 'To Do': t('ws-tasks.default_list_todo'),
315
- 'In Progress': t('ws-tasks.default_list_in_progress'),
316
- Done: t('ws-tasks.default_list_done'),
317
- Closed: t('ws-tasks.default_list_closed'),
318
- }),
319
- [t]
320
- );
321
-
322
- useEffect(() => {
323
- if (
324
- disableAutoCreateBoard ||
325
- wsBoardCountLoading ||
326
- wsBoardCount === undefined
327
- ) {
328
- return;
329
- }
330
- if (wsBoardCount > 0) return;
331
- if (autoCreateAttemptedRef.current) return;
332
- autoCreateAttemptedRef.current = true;
333
-
334
- const autoCreateBoard = async () => {
335
- try {
336
- const { board: newBoard } = await createWorkspaceTaskBoard(wsId, {
337
- name: defaultBoardName,
338
- });
339
- if (!newBoard) return;
340
-
341
- const { lists } = await listWorkspaceTaskLists(wsId, newBoard.id);
342
- await Promise.all(
343
- (lists ?? [])
344
- .filter((list) => list.name && defaultListNames[list.name])
345
- .map((list) =>
346
- updateWorkspaceTaskList(wsId, newBoard.id, list.id, {
347
- name: defaultListNames[list.name!]!,
348
- })
349
- )
350
- );
351
-
352
- toast.info(t('ws-tasks.board_auto_created'));
353
-
354
- // Refresh board-related queries so selectors pick up the new board
355
- queryClient.invalidateQueries({
356
- queryKey: ['workspace', wsId, 'board-count'],
357
- });
358
- queryClient.invalidateQueries({
359
- queryKey: ['workspace', wsId, 'boards-with-lists'],
360
- });
361
- queryClient.invalidateQueries({ queryKey: ['all-user-boards'] });
362
-
363
- // Auto-select the new board
364
- setSelectedBoardId(newBoard.id);
365
- } catch (err) {
366
- console.error('Failed to auto-create board:', err);
367
- }
368
- };
369
-
370
- autoCreateBoard();
371
- }, [
372
- wsBoardCount,
373
- wsBoardCountLoading,
374
- wsId,
375
- t,
376
- queryClient,
377
- defaultBoardName,
378
- defaultListNames,
379
- disableAutoCreateBoard,
380
- ]);
381
-
382
- // Fetch boards with lists for selected workspace
383
- const { data: boardsDataRaw, isLoading: boardsLoading } = useQuery({
384
- queryKey: ['workspace', selectedWorkspaceId, 'boards-with-lists'],
385
- queryFn: async () => {
386
- const payload = await listWorkspaceBoardsWithLists(selectedWorkspaceId);
387
- return payload.boards || [];
388
- },
389
- enabled: boardSelectorOpen && !!selectedWorkspaceId,
390
- });
391
-
392
- const boardsData = Array.isArray(boardsDataRaw)
393
- ? boardsDataRaw
394
- : ((boardsDataRaw as any)?.boards ?? []);
395
-
396
- const allWorkspaceIds = useMemo(
397
- () => workspacesData?.map((ws) => ws.id) || [],
398
- [workspacesData]
399
- );
400
-
401
- // Fetch workspace labels
402
- const { data: workspaceLabels = [] } = useQuery({
403
- queryKey: ['workspaceLabels', JSON.stringify(allWorkspaceIds)],
404
- queryFn: async () => {
405
- if (allWorkspaceIds.length === 0) return [];
406
- const promises = allWorkspaceIds.map((id) => listWorkspaceLabels(id));
407
- const results = await Promise.all(promises);
408
- return results.flat().filter(Boolean);
409
- },
410
- enabled: isPersonal && allWorkspaceIds.length > 0,
411
- });
412
-
413
- // Fetch workspace projects
414
- const { data: workspaceProjects = [] } = useQuery({
415
- queryKey: ['workspaceProjects', JSON.stringify(allWorkspaceIds)],
416
- queryFn: async () => {
417
- if (allWorkspaceIds.length === 0) return [];
418
- const projectGroups = await Promise.all(
419
- allWorkspaceIds.map(async (workspaceId) => {
420
- const projects = await listWorkspaceTaskProjects(workspaceId);
421
- return projects.map((project) => ({
422
- id: project.id,
423
- name: project.name,
424
- ws_id: workspaceId,
425
- }));
426
- })
427
- );
428
-
429
- return projectGroups.flat().sort((a, b) => a.name.localeCompare(b.name));
430
- },
431
- enabled: isPersonal && allWorkspaceIds.length > 0,
432
- });
433
-
434
- // Fetch workspace members
435
- const { data: workspaceMembers = [] } = useQuery({
436
- queryKey: ['workspace', wsId, 'members'],
437
- queryFn: async () => {
438
- const data = await listWorkspaceMembers(wsId);
439
- return (data || []).map((member: any) => ({
440
- id: member.id || member.user_id,
441
- display_name: member.display_name,
442
- email: member.email,
443
- avatar_url: member.avatar_url,
444
- }));
445
- },
446
- });
447
-
448
- // Board config for estimation
449
- const { data: boardConfig } = useBoardConfig(
450
- selectedBoardId || undefined,
451
- selectedWorkspaceId || undefined
452
- );
453
-
454
- // Available lists for selected board
455
- const availableLists = useMemo(() => {
456
- if (!selectedBoardId) return [];
457
- const board = boardsData.find((b: any) => b.id === selectedBoardId);
458
- if (!board?.task_lists) {
459
- if (selectedBoardId !== initialBoard?.id) return [];
460
- return (initialLists ?? [])
461
- .filter((list) => !list.deleted)
462
- .sort((a, b) => (a.position ?? 0) - (b.position ?? 0));
463
- }
464
- return (board.task_lists as any[])
465
- .filter((l: any) => !l.deleted)
466
- .sort((a: any, b: any) => (a.position || 0) - (b.position || 0));
467
- }, [selectedBoardId, boardsData, initialBoard?.id, initialLists]);
468
-
469
- const hasValidSelectedList = useMemo(
470
- () => availableLists.some((list: any) => list.id === selectedListId),
471
- [availableLists, selectedListId]
472
- );
473
-
474
- // Track previous workspace to detect actual changes (not dialog-open noise)
475
- const prevWorkspaceIdRef = useRef(selectedWorkspaceId);
476
-
477
- // Auto-select first workspace when dialog opens
478
- useEffect(() => {
479
- if (
480
- isPersonal &&
481
- boardSelectorOpen &&
482
- workspacesData &&
483
- workspacesData.length > 0 &&
484
- !selectedWorkspaceId
485
- ) {
486
- setSelectedWorkspaceId(workspacesData[0]?.id || '');
487
- }
488
- }, [isPersonal, boardSelectorOpen, workspacesData, selectedWorkspaceId]);
489
-
490
- // Reset board selection only when workspace actually changes (not on dialog open)
491
- useEffect(() => {
492
- if (prevWorkspaceIdRef.current !== selectedWorkspaceId) {
493
- prevWorkspaceIdRef.current = selectedWorkspaceId;
494
- if (boardSelectorOpen) {
495
- setSelectedBoardId('');
496
- setSelectedListId('');
497
- }
498
- }
499
- }, [selectedWorkspaceId, boardSelectorOpen]);
500
-
501
- // Auto-select first board and list when data arrives
502
- useEffect(() => {
503
- if (
504
- boardSelectorOpen &&
505
- boardsData &&
506
- boardsData.length > 0 &&
507
- !selectedBoardId
508
- ) {
509
- const firstBoard = boardsData[0] as any;
510
- setSelectedBoardId(firstBoard.id);
511
- const lists = (firstBoard.task_lists as any[]) || [];
512
- const firstList = lists
513
- .filter((l: any) => !l.deleted)
514
- .sort((a: any, b: any) => (a.position || 0) - (b.position || 0))[0];
515
- if (firstList) setSelectedListId(firstList.id);
516
- }
517
- }, [boardSelectorOpen, boardsData, selectedBoardId]);
518
-
519
- // Auto-select first list when board changes
520
- useEffect(() => {
521
- if (selectedBoardId && availableLists.length > 0) {
522
- const currentListExists = availableLists.some(
523
- (l: any) => l.id === selectedListId
524
- );
525
- if (!currentListExists) {
526
- setSelectedListId(availableLists[0].id);
527
- }
528
- }
529
- }, [selectedBoardId, availableLists, selectedListId]);
530
-
531
- const handleWorkspaceSelectionChange = useCallback((workspaceId: string) => {
532
- setSelectedWorkspaceId(workspaceId);
533
- setSelectedBoardId('');
534
- setSelectedListId('');
535
- }, []);
536
-
537
- const handleBoardSelectionChange = useCallback((boardId: string) => {
538
- setSelectedBoardId(boardId);
539
- setSelectedListId('');
540
- }, []);
541
-
542
- // Preview mutation
543
- const previewMutation = useMutation<
544
- JournalTaskResponse,
545
- Error,
546
- {
547
- entry: string;
548
- generateDescriptions: boolean;
549
- generatePriority: boolean;
550
- generateLabels: boolean;
551
- clientTimezone: string;
552
- clientTimestamp: string;
553
- }
554
- >({
555
- mutationFn: async (variables) => {
556
- const response = await fetch(
557
- getTaskApiUrl(`/api/v1/workspaces/${wsId}/tasks/journal`),
558
- {
559
- method: 'POST',
560
- credentials: 'include',
561
- headers: { 'Content-Type': 'application/json' },
562
- body: JSON.stringify({
563
- entry: variables.entry,
564
- previewOnly: true,
565
- generateDescriptions: variables.generateDescriptions,
566
- generatePriority: variables.generatePriority,
567
- generateLabels: variables.generateLabels,
568
- clientTimezone: variables.clientTimezone,
569
- clientTimestamp: variables.clientTimestamp,
570
- }),
571
- }
572
- );
573
-
574
- const payload = await response.json().catch(() => null);
575
- if (!response.ok) {
576
- // Attach error code for credit-specific handling
577
- const errorObj = payload as {
578
- error?: string;
579
- code?: string;
580
- } | null;
581
- const err = new Error(errorObj?.error || 'Failed to generate preview');
582
- (err as any).code = errorObj?.code;
583
- (err as any).status = response.status;
584
- throw err;
585
- }
586
- return payload;
587
- },
588
- onSuccess: (payload, variables) => {
589
- setLastResult(payload ?? null);
590
- setPreviewEntry(variables.entry);
591
- setSelectedLabelIds([]);
592
- setCurrentPreviewIndex(0);
593
- setPreviewOpen(true);
594
- setAiFlowStep('reviewing');
595
- // Refresh credit balance after AI usage
596
- queryClient.invalidateQueries({ queryKey: [AI_CREDITS_QUERY_KEY] });
597
- },
598
- onError: (mutationError: Error) => {
599
- const code = (mutationError as any).code;
600
- const status = (mutationError as any).status;
601
-
602
- // Handle credit-specific 403 errors
603
- if (status === 403 && code) {
604
- // Refresh credit balance so indicator reflects current state
605
- queryClient.invalidateQueries({ queryKey: [AI_CREDITS_QUERY_KEY] });
606
- switch (code) {
607
- case 'CREDITS_EXHAUSTED':
608
- toast.error(t('ai-credits.error_credits_exhausted'));
609
- return;
610
- case 'MODEL_NOT_ALLOWED':
611
- toast.error(t('ai-credits.error_model_not_allowed'));
612
- return;
613
- case 'FEATURE_NOT_ALLOWED':
614
- toast.error(t('ai-credits.error_feature_not_allowed'));
615
- return;
616
- case 'DAILY_LIMIT_REACHED':
617
- toast.error(t('ai-credits.error_daily_limit_reached'));
618
- return;
619
- }
620
- }
621
-
622
- toast.error(
623
- mutationError.message || t('ws-tasks.errors.failed_generate_preview')
624
- );
625
- },
626
- });
627
-
628
- // Create tasks from preview
629
- const createTasksMutation = useMutation({
630
- mutationFn: async (payload: {
631
- targetWsId: string;
632
- entry: string;
633
- listId: string;
634
- tasks: Array<{
635
- title: string;
636
- description: string | null;
637
- priority: TaskPriority | null;
638
- labels: Array<{ id?: string; name: string }>;
639
- dueDate: string | null;
640
- estimationPoints?: number | null;
641
- projectIds?: string[];
642
- }>;
643
- labelIds: string[];
644
- assigneeIds?: string[];
645
- generatedWithAI: boolean;
646
- generateDescriptions: boolean;
647
- generatePriority: boolean;
648
- generateLabels: boolean;
649
- clientTimezone: string;
650
- clientTimestamp: string;
651
- }) => {
652
- const { targetWsId, ...body } = payload;
653
- const response = await fetch(
654
- `/api/v1/workspaces/${targetWsId}/tasks/journal`,
655
- {
656
- method: 'POST',
657
- headers: { 'Content-Type': 'application/json' },
658
- body: JSON.stringify(body),
659
- }
660
- );
661
- if (!response.ok) {
662
- const error = await response.json().catch(() => null);
663
- throw new Error(
664
- error?.error || t('ws-tasks.errors.failed_create_tasks')
665
- );
666
- }
667
- return response.json();
668
- },
669
- onSuccess: () => {
670
- toast.success(t('ws-tasks.tasks_created_successfully'));
671
- setAiFlowStep('idle');
672
- setConfirmedTasks([]);
673
- setBoardSelectorOpen(false);
674
- setPreviewOpen(false);
675
- setLastResult(null);
676
- setPreviewEntry(null);
677
- setPendingTaskTitle('');
678
- setCommandBarInput('');
679
- setTaskCreatorMode(null);
680
- handleUpdate();
681
- // Refresh credit balance after task creation (may consume credits)
682
- queryClient.invalidateQueries({ queryKey: [AI_CREDITS_QUERY_KEY] });
683
- },
684
- onError: (error: Error) => {
685
- setAiFlowStep('selecting-destination');
686
- setBoardSelectorOpen(true);
687
- setCommandBarInput((previewEntry ?? pendingTaskTitle).trim());
688
- toast.error(error.message || t('ws-tasks.errors.failed_create_tasks'));
689
- },
690
- });
691
-
692
- const handleCreateTask = async (
693
- title: string,
694
- options?: TaskOptions
695
- ): Promise<boolean> => {
696
- if (!selectedBoardId || !selectedListId) {
697
- setPendingTaskTitle(title);
698
- setBoardSelectorOpen(true);
699
- return false;
700
- }
701
-
702
- setCommandBarLoading(true);
703
- try {
704
- const { createTask: createTaskFn } = await import(
705
- '@tuturuuu/utils/task-helper'
706
- );
707
-
708
- const mergedAssigneeIds = new Set(options?.assigneeIds ?? []);
709
- if (autoAssignToMe) mergedAssigneeIds.add(userId);
710
-
711
- const newTask = await createTaskFn(selectedWorkspaceId, selectedListId, {
712
- name: title.trim(),
713
- description: undefined,
714
- priority: options?.priority || undefined,
715
- start_date: undefined,
716
- end_date: options?.dueDate?.toISOString() || undefined,
717
- estimation_points: options?.estimationPoints || undefined,
718
- label_ids: options?.labelIds || [],
719
- project_ids: options?.projectIds || [],
720
- assignee_ids: [...mergedAssigneeIds],
721
- });
722
-
723
- if (newTask) {
724
- toast.success(t('ws-tasks.task_created_successfully'), {
725
- action: {
726
- label: t('common.open'),
727
- onClick: () => openTaskById(newTask.id),
728
- },
729
- });
730
- setPendingTaskTitle('');
731
- setCommandBarInput('');
732
- handleUpdate();
733
- return true;
734
- } else {
735
- toast.error(t('ws-tasks.errors.failed_create_task'));
736
- return false;
737
- }
738
- } catch (error: any) {
739
- console.error('Error creating task:', error);
740
- toast.error(error.message || t('ws-tasks.errors.failed_create_task'));
741
- return false;
742
- } finally {
743
- setCommandBarLoading(false);
744
- }
745
- };
746
-
747
- const handleGenerateAI = async (entry: string): Promise<boolean> => {
748
- const trimmedEntry = entry.trim();
749
- if (!trimmedEntry) {
750
- toast.error(t('ws-tasks.errors.missing_task_description'));
751
- return false;
752
- }
753
-
754
- setPendingTaskTitle(trimmedEntry);
755
- setTaskCreatorMode('ai');
756
-
757
- let timestampMoment = dayjs().tz(clientTimezone);
758
- if (!timestampMoment.isValid()) {
759
- timestampMoment = dayjs();
760
- }
761
-
762
- try {
763
- await previewMutation.mutateAsync({
764
- entry: trimmedEntry,
765
- generateDescriptions: aiGenerateDescriptions,
766
- generatePriority: aiGeneratePriority,
767
- generateLabels: aiGenerateLabels,
768
- clientTimezone,
769
- clientTimestamp: timestampMoment.toISOString(),
770
- });
771
- return true;
772
- } catch (_) {
773
- // Error handling is already done in onError of the mutation
774
- return false;
775
- }
776
- };
777
-
778
- // Called when user finishes reviewing AI tasks and clicks "Save Tasks"
779
- const handleConfirmReview = (
780
- tasks: Array<{
781
- title: string;
782
- description: string | null;
783
- priority: TaskPriority | null;
784
- labels: Array<{ id?: string; name: string }>;
785
- dueDate: string | null;
786
- estimationPoints?: number | null;
787
- projectIds?: string[];
788
- }>
789
- ) => {
790
- setConfirmedTasks(tasks);
791
- setPreviewOpen(false);
792
- setAiFlowStep('selecting-destination');
793
- setBoardSelectorOpen(true);
794
- };
795
-
796
- const handleBoardSelectorConfirm = async () => {
797
- // Coming from AI review flow — create tasks with confirmed data
798
- if (aiFlowStep === 'selecting-destination' && confirmedTasks.length > 0) {
799
- if (!selectedBoardId || !hasValidSelectedList) {
800
- return;
801
- }
802
-
803
- let timestampMoment = dayjs().tz(clientTimezone);
804
- if (!timestampMoment.isValid()) {
805
- timestampMoment = dayjs();
806
- }
807
-
808
- createTasksMutation.mutate({
809
- targetWsId: selectedWorkspaceId,
810
- entry: (previewEntry ?? pendingTaskTitle).trim(),
811
- listId: selectedListId,
812
- tasks: confirmedTasks,
813
- labelIds: selectedLabelIds,
814
- assigneeIds: autoAssignToMe ? [userId] : [],
815
- generatedWithAI: Boolean(lastResult?.metadata?.generatedWithAI),
816
- generateDescriptions: aiGenerateDescriptions,
817
- generatePriority: aiGeneratePriority,
818
- generateLabels: aiGenerateLabels,
819
- clientTimezone,
820
- clientTimestamp: timestampMoment.toISOString(),
821
- });
822
- return;
823
- }
824
-
825
- setBoardSelectorOpen(false);
826
-
827
- if (pendingTaskTitle && taskCreatorMode === 'ai') {
828
- handleGenerateAI(pendingTaskTitle);
829
- } else if (pendingTaskTitle && taskCreatorMode === 'simple') {
830
- const success = await handleCreateTask(pendingTaskTitle);
831
- if (success) setCommandBarInput('');
832
- }
833
- };
834
-
835
- // Selected destination details for CommandBar
836
- const selectedDestination = useMemo(() => {
837
- if (!selectedBoardId || !selectedListId) return null;
838
- const board = boardsData.find((b: any) => b.id === selectedBoardId);
839
- const isInitialBoard = selectedBoardId === initialBoard?.id;
840
- const lists =
841
- (board?.task_lists as any[]) ||
842
- (isInitialBoard ? (initialLists ?? []) : []);
843
- const list = lists.find((l: any) => l.id === selectedListId);
844
- return {
845
- boardName: board?.name || initialBoard?.name || 'Unknown Board',
846
- listName: list?.name || 'Unknown List',
847
- };
848
- }, [
849
- selectedBoardId,
850
- selectedListId,
851
- boardsData,
852
- initialBoard?.id,
853
- initialBoard?.name,
854
- initialLists,
855
- ]);
856
-
857
- const handleClearDestination = () => {
858
- setSelectedBoardId('');
859
- setSelectedListId('');
860
- setPendingTaskTitle('');
861
- setTaskCreatorMode(null);
862
- };
863
-
864
- // Filter handlers
865
- const handleFilterChange = useCallback(
866
- (newFilters: Partial<typeof taskFilters>) => {
867
- setTaskFilters((prev) => ({ ...prev, ...newFilters }));
868
- },
869
- []
870
- );
871
-
872
- const handleLabelFilterChange = useCallback((ids: string[]) => {
873
- setTaskFilters((prev) => ({ ...prev, labelIds: ids }));
874
- }, []);
875
-
876
- const handleProjectFilterChange = useCallback((ids: string[]) => {
877
- setTaskFilters((prev) => ({ ...prev, projectIds: ids }));
878
- }, []);
879
-
880
- // Label creation
881
- const handleCreateNewLabel = async () => {
882
- if (!newLabelName.trim()) return;
883
- setCreatingLabel(true);
884
- try {
885
- await createWorkspaceLabel(wsId, {
886
- name: newLabelName.trim(),
887
- color: newLabelColor,
888
- });
889
- queryClient.invalidateQueries({ queryKey: ['workspaceLabels'] });
890
- toast.success(t('ws-tasks.label_created'));
891
- setNewLabelDialogOpenState(false);
892
- setNewLabelName('');
893
- setNewLabelColor((previousColor) =>
894
- getRandomNewLabelColor(previousColor)
895
- );
896
- } catch (error: any) {
897
- console.error('Error creating label:', error);
898
- toast.error(error.message || t('ws-tasks.errors.failed_create_label'));
899
- } finally {
900
- setCreatingLabel(false);
901
- }
902
- };
903
-
904
- // Project creation
905
- const handleCreateNewProject = async () => {
906
- if (!newProjectName.trim()) return;
907
- setCreatingProject(true);
908
- try {
909
- await createWorkspaceTaskProject(wsId, {
910
- name: newProjectName.trim(),
911
- });
912
- queryClient.invalidateQueries({ queryKey: ['workspaceProjects'] });
913
- toast.success(t('ws-tasks.project_created'));
914
- setNewProjectDialogOpen(false);
915
- setNewProjectName('');
916
- } catch (error: any) {
917
- console.error('Error creating project:', error);
918
- toast.error(error.message || t('ws-tasks.errors.failed_create_project'));
919
- } finally {
920
- setCreatingProject(false);
921
- }
922
- };
923
-
924
- // Server-side filtering: tasks are already filtered by the RPC.
925
- // filteredTasks is now just the raw query data.
926
- const filteredTasks = useMemo(
927
- () => ({ overdueTasks, todayTasks, upcomingTasks }),
928
- [overdueTasks, todayTasks, upcomingTasks]
929
- );
930
-
931
- return {
932
- // Query data
933
- queryData,
934
- queryLoading,
935
- completedTasks,
936
- hasMoreCompleted,
937
- fetchMoreCompleted,
938
- isFetchingMoreCompleted,
939
- totalCompletedTasks,
940
-
941
- // State
942
- boardSelectorOpen,
943
- setBoardSelectorOpen,
944
- selectedWorkspaceId,
945
- setSelectedWorkspaceId,
946
- handleWorkspaceSelectionChange,
947
- selectedBoardId,
948
- setSelectedBoardId,
949
- handleBoardSelectionChange,
950
- selectedListId,
951
- setSelectedListId,
952
- newBoardDialogOpen,
953
- setNewBoardDialogOpen,
954
- newBoardName,
955
- setNewBoardName,
956
- newListDialogOpen,
957
- setNewListDialogOpen,
958
- newListName,
959
- setNewListName,
960
- commandBarLoading,
961
- commandBarInput,
962
- setCommandBarInput,
963
- pendingTaskTitle,
964
- setPendingTaskTitle,
965
- taskCreatorMode,
966
- setTaskCreatorMode,
967
- aiGenerateDescriptions,
968
- setAiGenerateDescriptions,
969
- aiGeneratePriority,
970
- setAiGeneratePriority,
971
- aiGenerateLabels,
972
- setAiGenerateLabels,
973
- autoAssignToMe,
974
- setAutoAssignToMe,
975
- previewOpen,
976
- setPreviewOpen,
977
- previewEntry,
978
- lastResult,
979
- selectedLabelIds,
980
- setSelectedLabelIds,
981
- currentPreviewIndex,
982
- setCurrentPreviewIndex,
983
- collapsedSections,
984
- toggleSection,
985
- taskFilters,
986
- setTaskFilters,
987
- newLabelDialogOpen,
988
- setNewLabelDialogOpen,
989
- newLabelName,
990
- setNewLabelName,
991
- newLabelColor,
992
- setNewLabelColor,
993
- creatingLabel,
994
- newProjectDialogOpen,
995
- setNewProjectDialogOpen,
996
- newProjectName,
997
- setNewProjectName,
998
- creatingProject,
999
-
1000
- // Data
1001
- workspacesData,
1002
- allBoardsData,
1003
- boardsData,
1004
- boardsLoading,
1005
- workspaceLabels,
1006
- workspaceProjects,
1007
- workspaceMembers,
1008
- boardConfig,
1009
- availableLists,
1010
- hasValidSelectedList,
1011
- selectedDestination,
1012
- availableLabels: workspaceLabels,
1013
- availableProjects: workspaceProjects,
1014
- filteredTasks,
1015
-
1016
- // Mutations
1017
- previewMutation,
1018
- createTasksMutation,
1019
-
1020
- // AI flow
1021
- aiFlowStep,
1022
- confirmedTasks,
1023
-
1024
- // Handlers
1025
- handleUpdate,
1026
- handleCreateTask,
1027
- handleGenerateAI,
1028
- handleConfirmReview,
1029
- handleBoardSelectorConfirm,
1030
- handleClearDestination,
1031
- handleFilterChange,
1032
- handleLabelFilterChange,
1033
- handleProjectFilterChange,
1034
- handleCreateNewLabel,
1035
- handleCreateNewProject,
1036
- };
1037
- }