@parallelworks/tandem-web 0.171.1 → 0.171.3

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 (171) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +5 -2
  2. package/_virtual/_virtual_i18n/es/common.js +5 -2
  3. package/_virtual/_virtual_i18n/ja/common.js +5 -2
  4. package/_virtual/_virtual_i18n/ko/common.js +5 -2
  5. package/_virtual/_virtual_i18n/zh/common.js +5 -2
  6. package/components/AccessGrants.js +6 -6
  7. package/components/ActivityTimeline.js +60 -60
  8. package/components/ActorAvatar.js +4 -4
  9. package/components/ActorLink.js +34 -0
  10. package/components/AgentWork.js +494 -494
  11. package/components/AppLauncher.js +7 -7
  12. package/components/AreaLink.js +13 -13
  13. package/components/AreaTiles.js +13 -13
  14. package/components/AreaWork.js +22 -22
  15. package/components/Attachments.js +73 -69
  16. package/components/BlockHandle.js +3 -3
  17. package/components/BugRotation.js +8 -8
  18. package/components/CodeHostSettings.js +121 -87
  19. package/components/CollabEditor.js +13 -13
  20. package/components/CommandPalette.js +206 -206
  21. package/components/CustomFields.js +95 -95
  22. package/components/CustomerRequests.js +11 -11
  23. package/components/DashboardPanel.js +201 -164
  24. package/components/DateChip.js +21 -21
  25. package/components/DocHistory.js +14 -14
  26. package/components/DocIcon.js +4 -4
  27. package/components/DocIconPicker.js +4 -4
  28. package/components/DocLinkPicker.js +22 -22
  29. package/components/DocLook.js +16 -16
  30. package/components/DocProperties.js +81 -81
  31. package/components/DocTable.js +53 -53
  32. package/components/DocsTree.js +179 -179
  33. package/components/Editor.js +69 -69
  34. package/components/FavoritesNav.js +78 -78
  35. package/components/GitHub.js +87 -87
  36. package/components/Graph.js +14 -14
  37. package/components/HostActions.js +21 -21
  38. package/components/HostPanel.js +6 -6
  39. package/components/HoverCards.js +74 -74
  40. package/components/IssueBoard.js +13 -10
  41. package/components/IssueBreakdown.js +31 -31
  42. package/components/IssueCode.js +19 -19
  43. package/components/IssueEvent.js +97 -92
  44. package/components/IssueFilters.js +39 -39
  45. package/components/IssueGroup.js +16 -16
  46. package/components/IssueImport.js +13 -13
  47. package/components/IssueInsights.js +20 -20
  48. package/components/IssueListBlock.js +81 -81
  49. package/components/IssueRelations.js +34 -34
  50. package/components/IssueRow.js +31 -31
  51. package/components/IssueSentry.js +36 -34
  52. package/components/IssueTemplates.js +23 -23
  53. package/components/IssueTypes.js +40 -40
  54. package/components/MarkdownTransfer.js +10 -10
  55. package/components/MentionPicker.js +19 -19
  56. package/components/NewIssueDialog.js +53 -53
  57. package/components/NewProjectDialog.js +82 -82
  58. package/components/PersonActivity.js +13 -13
  59. package/components/PersonHoverCard.js +44 -44
  60. package/components/Planning.js +16 -16
  61. package/components/Reports.js +8 -8
  62. package/components/SettingsNav.js +15 -15
  63. package/components/ShareDialog.js +8 -8
  64. package/components/SharedViewer.js +23 -23
  65. package/components/SlashMenu.js +26 -26
  66. package/components/SubPages.js +10 -10
  67. package/components/TeamForm.js +9 -9
  68. package/components/TeamRepositories.js +21 -21
  69. package/components/TeamWorkflow.js +6 -6
  70. package/components/UnlinkedMentions.js +29 -29
  71. package/components/Updates.js +8 -8
  72. package/components/Widgets.js +99 -97
  73. package/components/WorkCounts.js +12 -12
  74. package/components/cycleCrumb.js +8 -8
  75. package/components/editorPlugins.js +101 -101
  76. package/components/settings.js +6 -6
  77. package/components/video.js +7 -7
  78. package/hostedApp.js +24 -24
  79. package/index.js +18 -18
  80. package/lib/assignees.js +3 -3
  81. package/lib/attachments.js +12 -12
  82. package/lib/boardMove.js +27 -27
  83. package/lib/collab.js +1 -1
  84. package/lib/docs.js +115 -115
  85. package/lib/githubLink.js +7 -7
  86. package/lib/issueList.js +51 -51
  87. package/lib/issueMenu.js +117 -117
  88. package/lib/knowledge.js +134 -134
  89. package/lib/live.js +38 -38
  90. package/lib/notifications.js +47 -47
  91. package/lib/triageSeen.js +2 -2
  92. package/lib/views.js +31 -31
  93. package/package.json +24 -24
  94. package/pages/area.js +64 -64
  95. package/pages/areas.js +199 -199
  96. package/pages/decisions.js +51 -51
  97. package/pages/issues.js +120 -120
  98. package/pages/projects.js +238 -238
  99. package/pages/triage.js +202 -212
  100. package/routes/_workspace/agents/_slug2.js +127 -127
  101. package/routes/_workspace/agents/index2.js +22 -22
  102. package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
  103. package/routes/_workspace/dashboards/index2.js +34 -34
  104. package/routes/_workspace/docs/_doc2.js +267 -267
  105. package/routes/_workspace/docs/space2._space.js +31 -31
  106. package/routes/_workspace/docs2.js +4 -4
  107. package/routes/_workspace/graph2.js +11 -11
  108. package/routes/_workspace/graph3.js +11 -11
  109. package/routes/_workspace/issues/_identifier2.js +519 -522
  110. package/routes/_workspace/issues/index.js +13 -13
  111. package/routes/_workspace/knowledge/_term2.js +148 -146
  112. package/routes/_workspace/knowledge/_term3.js +4 -4
  113. package/routes/_workspace/knowledge/index.js +12 -12
  114. package/routes/_workspace/knowledge/index2.js +117 -115
  115. package/routes/_workspace/measures2.js +8 -8
  116. package/routes/_workspace/measures3.js +29 -29
  117. package/routes/_workspace/notifications2.js +263 -263
  118. package/routes/_workspace/people/_username.js +10 -10
  119. package/routes/_workspace/people/_username2.js +41 -41
  120. package/routes/_workspace/projects/_projectId3.js +303 -303
  121. package/routes/_workspace/projects/_projectId4.js +4 -4
  122. package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
  123. package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
  124. package/routes/_workspace/projects/index.js +8 -8
  125. package/routes/_workspace/settings/account2.js +8 -8
  126. package/routes/_workspace/settings/audit-log2.js +8 -8
  127. package/routes/_workspace/settings/audit-log3.js +155 -155
  128. package/routes/_workspace/settings/connections2.js +4 -4
  129. package/routes/_workspace/settings/fields2.js +5 -5
  130. package/routes/_workspace/settings/github2.js +11 -11
  131. package/routes/_workspace/settings/gitlab2.js +5 -5
  132. package/routes/_workspace/settings/groups2.js +52 -52
  133. package/routes/_workspace/settings/import2.js +39 -39
  134. package/routes/_workspace/settings/index2.js +5 -5
  135. package/routes/_workspace/settings/intercom2.js +11 -11
  136. package/routes/_workspace/settings/labels2.js +33 -33
  137. package/routes/_workspace/settings/members2.js +81 -81
  138. package/routes/_workspace/settings/notifications2.js +46 -46
  139. package/routes/_workspace/settings/parallelworks2.js +20 -20
  140. package/routes/_workspace/settings/roles2.js +41 -41
  141. package/routes/_workspace/settings/runners2.js +15 -15
  142. package/routes/_workspace/settings/sentry2.js +15 -15
  143. package/routes/_workspace/settings/sessions2.js +9 -9
  144. package/routes/_workspace/settings/sessions3.js +4 -4
  145. package/routes/_workspace/settings/slack2.js +12 -12
  146. package/routes/_workspace/settings/sso2.js +37 -37
  147. package/routes/_workspace/settings/sso3.js +7 -7
  148. package/routes/_workspace/settings/teams2.js +29 -29
  149. package/routes/_workspace/settings/tokens2.js +32 -32
  150. package/routes/_workspace/settings/tokens3.js +4 -4
  151. package/routes/_workspace/settings/webhooks2.js +41 -41
  152. package/routes/_workspace/settings/zendesk2.js +11 -11
  153. package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
  154. package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
  155. package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
  156. package/routes/_workspace/teams/_key/issues.js +10 -10
  157. package/routes/_workspace/teams/_key/projects.js +6 -6
  158. package/routes/_workspace/teams/_key/settings2.js +396 -396
  159. package/routes/_workspace2.js +308 -308
  160. package/routes/_workspace3.js +8 -8
  161. package/routes/device2.js +4 -4
  162. package/routes/device3.js +4 -4
  163. package/routes/docs/_tag/_endpoint2.js +3 -3
  164. package/routes/docs/_tag/index2.js +3 -3
  165. package/routes/docs/route2.js +7 -7
  166. package/routes/index2.js +5 -5
  167. package/routes/login2.js +10 -10
  168. package/routes/new2.js +12 -12
  169. package/routes/new3.js +5 -5
  170. package/routes/request2._token.js +6 -6
  171. package/routes/share2._secret.js +4 -4
