@parallelworks/tandem-web 0.171.0 → 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 (170) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +1 -0
  2. package/_virtual/_virtual_i18n/es/common.js +1 -0
  3. package/_virtual/_virtual_i18n/ja/common.js +1 -0
  4. package/_virtual/_virtual_i18n/ko/common.js +1 -0
  5. package/_virtual/_virtual_i18n/zh/common.js +1 -0
  6. package/components/AccessGrants.js +6 -6
  7. package/components/ActivityTimeline.js +57 -57
  8. package/components/ActorAvatar.js +4 -4
  9. package/components/AgentWork.js +494 -494
  10. package/components/AppLauncher.js +7 -7
  11. package/components/AreaLink.js +13 -13
  12. package/components/AreaTiles.js +13 -13
  13. package/components/AreaWork.js +22 -22
  14. package/components/Attachments.js +29 -29
  15. package/components/BlockHandle.js +3 -3
  16. package/components/BugRotation.js +8 -8
  17. package/components/CodeHostSettings.js +38 -38
  18. package/components/CollabEditor.js +13 -13
  19. package/components/CommandPalette.js +206 -206
  20. package/components/CustomFields.js +95 -95
  21. package/components/CustomerRequests.js +11 -11
  22. package/components/DashboardPanel.js +23 -23
  23. package/components/DateChip.js +21 -21
  24. package/components/DocHistory.js +14 -14
  25. package/components/DocIcon.js +4 -4
  26. package/components/DocIconPicker.js +4 -4
  27. package/components/DocLinkPicker.js +22 -22
  28. package/components/DocLook.js +16 -16
  29. package/components/DocProperties.js +81 -81
  30. package/components/DocTable.js +53 -53
  31. package/components/DocsTree.js +179 -179
  32. package/components/Editor.js +69 -69
  33. package/components/FavoritesNav.js +78 -78
  34. package/components/GitHub.js +87 -87
  35. package/components/Graph.js +14 -14
  36. package/components/HostActions.js +21 -21
  37. package/components/HostPanel.js +6 -6
  38. package/components/HoverCards.js +74 -74
  39. package/components/IssueBoard.js +13 -10
  40. package/components/IssueBreakdown.js +31 -31
  41. package/components/IssueCode.js +19 -19
  42. package/components/IssueEvent.js +12 -12
  43. package/components/IssueFilters.js +103 -99
  44. package/components/IssueGroup.js +16 -16
  45. package/components/IssueImport.js +13 -13
  46. package/components/IssueInsights.js +20 -20
  47. package/components/IssueListBlock.js +81 -81
  48. package/components/IssueRelations.js +34 -34
  49. package/components/IssueRow.js +31 -31
  50. package/components/IssueSentry.js +4 -4
  51. package/components/IssueTemplates.js +23 -23
  52. package/components/IssueTypes.js +40 -40
  53. package/components/MarkdownTransfer.js +10 -10
  54. package/components/MentionPicker.js +19 -19
  55. package/components/NewIssueDialog.js +53 -53
  56. package/components/NewProjectDialog.js +82 -82
  57. package/components/PersonActivity.js +13 -13
  58. package/components/PersonHoverCard.js +44 -44
  59. package/components/Planning.js +16 -16
  60. package/components/Reports.js +8 -8
  61. package/components/SettingsNav.js +15 -15
  62. package/components/ShareDialog.js +8 -8
  63. package/components/SharedViewer.js +23 -23
  64. package/components/SlashMenu.js +26 -26
  65. package/components/SubPages.js +10 -10
  66. package/components/TeamForm.js +9 -9
  67. package/components/TeamRepositories.js +21 -21
  68. package/components/TeamWorkflow.js +6 -6
  69. package/components/UnlinkedMentions.js +29 -29
  70. package/components/Updates.js +8 -8
  71. package/components/Widgets.js +4 -4
  72. package/components/WorkCounts.js +12 -12
  73. package/components/cycleCrumb.js +8 -8
  74. package/components/editorPlugins.js +101 -101
  75. package/components/settings.js +6 -6
  76. package/components/video.js +7 -7
  77. package/hostedApp.js +24 -24
  78. package/index.js +18 -18
  79. package/lib/assigneeOrder.js +6 -0
  80. package/lib/assignees.js +24 -20
  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/views.js +31 -31
  92. package/package.json +24 -24
  93. package/pages/area.js +64 -64
  94. package/pages/areas.js +199 -199
  95. package/pages/decisions.js +51 -51
  96. package/pages/issues.js +120 -120
  97. package/pages/projects.js +238 -238
  98. package/pages/triage.js +109 -109
  99. package/routes/_workspace/agents/_slug2.js +127 -127
  100. package/routes/_workspace/agents/index2.js +22 -22
  101. package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
  102. package/routes/_workspace/dashboards/index2.js +34 -34
  103. package/routes/_workspace/docs/_doc2.js +267 -267
  104. package/routes/_workspace/docs/space2._space.js +31 -31
  105. package/routes/_workspace/docs2.js +4 -4
  106. package/routes/_workspace/graph2.js +11 -11
  107. package/routes/_workspace/graph3.js +11 -11
  108. package/routes/_workspace/issues/_identifier2.js +477 -477
  109. package/routes/_workspace/issues/index.js +13 -13
  110. package/routes/_workspace/knowledge/_term2.js +175 -175
  111. package/routes/_workspace/knowledge/_term3.js +4 -4
  112. package/routes/_workspace/knowledge/index.js +12 -12
  113. package/routes/_workspace/knowledge/index2.js +117 -117
  114. package/routes/_workspace/measures2.js +8 -8
  115. package/routes/_workspace/measures3.js +29 -29
  116. package/routes/_workspace/notifications2.js +263 -263
  117. package/routes/_workspace/people/_username.js +10 -10
  118. package/routes/_workspace/people/_username2.js +41 -41
  119. package/routes/_workspace/projects/_projectId3.js +303 -303
  120. package/routes/_workspace/projects/_projectId4.js +4 -4
  121. package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
  122. package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
  123. package/routes/_workspace/projects/index.js +8 -8
  124. package/routes/_workspace/settings/account2.js +8 -8
  125. package/routes/_workspace/settings/audit-log2.js +8 -8
  126. package/routes/_workspace/settings/audit-log3.js +155 -155
  127. package/routes/_workspace/settings/connections2.js +4 -4
  128. package/routes/_workspace/settings/fields2.js +5 -5
  129. package/routes/_workspace/settings/github2.js +11 -11
  130. package/routes/_workspace/settings/gitlab2.js +5 -5
  131. package/routes/_workspace/settings/groups2.js +52 -52
  132. package/routes/_workspace/settings/import2.js +39 -39
  133. package/routes/_workspace/settings/index2.js +5 -5
  134. package/routes/_workspace/settings/intercom2.js +11 -11
  135. package/routes/_workspace/settings/labels2.js +33 -33
  136. package/routes/_workspace/settings/members2.js +81 -81
  137. package/routes/_workspace/settings/notifications2.js +46 -46
  138. package/routes/_workspace/settings/parallelworks2.js +20 -20
  139. package/routes/_workspace/settings/roles2.js +41 -41
  140. package/routes/_workspace/settings/runners2.js +15 -15
  141. package/routes/_workspace/settings/sentry2.js +15 -15
  142. package/routes/_workspace/settings/sessions2.js +9 -9
  143. package/routes/_workspace/settings/sessions3.js +4 -4
  144. package/routes/_workspace/settings/slack2.js +12 -12
  145. package/routes/_workspace/settings/sso2.js +37 -37
  146. package/routes/_workspace/settings/sso3.js +7 -7
  147. package/routes/_workspace/settings/teams2.js +29 -29
  148. package/routes/_workspace/settings/tokens2.js +32 -32
  149. package/routes/_workspace/settings/tokens3.js +4 -4
  150. package/routes/_workspace/settings/webhooks2.js +41 -41
  151. package/routes/_workspace/settings/zendesk2.js +11 -11
  152. package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
  153. package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
  154. package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
  155. package/routes/_workspace/teams/_key/issues.js +10 -10
  156. package/routes/_workspace/teams/_key/projects.js +6 -6
  157. package/routes/_workspace/teams/_key/settings2.js +396 -396
  158. package/routes/_workspace2.js +308 -308
  159. package/routes/_workspace3.js +8 -8
  160. package/routes/device2.js +4 -4
  161. package/routes/device3.js +4 -4
  162. package/routes/docs/_tag/_endpoint2.js +3 -3
  163. package/routes/docs/_tag/index2.js +3 -3
  164. package/routes/docs/route2.js +7 -7
  165. package/routes/index2.js +5 -5
  166. package/routes/login2.js +10 -10
  167. package/routes/new2.js +12 -12
  168. package/routes/new3.js +5 -5
  169. package/routes/request2._token.js +6 -6
  170. package/routes/share2._secret.js +4 -4
