@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,11 +1,11 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
- import { usePageTitle as n } from "../../../lib/pageTitle.js";
3
- import { Link as r } from "../../../lib/router.js";
4
- import { dashboardQuery as i, dashboardsQuery as a, labelsQuery as o, panelQuery as s, teamsQuery as c, viewsQuery as l } from "../../../api/queries.js";
5
- import { useConfirm as u } from "../../../lib/confirm.js";
6
- import { useFormError as d } from "../../../components/settings.js";
7
- import { Route as f } from "./_dashboardId.js";
8
- import { DashboardPanel as p, PanelChart as m, sharingItems as h, sharingOf as g } from "../../../components/DashboardPanel.js";
2
+ import { dashboardQuery as n, dashboardsQuery as r, labelsQuery as i, panelQuery as a, teamsQuery as o, viewsQuery as s } from "../../../api/queries.js";
3
+ import { DashboardPanel as c, PanelChart as l, sharingItems as u, sharingOf as d } from "../../../components/DashboardPanel.js";
4
+ import { useFormError as f } from "../../../components/settings.js";
5
+ import { useConfirm as p } from "../../../lib/confirm.js";
6
+ import { usePageTitle as m } from "../../../lib/pageTitle.js";
7
+ import { Link as h } from "../../../lib/router.js";
8
+ import { Route as g } from "./_dashboardId.js";
9
9
  import { Button as _, Field as v, Input as y, Modal as b, Select as x } from "@parallelworks/ui";
10
10
  import { useNavigate as S } from "@tanstack/react-router";
11
11
  import { useState as C } from "react";
@@ -14,34 +14,34 @@ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
14
14
  import { useMutation as O, useQuery as k, useQueryClient as A, useSuspenseQuery as j } from "@tanstack/react-query";
15
15
  // src/routes/$workspace/dashboards/$dashboardId.tsx?tsr-split=component
16
16
  function M() {
17
- let o = w("dashboards"), { workspace: s, dashboardId: l } = f.useParams(), { data: m } = j(i(s, l)), { data: v } = j(c(s));
18
- n(m.name);
19
- let y = A(), b = S(), { confirm: k, dialog: M } = u(), N = d(), [P, F] = C(null), I = O({
17
+ let i = w("dashboards"), { workspace: a, dashboardId: s } = g.useParams(), { data: l } = j(n(a, s)), { data: v } = j(o(a));
18
+ m(l.name);
19
+ let y = A(), b = S(), { confirm: k, dialog: M } = p(), N = f(), [P, F] = C(null), I = O({
20
20
  mutationFn: async (n) => t(await e.PATCH("/api/v1/workspaces/{workspace}/dashboards/{dashboardId}", {
21
21
  params: { path: {
22
- workspace: s,
23
- dashboardId: l
22
+ workspace: a,
23
+ dashboardId: s
24
24
  } },
25
25
  body: n
26
26
  })),
27
27
  onMutate: N.clear,
28
28
  onSuccess: (e) => {
29
- y.setQueryData(i(s, l).queryKey, e), y.invalidateQueries({ queryKey: a(s).queryKey });
29
+ y.setQueryData(n(a, s).queryKey, e), y.invalidateQueries({ queryKey: r(a).queryKey });
30
30
  },
31
31
  onError: N.set
32
32
  }), L = O({
33
33
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/dashboards/{dashboardId}", { params: { path: {
34
- workspace: s,
35
- dashboardId: l
34
+ workspace: a,
35
+ dashboardId: s
36
36
  } } })),