@@ -1,167 +1,167 @@
1
- import { usePageTitle as e } from "../../../lib/pageTitle.js";
2
- import { Link as t, useNavigate as n } from "../../../lib/router.js";
3
- import { areasQuery as r, knowledgeQuery as i } from "../../../api/queries.js";
4
- import { AddIcon as a, LibraryIcon as o } from "../../../components/icons.js";
5
- import { kinds as s, termRef as c } from "../../../lib/knowledgeKinds.js";
6
- import { EntryDialog as l, useKnowledgeMenu as u } from "../../../lib/knowledge.js";
7
- import { useTime as d } from "../../../lib/time.js";
8
- import { KnowledgeStatus as f } from "../../../components/HoverCards.js";
9
- import { Route as p } from "./index.js";
10
- import { FavoriteStar as m } from "../../../components/FavoriteStar.js";
11
- import { Button as h, EmptyState as g, SearchInput as _, SegmentedControl as v, buttonClasses as y, useOpenMenu as b } from "@parallelworks/ui";
12
- import { Suspense as x, useCallback as S, useEffect as C, useMemo as w, useState as T } from "react";
13
- import { useLocale as E, useTranslations as D } from "use-intl";
14
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
15
- import { useQuery as j, useSuspenseQuery as M } from "@tanstack/react-query";
1
+ import { areasQuery as e, knowledgeQuery as t } from "../../../api/queries.js";
2
+ import { FavoriteStar as n } from "../../../components/FavoriteStar.js";
3
+ import { KnowledgeStatus as r } from "../../../components/HoverCards.js";
4
+ import { AddIcon as i, LibraryIcon as a } from "../../../components/icons.js";
5
+ import { EntryDialog as o, useKnowledgeMenu as s } from "../../../lib/knowledge.js";
6
+ import { kinds as c, termRef as l } from "../../../lib/knowledgeKinds.js";
7
+ import { usePageTitle as u } from "../../../lib/pageTitle.js";
8
+ import { Link as d, useNavigate as f } from "../../../lib/router.js";
9
+ import { useTime as p } from "../../../lib/time.js";
10
+ import { Route as m } from "./index.js";
11
+ import { Button as h, EmptyState as g, SearchInput as _, SegmentedControl as v, Tooltip as y, buttonClasses as b, useOpenMenu as x } from "@parallelworks/ui";
12
+ import { Suspense as S, useCallback as C, useEffect as w, useMemo as T, useState as E } from "react";
13
+ import { useLocale as D, useTranslations as O } from "use-intl";
14
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
15
+ import { useQuery as M, useSuspenseQuery as N } from "@tanstack/react-query";
16
16
  // src/routes/$workspace/knowledge/index.tsx?tsr-split=component
