@fayz-ai/plugin-tasks 0.9.0 → 0.9.1

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 (42) hide show
  1. package/README.md +4 -4
  2. package/dist/components/TasksTopbarButton.d.ts +1 -1
  3. package/dist/components/TasksTopbarButton.d.ts.map +1 -1
  4. package/dist/{TasksContext.d.ts → context.d.ts} +1 -1
  5. package/dist/context.d.ts.map +1 -0
  6. package/dist/data/registries.d.ts.map +1 -0
  7. package/dist/index.d.ts +2 -2
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +2 -2
  10. package/dist/index.js.map +1 -1
  11. package/package.json +5 -7
  12. package/dist/TasksContext.d.ts.map +0 -1
  13. package/dist/registries.d.ts.map +0 -1
  14. package/src/TasksContext.tsx +0 -24
  15. package/src/components/TaskCard.tsx +0 -81
  16. package/src/components/TaskDetail.tsx +0 -209
  17. package/src/components/TaskLabelBadge.tsx +0 -37
  18. package/src/components/TaskPriorityBadge.tsx +0 -21
  19. package/src/components/TaskQuickAdd.tsx +0 -42
  20. package/src/components/TaskStatusGroup.tsx +0 -44
  21. package/src/components/TasksDrawer.tsx +0 -32
  22. package/src/components/TasksFilterBar.tsx +0 -57
  23. package/src/components/TasksGeneralSettings.tsx +0 -41
  24. package/src/components/TasksPanel.tsx +0 -94
  25. package/src/components/TasksTopbarButton.tsx +0 -109
  26. package/src/data/capability.test.ts +0 -43
  27. package/src/data/mock.ts +0 -143
  28. package/src/data/supabase.ts +0 -194
  29. package/src/data/tables.ts +0 -6
  30. package/src/data/types.ts +0 -16
  31. package/src/index.ts +0 -202
  32. package/src/lib/tenant.ts +0 -13
  33. package/src/locales/en.ts +0 -42
  34. package/src/locales/index.ts +0 -7
  35. package/src/locales/pt-BR.ts +0 -42
  36. package/src/migrations/000_plg_rename.sql +0 -12
  37. package/src/migrations/001_tasks_base.sql +0 -65
  38. package/src/migrations/index.ts +0 -89
  39. package/src/registries.ts +0 -33
  40. package/src/store.ts +0 -148
  41. package/src/types.ts +0 -94
  42. /package/dist/{registries.d.ts → data/registries.d.ts} +0 -0
package/src/types.ts DELETED
@@ -1,94 +0,0 @@
1
- // ---------------------------------------------------------------------------
2
- // Tasks Plugin — Domain Types
3
- // ---------------------------------------------------------------------------
4
-
5
- export type TaskStatus = 'todo' | 'in_progress' | 'done' | 'cancelled'
6
- export type TaskPriority = 'low' | 'medium' | 'high' | 'urgent'
7
-
8
- export const TASK_STATUSES: TaskStatus[] = ['todo', 'in_progress', 'done', 'cancelled']
9
- export const TASK_PRIORITIES: TaskPriority[] = ['low', 'medium', 'high', 'urgent']
10
-
11
- // ---------------------------------------------------------------------------
12
- // Core entities
13
- // ---------------------------------------------------------------------------
14
-
15
- export interface Task {
16
- id: string
17
- title: string
18
- description: string | null
19
- status: TaskStatus
20
- priority: TaskPriority
21
- dueDate: string | null
22
- assignedToId: string | null
23
- assignedToName: string | null
24
- parentId: string | null
25
- labels: string[]
26
- position: number
27
- createdById: string | null
28
- createdByName: string | null
29
- tenantId: string
30
- createdAt: string
31
- updatedAt: string
32
- }
33
-
34
- export interface TaskLabel {
35
- id: string
36
- name: string
37
- color: string
38
- isActive: boolean
39
- tenantId: string
40
- createdAt: string
41
- }
42
-
43
- // ---------------------------------------------------------------------------
44
- // Input types
45
- // ---------------------------------------------------------------------------
46
-
47
- export interface CreateTaskInput {
48
- title: string
49
- description?: string
50
- status?: TaskStatus
51
- priority?: TaskPriority
52
- dueDate?: string | null
53
- assignedToId?: string | null
54
- parentId?: string | null
55
- labels?: string[]
56
- }
57
-
58
- export interface UpdateTaskInput {
59
- title?: string
60
- description?: string | null
61
- status?: TaskStatus
62
- priority?: TaskPriority
63
- dueDate?: string | null
64
- assignedToId?: string | null
65
- labels?: string[]
66
- position?: number
67
- }
68
-
69
- // ---------------------------------------------------------------------------
70
- // Query types
71
- // ---------------------------------------------------------------------------
72
-
73
- export interface TaskQuery {
74
- status?: TaskStatus | TaskStatus[]
75
- priority?: TaskPriority | TaskPriority[]
76
- assignedToId?: string
77
- parentId?: string | null
78
- search?: string
79
- overdue?: boolean
80
- }
81
-
82
- // ---------------------------------------------------------------------------
83
- // Aggregation
84
- // ---------------------------------------------------------------------------
85
-
86
- export interface TasksSummary {
87
- total: number
88
- todo: number
89
- inProgress: number
90
- done: number
91
- overdue: number
92
- dueToday: number
93
- highPriority: number
94
- }
File without changes