37
37
  onSuccess: () => {
38
- y.invalidateQueries({ queryKey: a(s).queryKey }), b({
38
+ y.invalidateQueries({ queryKey: r(a).queryKey }), b({
39
39
  to: "/$workspace/dashboards",
40
- params: { workspace: s }
40
+ params: { workspace: a }
41
41
  });
42
42
  },
43
43
  onError: N.set
44
- }), z = m.shared ? m.team ? `team:${m.team}` : "workspace" : "private", B = (e) => I.mutate({ panels: e });
44
+ }), z = l.shared ? l.team ? `team:${l.team}` : "workspace" : "private", B = (e) => I.mutate({ panels: e });
45
45
  return /* @__PURE__ */ D("div", {
46
46
  className: "w-full space-y-6 px-4 py-6 md:px-8 md:py-8",
47
47
  children: [
@@ -50,32 +50,32 @@ function M() {
50
50
  className: "flex flex-wrap items-end justify-between gap-4",
51
51
  children: [/* @__PURE__ */ D("div", {
52
52
  className: "min-w-0",
53
- children: [/* @__PURE__ */ E(r, {
53
+ children: [/* @__PURE__ */ E(h, {
54
54
  to: "/$workspace/dashboards",
55
- params: { workspace: s },
55
+ params: { workspace: a },
56
56
  className: "text-xs text-muted-foreground hover:underline",
57
- children: o("title")
57
+ children: i("title")
58
58
  }), /* @__PURE__ */ E("h1", {
59
59
  className: "truncate text-xl font-semibold tracking-tight",
60
- children: m.name
60
+ children: l.name
61
61
  })]
62
62
  }), /* @__PURE__ */ D("div", {
63
63
  className: "flex flex-wrap items-center gap-2",
64
- children: [m.canEdit ? /* @__PURE__ */ E(x, {
65
- "aria-label": o("sharing"),
64
+ children: [l.canEdit ? /* @__PURE__ */ E(x, {
65
+ "aria-label": i("sharing"),
66
66
  value: z,
67
- onValueChange: (e) => e && I.mutate(g(e)),
68
- items: h(o, v),
67
+ onValueChange: (e) => e && I.mutate(d(e)),
68
+ items: u(i, v),
69
69
  size: "sm",
70
70
  width: "content"
71
71
  }) : /* @__PURE__ */ E("span", {
72
72
  className: "text-xs text-muted-foreground",
73
- children: o("ownedBy", { owner: m.owner })
74
- }), m.canEdit && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
73
+ children: i("ownedBy", { owner: l.owner })
74
+ }), l.canEdit && /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
75
75
  size: "sm",
76
76
  variant: "primary",
77
77
  onClick: () => F({
78
- at: m.panels.length,
78
+ at: l.panels.length,
79
79
  panel: {
80
80
  title: "",
81
81
  chart: "bar",
@@ -86,17 +86,17 @@ function M() {
86
86
  }
87
87
  }
88
88
  }),
89
- children: o("addPanel")
89
+ children: i("addPanel")
90
90
  }), /* @__PURE__ */ E(_, {
91
91
  size: "sm",
92
92
  variant: "outline",
93
93
  onClick: () => k({
94
- title: o("deleteTitle"),
95
- description: o("deleteDescription", { name: m.name }),
96
- confirmLabel: o("delete"),
94
+ title: i("deleteTitle"),
95
+ description: i("deleteDescription", { name: l.name }),
96
+ confirmLabel: i("delete"),
97
97
  onConfirm: () => L.mutateAsync()
98
98
  }),
99
- children: o("delete")
99
+ children: i("delete")
100
100
  })] })]
101
101
  })]
102
102
  }),
@@ -104,28 +104,28 @@ function M() {
104
104
  className: "text-sm text-danger",
105
105
  children: N.error
106
106
  }),