@@ -1,15 +1,15 @@
1
- import { Link as e, useNavigate as t } from "../../../lib/router.js";
2
- import { auditLogQuery as n } from "../../../api/queries.js";
3
- import { CalendarIcon as r, HistoryIcon as i, UserIcon as a, usePriorityNames as o } from "../../../components/icons.js";
4
- import { usePeople as s } from "../../../lib/people.js";
5
- import { useTime as c } from "../../../lib/time.js";
6
- import { useCan as l, useRoleName as u } from "../../../lib/roles.js";
1
+ import { paramFields as e } from "./audit-log.js";
2
+ import { auditLogQuery as t } from "../../../api/queries.js";
3
+ import { Timeline as n, TimelineItem as r, activityIcon as i } from "../../../components/ActivityTimeline.js";
4
+ import { AreaLink as a } from "../../../components/AreaLink.js";
5
+ import { CalendarIcon as o, HistoryIcon as s, UserIcon as c, usePriorityNames as l } from "../../../components/icons.js";
6
+ import { emojis as u } from "../../../components/Reactions.js";
7
7
  import { SettingsPage as d } from "../../../components/settings.js";
8
- import { AreaLink as f } from "../../../components/AreaLink.js";
9
- import { paramFields as p } from "./audit-log.js";
10
- import { Route as m } from "./audit-log2.js";
11
- import { Timeline as h, TimelineItem as g, activityIcon as _ } from "../../../components/ActivityTimeline.js";
12
- import { emojis as v } from "../../../components/Reactions.js";
8
+ import { usePeople as f } from "../../../lib/people.js";
9
+ import { useCan as p, useRoleName as m } from "../../../lib/roles.js";
10
+ import { Link as h, useNavigate as g } from "../../../lib/router.js";
11
+ import { useTime as _ } from "../../../lib/time.js";
12
+ import { Route as v } from "./audit-log2.js";
13
13
  import { Avatar as y, Button as b, Callout as x, EmptyState as S } from "@parallelworks/ui";
14
14
  import { useMemo as C } from "react";
