@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,12 +1,12 @@
1
- import { issuePath as e } from "../lib/branch.js";
2
- import { usePageTitle as t } from "../lib/pageTitle.js";
3
- import { Link as n } from "../lib/router.js";
4
- import { allDecisionsQuery as r, inboxQuery as i, myAllDecisionsQuery as a, myDecisionsQuery as o, teamsQuery as s } from "../api/queries.js";
5
- import { copyItem as c, useLinkItems as l } from "../lib/menus.js";
6
- import { ChevronRightIcon as u, PriorityIcon as d, usePriorityNames as f } from "../components/icons.js";
7
- import { AnsweredDecision as p, DecisionCard as m } from "../components/AgentWork.js";
8
- import { FavoriteStar as h } from "../components/FavoriteStar.js";
9
- import { recentlyAnswered as g, saveScope as _, savedScope as v } from "../lib/decisionScope.js";
1
+ import { allDecisionsQuery as e, inboxQuery as t, myAllDecisionsQuery as n, myDecisionsQuery as r, teamsQuery as i } from "../api/queries.js";
2
+ import { AnsweredDecision as a, DecisionCard as o } from "../components/AgentWork.js";
3
+ import { FavoriteStar as s } from "../components/FavoriteStar.js";
4
+ import { ChevronRightIcon as c, PriorityIcon as l, usePriorityNames as u } from "../components/icons.js";
5
+ import { issuePath as d } from "../lib/branch.js";
6
+ import { recentlyAnswered as f, saveScope as p, savedScope as m } from "../lib/decisionScope.js";
7
+ import { copyItem as h, useLinkItems as g } from "../lib/menus.js";
8
+ import { usePageTitle as _ } from "../lib/pageTitle.js";
9
+ import { Link as v } from "../lib/router.js";
10
10
  import { SegmentedControl as y, Tooltip as b, useOpenMenu as x } from "@parallelworks/ui";
11
11
  import { useParams as S, useSearch as C } from "@tanstack/react-router";
12
12
  import { useState as w } from "react";
@@ -23,72 +23,72 @@ function A(e) {
23
23
  }
24
24
  return [...t.values()];
25
25
  }