107
- m.panels.length === 0 ? /* @__PURE__ */ E("p", {
107
+ l.panels.length === 0 ? /* @__PURE__ */ E("p", {
108
108
  className: "text-sm text-muted-foreground",
109
- children: o("noPanels")
109
+ children: i("noPanels")
110
110
  }) : /* @__PURE__ */ E("div", {
111
111
  className: "grid gap-4 md:grid-cols-2 xl:grid-cols-3",
112
- children: m.panels.map((e, t) => /* @__PURE__ */ E(p, {
113
- workspace: s,
112
+ children: l.panels.map((e, t) => /* @__PURE__ */ E(c, {
113
+ workspace: a,
114
114
  panel: e,
115
- onEdit: m.canEdit ? () => F({
115
+ onEdit: l.canEdit ? () => F({
116
116
  at: t,
117
117
  panel: e
118
118
  }) : void 0,
119
- onDelete: m.canEdit ? () => B(m.panels.filter((e, n) => n !== t)) : void 0
119
+ onDelete: l.canEdit ? () => B(l.panels.filter((e, n) => n !== t)) : void 0
120
120
  }, e.id ?? t))
121
121
  }),
122
122
  P && /* @__PURE__ */ E(R, {
123
- workspace: s,
123
+ workspace: a,
124
124
  initial: P.panel,
125
125
  onClose: () => F(null),
126
126
  onSave: (e) => {
127
- let t = [...m.panels];
128
- t.splice(P.at, +(P.at < m.panels.length), e), B(t), F(null);
127
+ let t = [...l.panels];
128
+ t.splice(P.at, +(P.at < l.panels.length), e), B(t), F(null);
129
129
  }
130
130
  })
131
131
  ]
@@ -170,7 +170,7 @@ var N = [
170
170
  "all"
171
171
  ];
172
172
  function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
173
- let i = w("dashboards"), [a, u] = C(t), { data: d = [] } = k(c(e)), { data: f = [] } = k(l(e)), { data: p = [] } = k(o(e)), { data: h } = k(s(e, a.chart, a.spec)), g = a.spec, S = g.filters, O = (e) => u((t) => ({
173
+ let c = w("dashboards"), [u, d] = C(t), { data: f = [] } = k(o(e)), { data: p = [] } = k(s(e)), { data: m = [] } = k(i(e)), { data: h } = k(a(e, u.chart, u.spec)), g = u.spec, S = g.filters, O = (e) => d((t) => ({
174
174
  ...t,
175
175
  spec: Object.fromEntries(Object.entries({
176
176
  ...t.spec,
@@ -183,19 +183,19 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
183
183
  return /* @__PURE__ */ E(b, {
184
184
  open: !0,
185
185
  onClose: n,
186
- title: t.id ? i("editPanel") : i("addPanel"),
186
+ title: t.id ? c("editPanel") : c("addPanel"),
187
187
  size: "xl",
188
188
  onSubmit: (e) => {
189
- e.preventDefault(), r(a);
189
+ e.preventDefault(), r(u);
190
190
  },
191
191
  footer: /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
192
192
  variant: "ghost",
193
193
  onClick: n,
194
- children: i("cancel")
194
+ children: c("cancel")
195
195
  }), /* @__PURE__ */ E(_, {
196
196
  type: "submit",
197
197
  variant: "primary",
198
- children: i("save")
198
+ children: c("save")
199
199
  })] }),
200
200
  children: /* @__PURE__ */ D("div", {
201
201
  className: "grid gap-4 md:grid-cols-2",
@@ -203,55 +203,55 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
203
203
  className: "space-y-3",
204
204
  children: [
205
205
  /* @__PURE__ */ E(v, {
206
- label: i("panelTitle"),
206
+ label: c("panelTitle"),
207
207
  children: /* @__PURE__ */ E(y, {
208
- value: a.title,
209
- placeholder: i(`measures.${g.measure}`),
210
- onChange: (e) => u({
211
- ...a,
208
+ value: u.title,
209
+ placeholder: c(`measures.${g.measure}`),
210
+ onChange: (e) => d({
211
+ ...u,
212
212
  title: e.target.value
213
213
  }),
214
214
  maxLength: 200
215
215
  })
216
216
  }),
217
217
  /* @__PURE__ */ E(v, {
218
- label: i("measure"),
218
+ label: c("measure"),
219
219
  children: /* @__PURE__ */ E(x, {
220
220
  value: g.measure,
221
221
  onValueChange: (e) => e && O({ measure: e }),
222
222
  items: N.map((e) => ({
223
223
  value: e,
224
- label: i(`measures.${e}`)
224
+ label: c(`measures.${e}`)
225
225
  }))
226
226
  })
227
227
  }),
228
228
  g.measure !== "created_completed" && /* @__PURE__ */ E(v, {
229
- label: i("groupBy"),
229
+ label: c("groupBy"),
230
230
  children: /* @__PURE__ */ E(x, {
231
231
  value: g.groupBy ?? "",
232
232
  onValueChange: (e) => O(e ? { groupBy: e } : { groupBy: void 0 }),
233
233
  items: F.map((e) => ({
234
234
  value: e,
235
- label: i(`groupings.${e || "none"}`)
235
+ label: c(`groupings.${e || "none"}`)
236
236
  }))
237
237
  })
238
238
  }),
239
239
  /* @__PURE__ */ E(v, {
240
- label: i("chart"),
240
+ label: c("chart"),
241
241
  children: /* @__PURE__ */ E(x, {
242
- value: a.chart,
243
- onValueChange: (e) => e && u({
244
- ...a,
242
+ value: u.chart,
243
+ onValueChange: (e) => e && d({
244
+ ...u,
245
245
  chart: e
246
246
  }),
247
247
  items: P.map((e) => ({
248
248
  value: e,
249
- label: i(`charts.${e}`)
249
+ label: c(`charts.${e}`)
250
250
  }))
251
251
  })
252
252
  }),
253
253
  I.has(g.measure) && /* @__PURE__ */ E(v, {
254
- label: i("weeks"),
254
+ label: c("weeks"),
255
255
  children: /* @__PURE__ */ E(x, {
256
256
  value: String(g.weeks ?? 12),
257
257
  onValueChange: (e) => e && O({ weeks: Number(e) }),
@@ -263,16 +263,16 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
263
263
  52
264
264
  ].map((e) => ({
265
265
  value: String(e),
266
- label: i("weeksValue", { count: e })
266
+ label: c("weeksValue", { count: e })
267
267
  }))
268
268
  })
269
269
  }),
270
270
  /* @__PURE__ */ E(v, {
271
- label: i("issuesFrom"),
271
+ label: c("issuesFrom"),
272
272
  children: /* @__PURE__ */ E(x, {
273
273
  value: g.viewId ?? "",
274
- onValueChange: (e) => u({
275
- ...a,
274
+ onValueChange: (e) => d({
275
+ ...u,
276
276
  spec: e ? {
277
277
  ...g,
278
278
  viewId: e
@@ -280,8 +280,8 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
280
280
  }),
281
281
  items: [{
282
282
  value: "",
283
- label: i("filtersBelow")
284
- }, ...f.map((e) => ({
283
+ label: c("filtersBelow")
284
+ }, ...p.map((e) => ({
285
285
  value: e.id,
286
286
  label: e.name
287
287
  }))]
@@ -291,35 +291,35 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
291
291
  className: "grid grid-cols-2 gap-2",
292
292
  children: [
293
293
  /* @__PURE__ */ E(x, {
294
- "aria-label": i("team"),
294
+ "aria-label": c("team"),
295
295
  value: S.team ?? "",
296
296
  onValueChange: (e) => A({ team: e ?? "" }),
297
297
  items: [{
298
298
  value: "",
299
- label: i("allTeams")
300
- }, ...d.filter((e) => !e.archivedAt).map((e) => ({
299
+ label: c("allTeams")
300
+ }, ...f.filter((e) => !e.archivedAt).map((e) => ({
301
301
  value: e.key,
302
302
  label: e.name
303
303
  }))],
304
304
  size: "sm"
305
305
  }),
306
306
  /* @__PURE__ */ E(x, {
307
- "aria-label": i("tab"),
307
+ "aria-label": c("tab"),
308
308
  value: S.view ?? "active",
309
309
  onValueChange: (e) => A({ view: e ?? "active" }),
310
310
  items: L.map((e) => ({
311
311
  value: e,
312
- label: i(`tabs.${e}`)
312
+ label: c(`tabs.${e}`)
313
313
  })),
314
314
  size: "sm"
315
315
  }),
316
316
  /* @__PURE__ */ E(x, {
317
- "aria-label": i("priority"),
317
+ "aria-label": c("priority"),
318
318
  value: S.priority ?? "",
319
319
  onValueChange: (e) => A({ priority: e ?? "" }),
320
320
  items: [{
321
321
  value: "",
322
- label: i("anyPriority")
322
+ label: c("anyPriority")
323
323
  }, ...[
324
324
  "1",
325
325
  "2",
@@ -328,18 +328,18 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
328
328
  "0"
329
329
  ].map((e) => ({
330
330
  value: e,
331
- label: i(`priorities.${e}`)
331
+ label: c(`priorities.${e}`)
332
332
  }))],
333
333
  size: "sm"
334
334
  }),
335
335
  /* @__PURE__ */ E(x, {
336
- "aria-label": i("label"),
336
+ "aria-label": c("label"),
337
337
  value: S.label ?? "",
338
338
  onValueChange: (e) => A({ label: e ?? "" }),
339
339
  items: [{
340
340
  value: "",
341
- label: i("anyLabel")
342
- }, ...p.map((e) => ({
341
+ label: c("anyLabel")
342
+ }, ...m.map((e) => ({
343
343
  value: e.id,
344
344
  label: e.name
345
345
  }))],
@@ -352,14 +352,14 @@ function R({ workspace: e, initial: t, onClose: n, onSave: r }) {
352
352
  className: "min-w-0 rounded-md border border-border p-3",
353
353
  children: [/* @__PURE__ */ E("p", {
354
354
  className: "mb-2 text-xs font-medium text-muted-foreground",
355
- children: i("preview")
356
- }), h ? /* @__PURE__ */ E(m, {
355
+ children: c("preview")
356
+ }), h ? /* @__PURE__ */ E(l, {
357
357
  workspace: e,
358
- panel: a,
358
+ panel: u,
359
359
  data: h
360
360
  }) : /* @__PURE__ */ E("p", {
361
361
  className: "text-sm text-muted-foreground",
362
- children: i("loading")
362
+ children: c("loading")
363
363
  })]
364
364
  })]
365
365
  })
@@ -1,11 +1,11 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
- import { usePageTitle as n } from "../../../lib/pageTitle.js";
3
- import { Link as r } from "../../../lib/router.js";
4
- import { dashboardsQuery as i, teamsQuery as a } from "../../../api/queries.js";
5
- import { ChartIcon as o } from "../../../components/icons.js";
6
- import { useFormError as s } from "../../../components/settings.js";
7
- import { Route as c } from "./index.js";
8
- import { sharingItems as l, sharingOf as u, starterPanels as d } from "../../../components/DashboardPanel.js";
2
+ import { dashboardsQuery as n, teamsQuery as r } from "../../../api/queries.js";
3
+ import { sharingItems as i, sharingOf as a, starterPanels as o } from "../../../components/DashboardPanel.js";
4
+ import { ChartIcon as s } from "../../../components/icons.js";
5
+ import { useFormError as c } from "../../../components/settings.js";
6
+ import { usePageTitle as l } from "../../../lib/pageTitle.js";
7
+ import { Link as u } from "../../../lib/router.js";
8
+ import { Route as d } from "./index.js";
9
9
  import { Button as f, Card as p, EmptyState as m, Field as h, Input as g, Modal as _, Select as v } from "@parallelworks/ui";
10
10
  import { useNavigate as y } from "@tanstack/react-router";
11
11
  import { useState as b } from "react";
@@ -15,8 +15,8 @@ import { useMutation as T, useQueryClient as E, useSuspenseQuery as D } from "@t
15
15
  // src/routes/$workspace/dashboards/index.tsx?tsr-split=component
16
16
  function O() {
17
17
  let e = x("dashboards");
18
- n(e("title"));
19
- let { workspace: t } = c.useParams(), { data: s } = D(i(t)), { data: l } = D(a(t)), [u, d] = b(!1), h = (e) => l.find((t) => t.key === e)?.name;
18
+ l(e("title"));
19
+ let { workspace: t } = d.useParams(), { data: i } = D(n(t)), { data: a } = D(r(t)), [o, c] = b(!1), h = (e) => a.find((t) => t.key === e)?.name;
20
20
  return /* @__PURE__ */ w("div", {
21
21
  className: "w-full space-y-6 px-4 py-6 md:px-8 md:py-8",
22
22
  children: [
@@ -30,24 +30,24 @@ function O() {
30
30
  children: e("description")
31
31
  })] }), /* @__PURE__ */ C(f, {
32
32
  variant: "primary",
33
- onClick: () => d(!0),
33
+ onClick: () => c(!0),
34
34
  children: e("new")
35
35
  })]
36
36
  }),
37
- s.length === 0 ? /* @__PURE__ */ C(m, {
38
- icon: /* @__PURE__ */ C(o, {}),
37
+ i.length === 0 ? /* @__PURE__ */ C(m, {
38
+ icon: /* @__PURE__ */ C(s, {}),
39
39
  title: e("noneTitle"),
40
40
  description: e("noneDescription"),
41
41
  action: /* @__PURE__ */ C(f, {
42
42
  variant: "primary",
43
- onClick: () => d(!0),
43
+ onClick: () => c(!0),
44
44
  children: e("new")
45
45
  })
46
46
  }) : /* @__PURE__ */ C("ul", {
47
47
  className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
48
- children: s.map((n) => /* @__PURE__ */ C("li", { children: /* @__PURE__ */ C(p, {
48
+ children: i.map((n) => /* @__PURE__ */ C("li", { children: /* @__PURE__ */ C(p, {
49
49
  padding: "none",
50
- children: /* @__PURE__ */ w(r, {
50
+ children: /* @__PURE__ */ w(u, {
51
51
  to: "/$workspace/dashboards/$dashboardId",
52
52
  params: {
53
53
  workspace: t,
@@ -56,7 +56,7 @@ function O() {
56
56
  className: "block space-y-1 p-4",
57
57
  children: [/* @__PURE__ */ w("span", {
58
58
  className: "flex items-center gap-2 font-medium",
59
- children: [/* @__PURE__ */ C(o, { className: "size-4 text-muted-foreground" }), /* @__PURE__ */ C("span", {
59
+ children: [/* @__PURE__ */ C(s, { className: "size-4 text-muted-foreground" }), /* @__PURE__ */ C("span", {
60
60
  className: "truncate",
61
61
  children: n.name
62
62
  })]
@@ -71,29 +71,29 @@ function O() {
71
71
  })
72
72
  }) }, n.id))
73
73
  }),
74
- u && /* @__PURE__ */ C(k, {
74
+ o && /* @__PURE__ */ C(k, {
75
75
  workspace: t,
76
- onClose: () => d(!1)
76
+ onClose: () => c(!1)
77
77
  })
78
78
  ]
79
79
  });
80
80
  }
81
- function k({ workspace: n, onClose: r }) {
82
- let o = x("dashboards"), c = E(), p = y(), { data: m } = D(a(n)), [O, k] = b(""), [A, j] = b("private"), M = s(), N = T({
81
+ function k({ workspace: s, onClose: l }) {
82
+ let u = x("dashboards"), d = E(), p = y(), { data: m } = D(r(s)), [O, k] = b(""), [A, j] = b("private"), M = c(), N = T({
83
83
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/dashboards", {
84
- params: { path: { workspace: n } },
84
+ params: { path: { workspace: s } },
85
85
  body: {
86
86
  name: O,
87
- ...u(A),
88
- panels: d(o)
87
+ ...a(A),
88
+ panels: o(u)
89
89
  }
90
90
  })),
91
91
  onMutate: M.clear,
92
92
  onSuccess: (e) => {
93
- c.invalidateQueries({ queryKey: i(n).queryKey }), p({
93
+ d.invalidateQueries({ queryKey: n(s).queryKey }), p({
94
94
  to: "/$workspace/dashboards/$dashboardId",
95
95
  params: {
96
- workspace: n,
96
+ workspace: s,
97
97
  dashboardId: e.id
98
98
  }
99
99
  });
@@ -102,27 +102,27 @@ function k({ workspace: n, onClose: r }) {
102
102
  });
103
103
  return /* @__PURE__ */ C(_, {
104
104
  open: !0,
105
- onClose: r,
106
- title: o("new"),
105
+ onClose: l,
106
+ title: u("new"),
107
107
  size: "md",
108
108
  onSubmit: (e) => {
109
109
  e.preventDefault(), N.mutate();
110
110
  },
111
111
  footer: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(f, {
112
112
  variant: "ghost",
113
- onClick: r,
114
- children: o("cancel")
113
+ onClick: l,
114
+ children: u("cancel")
115
115
  }), /* @__PURE__ */ C(f, {
116
116
  type: "submit",
117
117
  variant: "primary",
118
118
  loading: N.isPending,
119
- children: o("create")
119
+ children: u("create")
120
120
  })] }),
121
121
  children: /* @__PURE__ */ w("div", {
122
122
  className: "space-y-4",
123
123
  children: [
124
124
  /* @__PURE__ */ C(h, {
125
- label: o("name"),
125
+ label: u("name"),
126
126
  children: /* @__PURE__ */ C(g, {
127
127
  value: O,
128
128
  onChange: (e) => k(e.target.value),
@@ -132,12 +132,12 @@ function k({ workspace: n, onClose: r }) {
132
132
  })
133
133
  }),
134
134
  /* @__PURE__ */ C(h, {
135
- label: o("sharing"),
136
- description: o("startsWith"),
135
+ label: u("sharing"),
136
+ description: u("startsWith"),
137
137
  children: /* @__PURE__ */ C(v, {
138
138
  value: A,
139
139
  onValueChange: (e) => e && j(e),
140
- items: l(o, m)
140
+ items: i(u, m)
141
141
  })
142
142
  }),
143
143
  M.error && /* @__PURE__ */ C("p", {