@burdenoff/microfe-planmagnet 2026.1127.1 → 2026.1127.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.d.ts +19 -5
- package/dist/generated/wspace-operations.js +412 -1
- package/dist/generated/wspace-types.d.ts +172 -0
- package/dist/planmagnet/controls/Pickers.js +170 -180
- package/dist/planmagnet/pages/CompetitorsCompetitorsPagePage.js +13 -37
- package/package.json +1 -1
|
@@ -1,40 +1,16 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { ListCompetitorsDocument as n } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { detailPath as r, rowLinkProps as i } from "../utils/rowNavigation.js";
|
|
4
|
+
import { useDeferredValue as a, useState as o } from "react";
|
|
5
|
+
import { Loader2 as s, Plus as c, Swords as l } from "lucide-react";
|
|
6
6
|
import { useQuery as u } from "@apollo/client/react";
|
|
7
7
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
8
8
|
import { Badge as p, Button as m, Card as h, CardContent as g, CardHeader as _, CardTitle as v, Input as y } from "@burdenoff/fe-libs/ui";
|
|
9
9
|
// src/planmagnet/pages/CompetitorsCompetitorsPagePage.tsx
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$workspaceId: ID!
|
|
13
|
-
$filter: PlanmagnetCompetitorFilter
|
|
14
|
-
$pagination: PlanmagnetPaginationInput
|
|
15
|
-
) {
|
|
16
|
-
planmagnetCompetitors(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
|
|
17
|
-
items {
|
|
18
|
-
id
|
|
19
|
-
name
|
|
20
|
-
website
|
|
21
|
-
description
|
|
22
|
-
tags
|
|
23
|
-
strengths
|
|
24
|
-
weaknesses
|
|
25
|
-
updatedAt
|
|
26
|
-
featureRequests {
|
|
27
|
-
id
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
totalCount
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
`;
|
|
34
|
-
function x() {
|
|
35
|
-
let l = t(), { workspaceId: x } = e(), [S, C] = a(""), w = i(S.trim()), { data: T, loading: E, error: D } = u(b, {
|
|
10
|
+
function b() {
|
|
11
|
+
let b = t(), { workspaceId: x } = e(), [S, C] = o(""), w = a(S.trim()), { data: T, loading: E, error: D } = u(n, {
|
|
36
12
|
variables: {
|
|
37
|
-
workspaceId: x,
|
|
13
|
+
workspaceId: x ?? "",
|
|
38
14
|
pagination: { first: 50 },
|
|
39
15
|
filter: w ? { search: w } : void 0
|
|
40
16
|
},
|
|
@@ -42,7 +18,7 @@ function x() {
|
|
|
42
18
|
});
|
|
43
19
|
if (E && !T) return /* @__PURE__ */ d("div", {
|
|
44
20
|
className: "flex items-center justify-center p-12",
|
|
45
|
-
children: /* @__PURE__ */ d(
|
|
21
|
+
children: /* @__PURE__ */ d(s, { className: "h-8 w-8 animate-spin text-muted-foreground" })
|
|
46
22
|
});
|
|
47
23
|
if (D) return /* @__PURE__ */ f("div", {
|
|
48
24
|
className: "p-6 text-destructive",
|
|
@@ -67,8 +43,8 @@ function x() {
|
|
|
67
43
|
]
|
|
68
44
|
})] }), /* @__PURE__ */ f(m, {
|
|
69
45
|
size: "sm",
|
|
70
|
-
onClick: () =>
|
|
71
|
-
children: [/* @__PURE__ */ d(
|
|
46
|
+
onClick: () => b("/products/create-competitor-page"),
|
|
47
|
+
children: [/* @__PURE__ */ d(c, { className: "mr-1 h-4 w-4" }), "New Competitor"]
|
|
72
48
|
})]
|
|
73
49
|
}),
|
|
74
50
|
/* @__PURE__ */ d(y, {
|
|
@@ -81,12 +57,12 @@ function x() {
|
|
|
81
57
|
/* @__PURE__ */ d("div", {
|
|
82
58
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
83
59
|
children: O.map((e) => /* @__PURE__ */ f(h, {
|
|
84
|
-
...
|
|
60
|
+
...i(() => b(r("/products/competitor-detail-page", e.id)), e.name),
|
|
85
61
|
children: [/* @__PURE__ */ d(_, {
|
|
86
62
|
className: "pb-2",
|
|
87
63
|
children: /* @__PURE__ */ f(v, {
|
|
88
64
|
className: "text-base flex items-center gap-2",
|
|
89
|
-
children: [/* @__PURE__ */ d(
|
|
65
|
+
children: [/* @__PURE__ */ d(l, { className: "h-4 w-4 text-primary" }), e.name]
|
|
90
66
|
})
|
|
91
67
|
}), /* @__PURE__ */ f(g, {
|
|
92
68
|
className: "space-y-3",
|
|
@@ -137,4 +113,4 @@ function x() {
|
|
|
137
113
|
]
|
|
138
114
|
});
|
|
139
115
|
}
|
|
140
|
-
export {
|
|
116
|
+
export { b as CompetitorsCompetitorsPagePage };
|