26
- function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, children: s }) {
27
- let p = T("decisions"), m = l(), h = x(), g = f();
26
+ function j({ first: e, count: t, open: n, onToggle: r, showWorkspace: i, children: a }) {
27
+ let o = T("decisions"), s = g(), f = x(), p = u();
28
28
  return /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
29
29
  className: "mb-1.5 flex min-w-0 items-center gap-1 text-xs text-muted-foreground",
30
30
  children: [
31
31
  /* @__PURE__ */ E("button", {
32
32
  type: "button",
33
- onClick: a,
34
- "aria-expanded": i,
35
- "aria-label": p(i ? "hideDecisions" : "showDecisions", { issue: t.identifier }),
33
+ onClick: r,
34
+ "aria-expanded": n,
35
+ "aria-label": o(n ? "hideDecisions" : "showDecisions", { issue: e.identifier }),
36
36
  className: "-ml-1 shrink-0 rounded p-0.5 hover:bg-muted hover:text-foreground",
37
- children: /* @__PURE__ */ E(u, { className: i ? "size-3.5 rotate-90" : "size-3.5" })
37
+ children: /* @__PURE__ */ E(c, { className: n ? "size-3.5 rotate-90" : "size-3.5" })
38
38
  }),
39
- /* @__PURE__ */ D(n, {
39
+ /* @__PURE__ */ D(v, {
40
40
  to: "/$workspace/issues/$identifier",
41
41
  params: {
42
- workspace: t.workspace,
43
- identifier: t.identifier
42
+ workspace: e.workspace,
43
+ identifier: e.identifier
44
44
  },
45
- onContextMenu: (n) => h(n, [...m(e(t.workspace, t.identifier)), c(p("copyId"), t.identifier)]),
45
+ onContextMenu: (t) => f(t, [...s(d(e.workspace, e.identifier)), h(o("copyId"), e.identifier)]),
46
46
  className: "flex min-w-0 items-center gap-2 hover:text-foreground",
47
47
  children: [
48
- o && /* @__PURE__ */ E("span", {
48
+ i && /* @__PURE__ */ E("span", {
49
49
  className: "max-w-[40%] shrink-0 truncate rounded bg-muted px-1.5 py-0.5 font-medium text-foreground",
50
- children: t.workspaceName
50
+ children: e.workspaceName
51
51
  }),
52
52
  /* @__PURE__ */ E(b, {
53
- content: g[t.issuePriority],
53
+ content: p[e.issuePriority],
54
54
  children: /* @__PURE__ */ D("span", {
55
55
  className: "flex",
56
- children: [/* @__PURE__ */ E(d, { priority: t.issuePriority }), /* @__PURE__ */ E("span", {
56
+ children: [/* @__PURE__ */ E(l, { priority: e.issuePriority }), /* @__PURE__ */ E("span", {
57
57
  className: "sr-only",
58
- children: g[t.issuePriority]
58
+ children: p[e.issuePriority]
59
59
  })]
60
60
  })
61
61
  }),
62
62
  /* @__PURE__ */ E("span", {
63
63
  className: "shrink-0 font-medium",
64
- children: t.identifier
64
+ children: e.identifier
65
65
  }),
66
66
  /* @__PURE__ */ E("span", {
67
67
  className: "truncate",
68
- children: t.issueTitle
68
+ children: e.issueTitle
69
69
  })
70
70
  ]
71
71
  }),
72
72
  /* @__PURE__ */ E("span", {
73
73
  className: "ml-1 shrink-0",
74
- children: r
74
+ children: t
75
75
  })
76
76
  ]
77
- }), i && /* @__PURE__ */ E("div", {
77
+ }), n && /* @__PURE__ */ E("div", {
78
78
  className: "space-y-3",
79
- children: s
79
+ children: a
80
80
  })] });
81
81
  }
82
82
  function M() {
83
- let { workspace: e, key: n } = S({ strict: !1 }), c = T("decisions"), l = x(), { team: d = n } = C({ strict: !1 }), { data: f } = O(s(e)), b = f.find((e) => e.key === d);
84
- t(c("title"), b?.name);
85
- let [M, N] = w(v), P = b ? "workspace" : M, F = P === "all", I = (e) => b ? e.filter((e) => e.identifier.startsWith(`${b.key}-`)) : e, L = (e) => {
86
- N(e), _(e);
87
- }, { data: R } = O(F ? o : i(e)), { data: z } = O(F ? a : r(e)), B = I(R), V = g(I(z)), [H, U] = w(/* @__PURE__ */ new Set()), [W, G] = w(!1), K = (e) => U((t) => {
83
+ let { workspace: l, key: u } = S({ strict: !1 }), d = T("decisions"), h = x(), { team: g = u } = C({ strict: !1 }), { data: v } = O(i(l)), b = v.find((e) => e.key === g);
84
+ _(d("title"), b?.name);
85
+ let [M, N] = w(m), P = b ? "workspace" : M, F = P === "all", I = (e) => b ? e.filter((e) => e.identifier.startsWith(`${b.key}-`)) : e, L = (e) => {
86
+ N(e), p(e);
87
+ }, { data: R } = O(F ? r : t(l)), { data: z } = O(F ? n : e(l)), B = I(R), V = f(I(z)), [H, U] = w(/* @__PURE__ */ new Set()), [W, G] = w(!1), K = (e) => U((t) => {
88
88
  let n = new Set(t);
89
89
  return n.delete(e) || n.add(e), n;
90
90
  }), q = () => k.map((e) => ({
91
- label: c(`scopes.${e}`),
91
+ label: d(`scopes.${e}`),
92
92
  checked: e === P,
93
93
  onClick: () => L(e)
94
94
  }));
@@ -99,29 +99,29 @@ function M() {
99
99
  children: [
100
100
  /* @__PURE__ */ E("h1", {
101
101
  className: "text-sm font-semibold",
102
- children: b ? c("teamTitle", { team: b.name }) : c("title")
102
+ children: b ? d("teamTitle", { team: b.name }) : d("title")
103
103
  }),
104
- !b && /* @__PURE__ */ E(h, {
105
- workspace: e,
104
+ !b && /* @__PURE__ */ E(s, {
105
+ workspace: l,
106
106
  kind: "page",
107
107
  target: "decisions"
108
108
  }),
109
109
  /* @__PURE__ */ E("span", {
110
110
  className: "text-xs text-muted-foreground",
111
- children: c("openCount", { count: B.length })
111
+ children: d("openCount", { count: B.length })
112
112
  }),
113
113
  !b && /* @__PURE__ */ E("div", {
114
114
  className: "ml-auto",
115
115
  children: /* @__PURE__ */ E(y, {
116
116
  size: "sm",
117
- label: c("scope"),
117
+ label: d("scope"),
118
118
  options: k.map((e) => ({
119
119
  value: e,
120
- label: c(`scopes.${e}`)
120
+ label: d(`scopes.${e}`)
121
121
  })),
122
122
  value: P,
123
123
  onValueChange: L,
124
- onContextMenu: (e) => l(e, q())
124
+ onContextMenu: (e) => h(e, q())
125
125
  })
126
126
  })
127
127
  ]
@@ -134,11 +134,11 @@ function M() {
134
134
  let [t] = e, n = `open:${t.workspace}/${t.identifier}`;
135
135
  return /* @__PURE__ */ E(j, {
136
136
  first: t,
137
- count: c("openCount", { count: e.length }),
137
+ count: d("openCount", { count: e.length }),
138
138
  open: !H.has(n),
139
139
  onToggle: () => K(n),
140
140
  showWorkspace: F,
141
- children: e.map((e) => /* @__PURE__ */ E(m, {
141
+ children: e.map((e) => /* @__PURE__ */ E(o, {
142
142
  workspace: e.workspace,
143
143
  decision: e
144
144
  }, e.id))
@@ -148,23 +148,23 @@ function M() {
148
148
  className: "py-24 text-center",
149
149
  children: [/* @__PURE__ */ E("p", {
150
150
  className: "text-sm font-medium",
151
- children: c("emptyTitle")
151
+ children: d("emptyTitle")
152
152
  }), /* @__PURE__ */ E("p", {
153
153
  className: "mt-1 text-sm text-muted-foreground",
154
- children: c(F ? "emptyDescriptionAll" : "emptyDescription")
154
+ children: d(F ? "emptyDescriptionAll" : "emptyDescription")
155
155
  })]
156
156
  }),
157
157
  V.length > 0 && /* @__PURE__ */ D("section", {
158
158
  className: "space-y-3 pt-6",
159
- "aria-label": c("recentlyAnswered"),
159
+ "aria-label": d("recentlyAnswered"),
160
160
  children: [/* @__PURE__ */ E("h2", { children: /* @__PURE__ */ D("button", {
161
161
  type: "button",
162
162
  onClick: () => G((e) => !e),
163
163
  "aria-expanded": W,
164
164
  className: "-ml-1 flex items-center gap-1 rounded px-1 text-base font-semibold hover:bg-muted",
165
165
  children: [
166
- /* @__PURE__ */ E(u, { className: W ? "size-4 rotate-90" : "size-4" }),
167
- c("recentlyAnswered"),
166
+ /* @__PURE__ */ E(c, { className: W ? "size-4 rotate-90" : "size-4" }),
167
+ d("recentlyAnswered"),
168
168
  /* @__PURE__ */ E("span", {
169
169
  className: "ml-1 text-xs font-normal text-muted-foreground",
170
170
  children: V.length
@@ -174,11 +174,11 @@ function M() {
174
174
  let [t] = e, n = `answered:${t.workspace}/${t.identifier}`;
175
175
  return /* @__PURE__ */ E(j, {
176
176
  first: t,
177
- count: c("answeredCount", { count: e.length }),
177
+ count: d("answeredCount", { count: e.length }),
178
178
  open: H.has(n),
179
179
  onToggle: () => K(n),
180
180
  showWorkspace: F,
181
- children: e.map((e) => /* @__PURE__ */ E(p, {
181
+ children: e.map((e) => /* @__PURE__ */ E(a, {
182
182
  workspace: e.workspace,
183
183
  decision: e
184
184
  }, e.id))