@fayz-ai/plugin-tasks 0.9.0-next.1 → 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/README.md CHANGED
@@ -23,11 +23,11 @@ It's deliberately small and zero-config. Drop it in and it owns its own tables (
23
23
  ```bash
24
24
  npm install @fayz-ai/plugin-tasks
25
25
  ```
26
- Peer deps: `react`, `react-dom`. Runtime deps include `@fayz-ai/core`, `@fayz-ai/ui`, and `@fayz-ai/saas`.
26
+ Peer deps: `react`, `react-dom`. Runtime deps include `@fayz-ai/core`, `@fayz-ai/ui`, and `@fayz-ai/admin`.
27
27
 
28
28
  ## Usage
29
29
  ```tsx
30
- import { defineSaas } from '@fayz-ai/saas'
30
+ import { defineSaas } from '@fayz-ai/admin'
31
31
  import { createTasksPlugin } from '@fayz-ai/plugin-tasks'
32
32
 
33
33
  export const app = defineSaas({
@@ -42,7 +42,7 @@ export const app = defineSaas({
42
42
  ```
43
43
 
44
44
  ## Part of the Fayz SDK
45
- `plugin-tasks` is the lightweight companion plugin: no navigation of its own, it simply adds a task surface to any app built with `@fayz-ai/saas`. It complements heavier plugins like `@fayz-ai/plugin-agenda` and `@fayz-ai/plugin-financial` by capturing the loose work around them.
45
+ `plugin-tasks` is the lightweight companion plugin: no navigation of its own, it simply adds a task surface to any app built with `@fayz-ai/admin`. It complements heavier plugins like `@fayz-ai/plugin-agenda` and `@fayz-ai/plugin-financial` by capturing the loose work around them.
46
46
 
47
47
  ## Roadmap & contributing
48
- Built and evolving in the open. See the [Fayz SDK roadmap](../../docs/ROADMAP.md#plugin-tasks) for current gaps, missing features, and good first issues.
48
+ Built and evolving in the open. See the [Fayz SDK roadmap](../../docs/platform/ROADMAP.md#plugin-tasks) for current gaps, missing features, and good first issues.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type ResolvedTasksConfig } from '../TasksContext';
2
+ import { type ResolvedTasksConfig } from '../context';
3
3
  import type { TasksDataProvider } from '../data/types';
4
4
  import type { TasksUIState } from '../store';
5
5
  import { type StoreApi } from 'zustand';
@@ -1 +1 @@
1
- {"version":3,"file":"TasksTopbarButton.d.ts","sourceRoot":"","sources":["../../src/components/TasksTopbarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAMxC,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAGhF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEjD,UAAU,sBAAsB;IAC9B,MAAM,EAAE;QACN,WAAW,EAAE,mBAAmB,CAAA;QAChC,aAAa,EAAE,iBAAiB,CAAA;QAChC,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAA;KACnC,CAAA;CACF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,qBA4CnE"}
1
+ {"version":3,"file":"TasksTopbarButton.d.ts","sourceRoot":"","sources":["../../src/components/TasksTopbarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAA;AAMxC,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAG3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEjD,UAAU,sBAAsB;IAC9B,MAAM,EAAE;QACN,WAAW,EAAE,mBAAmB,CAAA;QAChC,aAAa,EAAE,iBAAiB,CAAA;QAChC,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAA;KACnC,CAAA;CACF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,qBA4CnE"}
@@ -17,4 +17,4 @@ export declare const TasksContextProvider: import("react").FC<{
17
17
  export declare const useTasksConfig: () => ResolvedTasksConfig;
18
18
  export declare const useTasksProvider: () => TasksDataProvider;
19
19
  export declare const useTasksStore: <T>(selector: (state: TasksUIState) => T) => T;
20
- //# sourceMappingURL=TasksContext.d.ts.map
20
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,iBAAiB,CAAA;CAC1B;AAID,eAAO,MAAM,oBAAoB;;;;;EAAsB,CAAA;AACvD,eAAO,MAAM,cAAc,2BAAgB,CAAA;AAC3C,eAAO,MAAM,gBAAgB,yBAAkB,CAAA;AAC/C,eAAO,MAAM,aAAa,gDAAe,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registries.d.ts","sourceRoot":"","sources":["../../src/data/registries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAkBtD,eAAO,MAAM,eAAe,EAAE,iBAAiB,EAc9C,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { PluginManifest, PluginScope, VerticalId } from '@fayz-ai/core';
2
- import { type TasksPluginLabels } from './TasksContext';
2
+ import { type TasksPluginLabels } from './context';
3
3
  import type { TasksDataProvider } from './data/types';
4
4
  import type { TaskPriority } from './types';
5
5
  export interface TasksPluginOptions {
@@ -16,6 +16,6 @@ export interface TasksPluginOptions {
16
16
  }
17
17
  export declare function createTasksPlugin(options?: TasksPluginOptions): PluginManifest;
18
18
  export type { TasksDataProvider } from './data/types';
19
- export type { ResolvedTasksConfig, TasksPluginLabels } from './TasksContext';
19
+ export type { ResolvedTasksConfig, TasksPluginLabels } from './context';
20
20
  export type { Task, TaskLabel, TaskStatus, TaskPriority, TasksSummary, CreateTaskInput, UpdateTaskInput, TaskQuery, } from './types';
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EAAkD,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAgB3C,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACnC,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,kBAAkB;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,yDAAyD;IACzD,eAAe,CAAC,EAAE,YAAY,CAAA;CAC/B;AA2BD,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAoI9E;AAMD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAC5E,YAAY,EACV,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EACvD,eAAe,EAAE,eAAe,EAAE,SAAS,GAC5C,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC5E,OAAO,EAAkD,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAgB3C,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACnC,mBAAmB;IACnB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,kBAAkB;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,yDAAyD;IACzD,eAAe,CAAC,EAAE,YAAY,CAAA;CAC/B;AA2BD,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAoI9E;AAMD,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AACvE,YAAY,EACV,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EACvD,eAAe,EAAE,eAAe,EAAE,SAAS,GAC5C,MAAM,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React4, { useEffect, useState, useCallback } from 'react';
2
- import { createPluginContext, registerNotesTasksAdapter, NOTE_LABEL_PREFIX, dedup, useRightRailStore, useRightRailPanel, useTenantPluginSettings, useDelegateToAssistant } from '@fayz-ai/saas';
2
+ import { createPluginContext, registerNotesTasksAdapter, NOTE_LABEL_PREFIX, dedup, useRightRailStore, useRightRailPanel, useTenantPluginSettings, useDelegateToAssistant } from '@fayz-ai/admin';
3
3
  import { registerTranslations, createSafeDataProvider, useTranslation, getActiveTenantId, getSupabaseClientOptional } from '@fayz-ai/core';
4
4
  import { createStore } from 'zustand/vanilla';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -465,7 +465,7 @@ var tasksLocales = {
465
465
  "pt-BR": ptBR
466
466
  };
467
467
 
468
- // src/registries.ts
468
+ // src/data/registries.ts
469
469
  var taskLabelEntity = {
470
470
  name: "Task Label",
471
471
  namePlural: "Task Labels",