15
15
  import { useFormatter as w, useTranslations as T } from "use-intl";
@@ -33,7 +33,7 @@ var L = [
33
33
  "workspace"
34
34
  ];
35
35
  function R() {
36
- let { workspace: e } = m.useParams(), t = T("audit"), n = l(e, "manage_workspace");
36
+ let { workspace: e } = v.useParams(), t = T("audit"), n = p(e, "manage_workspace");
37
37
  return /* @__PURE__ */ D(d, {
38
38
  title: t("title"),
39
39
  description: t("description"),
@@ -58,28 +58,28 @@ function z(e) {
58
58
  }
59
59
  return t;
60
60
  }
61
- function B({ workspace: e }) {
62
- let o = T("audit"), c = m.useSearch(), l = t({ from: m.fullPath }), { members: u, agents: d } = s(e), f = C(() => [
61
+ function B({ workspace: r }) {
62
+ let i = T("audit"), a = v.useSearch(), l = g({ from: v.fullPath }), { members: u, agents: d } = f(r), p = C(() => [
63
63
  {
64
64
  key: "actor",
65
- label: o("actor"),
66
- icon: /* @__PURE__ */ D(a, {}),
65
+ label: i("actor"),
66
+ icon: /* @__PURE__ */ D(c, {}),
67
67
  kind: "people",
68
68
  multiple: !1,
69
69
  operators: ["is"],
70
70
  options: [
71
71
  {
72
72
  value: "user:*",
73
- label: o("anyPerson")
73
+ label: i("anyPerson")
74
74
  },
75
75
  {
76
76
  value: "agent:*",
77
- label: o("anyAgent")
77
+ label: i("anyAgent")
78
78
  },
79
79
  ...u.map((e) => ({
80
80
  value: `user:${e.user.username}`,
81
81
  label: e.user.name,
82
- group: o("people"),
82
+ group: i("people"),
83
83
  icon: /* @__PURE__ */ D(y, {
84
84
  name: e.user.name,
85
85
  src: e.user.avatarUrl,
@@ -90,7 +90,7 @@ function B({ workspace: e }) {
90
90
  ...d.map((e) => ({
91
91
  value: `agent:${e.slug}`,
92
92
  label: e.name,
93
- group: o("agents"),
93
+ group: i("agents"),
94
94
  icon: /* @__PURE__ */ D(y, {
95
95
  name: e.name,
96
96
  kind: "agent",
@@ -102,54 +102,54 @@ function B({ workspace: e }) {
102
102
  },
103
103
  {
104
104
  key: "type",
105
- label: o("activity"),
106
- icon: /* @__PURE__ */ D(i, {}),
105
+ label: i("activity"),
106
+ icon: /* @__PURE__ */ D(s, {}),
107
107
  kind: "enum",
108
108
  multiple: !1,
109
109
  operators: ["is"],
110
110
  options: L.map((e) => ({
111
111
  value: e,
112
- label: o(`types.${e}`)
112
+ label: i(`types.${e}`)
113
113
  }))
114
114
  },
115
115
  {
116
116
  key: "date",
117
- label: o("date"),
118
- icon: /* @__PURE__ */ D(r, {}),
117
+ label: i("date"),
118
+ icon: /* @__PURE__ */ D(o, {}),
119
119
  kind: "date"
120
120
  }
121
121
  ], [
122
- o,
122
+ i,
123
123
  u,
124
124
  d
125
- ]), g = F({
126
- storageKey: `audit-log:${e}`,
127
- fields: f,
125
+ ]), m = F({
126
+ storageKey: `audit-log:${r}`,
127
+ fields: p,
128
128
  store: {
129
- value: P(c, p),
130
- onChange: (e) => l({
131
- search: (t) => I(t, e, p),
129
+ value: P(a, e),
130
+ onChange: (t) => l({
131
+ search: (n) => I(n, t, e),
132
132
  replace: !0
133
133
  })
134
134
  }
135
- }), _ = z(g.active), v = Object.keys(_).length > 0, { data: x, fetchNextPage: w, hasNextPage: N, isFetchingNextPage: R } = A({
136
- ...n(e, _),
135
+ }), h = z(m.active), _ = Object.keys(h).length > 0, { data: x, fetchNextPage: w, hasNextPage: N, isFetchingNextPage: R } = A({
136
+ ...t(r, h),
137
137
  placeholderData: k
138
138
  }), B = x?.pages.flatMap((e) => e.entries) ?? [];
139
139
  return /* @__PURE__ */ O(E, { children: [
140
140
  /* @__PURE__ */ D(j, {
141
- filters: g,
142
- end: /* @__PURE__ */ D(M, { filters: g }),
141
+ filters: m,
142
+ end: /* @__PURE__ */ D(M, { filters: m }),
143
143
  className: "mb-2"
144
144
  }),
145
145
  x && B.length === 0 ? /* @__PURE__ */ D(S, {
146
- icon: /* @__PURE__ */ D(i, {}),
147
- title: o(v ? "noMatches" : "empty"),
148
- description: o(v ? "noMatchesDescription" : "emptyDescription")
149
- }) : /* @__PURE__ */ D(h, { children: B.map((t) => /* @__PURE__ */ D(W, {
150
- workspace: e,
151
- entry: t
152
- }, t.id)) }),
146
+ icon: /* @__PURE__ */ D(s, {}),
147
+ title: i(_ ? "noMatches" : "empty"),
148
+ description: i(_ ? "noMatchesDescription" : "emptyDescription")
149
+ }) : /* @__PURE__ */ D(n, { children: B.map((e) => /* @__PURE__ */ D(W, {
150
+ workspace: r,
151
+ entry: e
152
+ }, e.id)) }),
153
153
  N && /* @__PURE__ */ D("div", {
154
154
  className: "mt-3 flex justify-center",
155
155
  children: /* @__PURE__ */ D(b, {
@@ -157,7 +157,7 @@ function B({ workspace: e }) {
157
157
  size: "sm",
158
158
  disabled: R,
159
159
  onClick: () => w(),
160
- children: o(R ? "loadingMore" : "loadMore")
160
+ children: i(R ? "loadingMore" : "loadMore")
161
161
  })
162
162
  })
163
163
  ] });
@@ -165,173 +165,173 @@ function B({ workspace: e }) {
165
165
  function V(e) {
166
166
  return e.type === "related" ? "related" : e.type === "blocks" ? e.outgoing ? "blocks" : "blockedBy" : e.outgoing ? "duplicates" : "duplicatedBy";
167
167
  }
168
- function H({ workspace: t, entry: n, children: r }) {
169
- let { kind: i, key: a } = n.target, o = "font-medium text-foreground hover:underline";
170
- if (!a) return /* @__PURE__ */ D("span", { children: r });
171
- switch (i) {
172
- case "issue": return /* @__PURE__ */ D(e, {
168
+ function H({ workspace: e, entry: t, children: n }) {
169
+ let { kind: r, key: i } = t.target, o = "font-medium text-foreground hover:underline";
170
+ if (!i) return /* @__PURE__ */ D("span", { children: n });
171
+ switch (r) {
172
+ case "issue": return /* @__PURE__ */ D(h, {
173
173
  to: "/$workspace/issues/$identifier",
174
174
  params: {
175
- workspace: t,
176
- identifier: a
175
+ workspace: e,
176
+ identifier: i
177
177
  },
178
178
  className: `${o} whitespace-nowrap`,
179
- children: r
179
+ children: n
180
180
  });
181
- case "doc": return /* @__PURE__ */ D(e, {
181
+ case "doc": return /* @__PURE__ */ D(h, {
182
182
  to: "/$workspace/docs/$doc",
183
183
  params: {
184
- workspace: t,
185
- doc: a
184
+ workspace: e,
185
+ doc: i
186
186
  },
187
187
  className: o,
188
- children: r
188
+ children: n
189
189
  });
190
- case "knowledge": return /* @__PURE__ */ D(e, {
190
+ case "knowledge": return /* @__PURE__ */ D(h, {
191
191
  to: "/$workspace/knowledge/$term",
192
192
  params: {
193
- workspace: t,
194
- term: a
193
+ workspace: e,
194
+ term: i
195
195
  },
196
196
  className: o,
197
- children: r
197
+ children: n
198
198
  });
199
- case "agent": return /* @__PURE__ */ D(e, {
199
+ case "agent": return /* @__PURE__ */ D(h, {
200
200
  to: "/$workspace/agents/$slug",
201
201
  params: {
202
- workspace: t,
203
- slug: a
202
+ workspace: e,
203
+ slug: i
204
204
  },
205
205
  className: o,
206
- children: r
206
+ children: n
207
207
  });
208
- case "label": return /* @__PURE__ */ D(e, {
208
+ case "label": return /* @__PURE__ */ D(h, {
209
209
  to: "/$workspace/issues",
210
- params: { workspace: t },
211
- search: { label: a },
210
+ params: { workspace: e },
211
+ search: { label: i },
212
212
  className: o,
213
- children: r
213
+ children: n
214
214
  });
215
- case "team": return /* @__PURE__ */ D(e, {
215
+ case "team": return /* @__PURE__ */ D(h, {
216
216
  to: "/$workspace/teams/$key/settings",
217
217
  params: {
218
- workspace: t,
219
- key: a
218
+ workspace: e,
219
+ key: i
220
220
  },
221
221
  className: o,
222
- children: r
222
+ children: n
223
223
  });
224
- case "project": return /* @__PURE__ */ D(e, {
224
+ case "project": return /* @__PURE__ */ D(h, {
225
225
  to: "/$workspace/projects/$projectId",
226
226
  params: {
227
- workspace: t,
228
- projectId: a
227
+ workspace: e,
228
+ projectId: i
229
229
  },
230
230
  className: o,
231
- children: r
231
+ children: n
232
232
  });
233
- case "area": return /* @__PURE__ */ D(f, {
234
- workspace: t,
235
- area: { key: a },
233
+ case "area": return /* @__PURE__ */ D(a, {
234
+ workspace: e,
235
+ area: { key: i },
236
236
  className: o,
237
- children: r
237
+ children: n
238
238
  });
239
- default: return /* @__PURE__ */ D(e, {
239
+ default: return /* @__PURE__ */ D(h, {
240
240
  to: "/$workspace/settings",
241
- params: { workspace: t },
241
+ params: { workspace: e },
242
242
  className: o,
243
- children: r
243
+ children: n
244
244
  });
245
245
  }
246
246
  }
247
247
  function U(e) {
248
- let t = T("relations"), n = T("flow"), r = w(), i = c(), a = o(), { person: l, nameOf: d } = s(e), f = u(e);
248
+ let t = T("relations"), n = T("flow"), r = w(), i = _(), a = l(), { person: o, nameOf: s } = f(e), c = m(e);
249
249
  return (e) => {
250
- let o = e.data ?? {}, s = (e) => String(o[e] ?? ""), c = (e) => o[e]?.name ?? "", u = (e) => a[Number(o[e])] ?? "";
250
+ let l = e.data ?? {}, d = (e) => String(l[e] ?? ""), f = (e) => l[e]?.name ?? "", p = (e) => a[Number(l[e])] ?? "";
251
251
  switch (e.type) {
252
252
  case "issue.created": return ["issueCreated", {}];
253
253
  case "issue.title_changed": return ["issueTitleChanged", {
254
- from: s("from"),
255
- to: s("to")
254
+ from: d("from"),
255
+ to: d("to")
256
256
  }];
257
257
  case "issue.body_changed": return ["issueBodyChanged", {}];
258
258
  case "issue.status_changed": return ["issueStatusChanged", {
259
- from: c("from"),
260
- to: c("to")
259
+ from: f("from"),
260
+ to: f("to")
261
261
  }];
262
262
  case "issue.priority_changed": return ["issuePriorityChanged", {
263
- from: u("from"),
264
- to: u("to")
263
+ from: p("from"),
264
+ to: p("to")
265
265
  }];
266
266
  case "issue.assignee_added":
267
- case "issue.assignee_removed": return [e.type === "issue.assignee_added" ? "issueAssigned" : "issueUnassigned", { assignee: d(s("kind"), s("handle")) }];
268
- case "issue.label_added": return ["issueLabelAdded", { label: s("name") }];
269
- case "issue.label_removed": return ["issueLabelRemoved", { label: s("name") }];
270
- case "issue.parent_changed": return o.identifier ? ["issueParentSet", { identifier: s("identifier") }] : ["issueParentCleared", {}];
267
+ case "issue.assignee_removed": return [e.type === "issue.assignee_added" ? "issueAssigned" : "issueUnassigned", { assignee: s(d("kind"), d("handle")) }];
268
+ case "issue.label_added": return ["issueLabelAdded", { label: d("name") }];
269
+ case "issue.label_removed": return ["issueLabelRemoved", { label: d("name") }];
270
+ case "issue.parent_changed": return l.identifier ? ["issueParentSet", { identifier: d("identifier") }] : ["issueParentCleared", {}];
271
271
  case "issue.relation_added":
272
272
  case "issue.relation_removed": return [e.type === "issue.relation_added" ? "issueRelationAdded" : "issueRelationRemoved", {
273
- relation: t(`kinds.${V(o)}`).toLowerCase(),
274
- identifier: s("identifier")
273
+ relation: t(`kinds.${V(l)}`).toLowerCase(),
274
+ identifier: d("identifier")
275
275
  }];
276
276
  case "issue.pull_request_changed": return ["issuePullRequest", {
277
- repository: s("repository"),
278
- number: s("number")
277
+ repository: d("repository"),
278
+ number: d("number")
279
279
  }];
280
280
  case "issue.pull_request_unlinked": return ["issuePullRequestUnlinked", {
281
- repository: s("repository"),
282
- number: s("number")
281
+ repository: d("repository"),
282
+ number: d("number")
283
283
  }];
284
284
  case "issue.branch_changed": return ["issueBranch", {
285
- branch: s("branch"),
286
- deleted: o.deleted ? "yes" : "no"
285
+ branch: d("branch"),
286
+ deleted: l.deleted ? "yes" : "no"
287
287
  }];
288
288
  case "issue.archived": return ["issueArchived", {}];
289
289
  case "issue.restored": return ["issueRestored", {}];
290
290
  case "issue.deleted": return ["issueDeleted", {
291
- identifier: s("identifier"),
292
- title: s("title")
291
+ identifier: d("identifier"),
292
+ title: d("title")
293
293
  }];
294
- case "issue.attachment_added": return ["issueAttachmentAdded", { file: s("name") }];
294
+ case "issue.attachment_added": return ["issueAttachmentAdded", { file: d("name") }];
295
295
  case "issue.released": return ["issueReleased", {
296
- commit: s("commit").slice(0, 7),
297
- targets: r.list(o.targets ?? [])
296
+ commit: d("commit").slice(0, 7),
297
+ targets: r.list(l.targets ?? [])
298
298
  }];
299
- case "issue.stage_changed": return o.to ? ["issueStageMoved", { stage: n(`stages.${s("to")}`) }] : ["issueStageLeft", {}];
299
+ case "issue.stage_changed": return l.to ? ["issueStageMoved", { stage: n(`stages.${d("to")}`) }] : ["issueStageLeft", {}];
300
300
  case "issue.area_changed":
301
301
  case "doc.area_changed": {
302
- let t = o.to?.title, n = e.type === "doc.area_changed";
302
+ let t = l.to?.title, n = e.type === "doc.area_changed";
303
303
  return t ? [n ? "docAreaSet" : "issueAreaSet", { area: t }] : [n ? "docAreaCleared" : "issueAreaCleared", {}];
304
304
  }
305
- case "issue.project_changed": return o.name ? ["issueProjectSet", { project: s("name") }] : ["issueProjectCleared", {}];
306
- case "issue.milestone_changed": return o.name ? ["issueMilestoneSet", { milestone: s("name") }] : ["issueMilestoneCleared", {}];
307
- case "issue.cycle_changed": return o.number ? ["issueCycleSet", { number: s("number") }] : ["issueCycleCleared", {}];
308
- case "issue.estimate_changed": return Number(o.to) ? ["issueEstimateSet", { points: r.number(Number(o.to)) }] : ["issueEstimateCleared", {}];
309
- case "issue.due_date_changed": return o.to ? ["issueDueDateSet", { date: i.day(s("to")) }] : ["issueDueDateCleared", {}];
310
- case "issue.type_changed": return o.to ? ["issueTypeChanged", { type: s("to") }] : ["issueTypeCleared", {}];
311
- case "issue.fields_changed": return ["issueFieldsChanged", { fields: r.list(o.fields ?? []) }];
305
+ case "issue.project_changed": return l.name ? ["issueProjectSet", { project: d("name") }] : ["issueProjectCleared", {}];
306
+ case "issue.milestone_changed": return l.name ? ["issueMilestoneSet", { milestone: d("name") }] : ["issueMilestoneCleared", {}];
307
+ case "issue.cycle_changed": return l.number ? ["issueCycleSet", { number: d("number") }] : ["issueCycleCleared", {}];
308
+ case "issue.estimate_changed": return Number(l.to) ? ["issueEstimateSet", { points: r.number(Number(l.to)) }] : ["issueEstimateCleared", {}];
309
+ case "issue.due_date_changed": return l.to ? ["issueDueDateSet", { date: i.day(d("to")) }] : ["issueDueDateCleared", {}];
310
+ case "issue.type_changed": return l.to ? ["issueTypeChanged", { type: d("to") }] : ["issueTypeCleared", {}];
311
+ case "issue.fields_changed": return ["issueFieldsChanged", { fields: r.list(l.fields ?? []) }];
312
312
  case "issue.reaction_added":
313
- case "issue.reaction_removed": return [e.type === "issue.reaction_added" ? "issueReactionAdded" : "issueReactionRemoved", { emoji: v[s("emoji")] ?? s("emoji") }];
313
+ case "issue.reaction_removed": return [e.type === "issue.reaction_added" ? "issueReactionAdded" : "issueReactionRemoved", { emoji: u[d("emoji")] ?? d("emoji") }];
314
314
  case "issue.triage_accepted": return ["issueTriageAccepted", {}];
315
315
  case "issue.triage_declined": return ["issueTriageDeclined", {}];
316
316
  case "comment.created": return ["commentCreated", {}];
317
317
  case "comment.edited": return ["commentEdited", {}];
318
318
  case "comment.deleted": return ["commentDeleted", {}];
319
319
  case "run.created": return ["runCreated", {}];
320
- case "run.state_changed": return ["runState", { state: s("to") }];
320
+ case "run.state_changed": return ["runState", { state: d("to") }];
321
321
  case "decision.requested": return ["decisionRequested", {}];
322
322
  case "decision.answered": return ["decisionAnswered", {}];
323
323
  case "label.created": return ["labelCreated", {}];
324
324
  case "label.updated": return ["labelUpdated", {}];
325
325
  case "label.deleted": return ["labelDeleted", {}];
326
- case "team.status_created": return ["statusCreated", { status: s("name") }];
327
- case "team.status_updated": return ["statusUpdated", { status: s("name") }];
326
+ case "team.status_created": return ["statusCreated", { status: d("name") }];
327
+ case "team.status_updated": return ["statusUpdated", { status: d("name") }];
328
328
  case "team.status_deleted": return ["statusDeleted", {
329
- status: c("status"),
330
- movedTo: c("movedTo")
329
+ status: f("status"),
330
+ movedTo: f("movedTo")
331
331
  }];
332
332
  case "issue.team_changed": {
333
333
  let e = (e) => {
334
- let t = o[e];
334
+ let t = l[e];
335
335
  return t ? `${t.key}-${t.number}` : "";
336
336
  };
337
337
  return ["issueTeamChanged", {
@@ -342,9 +342,9 @@ function U(e) {
342
342
  case "project.created": return ["projectCreated", {}];
343
343
  case "project.updated": return ["projectUpdated", {}];
344
344
  case "project.deleted": return ["projectDeleted", {}];
345
- case "project.milestone_created": return ["milestoneCreated", { milestone: s("name") }];
346
- case "project.milestone_updated": return ["milestoneUpdated", { milestone: s("name") }];
347
- case "project.milestone_deleted": return ["milestoneDeleted", { milestone: s("name") }];
345
+ case "project.milestone_created": return ["milestoneCreated", { milestone: d("name") }];
346
+ case "project.milestone_updated": return ["milestoneUpdated", { milestone: d("name") }];
347
+ case "project.milestone_deleted": return ["milestoneDeleted", { milestone: d("name") }];
348
348
  case "project.update_posted": return ["updatePosted", {}];
349
349
  case "project.update_deleted": return ["updateDeleted", {}];
350
350
  case "area.created": return ["areaCreated", {}];
@@ -353,22 +353,22 @@ function U(e) {
353
353
  case "area.merged": return ["areaMerged", {}];
354
354
  case "area.archived": return ["areaArchived", {}];
355
355
  case "area.restored": return ["areaRestored", {}];
356
- case "cycle.created": return ["cycleCreated", { number: s("number") }];
357
- case "cycle.updated": return ["cycleUpdated", { number: s("number") }];
356
+ case "cycle.created": return ["cycleCreated", { number: d("number") }];
357
+ case "cycle.updated": return ["cycleUpdated", { number: d("number") }];
358
358
  case "team.created": return ["teamCreated", {}];
359
359
  case "team.updated": return ["teamUpdated", {}];
360
360
  case "team.deleted": return ["teamDeleted", {}];
361
- case "team.member_added": return ["teamMemberAdded", { person: l(s("username")).name }];
362
- case "team.member_removed": return ["teamMemberRemoved", { person: l(s("username")).name }];
361
+ case "team.member_added": return ["teamMemberAdded", { person: o(d("username")).name }];
362
+ case "team.member_removed": return ["teamMemberRemoved", { person: o(d("username")).name }];
363
363
  case "team.rotation_changed": return ["teamRotationChanged", {}];
364
- case "team.rotation_handed_off": return ["teamRotationHandedOff", { person: l(s("to")).name }];
365
- case "team.repository_linked": return ["teamRepositoryLinked", { repository: s("repository") }];
366
- case "team.repository_unlinked": return ["teamRepositoryUnlinked", { repository: s("repository") }];
364
+ case "team.rotation_handed_off": return ["teamRotationHandedOff", { person: o(d("to")).name }];
365
+ case "team.repository_linked": return ["teamRepositoryLinked", { repository: d("repository") }];
366
+ case "team.repository_unlinked": return ["teamRepositoryUnlinked", { repository: d("repository") }];
367
367
  case "doc.created": return ["docCreated", {}];
368
- case "doc.title_changed": return ["docTitleChanged", { from: s("from") }];
368
+ case "doc.title_changed": return ["docTitleChanged", { from: d("from") }];
369
369
  case "doc.body_changed": return ["docBodyChanged", {}];
370
370
  case "doc.moved": return [e.target.kind === "doc" ? "docMoved" : "docMovedOut", {}];
371
- case "doc.template_changed": return ["docTemplateChanged", { template: o.template ? "yes" : "no" }];
371
+ case "doc.template_changed": return ["docTemplateChanged", { template: l.template ? "yes" : "no" }];
372
372
  case "doc.appearance_changed": return ["docAppearanceChanged", {}];
373
373
  case "doc.archived": return ["docArchived", {}];
374
374
  case "doc.restored": return ["docRestored", {}];
@@ -383,15 +383,15 @@ function U(e) {
383
383
  case "knowledge.archived": return ["knowledgeArchived", {}];
384
384
  case "knowledge.restored": return ["knowledgeRestored", {}];
385
385
  case "agent.created": return ["agentCreated", {}];
386
- case "agent.updated": return ["agentUpdated", { version: s("version") }];
386
+ case "agent.updated": return ["agentUpdated", { version: d("version") }];
387
387
  case "workspace.created": return ["workspaceCreated", {}];
388
388
  case "workspace.updated": return ["workspaceUpdated", {}];
389
- case "workspace.role_created": return ["roleCreated", { role: s("name") }];
390
- case "workspace.role_updated": return ["roleUpdated", { role: s("name") }];
391
- case "workspace.role_deleted": return ["roleDeleted", { role: s("name") }];
389
+ case "workspace.role_created": return ["roleCreated", { role: d("name") }];
390
+ case "workspace.role_updated": return ["roleUpdated", { role: d("name") }];
391
+ case "workspace.role_deleted": return ["roleDeleted", { role: d("name") }];
392
392
  case "workspace.member_role_changed": return ["memberRoleChanged", {
393
- person: l(s("username")).name,
394
- role: f(s("role"))
393
+ person: o(d("username")).name,
394
+ role: c(d("role"))
395
395
  }];
396
396
  case "workspace.access_changed": return ["workspaceAccessChanged", {}];
397
397
  case "team.access_changed": return ["teamAccessChanged", {}];
@@ -401,14 +401,14 @@ function U(e) {
401
401
  };
402
402
  }
403
403
  function W({ workspace: e, entry: t }) {
404
- let n = T("audit"), r = U(e), { person: i, agentName: a, actorName: o } = s(e), { actor: c, target: l } = t, u = c.kind === "agent", d = u && c.onBehalfOf ? n("onBehalfOf", {
405
- agent: a(c.handle),
406
- person: i(c.onBehalfOf).name
407
- }) : o(c), f = l.kind === "issue" ? l.key : l.kind === "agent" ? a(l.key) : l.title || l.key, [p, m] = r(t), h = n.rich(`events.${p}`, {
408
- ...m,
409
- name: d,
410
- target: f || n("removedTarget"),
411
- actor: (e) => /* @__PURE__ */ O(E, { children: [u && /* @__PURE__ */ D("span", {
404
+ let n = T("audit"), a = U(e), { person: o, agentName: s, actorName: c } = f(e), { actor: l, target: u } = t, d = l.kind === "agent", p = d && l.onBehalfOf ? n("onBehalfOf", {
405
+ agent: s(l.handle),
406
+ person: o(l.onBehalfOf).name
407
+ }) : c(l), m = u.kind === "issue" ? u.key : u.kind === "agent" ? s(u.key) : u.title || u.key, [h, g] = a(t), _ = n.rich(`events.${h}`, {
408
+ ...g,
409
+ name: p,
410
+ target: m || n("removedTarget"),
411
+ actor: (e) => /* @__PURE__ */ O(E, { children: [d && /* @__PURE__ */ D("span", {
412
412
  className: "mr-1 rounded bg-agent-soft px-1.5 py-px align-[1px] text-[10px] font-medium text-agent",
413
413
  children: n("agentBadge")
414
414
  }), /* @__PURE__ */ D("span", {
@@ -421,13 +421,13 @@ function W({ workspace: e, entry: t }) {
421
421
  children: n
422
422
  })
423
423
  });
424
- return /* @__PURE__ */ D(g, {
424
+ return /* @__PURE__ */ D(r, {
425
425
  workspace: e,
426
- icon: _(t.type, t.data),
427
- actor: c,
426
+ icon: i(t.type, t.data),
427
+ actor: l,
428
428
  at: t.createdAt,
429
- detail: l.kind === "issue" && l.title,
430
- children: h
429
+ detail: u.kind === "issue" && u.title,
430
+ children: _
431
431
  });
432
432
  }
433
433
  export { R as component };
@@ -1,14 +1,14 @@
1
- import { SettingsPage as e } from "../../../components/settings.js";
2
- import { GitHubAccount as t } from "../../../components/GitHub.js";
1
+ import { GitHubAccount as e } from "../../../components/GitHub.js";
2
+ import { SettingsPage as t } from "../../../components/settings.js";
3
3
  import { useTranslations as n } from "use-intl";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
5
  // src/routes/$workspace/settings/connections.tsx?tsr-split=component
6
6
  function i() {
7
7
  let i = n("account"), a = n("settingsNav");
8
- return /* @__PURE__ */ r(e, {
8
+ return /* @__PURE__ */ r(t, {
9
9
  title: a("connections"),
10
10
  description: i("connectionsDescription"),
11
- children: /* @__PURE__ */ r(t, {})
11
+ children: /* @__PURE__ */ r(e, {})
12
12
  });
13
13
  }
14
14
  export { i as component };
@@ -1,13 +1,13 @@
1
- import { useCan as e } from "../../../lib/roles.js";
1
+ import { FieldSettings as e } from "../../../components/CustomFields.js";
2
2
  import { IssueTypeSettings as t } from "../../../components/IssueTypes.js";
3
3
  import { AdminOnly as n, SettingsPage as r } from "../../../components/settings.js";
4
- import { FieldSettings as i } from "../../../components/CustomFields.js";
4
+ import { useCan as i } from "../../../lib/roles.js";
5
5
  import { Route as a } from "./fields.js";
6
6
  import { useTranslations as o } from "use-intl";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  // src/routes/$workspace/settings/fields.tsx?tsr-split=component
9
9
  function l() {
10
- let { workspace: l } = a.useParams(), u = o("customFields"), d = e(l, "manage_labels");
10
+ let { workspace: l } = a.useParams(), u = o("customFields"), d = i(l, "manage_labels");
11
11
  return /* @__PURE__ */ c(r, {
12
12
  title: u("title"),
13
13
  description: u("pageDescription"),
@@ -15,11 +15,11 @@ function l() {
15
15
  className: "space-y-10",
16
16
  children: [
17
17
  /* @__PURE__ */ s(t, { workspace: l }),
18
- /* @__PURE__ */ s(i, {
18
+ /* @__PURE__ */ s(e, {
19
19
  workspace: l,
20
20
  target: "issue"
21
21
  }),
22
- /* @__PURE__ */ s(i, {
22
+ /* @__PURE__ */ s(e, {
23
23
  workspace: l,
24
24
  target: "project"
25
25
  })
@@ -1,27 +1,27 @@
1
1
  import { codeHostQuery as e } from "../../../api/queries.js";
2
- import { useCan as t } from "../../../lib/roles.js";
3
- import { AdminOnly as n, SettingsPage as r } from "../../../components/settings.js";
4
- import { Route as i } from "./github.js";
5
- import { GitHubSettings as a } from "../../../components/GitHub.js";
6
- import { CodeHostDangerZone as o, CodeHostSettings as s } from "../../../components/CodeHostSettings.js";
2
+ import { CodeHostDangerZone as t, CodeHostSettings as n } from "../../../components/CodeHostSettings.js";
3
+ import { GitHubSettings as r } from "../../../components/GitHub.js";
4
+ import { AdminOnly as i, SettingsPage as a } from "../../../components/settings.js";
5
+ import { useCan as o } from "../../../lib/roles.js";
6
+ import { Route as s } from "./github.js";
7
7
  import { useTranslations as c } from "use-intl";
8
8
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
9
  import { useSuspenseQuery as d } from "@tanstack/react-query";
10
10
  // src/routes/$workspace/settings/github.tsx?tsr-split=component
11
11
  function f() {
12
- let { workspace: f } = i.useParams(), { codeHost: p } = i.useSearch(), { data: m } = d(e(f)), h = t(f, "manage_workspace"), g = c("settingsNav"), _ = c("code");
13
- return /* @__PURE__ */ u(r, {
12
+ let { workspace: f } = s.useParams(), { codeHost: p } = s.useSearch(), { data: m } = d(e(f)), h = o(f, "manage_workspace"), g = c("settingsNav"), _ = c("code");
13
+ return /* @__PURE__ */ u(a, {
14
14
  title: g("github"),
15
15
  description: _("pageDescription"),
16
16
  children: [
17
- /* @__PURE__ */ l(n, { workspace: f }),
18
- /* @__PURE__ */ l(s, {
17
+ /* @__PURE__ */ l(i, { workspace: f }),
18
+ /* @__PURE__ */ l(n, {
19
19
  workspace: f,
20
20
  isAdmin: h,
21
21
  result: p
22
22
  }),
23
- h && m.provider !== "" && /* @__PURE__ */ l(a, { workspace: f }),
24
- h && m.provider !== "" && /* @__PURE__ */ l(o, { workspace: f })
23
+ h && m.provider !== "" && /* @__PURE__ */ l(r, { workspace: f }),
24
+ h && m.provider !== "" && /* @__PURE__ */ l(t, { workspace: f })
25
25
  ]
26
26
  });
27
27
  }