17
- var N = 5, P = 8;
18
- function F() {
19
- let { workspace: u } = p.useParams(), { archived: d, kind: f = "all" } = p.useSearch(), b = D("knowledge"), F = E();
20
- e(b("title"));
21
- let L = n(), [R, z] = T(""), [B, V] = T(""), [H, U] = T(null);
22
- C(() => {
17
+ var P = 5, F = 8;
18
+ function I() {
19
+ let { workspace: r } = m.useParams(), { archived: s, kind: p = "all" } = m.useSearch(), y = O("knowledge"), x = D();
20
+ u(y("title"));
21
+ let I = f(), [R, z] = E(""), [B, V] = E(""), [H, U] = E(null);
22
+ w(() => {
23
23
  let e = setTimeout(() => V(R.trim()), 200);
24
24
  return () => clearTimeout(e);
25
25
  }, [R]);
26
- let { data: W } = M(i(u)), { data: G = [] } = j(r(u)), K = {
26
+ let { data: W } = N(t(r)), { data: G = [] } = M(e(r)), K = {
27
27
  ...B && { q: B },
28
- ...d && { archived: !0 }
29
- }, { data: q } = j({
30
- ...i(u, K),
31
- enabled: !!B || !!d
32
- }), J = !!B || !!d, Y = J ? q ?? [] : W, X = f === "all" ? Y : Y.filter((e) => e.kind === f), Z = S((e) => U(e), []), Q = w(() => {
28
+ ...s && { archived: !0 }
29
+ }, { data: q } = M({
30
+ ...t(r, K),
31
+ enabled: !!B || !!s
32
+ }), J = !!B || !!s, Y = J ? q ?? [] : W, X = p === "all" ? Y : Y.filter((e) => e.kind === p), Z = C((e) => U(e), []), Q = T(() => {
33
33
  let e = /* @__PURE__ */ new Map();
34
34
  for (let t of Y) e.set(t.kind, (e.get(t.kind) ?? 0) + 1);
35
35
  return e;
36
- }, [Y]), ee = w(() => [...X].sort((e, t) => t.updatedAt.localeCompare(e.updatedAt)).slice(0, N), [X]), te = w(() => {
37
- let e = new Intl.Collator(F, { sensitivity: "base" }), t = /* @__PURE__ */ new Map();
36
+ }, [Y]), ee = T(() => [...X].sort((e, t) => t.updatedAt.localeCompare(e.updatedAt)).slice(0, P), [X]), te = T(() => {
37
+ let e = new Intl.Collator(x, { sensitivity: "base" }), t = /* @__PURE__ */ new Map();
38
38
  for (let e of X) {
39
39
  let n = G.some((t) => t.id === e.areaId) ? e.areaId : "";
40
40
  t.set(n, [...t.get(n) ?? [], e]);
41
41
  }
42
42
  return [...t].map(([t, n]) => ({
43
43
  id: t,
44
- title: G.find((e) => e.id === t)?.title ?? b("general"),
44
+ title: G.find((e) => e.id === t)?.title ?? y("general"),
45
45
  entries: n.sort((t, n) => e.compare(t.name, n.name))
46
46
  })).sort((t, n) => t.id ? n.id ? e.compare(t.title, n.title) : -1 : 1);
47
47
  }, [
48
48
  X,
49
49
  G,
50
- F,
51
- b
52
- ]), ne = (e) => L({
50
+ x,
51
+ y
52
+ ]), ne = (e) => I({
53
53
  to: "/$workspace/knowledge",
54
- params: { workspace: u },
54
+ params: { workspace: r },
55
55
  search: {
56
- ...d && { archived: d },
56
+ ...s && { archived: s },
57
57
  ...e !== "all" && { kind: e }
58
58
  },
59
59
  replace: !0
60
- }), $ = s.filter((e) => Q.has(e) || e === f);
61
- return /* @__PURE__ */ A("div", {
60
+ }), $ = c.filter((e) => Q.has(e) || e === p);
61
+ return /* @__PURE__ */ j("div", {
62
62
  className: "flex h-full flex-col",
63
63
  children: [
64
- /* @__PURE__ */ A("header", {
64
+ /* @__PURE__ */ j("header", {
65
65
  className: "flex h-12 shrink-0 items-center gap-3 border-b border-border px-4 md:px-5",
66
66
  children: [
67
- /* @__PURE__ */ k("h1", {
67
+ /* @__PURE__ */ A("h1", {
68
68
  className: "min-w-0 truncate text-sm font-semibold",
69
- children: b("title")
69
+ children: y("title")
70
70
  }),
71
- /* @__PURE__ */ k(m, {
72
- workspace: u,
71
+ /* @__PURE__ */ A(n, {
72
+ workspace: r,
73
73
  kind: "page",
74
74
  target: "knowledge"
75
75
  }),
76
- /* @__PURE__ */ k("span", {
76
+ /* @__PURE__ */ A("span", {
77
77
  className: "whitespace-nowrap text-xs text-muted-foreground tabular-nums",
78
- children: b("count", { count: W.length })
78
+ children: y("count", { count: W.length })
79
79
  }),
80
- /* @__PURE__ */ k(t, {
80
+ /* @__PURE__ */ A(d, {
81
81
  to: "/$workspace/graph",
82
- params: { workspace: u },
83
- className: `${y({ size: "sm" })} ml-auto`,
84
- children: b("graph")
82
+ params: { workspace: r },
83
+ className: `${b({ size: "sm" })} ml-auto`,
84
+ children: y("graph")
85
85
  }),
86
- /* @__PURE__ */ A(h, {
86
+ /* @__PURE__ */ j(h, {
87
87
  type: "button",
88
88
  variant: "primary",
89
89
  size: "sm",
90
90
  onClick: () => Z({ kind: "create" }),
91
- children: [/* @__PURE__ */ k(a, { className: "size-3.5" }), /* @__PURE__ */ k("span", {
91
+ children: [/* @__PURE__ */ A(i, { className: "size-3.5" }), /* @__PURE__ */ A("span", {
92
92
  className: "max-md:sr-only",
93
- children: b("new")
93
+ children: y("new")
94
94
  })]
95
95
  })
96
96
  ]
97
97
  }),
98
- /* @__PURE__ */ k("div", {
98
+ /* @__PURE__ */ A("div", {
99
99
  className: "min-h-0 flex-1 overflow-y-auto",
100
- children: /* @__PURE__ */ A("div", {
100
+ children: /* @__PURE__ */ j("div", {
101
101
  className: "mx-auto w-full max-w-3xl px-4 pt-8 pb-16 md:px-8",
102
102
  children: [
103
- /* @__PURE__ */ k(_, {
103
+ /* @__PURE__ */ A(_, {
104
104
  value: R,
105
105
  onValueChange: z,
106
- label: b("search"),
106
+ label: y("search"),
107
107
  size: "lg",
108
108
  className: "w-full"
109
109
  }),
110
- /* @__PURE__ */ A("div", {
110
+ /* @__PURE__ */ j("div", {
111
111
  className: "mt-4 flex flex-wrap items-center gap-2",
112
- children: [$.length > 1 && /* @__PURE__ */ k(v, {
113
- label: b("kindLabel"),
112
+ children: [$.length > 1 && /* @__PURE__ */ A(v, {
113
+ label: y("kindLabel"),
114
114
  size: "sm",
115
- value: f,
115
+ value: p,
116
116
  onValueChange: ne,
117
117
  options: [{
118
118
  value: "all",
119
- label: b("allKinds"),
119
+ label: y("allKinds"),
120
120
  count: Y.length
121
121
  }, ...$.map((e) => ({
122
122
  value: e,
123
- label: b(`kinds.${e}`),
123
+ label: y(`kinds.${e}`),
124
124
  count: Q.get(e) ?? 0
125
125
  }))]
126
- }), /* @__PURE__ */ k(t, {
126
+ }), /* @__PURE__ */ A(d, {
127
127
  to: "/$workspace/knowledge",
128
- params: { workspace: u },
128
+ params: { workspace: r },
129
129
  search: {
130
- ...!d && { archived: !0 },
131
- ...f !== "all" && { kind: f }
130
+ ...!s && { archived: !0 },
131
+ ...p !== "all" && { kind: p }
132
132
  },
133
- "aria-current": d || void 0,
134
- className: `${y({
133
+ "aria-current": s || void 0,
134
+ className: `${b({
135
135
  size: "sm",
136
- variant: d ? "secondary" : "ghost"
136
+ variant: s ? "secondary" : "ghost"
137
137
  })} ml-auto`,
138
- children: b("archived")
138
+ children: y("archived")
139
139
  })]
140
140
  }),
141
- X.length === 0 ? /* @__PURE__ */ k(g, {
142
- icon: /* @__PURE__ */ k(o, {}),
143
- title: b(J || f !== "all" ? "noMatches" : "emptyTitle"),
144
- description: J || f !== "all" ? void 0 : b("empty"),
145
- action: !J && f === "all" ? /* @__PURE__ */ k(h, {
141
+ X.length === 0 ? /* @__PURE__ */ A(g, {
142
+ icon: /* @__PURE__ */ A(a, {}),
143
+ title: y(J || p !== "all" ? "noMatches" : "emptyTitle"),
144
+ description: J || p !== "all" ? void 0 : y("empty"),
145
+ action: !J && p === "all" ? /* @__PURE__ */ A(h, {
146
146
  type: "button",
147
147
  variant: "primary",
148
148
  onClick: () => Z({ kind: "create" }),
149
- children: b("new")
149
+ children: y("new")
150
150
  }) : void 0,
151
151
  className: "mt-16"
152
- }) : J ? /* @__PURE__ */ k(I, {
153
- workspace: u,
154
- title: b("results"),
152
+ }) : J ? /* @__PURE__ */ A(L, {
153
+ workspace: r,
154
+ title: y("results"),
155
155
  entries: X,
156
156
  onOpen: Z
157
- }) : /* @__PURE__ */ A(O, { children: [X.length >= P && /* @__PURE__ */ k(I, {
158
- workspace: u,
159
- title: b("recent"),
157
+ }) : /* @__PURE__ */ j(k, { children: [X.length >= F && /* @__PURE__ */ A(L, {
158
+ workspace: r,
159
+ title: y("recent"),
160
160
  entries: ee,
161
161
  onOpen: Z,
162
162
  showTime: !0
163
- }), te.map((e) => /* @__PURE__ */ k(I, {
164
- workspace: u,
163
+ }), te.map((e) => /* @__PURE__ */ A(L, {
164
+ workspace: r,
165
165
  title: e.title,
166
166
  entries: e.entries,
167
167
  onOpen: Z
@@ -169,66 +169,68 @@ function F() {
169
169
  ]
170
170
  })
171
171
  }),
172
- H && /* @__PURE__ */ k(x, { children: /* @__PURE__ */ k(l, {
173
- workspace: u,
172
+ H && /* @__PURE__ */ A(S, { children: /* @__PURE__ */ A(o, {
173
+ workspace: r,
174
174
  mode: H,
175
175
  onClose: () => U(null),
176
- onSaved: (e) => L({
176
+ onSaved: (e) => I({
177
177
  to: "/$workspace/knowledge/$term",
178
178
  params: {
179
- workspace: u,
180
- term: c(e)
179
+ workspace: r,
180
+ term: l(e)
181
181
  }
182
182
  })
183
183
  }) })
184
184
  ]
185
185
  });
186
186
  }
187
- function I({ workspace: e, title: n, entries: r, onOpen: i, showTime: a = !1 }) {
188
- let o = D("knowledge"), s = b(), l = u(e, i), p = d();
189
- return /* @__PURE__ */ A("section", {
190
- "aria-label": n,
187
+ function L({ workspace: e, title: t, entries: n, onOpen: i, showTime: a = !1 }) {
188
+ let o = O("knowledge"), c = x(), u = s(e, i), f = p();
189
+ return /* @__PURE__ */ j("section", {
190
+ "aria-label": t,
191
191
  className: "mt-10",
192
- children: [/* @__PURE__ */ A("h2", {
192
+ children: [/* @__PURE__ */ j("h2", {
193
193
  className: "flex items-baseline gap-2 text-base font-semibold",
194
- children: [n, /* @__PURE__ */ k("span", {
194
+ children: [t, /* @__PURE__ */ A("span", {
195
195
  className: "text-xs font-normal text-muted-foreground tabular-nums",
196
- children: r.length
196
+ children: n.length
197
197
  })]
198
- }), /* @__PURE__ */ k("ul", {
198
+ }), /* @__PURE__ */ A("ul", {
199
199
  className: "mt-3 divide-y divide-border overflow-hidden rounded-xl border border-border bg-card",
200
- children: r.map((n) => /* @__PURE__ */ k("li", { children: /* @__PURE__ */ A(t, {
200
+ children: n.map((t) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ j(d, {
201
201
  to: "/$workspace/knowledge/$term",
202
202
  params: {
203
203
  workspace: e,
204
- term: c(n)
204
+ term: l(t)
205
205
  },
206
- onContextMenu: (e) => s(e, l(n)),
206
+ onContextMenu: (e) => c(e, u(t)),
207
207
  className: "group flex flex-col gap-1 px-4 py-3 sm:flex-row sm:items-start sm:gap-3 transition-colors duration-150 hover:bg-muted focus-visible:outline-offset-[-2px]",
208
- children: [/* @__PURE__ */ A("span", {
208
+ children: [/* @__PURE__ */ j("span", {
209
209
  className: "min-w-0 flex-1",
210
- children: [/* @__PURE__ */ k("span", {
211
- className: `block truncate text-sm font-medium ${n.status === "superseded" ? "text-muted-foreground line-through" : ""}`,
212
- children: n.name
213
- }), /* @__PURE__ */ k("span", {
210
+ children: [/* @__PURE__ */ A("span", {
211
+ className: `block truncate text-sm font-medium ${t.status === "superseded" ? "text-muted-foreground line-through" : ""}`,
212
+ children: t.name
213
+ }), /* @__PURE__ */ A("span", {
214
214
  className: "mt-0.5 line-clamp-2 text-xs leading-5 text-muted-foreground",
215
- children: n.definition
215
+ children: t.definition
216
216
  })]
217
- }), (n.kind !== "term" || n.status === "added" || a) && /* @__PURE__ */ A("span", {
217
+ }), (t.kind !== "term" || t.status === "added" || a) && /* @__PURE__ */ j("span", {
218
218
  className: "flex items-center gap-2 text-xs text-muted-foreground sm:shrink-0 sm:pt-0.5",
219
219
  children: [
220
- n.kind !== "term" && /* @__PURE__ */ k("span", { children: o(`kind.${n.kind}`) }),
221
- n.status === "added" && /* @__PURE__ */ k(f, { status: n.status }),
222
- a && /* @__PURE__ */ k("time", {
223
- dateTime: n.updatedAt,
224
- title: p.full(n.updatedAt),
225
- className: "tabular-nums",
226
- children: p.relative(n.updatedAt)
220
+ t.kind !== "term" && /* @__PURE__ */ A("span", { children: o(`kind.${t.kind}`) }),
221
+ t.status === "added" && /* @__PURE__ */ A(r, { status: t.status }),
222
+ a && /* @__PURE__ */ A(y, {
223
+ content: f.full(t.updatedAt),
224
+ children: /* @__PURE__ */ A("time", {
225
+ dateTime: t.updatedAt,
226
+ className: "tabular-nums",
227
+ children: f.relative(t.updatedAt)
228
+ })
227
229
  })
228
230
  ]
229
231
  })]
230
- }) }, n.id))
232
+ }) }, t.id))
231
233
  })]
232
234
  });
233
235
  }
234
- export { F as component };
236
+ export { I as component };
@@ -1,14 +1,14 @@
1
- import { rememberSearch as e } from "../../lib/listSearch.js";
2
- import { redirect as t } from "../../lib/router.js";
3
- import { windows as n } from "./measures.js";
1
+ import { windows as e } from "./measures.js";
2
+ import { rememberSearch as t } from "../../lib/listSearch.js";
3
+ import { redirect as n } from "../../lib/router.js";
4
4
  import { createFileRoute as r, lazyFn as i, lazyRouteComponent as a } from "@tanstack/react-router";
5
5
  var o = r("/$workspace/measures")({
6
- validateSearch: (e) => ({ ...n.includes(e.days) && { days: e.days } }),
7
- beforeLoad: ({ params: n, search: r, location: i, preload: a }) => {
8
- let o = e(i.pathname, r, a);
9
- if (o) throw t({
6
+ validateSearch: (t) => ({ ...e.includes(t.days) && { days: t.days } }),
7
+ beforeLoad: ({ params: e, search: r, location: i, preload: a }) => {
8
+ let o = t(i.pathname, r, a);
9
+ if (o) throw n({
10
10
  to: "/$workspace/measures",
11
- params: n,
11
+ params: e,
12
12
  search: o,
13
13
  replace: !0
14
14
  });
@@ -1,19 +1,19 @@
1
- import { usePageTitle as e } from "../../lib/pageTitle.js";
2
- import { Link as t } from "../../lib/router.js";
3
- import { windows as n } from "./measures.js";
4
- import { Route as r } from "./measures2.js";
5
- import { measuresQuery as i } from "../../api/queries.js";
6
- import { useMoney as a } from "../../components/AgentWork.js";
7
- import { AreaLink as o } from "../../components/AreaLink.js";
1
+ import { windows as e } from "./measures.js";
2
+ import { measuresQuery as t } from "../../api/queries.js";
3
+ import { useMoney as n } from "../../components/AgentWork.js";
4
+ import { AreaLink as r } from "../../components/AreaLink.js";
5
+ import { usePageTitle as i } from "../../lib/pageTitle.js";
6
+ import { Link as a } from "../../lib/router.js";
7
+ import { Route as o } from "./measures2.js";
8
8
  import { SegmentedControl as s } from "@parallelworks/ui";
9
9
  import { useFormatter as c, useTranslations as l } from "use-intl";
10
10
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
11
11
  import { useSuspenseQuery as f } from "@tanstack/react-query";
12
12
  // src/routes/$workspace/measures.tsx?tsr-split=component
13
13
  function p() {
14
- let a = l("measures");
15
- e(a("title"));
16
- let { workspace: c } = r.useParams(), { days: p = "30" } = r.useSearch(), h = r.useNavigate(), { data: v } = f(i(c, Number(p)));
14
+ let n = l("measures");
15
+ i(n("title"));
16
+ let { workspace: c } = o.useParams(), { days: p = "30" } = o.useSearch(), h = o.useNavigate(), { data: v } = f(t(c, Number(p)));
17
17
  return /* @__PURE__ */ d("div", {
18
18
  className: "w-full space-y-10 px-4 py-6 md:px-8 md:py-8",
19
19
  children: [
@@ -21,37 +21,37 @@ function p() {
21
21
  className: "flex flex-wrap items-end justify-between gap-4",
22
22
  children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("h1", {
23
23
  className: "text-xl font-semibold tracking-tight",
24
- children: a("title")
24
+ children: n("title")
25
25
  }), /* @__PURE__ */ u("p", {
26
26
  className: "mt-1 text-sm text-muted-foreground",
27
- children: a("description")
27
+ children: n("description")
28
28
  })] }), /* @__PURE__ */ u(s, {
29
- label: a("window"),
29
+ label: n("window"),
30
30
  value: p,
31
31
  onValueChange: (e) => h({
32
32
  search: { days: e },
33
33
  replace: !0
34
34
  }),
35
- options: n.map((e) => ({
35
+ options: e.map((e) => ({
36
36
  value: e,
37
- label: a("days", { count: Number(e) })
37
+ label: n("days", { count: Number(e) })
38
38
  }))
39
39
  })]
40
40
  }),
41
41
  /* @__PURE__ */ u(m, { queue: v.queue }),
42
42
  /* @__PURE__ */ u(g, { states: v.states }),
43
43
  /* @__PURE__ */ d("section", {
44
- "aria-label": a("cost"),
44
+ "aria-label": n("cost"),
45
45
  children: [/* @__PURE__ */ u("h2", {
46
46
  className: "text-sm font-semibold",
47
- children: a("cost")
47
+ children: n("cost")
48
48
  }), /* @__PURE__ */ d("div", {
49
49
  className: "mt-3 grid gap-6 lg:grid-cols-3",
50
50
  children: [
51
51
  /* @__PURE__ */ u(_, {
52
- title: a("byIssue"),
52
+ title: n("byIssue"),
53
53
  rows: v.issues,
54
- link: (e) => /* @__PURE__ */ d(t, {
54
+ link: (e) => /* @__PURE__ */ d(a, {
55
55
  to: "/$workspace/issues/$identifier",
56
56
  params: {
57
57
  workspace: c,
@@ -69,9 +69,9 @@ function p() {
69
69
  })
70
70
  }),
71
71
  /* @__PURE__ */ u(_, {
72
- title: a("byArea"),
72
+ title: n("byArea"),
73
73
  rows: v.areas,
74
- link: (e) => /* @__PURE__ */ u(o, {
74
+ link: (e) => /* @__PURE__ */ u(r, {
75
75
  workspace: c,
76
76
  area: e,
77
77
  className: "hover:underline",
@@ -79,9 +79,9 @@ function p() {
79
79
  })
80
80
  }),
81
81
  /* @__PURE__ */ u(_, {
82
- title: a("byTeam"),
82
+ title: n("byTeam"),
83
83
  rows: v.teams,
84
- link: (e) => /* @__PURE__ */ u(t, {
84
+ link: (e) => /* @__PURE__ */ u(a, {
85
85
  to: "/$workspace/teams/$key/settings",
86
86
  params: {
87
87
  workspace: c,
@@ -198,8 +198,8 @@ function g({ states: e }) {
198
198
  ]
199
199
  });
200
200
  }
201
- function _({ title: e, rows: t, link: n }) {
202
- let r = l("measures"), i = a();
201
+ function _({ title: e, rows: t, link: r }) {
202
+ let i = l("measures"), a = n();
203
203
  return /* @__PURE__ */ d("div", {
204
204
  className: "min-w-0",
205
205
  children: [/* @__PURE__ */ u("h3", {
@@ -207,7 +207,7 @@ function _({ title: e, rows: t, link: n }) {
207
207
  children: e
208
208
  }), t.length === 0 ? /* @__PURE__ */ u("p", {
209
209
  className: "text-sm text-muted-foreground",
210
- children: r("noCost")
210
+ children: i("noCost")
211
211
  }) : /* @__PURE__ */ u("ol", {
212
212
  className: "divide-y divide-border rounded-md border border-border text-sm",
213
213
  children: t.map((e) => /* @__PURE__ */ d("li", {
@@ -215,15 +215,15 @@ function _({ title: e, rows: t, link: n }) {
215
215
  children: [
216
216
  /* @__PURE__ */ u("span", {
217
217
  className: "min-w-0 flex-1 truncate",
218
- children: n(e)
218
+ children: r(e)
219
219
  }),
220
220
  /* @__PURE__ */ u("span", {
221
221
  className: "shrink-0 text-xs text-muted-foreground tabular-nums",
222
- children: r("runCount", { count: e.runs })
222
+ children: i("runCount", { count: e.runs })
223
223
  }),
224
224
  /* @__PURE__ */ u("span", {
225
225
  className: "w-20 shrink-0 text-right tabular-nums",
226
- children: i(e.costMicros)
226
+ children: a(e.costMicros)
227
227
  })
228
228
  ]
229
229
  }, e.id))