@parallelworks/tandem-web 0.171.1 → 0.171.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.
Files changed (164) hide show
  1. package/components/AccessGrants.js +6 -6
  2. package/components/ActivityTimeline.js +57 -57
  3. package/components/ActorAvatar.js +4 -4
  4. package/components/AgentWork.js +494 -494
  5. package/components/AppLauncher.js +7 -7
  6. package/components/AreaLink.js +13 -13
  7. package/components/AreaTiles.js +13 -13
  8. package/components/AreaWork.js +22 -22
  9. package/components/Attachments.js +29 -29
  10. package/components/BlockHandle.js +3 -3
  11. package/components/BugRotation.js +8 -8
  12. package/components/CodeHostSettings.js +38 -38
  13. package/components/CollabEditor.js +13 -13
  14. package/components/CommandPalette.js +206 -206
  15. package/components/CustomFields.js +95 -95
  16. package/components/CustomerRequests.js +11 -11
  17. package/components/DashboardPanel.js +23 -23
  18. package/components/DateChip.js +21 -21
  19. package/components/DocHistory.js +14 -14
  20. package/components/DocIcon.js +4 -4
  21. package/components/DocIconPicker.js +4 -4
  22. package/components/DocLinkPicker.js +22 -22
  23. package/components/DocLook.js +16 -16
  24. package/components/DocProperties.js +81 -81
  25. package/components/DocTable.js +53 -53
  26. package/components/DocsTree.js +179 -179
  27. package/components/Editor.js +69 -69
  28. package/components/FavoritesNav.js +78 -78
  29. package/components/GitHub.js +87 -87
  30. package/components/Graph.js +14 -14
  31. package/components/HostActions.js +21 -21
  32. package/components/HostPanel.js +6 -6
  33. package/components/HoverCards.js +74 -74
  34. package/components/IssueBoard.js +13 -10
  35. package/components/IssueBreakdown.js +31 -31
  36. package/components/IssueCode.js +19 -19
  37. package/components/IssueEvent.js +12 -12
  38. package/components/IssueFilters.js +39 -39
  39. package/components/IssueGroup.js +16 -16
  40. package/components/IssueImport.js +13 -13
  41. package/components/IssueInsights.js +20 -20
  42. package/components/IssueListBlock.js +81 -81
  43. package/components/IssueRelations.js +34 -34
  44. package/components/IssueRow.js +31 -31
  45. package/components/IssueSentry.js +4 -4
  46. package/components/IssueTemplates.js +23 -23
  47. package/components/IssueTypes.js +40 -40
  48. package/components/MarkdownTransfer.js +10 -10
  49. package/components/MentionPicker.js +19 -19
  50. package/components/NewIssueDialog.js +53 -53
  51. package/components/NewProjectDialog.js +82 -82
  52. package/components/PersonActivity.js +13 -13
  53. package/components/PersonHoverCard.js +44 -44
  54. package/components/Planning.js +16 -16
  55. package/components/Reports.js +8 -8
  56. package/components/SettingsNav.js +15 -15
  57. package/components/ShareDialog.js +8 -8
  58. package/components/SharedViewer.js +23 -23
  59. package/components/SlashMenu.js +26 -26
  60. package/components/SubPages.js +10 -10
  61. package/components/TeamForm.js +9 -9
  62. package/components/TeamRepositories.js +21 -21
  63. package/components/TeamWorkflow.js +6 -6
  64. package/components/UnlinkedMentions.js +29 -29
  65. package/components/Updates.js +8 -8
  66. package/components/Widgets.js +4 -4
  67. package/components/WorkCounts.js +12 -12
  68. package/components/cycleCrumb.js +8 -8
  69. package/components/editorPlugins.js +101 -101
  70. package/components/settings.js +6 -6
  71. package/components/video.js +7 -7
  72. package/hostedApp.js +24 -24
  73. package/index.js +18 -18
  74. package/lib/assignees.js +3 -3
  75. package/lib/attachments.js +12 -12
  76. package/lib/boardMove.js +27 -27
  77. package/lib/collab.js +1 -1
  78. package/lib/docs.js +115 -115
  79. package/lib/githubLink.js +7 -7
  80. package/lib/issueList.js +51 -51
  81. package/lib/issueMenu.js +117 -117
  82. package/lib/knowledge.js +134 -134
  83. package/lib/live.js +38 -38
  84. package/lib/notifications.js +47 -47
  85. package/lib/views.js +31 -31
  86. package/package.json +24 -24
  87. package/pages/area.js +64 -64
  88. package/pages/areas.js +199 -199
  89. package/pages/decisions.js +51 -51
  90. package/pages/issues.js +120 -120
  91. package/pages/projects.js +238 -238
  92. package/pages/triage.js +109 -109
  93. package/routes/_workspace/agents/_slug2.js +127 -127
  94. package/routes/_workspace/agents/index2.js +22 -22
  95. package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
  96. package/routes/_workspace/dashboards/index2.js +34 -34
  97. package/routes/_workspace/docs/_doc2.js +267 -267
  98. package/routes/_workspace/docs/space2._space.js +31 -31
  99. package/routes/_workspace/docs2.js +4 -4
  100. package/routes/_workspace/graph2.js +11 -11
  101. package/routes/_workspace/graph3.js +11 -11
  102. package/routes/_workspace/issues/_identifier2.js +477 -477
  103. package/routes/_workspace/issues/index.js +13 -13
  104. package/routes/_workspace/knowledge/_term2.js +175 -175
  105. package/routes/_workspace/knowledge/_term3.js +4 -4
  106. package/routes/_workspace/knowledge/index.js +12 -12
  107. package/routes/_workspace/knowledge/index2.js +117 -117
  108. package/routes/_workspace/measures2.js +8 -8
  109. package/routes/_workspace/measures3.js +29 -29
  110. package/routes/_workspace/notifications2.js +263 -263
  111. package/routes/_workspace/people/_username.js +10 -10
  112. package/routes/_workspace/people/_username2.js +41 -41
  113. package/routes/_workspace/projects/_projectId3.js +303 -303
  114. package/routes/_workspace/projects/_projectId4.js +4 -4
  115. package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
  116. package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
  117. package/routes/_workspace/projects/index.js +8 -8
  118. package/routes/_workspace/settings/account2.js +8 -8
  119. package/routes/_workspace/settings/audit-log2.js +8 -8
  120. package/routes/_workspace/settings/audit-log3.js +155 -155
  121. package/routes/_workspace/settings/connections2.js +4 -4
  122. package/routes/_workspace/settings/fields2.js +5 -5
  123. package/routes/_workspace/settings/github2.js +11 -11
  124. package/routes/_workspace/settings/gitlab2.js +5 -5
  125. package/routes/_workspace/settings/groups2.js +52 -52
  126. package/routes/_workspace/settings/import2.js +39 -39
  127. package/routes/_workspace/settings/index2.js +5 -5
  128. package/routes/_workspace/settings/intercom2.js +11 -11
  129. package/routes/_workspace/settings/labels2.js +33 -33
  130. package/routes/_workspace/settings/members2.js +81 -81
  131. package/routes/_workspace/settings/notifications2.js +46 -46
  132. package/routes/_workspace/settings/parallelworks2.js +20 -20
  133. package/routes/_workspace/settings/roles2.js +41 -41
  134. package/routes/_workspace/settings/runners2.js +15 -15
  135. package/routes/_workspace/settings/sentry2.js +15 -15
  136. package/routes/_workspace/settings/sessions2.js +9 -9
  137. package/routes/_workspace/settings/sessions3.js +4 -4
  138. package/routes/_workspace/settings/slack2.js +12 -12
  139. package/routes/_workspace/settings/sso2.js +37 -37
  140. package/routes/_workspace/settings/sso3.js +7 -7
  141. package/routes/_workspace/settings/teams2.js +29 -29
  142. package/routes/_workspace/settings/tokens2.js +32 -32
  143. package/routes/_workspace/settings/tokens3.js +4 -4
  144. package/routes/_workspace/settings/webhooks2.js +41 -41
  145. package/routes/_workspace/settings/zendesk2.js +11 -11
  146. package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
  147. package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
  148. package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
  149. package/routes/_workspace/teams/_key/issues.js +10 -10
  150. package/routes/_workspace/teams/_key/projects.js +6 -6
  151. package/routes/_workspace/teams/_key/settings2.js +396 -396
  152. package/routes/_workspace2.js +308 -308
  153. package/routes/_workspace3.js +8 -8
  154. package/routes/device2.js +4 -4
  155. package/routes/device3.js +4 -4
  156. package/routes/docs/_tag/_endpoint2.js +3 -3
  157. package/routes/docs/_tag/index2.js +3 -3
  158. package/routes/docs/route2.js +7 -7
  159. package/routes/index2.js +5 -5
  160. package/routes/login2.js +10 -10
  161. package/routes/new2.js +12 -12
  162. package/routes/new3.js +5 -5
  163. package/routes/request2._token.js +6 -6
  164. package/routes/share2._secret.js +4 -4
