@ram_28/kf-ai-sdk 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/useKanban.md +5 -2
- package/docs/useTable.md +1 -1
- package/package.json +1 -1
package/docs/useKanban.md
CHANGED
|
@@ -428,7 +428,10 @@ function BoardWithPriorityFilter() {
|
|
|
428
428
|
Show only cards assigned to the current user.
|
|
429
429
|
|
|
430
430
|
```tsx
|
|
431
|
-
|
|
431
|
+
import { useAuth } from "@ram_28/kf-ai-sdk/auth";
|
|
432
|
+
|
|
433
|
+
function BoardWithMyTasks() {
|
|
434
|
+
const { user } = useAuth();
|
|
432
435
|
const kanban = useKanban<TaskData>({
|
|
433
436
|
source: "BDO_Tasks",
|
|
434
437
|
columns,
|
|
@@ -440,7 +443,7 @@ function BoardWithMyTasks({ currentUserId }: { currentUserId: string }) {
|
|
|
440
443
|
kanban.filter.addCondition({
|
|
441
444
|
Operator: "EQ",
|
|
442
445
|
LHSField: "assignee",
|
|
443
|
-
RHSValue:
|
|
446
|
+
RHSValue: user._id, // Pass user ID as a string
|
|
444
447
|
});
|
|
445
448
|
};
|
|
446
449
|
|
package/docs/useTable.md
CHANGED