@@ -1,12 +1,12 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { tokensQuery as n } from "../../../api/queries.js";
3
- import { copyItem as r } from "../../../lib/menus.js";
4
- import { KeyIcon as i } from "../../../components/icons.js";
5
- import { useTime as a } from "../../../lib/time.js";
6
- import { useConfirm as o } from "../../../lib/confirm.js";
7
- import { SettingsPage as s, useFormError as c } from "../../../components/settings.js";
8
- import { Route as l } from "./tokens.js";
9
- import { OneTimeSecret as u } from "../../../components/OneTimeSecret.js";
3
+ import { KeyIcon as r } from "../../../components/icons.js";
4
+ import { OneTimeSecret as i } from "../../../components/OneTimeSecret.js";
5
+ import { SettingsPage as a, useFormError as o } from "../../../components/settings.js";
6
+ import { useConfirm as s } from "../../../lib/confirm.js";
7
+ import { copyItem as c } from "../../../lib/menus.js";
8
+ import { useTime as l } from "../../../lib/time.js";
9
+ import { Route as u } from "./tokens.js";
10
10
  import { Button as d, ErrorText as f, Input as p, Modal as m, ModalTitle as h, PageHeaderAddButton as g, Select as _, Table as v, menuDivider as y, useOpenMenu as b } from "@parallelworks/ui";
11
11
  import { useMemo as x, useState as S } from "react";
12
12
  import { useTranslations as C } from "use-intl";
@@ -15,10 +15,10 @@ import { useMutation as E, useQueryClient as D, useSuspenseQuery as O } from "@t
15
15
  import { ListCellText as k, ListColumns as A, ListPage as j, ListRow as M, ListToolbar as N, NameCell as P, listTableProps as F, useListNavigate as I, useListSearch as L, useListView as R } from "@parallelworks/ui/list";
16
16
  // src/routes/$workspace/settings/tokens.tsx?tsr-split=component
17
17
  function z() {
18
- let { workspace: c } = l.useParams(), { data: d } = O(n), f = C("account"), p = C("common"), m = a(), h = D(), _ = L(), z = I(), V = b(), [H, U] = S(!1), [W, G] = S(null), K = E({
18
+ let { workspace: o } = u.useParams(), { data: d } = O(n), f = C("account"), p = C("common"), m = l(), h = D(), _ = L(), z = I(), V = b(), [H, U] = S(!1), [W, G] = S(null), K = E({
19
19
  mutationFn: async (n) => t(await e.DELETE("/api/v1/me/tokens/{tokenId}", { params: { path: { tokenId: n } } })),
20
20
  onSettled: () => h.invalidateQueries({ queryKey: n.queryKey })
21
- }), { confirm: q, dialog: J } = o(), Y = (e) => q({
21
+ }), { confirm: q, dialog: J } = s(), Y = (e) => q({
22
22
  title: f("revokeTokenTitle"),
23
23
  description: f("revokeTokenDescription", { name: e.name }),
24
24
  confirmLabel: f("revoke"),
@@ -57,7 +57,7 @@ function z() {
57
57
  defaultOrderBy: "name",
58
58
  facets: []
59
59
  }), Q = _.filter.trim().toLowerCase(), $ = d.filter((e) => !Q || e.name.toLowerCase().includes(Q));
60
- return /* @__PURE__ */ T(s, {
60
+ return /* @__PURE__ */ T(a, {
61
61
  wide: !0,
62
62
  title: f("tokens"),
63
63
  description: f.rich("tokensDescription", { code: (e) => /* @__PURE__ */ w("code", {
@@ -78,7 +78,7 @@ function z() {
78
78
  children: [
79
79
  W && /* @__PURE__ */ w("div", {
80
80
  className: "px-4 pb-4",
81
- children: /* @__PURE__ */ w(u, {
81
+ children: /* @__PURE__ */ w(i, {
82
82
  title: f("tokenCreated", { name: W.name }),
83
83
  secret: W.secret,
84
84
  onDismiss: () => G(null)
@@ -96,7 +96,7 @@ function z() {
96
96
  nounPlural: f("tokenNounPlural")
97
97
  },
98
98
  empty: {
99
- icon: /* @__PURE__ */ w(i, {}),
99
+ icon: /* @__PURE__ */ w(r, {}),
100
100
  title: f("noTokens")
101
101
  },
102
102
  noMatches: f("tokenNoMatches"),
@@ -107,7 +107,7 @@ function z() {
107
107
  goTo: z,
108
108
  openMenu: V,
109
109
  items: [
110
- r(p("copyName"), e.name),
110
+ c(p("copyName"), e.name),
111
111
  y,
112
112
  {
113
113
  label: f("revoke"),
@@ -117,7 +117,7 @@ function z() {
117
117
  ],
118
118
  children: [
119
119
  /* @__PURE__ */ w(P, {
120
- icon: /* @__PURE__ */ w(i, {}),
120
+ icon: /* @__PURE__ */ w(r, {}),
121
121
  iconTile: !0,
122
122
  name: e.name,
123
123
  subtitle: f("tokenCreatedAgo", { created: m.relative(e.createdAt) }),
@@ -142,7 +142,7 @@ function z() {
142
142
  }),
143
143
  J,
144
144
  H && /* @__PURE__ */ w(B, {
145
- workspace: c,
145
+ workspace: o,
146
146
  onCreated: (e) => {
147
147
  U(!1), G(e);
148
148
  },
@@ -152,7 +152,7 @@ function z() {
152
152
  });
153
153
  }
154
154
  function B({ workspace: r, onCreated: i, onClose: a }) {
155
- let o = C("account"), s = C("common"), l = D(), u = c(), [g, v] = S(""), [y, b] = S("read"), [x, O] = S("one"), [k, A] = S("90"), j = E({
155
+ let s = C("account"), c = C("common"), l = D(), u = o(), [g, v] = S(""), [y, b] = S("read"), [x, O] = S("one"), [k, A] = S("90"), j = E({
156
156
  mutationFn: async () => t(await e.POST("/api/v1/me/tokens", { body: {
157
157
  name: g,
158
158
  readOnly: y === "read",
@@ -178,15 +178,15 @@ function B({ workspace: r, onCreated: i, onClose: a }) {
178
178
  children: [
179
179
  /* @__PURE__ */ w(h, {
180
180
  className: "text-sm font-semibold",
181
- children: o("newToken")
181
+ children: s("newToken")
182
182
  }),
183
183
  /* @__PURE__ */ w(p, {
184
184
  required: !0,
185
185
  autoFocus: !0,
186
186
  value: g,
187
187
  onChange: (e) => v(e.target.value),
188
- placeholder: o("tokenNamePlaceholder"),
189
- "aria-label": o("tokenName"),
188
+ placeholder: s("tokenNamePlaceholder"),
189
+ "aria-label": s("tokenName"),
190
190
  className: "mt-4 w-full"
191
191
  }),
192
192
  /* @__PURE__ */ T("div", {
@@ -195,49 +195,49 @@ function B({ workspace: r, onCreated: i, onClose: a }) {
195
195
  /* @__PURE__ */ w(_, {
196
196
  value: y,
197
197
  onValueChange: b,
198
- "aria-label": o("tokenAccess"),
198
+ "aria-label": s("tokenAccess"),
199
199
  items: [{
200
200
  value: "read",
201
- label: o("readOnly")
201
+ label: s("readOnly")
202
202
  }, {
203
203
  value: "write",
204
- label: o("readWrite")
204
+ label: s("readWrite")
205
205
  }],
206
206
  width: "content"
207
207
  }),
208
208
  /* @__PURE__ */ w(_, {
209
209
  value: x,
210
210
  onValueChange: O,
211
- "aria-label": o("tokenWorkspace"),
211
+ "aria-label": s("tokenWorkspace"),
212
212
  items: [{
213
213
  value: "one",
214
- label: o("thisWorkspace", { workspace: r })
214
+ label: s("thisWorkspace", { workspace: r })
215
215
  }, {
216
216
  value: "all",
217
- label: o("allWorkspaces")
217
+ label: s("allWorkspaces")
218
218
  }],
219
219
  width: "content"
220
220
  }),
221
221
  /* @__PURE__ */ w(_, {
222
222
  value: k,
223
223
  onValueChange: A,
224
- "aria-label": o("tokenExpiry"),
224
+ "aria-label": s("tokenExpiry"),
225
225
  items: [
226
226
  {
227
227
  value: "30",
228
- label: o("expiresIn", { days: 30 })
228
+ label: s("expiresIn", { days: 30 })
229
229
  },
230
230
  {
231
231
  value: "90",
232
- label: o("expiresIn", { days: 90 })
232
+ label: s("expiresIn", { days: 90 })
233
233
  },
234
234
  {
235
235
  value: "365",
236
- label: o("expiresIn", { days: 365 })
236
+ label: s("expiresIn", { days: 365 })
237
237
  },
238
238
  {
239
239
  value: "0",
240
- label: o("noExpiry")
240
+ label: s("noExpiry")
241
241
  }
242
242
  ],
243
243
  width: "content"
@@ -254,13 +254,13 @@ function B({ workspace: r, onCreated: i, onClose: a }) {
254
254
  children: [/* @__PURE__ */ w(d, {
255
255
  type: "button",
256
256
  onClick: a,
257
- children: s("cancel")
257
+ children: c("cancel")
258
258
  }), /* @__PURE__ */ w(d, {
259
259
  type: "submit",
260
260
  variant: "primary",
261
261
  disabled: !g.trim(),
262
262
  loading: j.isPending,
263
- children: o("createToken")
263
+ children: s("createToken")
264
264
  })]
265
265
  })
266
266
  ]
@@ -1,11 +1,11 @@
1
- import { redirect as e } from "../../../lib/router.js";
2
- import { meQuery as t, tokensQuery as n } from "../../../api/queries.js";
1
+ import { meQuery as e, tokensQuery as t } from "../../../api/queries.js";
2
+ import { redirect as n } from "../../../lib/router.js";
3
3
  // src/routes/$workspace/settings/tokens.tsx?tsr-split=loader
4
4
  var r = async ({ context: { queryClient: r }, params: { workspace: i } }) => {
5
- if ((await r.ensureQueryData(t))?.mode === "platform") throw e({
5
+ if ((await r.ensureQueryData(e))?.mode === "platform") throw n({
6
6
  to: "/$workspace/settings/account",
7
7
  params: { workspace: i }
8
8
  });
9
- await r.ensureQueryData(n);
9
+ await r.ensureQueryData(t);
10
10
  };
11
11
  export { r as loader };
@@ -1,11 +1,11 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { teamsQuery as n, webhooksQuery as r } from "../../../api/queries.js";
3
- import { useTime as i } from "../../../lib/time.js";
4
- import { useCan as a } from "../../../lib/roles.js";
5
- import { useConfirm as o } from "../../../lib/confirm.js";
6
- import { AdminOnly as s, SettingsPage as c, cardFooter as l, cardList as u, useFormError as d } from "../../../components/settings.js";
7
- import { Route as f } from "./webhooks.js";
8
- import { OneTimeSecret as p } from "../../../components/OneTimeSecret.js";
3
+ import { OneTimeSecret as i } from "../../../components/OneTimeSecret.js";
4
+ import { AdminOnly as a, SettingsPage as o, cardFooter as s, cardList as c, useFormError as l } from "../../../components/settings.js";
5
+ import { useConfirm as u } from "../../../lib/confirm.js";
6
+ import { useCan as d } from "../../../lib/roles.js";
7
+ import { useTime as f } from "../../../lib/time.js";
8
+ import { Route as p } from "./webhooks.js";
9
9
  import { Button as m, Checkbox as h, ErrorText as g, Input as ee, Select as _, SettingsCard as v, Switch as y, Tooltip as b } from "@parallelworks/ui";
10
10
  import { useState as x } from "react";
11
11
  import { useTranslations as S } from "use-intl";
@@ -20,15 +20,15 @@ var A = {
20
20
  plans: ["project."]
21
21
  };
22
22
  function j() {
23
- let { workspace: e } = f.useParams(), t = a(e, "manage_workspace"), n = S("webhooks"), r = S("settingsNav");
24
- return /* @__PURE__ */ T(c, {
23
+ let { workspace: e } = p.useParams(), t = d(e, "manage_workspace"), n = S("webhooks"), r = S("settingsNav");
24
+ return /* @__PURE__ */ T(o, {
25
25
  title: r("webhooks"),
26
26
  description: n("description"),
27
- children: [/* @__PURE__ */ w(s, { workspace: e }), t && /* @__PURE__ */ w(M, { workspace: e })]
27
+ children: [/* @__PURE__ */ w(a, { workspace: e }), t && /* @__PURE__ */ w(M, { workspace: e })]
28
28
  });
29
29
  }
30
30
  function M({ workspace: a }) {
31
- let { data: s } = k(r(a)), c = S("webhooks"), f = S("common"), j = i(), M = O(), N = d(), [P, F] = x(""), [I, L] = x([]), [R, z] = x("json"), [B, V] = x(""), { data: H = [] } = D(n(a)), [U, W] = x(null), [G, K] = x({}), q = () => M.invalidateQueries({ queryKey: r(a).queryKey }), J = (e) => ({ path: {
31
+ let { data: o } = k(r(a)), d = S("webhooks"), p = S("common"), j = f(), M = O(), N = l(), [P, F] = x(""), [I, L] = x([]), [R, z] = x("json"), [B, V] = x(""), { data: H = [] } = D(n(a)), [U, W] = x(null), [G, K] = x({}), q = () => M.invalidateQueries({ queryKey: r(a).queryKey }), J = (e) => ({ path: {
32
32
  workspace: a,
33
33
  webhookId: e
34
34
  } }), Y = E({
@@ -60,7 +60,7 @@ function M({ workspace: a }) {
60
60
  onMutate: N.clear,
61
61
  onSuccess: (e, t) => K((n) => ({
62
62
  ...n,
63
- [t]: e.status ? c("pingAnswered", { status: e.status }) : c("pingFailed")
63
+ [t]: e.status ? d("pingAnswered", { status: e.status }) : d("pingFailed")
64
64
  })),
65
65
  onSettled: q,
66
66
  onError: N.set
@@ -68,27 +68,27 @@ function M({ workspace: a }) {
68
68
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/webhooks/{webhookId}", { params: J(n) })),
69
69
  onMutate: N.clear,
70
70
  onSettled: q
71
- }), { confirm: te, dialog: ne } = o(), $ = Y.isError ? N.error : null, re = (e) => X.isError && X.variables?.id === e || Z.isError && Z.variables === e ? N.error : null, ie = (e) => e.events.length === 0 ? c("allEvents") : Object.keys(A).filter((t) => A[t].some((t) => e.events.includes(t))).map((e) => c(`groups.${e}`)).join(", "), ae = (e) => {
72
- if (!e.lastDeliveredAt) return c("neverDelivered");
71
+ }), { confirm: te, dialog: ne } = u(), $ = Y.isError ? N.error : null, re = (e) => X.isError && X.variables?.id === e || Z.isError && Z.variables === e ? N.error : null, ie = (e) => e.events.length === 0 ? d("allEvents") : Object.keys(A).filter((t) => A[t].some((t) => e.events.includes(t))).map((e) => d(`groups.${e}`)).join(", "), ae = (e) => {
72
+ if (!e.lastDeliveredAt) return d("neverDelivered");
73
73
  let t = j.relative(e.lastDeliveredAt);
74
- return e.lastError ? c("lastFailed", {
74
+ return e.lastError ? d("lastFailed", {
75
75
  when: t,
76
76
  status: e.lastStatus ?? 0,
77
77
  hasStatus: e.lastStatus ? "yes" : "no"
78
- }) : c("lastDelivered", {
78
+ }) : d("lastDelivered", {
79
79
  when: t,
80
80
  status: e.lastStatus ?? 0
81
81
  });
82
82
  };
83
83
  return /* @__PURE__ */ T(C, { children: [
84
- U && /* @__PURE__ */ w(p, {
85
- title: c("created"),
84
+ U && /* @__PURE__ */ w(i, {
85
+ title: d("created"),
86
86
  secret: U,
87
87
  onDismiss: () => W(null)
88
88
  }),
89
89
  /* @__PURE__ */ T(v, { children: [/* @__PURE__ */ T("ul", {
90
- className: u,
91
- children: [s.map((e) => /* @__PURE__ */ T("li", {
90
+ className: c,
91
+ children: [o.map((e) => /* @__PURE__ */ T("li", {
92
92
  className: "flex flex-wrap items-center gap-x-3 gap-y-2 px-3 py-2 text-sm",
93
93
  children: [
94
94
  /* @__PURE__ */ T("div", {
@@ -103,7 +103,7 @@ function M({ workspace: a }) {
103
103
  }), /* @__PURE__ */ T("p", {
104
104
  className: "text-xs text-muted-foreground",
105
105
  children: [
106
- e.format === "chat" && /* @__PURE__ */ T(C, { children: [c("chat"), " · "] }),
106
+ e.format === "chat" && /* @__PURE__ */ T(C, { children: [d("chat"), " · "] }),
107
107
  e.teamId && /* @__PURE__ */ T(C, { children: [H.find((t) => t.id === e.teamId)?.name ?? "", " · "] }),
108
108
  ie(e),
109
109
  " · ",
@@ -117,7 +117,7 @@ function M({ workspace: a }) {
117
117
  }),
118
118
  /* @__PURE__ */ w(y, {
119
119
  size: "sm",
120
- "aria-label": c("enabledFor", { url: e.url }),
120
+ "aria-label": d("enabledFor", { url: e.url }),
121
121
  checked: e.enabled,
122
122
  disabled: X.isPending,
123
123
  onCheckedChange: (t) => X.mutate({
@@ -130,18 +130,18 @@ function M({ workspace: a }) {
130
130
  size: "sm",
131
131
  loading: Z.isPending,
132
132
  onClick: () => Z.mutate(e.id),
133
- children: c("sendTest")
133
+ children: d("sendTest")
134
134
  }),
135
135
  /* @__PURE__ */ w("button", {
136
136
  type: "button",
137
137
  onClick: () => te({
138
- title: c("deleteTitle"),
139
- description: c("deleteDescription", { url: e.url }),
140
- confirmLabel: c("delete"),
138
+ title: d("deleteTitle"),
139
+ description: d("deleteDescription", { url: e.url }),
140
+ confirmLabel: d("delete"),
141
141
  onConfirm: () => Q.mutateAsync(e.id)
142
142
  }),
143
143
  className: "text-xs text-muted-foreground hover:text-danger",
144
- children: f("delete")
144
+ children: p("delete")
145
145
  }),
146
146
  /* @__PURE__ */ w(g, {
147
147
  size: "md",
@@ -149,12 +149,12 @@ function M({ workspace: a }) {
149
149
  children: re(e.id)
150
150
  })
151
151
  ]
152
- }, e.id)), s.length === 0 && /* @__PURE__ */ w("li", {
152
+ }, e.id)), o.length === 0 && /* @__PURE__ */ w("li", {
153
153
  className: "px-3 py-2 text-sm text-muted-foreground",
154
- children: c("none")
154
+ children: d("none")
155
155
  })]
156
156
  }), /* @__PURE__ */ T("form", {
157
- className: `${l} flex-wrap`,
157
+ className: `${s} flex-wrap`,
158
158
  onSubmit: (e) => {
159
159
  e.preventDefault(), Y.mutate();
160
160
  },
@@ -165,7 +165,7 @@ function M({ workspace: a }) {
165
165
  value: P,
166
166
  onChange: (e) => F(e.target.value),
167
167
  placeholder: "https://example.com/tandem",
168
- "aria-label": c("url"),
168
+ "aria-label": d("url"),
169
169
  "aria-describedby": $ ? "webhook-add-error" : void 0,
170
170
  className: "min-w-0 basis-full"
171
171
  }),
@@ -174,42 +174,42 @@ function M({ workspace: a }) {
174
174
  children: [
175
175
  /* @__PURE__ */ w("legend", {
176
176
  className: "sr-only",
177
- children: c("events")
177
+ children: d("events")
178
178
  }),
179
179
  Object.keys(A).map((e) => /* @__PURE__ */ T("label", {
180
180
  className: "flex items-center gap-1.5",
181
181
  children: [/* @__PURE__ */ w(h, {
182
182
  checked: I.includes(e),
183
183
  onCheckedChange: (t) => L((n) => t ? [...n, e] : n.filter((t) => t !== e))
184
- }), c(`groups.${e}`)]
184
+ }), d(`groups.${e}`)]
185
185
  }, e)),
186
186
  /* @__PURE__ */ w("span", {
187
187
  className: "text-xs text-muted-foreground",
188
- children: c("noneChosen")
188
+ children: d("noneChosen")
189
189
  })
190
190
  ]
191
191
  }),
192
192
  /* @__PURE__ */ w(_, {
193
- "aria-label": c("format"),
193
+ "aria-label": d("format"),
194
194
  value: R,
195
195
  onValueChange: (e) => e && z(e),
196
196
  items: [{
197
197
  value: "json",
198
- label: c("formats.json")
198
+ label: d("formats.json")
199
199
  }, {
200
200
  value: "chat",
201
- label: c("formats.chat")
201
+ label: d("formats.chat")
202
202
  }],
203
203
  size: "sm",
204
204
  width: "content"
205
205
  }),
206
206
  /* @__PURE__ */ w(_, {
207
- "aria-label": c("team"),
207
+ "aria-label": d("team"),
208
208
  value: B,
209
209
  onValueChange: (e) => V(e ?? ""),
210
210
  items: [{
211
211
  value: "",
212
- label: c("allTeams")
212
+ label: d("allTeams")
213
213
  }, ...H.filter((e) => !e.archivedAt).map((e) => ({
214
214
  value: e.id,
215
215
  label: e.name
@@ -221,7 +221,7 @@ function M({ workspace: a }) {
221
221
  type: "submit",
222
222
  variant: "primary",
223
223
  loading: Y.isPending,
224
- children: c("add")
224
+ children: d("add")
225
225
  }),
226
226
  /* @__PURE__ */ w(g, {
227
227
  id: "webhook-add-error",
@@ -233,11 +233,11 @@ function M({ workspace: a }) {
233
233
  })] }),
234
234
  /* @__PURE__ */ w("p", {
235
235
  className: "mt-3 text-xs text-muted-foreground",
236
- children: c("verify")
236
+ children: d("verify")
237
237
  }),
238
238
  /* @__PURE__ */ w("p", {
239
239
  className: "mt-1 text-xs text-muted-foreground",
240
- children: c("chatHelp")
240
+ children: d("chatHelp")
241
241
  }),
242
242
  ne
243
243
  ] });
@@ -1,18 +1,18 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { teamsQuery as n, zendeskQuery as r } from "../../../api/queries.js";
3
- import { InboxIcon as i } from "../../../components/icons.js";
4
- import { usePeople as a } from "../../../lib/people.js";
5
- import { useCan as o } from "../../../lib/roles.js";
6
- import { AdminOnly as s, SettingsPage as c, useFormError as l } from "../../../components/settings.js";
7
- import { Route as u } from "./zendesk.js";
8
- import { ConnectionCard as d } from "../../../components/ConnectionCard.js";
3
+ import { ConnectionCard as i } from "../../../components/ConnectionCard.js";
4
+ import { InboxIcon as a } from "../../../components/icons.js";
5
+ import { AdminOnly as o, SettingsPage as s, useFormError as c } from "../../../components/settings.js";
6
+ import { usePeople as l } from "../../../lib/people.js";
7
+ import { useCan as u } from "../../../lib/roles.js";
8
+ import { Route as d } from "./zendesk.js";
9
9
  import { SettingRow as f, SettingsCard as p, StatusLabel as m, Switch as h, buttonClasses as g } from "@parallelworks/ui";
10
10
  import { useFormatter as _, useTranslations as v } from "use-intl";
11
11
  import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
12
12
  import { useMutation as S, useQueryClient as C, useSuspenseQuery as w } from "@tanstack/react-query";
13
13
  // src/routes/$workspace/settings/zendesk.tsx?tsr-split=component
14
14
  function T() {
15
- let { workspace: T } = u.useParams(), { data: E } = w(r(T)), { data: D } = w(n(T)), O = o(T, "manage_workspace"), k = v("settingsNav"), A = v("zendesk"), j = _(), { person: M } = a(T), N = C(), P = l(), F = S({
15
+ let { workspace: T } = d.useParams(), { data: E } = w(r(T)), { data: D } = w(n(T)), O = u(T, "manage_workspace"), k = v("settingsNav"), A = v("zendesk"), j = _(), { person: M } = l(T), N = C(), P = c(), F = S({
16
16
  mutationFn: async ({ teamId: n, on: r }) => t(await e.PUT("/api/v1/workspaces/{workspace}/zendesk/teams/{teamId}", {
17
17
  params: { path: {
18
18
  workspace: T,
@@ -24,18 +24,18 @@ function T() {
24
24
  onSuccess: () => N.invalidateQueries({ queryKey: r(T).queryKey }),
25
25
  onError: P.set
26
26
  }), I = new Set(E.teams.filter((e) => e.reopen).map((e) => e.teamId));
27
- return /* @__PURE__ */ x(c, {
27
+ return /* @__PURE__ */ x(s, {
28
28
  title: k("zendesk"),
29
29
  description: A("pageDescription"),
30
- children: [/* @__PURE__ */ b(s, { workspace: T }), E.enabled ? /* @__PURE__ */ x("div", {
30
+ children: [/* @__PURE__ */ b(o, { workspace: T }), E.enabled ? /* @__PURE__ */ x("div", {
31
31
  className: "space-y-6",
32
32
  children: [
33
33
  /* @__PURE__ */ b("p", {
34
34
  className: "text-sm text-muted-foreground",
35
35
  children: A("managedByHost")
36
36
  }),
37
- /* @__PURE__ */ b(d, {
38
- icon: /* @__PURE__ */ b(i, { className: "size-6" }),
37
+ /* @__PURE__ */ b(i, {
38
+ icon: /* @__PURE__ */ b(a, { className: "size-6" }),
39
39
  name: k("zendesk"),
40
40
  status: E.connected ? A("connectedTo", {
41
41
  account: E.subdomain ?? "",
@@ -1,21 +1,21 @@
1
1
  import { api as e, unwrap as t } from "../../../../../api/client.js";
2
- import { NotFound as n } from "../../../../../components/status.js";
3
- import { usePageTitle as r } from "../../../../../lib/pageTitle.js";
4
- import { useNavigate as i } from "../../../../../lib/router.js";
5
- import { cyclesQuery as a, issuesQuery as o, teamsQuery as ee } from "../../../../../api/queries.js";
6
- import { invalidateIssueViews as s } from "../../../../../api/mutations.js";
7
- import { CloseIcon as te, CycleIcon as ne } from "../../../../../components/icons.js";
8
- import { addDays as re, today as c, useTime as l } from "../../../../../lib/time.js";
2
+ import { invalidateIssueViews as n } from "../../../../../api/mutations.js";
3
+ import { cyclesQuery as r, issuesQuery as i, teamsQuery as a } from "../../../../../api/queries.js";
4
+ import { useCycleCrumb as o } from "../../../../../components/cycleCrumb.js";
5
+ import { FavoriteStar as ee } from "../../../../../components/FavoriteStar.js";
6
+ import { IssueBreakdown as s, breakdownKeys as te } from "../../../../../components/IssueBreakdown.js";
7
+ import { StatusGroups as ne } from "../../../../../components/IssueGroup.js";
8
+ import { CloseIcon as re, CycleIcon as c } from "../../../../../components/icons.js";
9
9
  import { ProgressBar as ie } from "../../../../../components/Planning.js";
10
- import { useCan as u } from "../../../../../lib/roles.js";
11
- import { teamPath as d } from "../../../../../lib/teamPaths.js";
12
- import { Route as f } from "./_number.js";
13
- import { FavoriteStar as p } from "../../../../../components/FavoriteStar.js";
14
- import { BurnUp as m } from "../../../../../components/Reports.js";
15
- import { IssueBreakdown as h, breakdownKeys as ae } from "../../../../../components/IssueBreakdown.js";
16
- import { StatusGroups as oe } from "../../../../../components/IssueGroup.js";
17
- import { cycleParam as se, findCycle as ce } from "../../../../../lib/cycleLinks.js";
18
- import { useCycleCrumb as le } from "../../../../../components/cycleCrumb.js";
10
+ import { BurnUp as l } from "../../../../../components/Reports.js";
11
+ import { NotFound as u } from "../../../../../components/status.js";
12
+ import { cycleParam as d, findCycle as f } from "../../../../../lib/cycleLinks.js";
13
+ import { usePageTitle as p } from "../../../../../lib/pageTitle.js";
14
+ import { useCan as m } from "../../../../../lib/roles.js";
15
+ import { useNavigate as ae } from "../../../../../lib/router.js";
16
+ import { teamPath as h } from "../../../../../lib/teamPaths.js";
17
+ import { addDays as oe, today as se, useTime as ce } from "../../../../../lib/time.js";
18
+ import { Route as le } from "./_number.js";
19
19
  import { Button as g, Card as _, EmptyState as v, ErrorText as y, IconButton as b, PageHeader as x } from "@parallelworks/ui";
20
20
  import { useState as S } from "react";
21
21
  import { useErrorMessage as C } from "@parallelworks/problem/react";
@@ -30,13 +30,13 @@ var j = [
30
30
  "projects"
31
31
  ];
32
32
  function M() {
33
- let { workspace: M, key: N, number: P } = f.useParams(), F = w("planning"), I = C(), L = l(), R = i(), { data: z } = A(ee(M)), { data: B } = A(a(M, N)), V = ce(B, P), H = z.find((e) => e.key === N), U = le(M, N, B, V);
34
- r(V && (V.name ? F("cycleNamed", {
33
+ let { workspace: M, key: N, number: P } = le.useParams(), F = w("planning"), I = C(), L = ce(), R = ae(), { data: z } = A(a(M)), { data: B } = A(r(M, N)), V = f(B, P), H = z.find((e) => e.key === N), U = o(M, N, B, V);
34
+ p(V && (V.name ? F("cycleNamed", {
35
35
  number: V.number,
36
36
  name: V.name
37
37
  }) : F("cycle", { number: V.number })), H?.name);
38
- let W = u(M, "manage_cycles", { team: N }), ue = k(), [G, de] = S(null), [K, q] = S("assignees"), [J, Y] = S(null), { data: fe } = O({
39
- ...o(M, { cycle: V?.id ?? "" }),
38
+ let W = m(M, "manage_cycles", { team: N }), ue = k(), [G, de] = S(null), [K, q] = S("assignees"), [J, Y] = S(null), { data: fe } = O({
39
+ ...i(M, { cycle: V?.id ?? "" }),
40
40
  enabled: !!V
41
41
  }), X = D({
42
42
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/teams/{key}/cycles/{number}/move-unfinished", { params: { path: {
@@ -45,10 +45,10 @@ function M() {
45
45
  number: V?.number ?? 0
46
46
  } } })),
47
47
  onSuccess: (e) => de(e.moved),
48
- onSettled: () => s(ue, M)
48
+ onSettled: () => n(ue, M)
49
49
  });
50
- if (!V) return /* @__PURE__ */ T(n, { title: F("noSuchCycle") });
51
- let Z = fe?.issues ?? [], Q = J ? Z.filter((e) => ae(e, J.tab).includes(J.key)) : Z, $ = Z.filter((e) => e.status.category !== "completed" && e.status.category !== "canceled").length, pe = V.state === "past" || V.state === "current" && re(c(), 2) >= V.endsOn, me = V.name ? F("cycleNamed", {
50
+ if (!V) return /* @__PURE__ */ T(u, { title: F("noSuchCycle") });
51
+ let Z = fe?.issues ?? [], Q = J ? Z.filter((e) => te(e, J.tab).includes(J.key)) : Z, $ = Z.filter((e) => e.status.category !== "completed" && e.status.category !== "canceled").length, pe = V.state === "past" || V.state === "current" && oe(se(), 2) >= V.endsOn, me = V.name ? F("cycleNamed", {
52
52
  number: V.number,
53
53
  name: V.name
54
54
  }) : F("cycle", { number: V.number });
@@ -59,15 +59,15 @@ function M() {
59
59
  breadcrumbs: [
60
60
  {
61
61
  label: H?.name ?? N,
62
- href: d(M, N, "issues")
62
+ href: h(M, N, "issues")
63
63
  },
64
64
  {
65
65
  label: F("cycles"),
66
- href: d(M, N, "cycles")
66
+ href: h(M, N, "cycles")
67
67
  },
68
68
  ...U ? [U] : []
69
69
  ],
70
- titleActions: /* @__PURE__ */ T(p, {
70
+ titleActions: /* @__PURE__ */ T(ee, {
71
71
  workspace: M,
72
72
  kind: "cycle",
73
73
  target: V.id
@@ -80,7 +80,7 @@ function M() {
80
80
  /* @__PURE__ */ E("div", {
81
81
  className: "flex flex-wrap items-center gap-3",
82
82
  children: [
83
- /* @__PURE__ */ T(ne, { className: `size-5 shrink-0 ${V.state === "current" ? "text-status-started" : "text-muted-foreground"}` }),
83
+ /* @__PURE__ */ T(c, { className: `size-5 shrink-0 ${V.state === "current" ? "text-status-started" : "text-muted-foreground"}` }),
84
84
  /* @__PURE__ */ T("h1", {
85
85
  className: "text-xl font-semibold tracking-tight",
86
86
  children: me
@@ -129,7 +129,7 @@ function M() {
129
129
  params: {
130
130
  workspace: M,
131
131
  key: N,
132
- number: se(X.data.cycle)
132
+ number: d(X.data.cycle)
133
133
  }
134
134
  }),
135
135
  children: F("openCycle", { number: X.data.cycle.number })
@@ -143,7 +143,7 @@ function M() {
143
143
  }),
144
144
  /* @__PURE__ */ T("section", {
145
145
  className: "mt-6 rounded-xl border border-border bg-card p-4",
146
- children: /* @__PURE__ */ T(m, {
146
+ children: /* @__PURE__ */ T(l, {
147
147
  workspace: M,
148
148
  teamKey: N,
149
149
  cycle: V
@@ -151,7 +151,7 @@ function M() {
151
151
  }),
152
152
  Z.length > 0 && /* @__PURE__ */ T("div", {
153
153
  className: "mt-8 xl:hidden",
154
- children: /* @__PURE__ */ T(h, {
154
+ children: /* @__PURE__ */ T(s, {
155
155
  workspace: M,
156
156
  issues: Z,
157
157
  tabs: j,
@@ -170,14 +170,14 @@ function M() {
170
170
  size: "sm",
171
171
  variant: "ghost",
172
172
  label: F("issueBreakdown.showAll"),
173
- icon: /* @__PURE__ */ T(te, {}),
173
+ icon: /* @__PURE__ */ T(re, {}),
174
174
  onClick: () => Y(null)
175
175
  })]
176
176
  }), Q.length === 0 ? /* @__PURE__ */ T(v, { title: F("noIssuesInCycle") }) : /* @__PURE__ */ T(_, {
177
177
  size: "fill",
178
178
  padding: "none",
179
179
  className: "overflow-hidden",
180
- children: /* @__PURE__ */ T(oe, {
180
+ children: /* @__PURE__ */ T(ne, {
181
181
  workspace: M,
182
182
  issues: Q
183
183
  })
@@ -187,7 +187,7 @@ function M() {
187
187
  }), Z.length > 0 && /* @__PURE__ */ T("aside", {
188
188
  "aria-label": F("issueBreakdown.label"),
189
189
  className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-6 xl:block",
190
- children: /* @__PURE__ */ T(h, {
190
+ children: /* @__PURE__ */ T(s, {
191
191
  workspace: M,
192
192
  issues: Z,
193
193
  tabs: j,