@parallelworks/tandem-web 0.150.2 → 0.151.0

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 (110) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +32 -3
  2. package/_virtual/_virtual_i18n/es/common.js +32 -3
  3. package/_virtual/_virtual_i18n/ja/common.js +32 -3
  4. package/_virtual/_virtual_i18n/ko/common.js +32 -3
  5. package/_virtual/_virtual_i18n/zh/common.js +32 -3
  6. package/api/queries.js +88 -77
  7. package/components/AccessGrants.js +6 -6
  8. package/components/ActivityTimeline.js +4 -4
  9. package/components/AgentWork.js +111 -111
  10. package/components/AreaLink.js +32 -0
  11. package/components/AreaTiles.js +10 -13
  12. package/components/AreaWork.js +25 -1
  13. package/components/BugRotation.js +3 -3
  14. package/components/CodeHostSettings.js +30 -30
  15. package/components/CommandPalette.js +53 -53
  16. package/components/CustomFields.js +116 -116
  17. package/components/DateChip.js +11 -11
  18. package/components/DocButton.js +6 -6
  19. package/components/DocHistory.js +4 -4
  20. package/components/DocLinkPicker.js +8 -8
  21. package/components/DocProperties.js +15 -15
  22. package/components/DocTable.js +15 -15
  23. package/components/DocsTree.js +80 -80
  24. package/components/Editor.js +35 -35
  25. package/components/FavoritesNav.js +53 -53
  26. package/components/GitHub.js +18 -18
  27. package/components/Graph.js +15 -15
  28. package/components/HostActions.js +21 -21
  29. package/components/HostPanel.js +6 -6
  30. package/components/HoverCards.js +38 -38
  31. package/components/IssueBoard.js +4 -4
  32. package/components/IssueCode.js +14 -14
  33. package/components/IssueEvent.js +3 -3
  34. package/components/IssueFilters.js +71 -71
  35. package/components/IssueListBlock.js +32 -32
  36. package/components/IssueRow.js +21 -21
  37. package/components/IssueTemplates.js +118 -118
  38. package/components/IssueTypes.js +40 -40
  39. package/components/NewIssueDialog.js +76 -76
  40. package/components/NewProjectDialog.js +145 -145
  41. package/components/PersonActivity.js +4 -4
  42. package/components/SharedViewer.js +5 -5
  43. package/components/SlashMenu.js +29 -29
  44. package/components/TeamRepositories.js +51 -51
  45. package/components/TeamWorkflow.js +6 -6
  46. package/components/UnlinkedMentions.js +20 -20
  47. package/components/Updates.js +3 -3
  48. package/components/Widgets.js +20 -20
  49. package/components/columns.js +17 -17
  50. package/components/editorPlugins.js +80 -80
  51. package/components/mathDiagrams.js +17 -17
  52. package/lib/boardMove.js +5 -5
  53. package/lib/issueList.js +58 -58
  54. package/lib/issueMenu.js +27 -27
  55. package/lib/knowledge.js +106 -106
  56. package/lib/views.js +9 -9
  57. package/package.json +2 -2
  58. package/pages/area.js +291 -0
  59. package/pages/areas.js +258 -287
  60. package/pages/decisions.js +21 -21
  61. package/pages/issues.js +52 -52
  62. package/pages/projects.js +125 -125
  63. package/pages/triage.js +12 -12
  64. package/routeTree.gen.js +186 -180
  65. package/routes/_workspace/agents/_slug2.js +11 -11
  66. package/routes/_workspace/agents/index2.js +10 -10
  67. package/routes/_workspace/areas/_area.js +7 -8
  68. package/routes/_workspace/areas/_area2.js +3 -290
  69. package/routes/_workspace/areas/_area3.js +7 -8
  70. package/routes/_workspace/docs/_doc2.js +230 -230
  71. package/routes/_workspace/docs/space2._space.js +27 -27
  72. package/routes/_workspace/issues/_identifier2.js +222 -224
  73. package/routes/_workspace/knowledge/_term2.js +43 -43
  74. package/routes/_workspace/knowledge/index.js +6 -6
  75. package/routes/_workspace/knowledge/index2.js +15 -15
  76. package/routes/_workspace/measures3.js +70 -72
  77. package/routes/_workspace/notifications2.js +150 -150
  78. package/routes/_workspace/people/_username2.js +10 -10
  79. package/routes/_workspace/projects/_projectId3.js +276 -276
  80. package/routes/_workspace/settings/audit-log3.js +136 -138
  81. package/routes/_workspace/settings/fields2.js +11 -11
  82. package/routes/_workspace/settings/github2.js +6 -6
  83. package/routes/_workspace/settings/groups2.js +26 -26
  84. package/routes/_workspace/settings/import2.js +398 -147
  85. package/routes/_workspace/settings/import3.js +7 -3
  86. package/routes/_workspace/settings/index2.js +6 -6
  87. package/routes/_workspace/settings/labels2.js +21 -21
  88. package/routes/_workspace/settings/members2.js +27 -27
  89. package/routes/_workspace/settings/notifications2.js +8 -8
  90. package/routes/_workspace/settings/parallelworks2.js +32 -32
  91. package/routes/_workspace/settings/roles2.js +24 -24
  92. package/routes/_workspace/settings/runners2.js +15 -15
  93. package/routes/_workspace/settings/sessions2.js +17 -17
  94. package/routes/_workspace/settings/slack2.js +7 -7
  95. package/routes/_workspace/settings/sso2.js +31 -31
  96. package/routes/_workspace/settings/teams2.js +25 -25
  97. package/routes/_workspace/settings/tokens2.js +12 -12
  98. package/routes/_workspace/settings/webhooks2.js +13 -13
  99. package/routes/_workspace/teams/_key/areas/_area.js +8 -0
  100. package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
  101. package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
  102. package/routes/_workspace/teams/_key/areas/index.js +6 -0
  103. package/routes/_workspace/teams/_key/areas/index2.js +4 -0
  104. package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
  105. package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
  106. package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
  107. package/routes/_workspace/teams/_key/settings2.js +29 -29
  108. package/routes/_workspace2.js +368 -368
  109. package/routes/_workspace/teams/_key/areas.js +0 -6
  110. package/routes/_workspace/teams/_key/areas2.js +0 -4
@@ -1,11 +1,11 @@
1
1
  import { useNavigate as e } from "../../../lib/router.js";
2
2
  import { teamsQuery as t } from "../../../api/queries.js";
3
- import { FolderIcon as n } from "../../../components/icons.js";
4
- import { teamPath as r } from "../../../lib/teamPaths.js";
5
- import { Route as i } from "./teams.js";
6
- import { copyItem as a, useLinkItems as o } from "../../../lib/menus.js";
7
- import { useCan as s } from "../../../lib/roles.js";
8
- import { AdminOnly as c, SettingsPage as l } from "../../../components/settings.js";
3
+ import { copyItem as n, useLinkItems as r } from "../../../lib/menus.js";
4
+ import { FolderIcon as i } from "../../../components/icons.js";
5
+ import { useCan as a } from "../../../lib/roles.js";
6
+ import { teamPath as o } from "../../../lib/teamPaths.js";
7
+ import { AdminOnly as s, SettingsPage as c } from "../../../components/settings.js";
8
+ import { Route as l } from "./teams.js";
9
9
  import { TeamForm as u } from "../../../components/TeamForm.js";
10
10
  import { Modal as d, ModalTitle as f, PageHeaderAddButton as p, StatusBadge as m, Table as h, menuDivider as g, useOpenMenu as _ } from "@parallelworks/ui";
11
11
  import { useMemo as v, useState as y } from "react";
@@ -15,14 +15,14 @@ import { useSuspenseQuery as C } from "@tanstack/react-query";
15
15
  import { ListCellText as w, ListColumns as T, ListPage as E, ListRow as D, ListToolbar as O, NameCell as k, listTableProps as A, useListNavigate as j, useListSearch as M, useListView as N } from "@parallelworks/ui/list";
16
16
  // src/routes/$workspace/settings/teams.tsx?tsr-split=component
17
17
  function P() {
18
- let { workspace: e } = i.useParams();
18
+ let { workspace: e } = l.useParams();
19
19
  return /* @__PURE__ */ x(F, {
20
20
  workspace: e,
21
- isAdmin: s(e, "manage_teams")
21
+ isAdmin: a(e, "manage_teams")
22
22
  });
23
23
  }
24
- function F({ workspace: i, isAdmin: s }) {
25
- let { data: P } = C(t(i)), F = e(), I = b("settings"), L = b("common"), R = o(), z = M(), B = j(), V = _(), [H, U] = y(!1), W = v(() => [{
24
+ function F({ workspace: a, isAdmin: l }) {
25
+ let { data: P } = C(t(a)), F = e(), I = b("settings"), L = b("common"), R = r(), z = M(), B = j(), V = _(), [H, U] = y(!1), W = v(() => [{
26
26
  key: "name",
27
27
  label: L("name"),
28
28
  headerClassName: "py-2",
@@ -41,18 +41,18 @@ function F({ workspace: i, isAdmin: s }) {
41
41
  label: I("key"),
42
42
  compare: (e, t) => e.key.localeCompare(t.key)
43
43
  }], [I, L]), K = N({
44
- storageKey: `tandem-teams-${i}`,
44
+ storageKey: `tandem-teams-${a}`,
45
45
  defaultShowColumnHeaders: !1,
46
46
  columns: W,
47
47
  orderBys: G,
48
48
  defaultOrderBy: "name",
49
49
  facets: []
50
50
  }), q = z.filter.trim().toLowerCase(), J = P.filter((e) => !q || [e.name, e.key].some((e) => e.toLowerCase().includes(q)));
51
- return /* @__PURE__ */ S(l, {
51
+ return /* @__PURE__ */ S(c, {
52
52
  wide: !0,
53
53
  title: I("teams"),
54
54
  description: I("teamsDescription"),
55
- actions: s && /* @__PURE__ */ x(p, {
55
+ actions: l && /* @__PURE__ */ x(p, {
56
56
  label: I("newTeam"),
57
57
  word: "create",
58
58
  onClick: () => U(!0)
@@ -66,8 +66,8 @@ function F({ workspace: i, isAdmin: s }) {
66
66
  children: [
67
67
  /* @__PURE__ */ x("div", {
68
68
  className: "px-4",
69
- children: /* @__PURE__ */ x(c, {
70
- workspace: i,
69
+ children: /* @__PURE__ */ x(s, {
70
+ workspace: a,
71
71
  permission: "manage_teams"
72
72
  })
73
73
  }),
@@ -83,14 +83,14 @@ function F({ workspace: i, isAdmin: s }) {
83
83
  nounPlural: I("teamNounPlural")
84
84
  },
85
85
  empty: {
86
- icon: /* @__PURE__ */ x(n, {}),
86
+ icon: /* @__PURE__ */ x(i, {}),
87
87
  title: I("noTeams")
88
88
  },
89
89
  noMatches: I("teamNoMatches"),
90
90
  children: /* @__PURE__ */ S(h, {
91
91
  ...A,
92
92
  children: [/* @__PURE__ */ x(T, { view: K }), K.applyOrder(J).map((e) => /* @__PURE__ */ S(D, {
93
- href: r(i, e.key, "settings"),
93
+ href: o(a, e.key, "settings"),
94
94
  goTo: B,
95
95
  openMenu: V,
96
96
  items: [
@@ -99,7 +99,7 @@ function F({ workspace: i, isAdmin: s }) {
99
99
  onClick: () => F({
100
100
  to: "/$workspace/teams/$key/issues",
101
101
  params: {
102
- workspace: i,
102
+ workspace: a,
103
103
  key: e.key
104
104
  }
105
105
  })
@@ -109,20 +109,20 @@ function F({ workspace: i, isAdmin: s }) {
109
109
  onClick: () => F({
110
110
  to: "/$workspace/teams/$key/settings",
111
111
  params: {
112
- workspace: i,
112
+ workspace: a,
113
113
  key: e.key
114
114
  }
115
115
  })
116
116
  },
117
117
  g,
118
- ...R(r(i, e.key, "settings")),
119
- a(L("copyKey"), e.key)
118
+ ...R(o(a, e.key, "settings")),
119
+ n(L("copyKey"), e.key)
120
120
  ],
121
121
  children: [/* @__PURE__ */ x(k, {
122
- icon: /* @__PURE__ */ x(n, {}),
122
+ icon: /* @__PURE__ */ x(i, {}),
123
123
  iconTile: !0,
124
124
  name: e.name,
125
- href: r(i, e.key, "settings"),
125
+ href: o(a, e.key, "settings"),
126
126
  ...e.archivedAt && { badge: /* @__PURE__ */ x(m, {
127
127
  emphasis: "outline",
128
128
  children: I("teamArchived")
@@ -146,12 +146,12 @@ function F({ workspace: i, isAdmin: s }) {
146
146
  className: "mb-4 text-sm font-semibold",
147
147
  children: I("newTeam")
148
148
  }), /* @__PURE__ */ x(u, {
149
- workspace: i,
149
+ workspace: a,
150
150
  autoFocus: !0,
151
151
  onCreated: (e) => F({
152
152
  to: "/$workspace/teams/$key/settings",
153
153
  params: {
154
- workspace: i,
154
+ workspace: a,
155
155
  key: e.key
156
156
  }
157
157
  })
@@ -1,11 +1,11 @@
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 { useConfirm as r } from "../../../lib/confirm.js";
3
+ import { copyItem as r } from "../../../lib/menus.js";
4
4
  import { KeyIcon as i } from "../../../components/icons.js";
5
- import { Route as a } from "./tokens.js";
6
- import { copyItem as o } from "../../../lib/menus.js";
7
- import { useTime as s } from "../../../lib/time.js";
8
- import { SettingsPage as c, useFormError as l } from "../../../components/settings.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
9
  import { OneTimeSecret as u } from "../../../components/OneTimeSecret.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";
@@ -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: l } = a.useParams(), { data: d } = O(n), f = C("account"), p = C("common"), m = s(), h = D(), _ = L(), z = I(), V = b(), [H, U] = S(!1), [W, G] = S(null), K = E({
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({
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 } = r(), Y = (e) => q({
21
+ }), { confirm: q, dialog: J } = o(), 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(c, {
60
+ return /* @__PURE__ */ T(s, {
61
61
  wide: !0,
62
62
  title: f("tokens"),
63
63
  description: f.rich("tokensDescription", { code: (e) => /* @__PURE__ */ w("code", {
@@ -107,7 +107,7 @@ function z() {
107
107
  goTo: z,
108
108
  openMenu: V,
109
109
  items: [
110
- o(p("copyName"), e.name),
110
+ r(p("copyName"), e.name),
111
111
  y,
112
112
  {
113
113
  label: f("revoke"),
@@ -142,7 +142,7 @@ function z() {
142
142
  }),
143
143
  J,
144
144
  H && /* @__PURE__ */ w(B, {
145
- workspace: l,
145
+ workspace: c,
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"), c = D(), u = l(), [g, v] = S(""), [y, b] = S("read"), [x, O] = S("one"), [k, A] = S("90"), j = E({
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({
156
156
  mutationFn: async () => t(await e.POST("/api/v1/me/tokens", { body: {
157
157
  name: g,
158
158
  readOnly: y === "read",
@@ -164,7 +164,7 @@ function B({ workspace: r, onCreated: i, onClose: a }) {
164
164
  name: e.name,
165
165
  secret: e.secret
166
166
  }),
167
- onSettled: () => c.invalidateQueries({ queryKey: n.queryKey }),
167
+ onSettled: () => l.invalidateQueries({ queryKey: n.queryKey }),
168
168
  onError: u.set
169
169
  });
170
170
  return /* @__PURE__ */ w(m, {
@@ -1,10 +1,10 @@
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 { useConfirm as i } from "../../../lib/confirm.js";
4
- import { Route as a } from "./webhooks.js";
5
- import { useTime as o } from "../../../lib/time.js";
6
- import { useCan as s } from "../../../lib/roles.js";
7
- import { AdminOnly as c, SettingsPage as l, cardFooter as u, cardList as d, useFormError as f } from "../../../components/settings.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
8
  import { OneTimeSecret as p } from "../../../components/OneTimeSecret.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";
@@ -20,15 +20,15 @@ var A = {
20
20
  plans: ["project."]
21
21
  };
22
22
  function j() {
23
- let { workspace: e } = a.useParams(), t = s(e, "manage_workspace"), n = S("webhooks"), r = S("settingsNav");
24
- return /* @__PURE__ */ T(l, {
23
+ let { workspace: e } = f.useParams(), t = a(e, "manage_workspace"), n = S("webhooks"), r = S("settingsNav");
24
+ return /* @__PURE__ */ T(c, {
25
25
  title: r("webhooks"),
26
26
  description: n("description"),
27
- children: [/* @__PURE__ */ w(c, { workspace: e }), t && /* @__PURE__ */ w(M, { workspace: e })]
27
+ children: [/* @__PURE__ */ w(s, { 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"), l = S("common"), j = o(), M = O(), N = f(), [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: 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: {
32
32
  workspace: a,
33
33
  webhookId: e
34
34
  } }), Y = E({
@@ -68,7 +68,7 @@ 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 } = i(), $ = 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) => {
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
72
  if (!e.lastDeliveredAt) return c("neverDelivered");
73
73
  let t = j.relative(e.lastDeliveredAt);
74
74
  return e.lastError ? c("lastFailed", {
@@ -87,7 +87,7 @@ function M({ workspace: a }) {
87
87
  onDismiss: () => W(null)
88
88
  }),
89
89
  /* @__PURE__ */ T(v, { children: [/* @__PURE__ */ T("ul", {
90
- className: d,
90
+ className: u,
91
91
  children: [s.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: [
@@ -141,7 +141,7 @@ function M({ workspace: a }) {
141
141
  onConfirm: () => Q.mutateAsync(e.id)
142
142
  }),
143
143
  className: "text-xs text-muted-foreground hover:text-danger",
144
- children: l("delete")
144
+ children: f("delete")
145
145
  }),
146
146
  /* @__PURE__ */ w(g, {
147
147
  size: "md",
@@ -154,7 +154,7 @@ function M({ workspace: a }) {
154
154
  children: c("none")
155
155
  })]
156
156
  }), /* @__PURE__ */ T("form", {
157
- className: `${u} flex-wrap`,
157
+ className: `${l} flex-wrap`,
158
158
  onSubmit: (e) => {
159
159
  e.preventDefault(), Y.mutate();
160
160
  },
@@ -0,0 +1,8 @@
1
+ import { validateAreaSearch as e } from "../../../../../pages/area.js";
2
+ import { createFileRoute as t, lazyFn as n, lazyRouteComponent as r } from "@tanstack/react-router";
3
+ var i = t("/$workspace/teams/$key/areas/$area")({
4
+ validateSearch: e,
5
+ loader: n(() => import("./_area3.js"), "loader"),
6
+ component: r(() => import("./_area2.js"), "component")
7
+ });
8
+ export { i as Route };
@@ -0,0 +1,4 @@
1
+ import { AreaPage as e } from "../../../../../pages/area.js";
2
+ // src/routes/$workspace/teams/$key/areas/$area.tsx?tsr-split=component
3
+ var t = e;
4
+ export { t as component };
@@ -0,0 +1,9 @@
1
+ import { areaThreadQuery as e, areasQuery as t, countsQuery as n, teamsQuery as r } from "../../../../../api/queries.js";
2
+ // src/routes/$workspace/teams/$key/areas/$area.tsx?tsr-split=loader
3
+ var i = ({ context: { queryClient: i }, params: { workspace: a, area: o } }) => Promise.all([
4
+ i.ensureQueryData(e(a, o)),
5
+ i.ensureQueryData(n(a)),
6
+ i.ensureQueryData(t(a)),
7
+ i.ensureQueryData(r(a))
8
+ ]);
9
+ export { i as loader };
@@ -0,0 +1,6 @@
1
+ import { createFileRoute as e, lazyFn as t, lazyRouteComponent as n } from "@tanstack/react-router";
2
+ var r = e("/$workspace/teams/$key/areas/")({
3
+ loader: t(() => import("./index3.js"), "loader"),
4
+ component: n(() => import("./index2.js"), "component")
5
+ });
6
+ export { r as Route };
@@ -0,0 +1,4 @@
1
+ import { AreasPage as e } from "../../../../../pages/areas.js";
2
+ // src/routes/$workspace/teams/$key/areas/index.tsx?tsr-split=component
3
+ var t = e;
4
+ export { t as component };
@@ -1,4 +1,4 @@
1
- import { areasQuery as e, countsQuery as t } from "../../../../api/queries.js";
2
- // src/routes/$workspace/teams/$key/areas.tsx?tsr-split=loader
1
+ import { areasQuery as e, countsQuery as t } from "../../../../../api/queries.js";
2
+ // src/routes/$workspace/teams/$key/areas/index.tsx?tsr-split=loader
3
3
  var n = ({ context: { queryClient: n }, params: { workspace: r } }) => Promise.all([n.ensureQueryData(e(r)), n.ensureQueryData(t(r))]);
4
4
  export { n as loader };
@@ -2,18 +2,18 @@ import { api as e, unwrap as t } from "../../../../../api/client.js";
2
2
  import { usePageTitle as n } from "../../../../../lib/pageTitle.js";
3
3
  import { useNavigate as r } from "../../../../../lib/router.js";
4
4
  import { cyclesQuery as i, issuesQuery as a, teamsQuery as ee } from "../../../../../api/queries.js";
5
- import { CloseIcon as o, CycleIcon as te } from "../../../../../components/icons.js";
6
- import { teamPath as s } from "../../../../../lib/teamPaths.js";
7
- import { Route as ne } from "./_number.js";
8
- import { invalidateIssueViews as re } from "../../../../../api/mutations.js";
9
- import { addDays as c, today as l, useTime as u } from "../../../../../lib/time.js";
10
- import { ProgressBar as d } from "../../../../../components/Planning.js";
11
- import { useCan as f } from "../../../../../lib/roles.js";
12
- import { FavoriteStar as p } from "../../../../../components/FavoriteStar.js";
13
- import { BurnUp as m } from "../../../../../components/Reports.js";
14
- import { IssueBreakdown as h, breakdownKeys as g } from "../../../../../components/IssueBreakdown.js";
15
- import { StatusGroups as _ } from "../../../../../components/IssueGroup.js";
16
- import { Button as ie, Card as ae, EmptyState as oe, ErrorText as se, IconButton as v, PageHeader as y } from "@parallelworks/ui";
5
+ import { invalidateIssueViews as o } from "../../../../../api/mutations.js";
6
+ import { CloseIcon as te, CycleIcon as ne } from "../../../../../components/icons.js";
7
+ import { addDays as re, today as ie, useTime as s } from "../../../../../lib/time.js";
8
+ import { ProgressBar as c } from "../../../../../components/Planning.js";
9
+ import { useCan as l } from "../../../../../lib/roles.js";
10
+ import { teamPath as u } from "../../../../../lib/teamPaths.js";
11
+ import { Route as d } from "./_number.js";
12
+ import { FavoriteStar as f } from "../../../../../components/FavoriteStar.js";
13
+ import { BurnUp as p } from "../../../../../components/Reports.js";
14
+ import { IssueBreakdown as m, breakdownKeys as h } from "../../../../../components/IssueBreakdown.js";
15
+ import { StatusGroups as g } from "../../../../../components/IssueGroup.js";
16
+ import { Button as _, Card as ae, EmptyState as oe, ErrorText as se, IconButton as v, PageHeader as y } from "@parallelworks/ui";
17
17
  import { useState as b } from "react";
18
18
  import { useErrorMessage as x } from "@parallelworks/problem/react";
19
19
  import { useTranslations as S } from "use-intl";
@@ -27,12 +27,12 @@ var k = [
27
27
  "projects"
28
28
  ];
29
29
  function A() {
30
- let { workspace: A, key: j, number: M } = ne.useParams(), N = S("planning"), P = x(), F = u(), I = r(), { data: L } = O(ee(A)), { data: R } = O(i(A, j)), z = R.find((e) => String(e.number) === M), B = L.find((e) => e.key === j);
30
+ let { workspace: A, key: j, number: M } = d.useParams(), N = S("planning"), P = x(), F = s(), I = r(), { data: L } = O(ee(A)), { data: R } = O(i(A, j)), z = R.find((e) => String(e.number) === M), B = L.find((e) => e.key === j);
31
31
  n(z && (z.name ? N("cycleNamed", {
32
32
  number: z.number,
33
33
  name: z.name
34
34
  }) : N("cycle", { number: z.number })), B?.name);
35
- let V = f(A, "manage_cycles", { team: j }), H = D(), [U, W] = b(null), [G, K] = b("assignees"), [q, J] = b(null), { data: ce } = E({
35
+ let V = l(A, "manage_cycles", { team: j }), H = D(), [U, W] = b(null), [G, K] = b("assignees"), [q, J] = b(null), { data: ce } = E({
36
36
  ...a(A, { cycle: z?.id ?? "" }),
37
37
  enabled: !!z
38
38
  }), Y = T({
@@ -42,13 +42,13 @@ function A() {
42
42
  number: Number(M)
43
43
  } } })),
44
44
  onSuccess: (e) => W(e.moved),
45
- onSettled: () => re(H, A)
45
+ onSettled: () => o(H, A)
46
46
  });
47
47
  if (!z) return /* @__PURE__ */ C("p", {
48
48
  className: "px-8 py-10 text-sm text-muted-foreground",
49
49
  children: N("noSuchCycle")
50
50
  });
51
- let X = ce?.issues ?? [], Z = q ? X.filter((e) => g(e, q.tab).includes(q.key)) : X, Q = X.filter((e) => e.status.category !== "completed" && e.status.category !== "canceled").length, le = z.state === "past" || z.state === "current" && c(l(), 2) >= z.endsOn, $ = z.name ? N("cycleNamed", {
51
+ let X = ce?.issues ?? [], Z = q ? X.filter((e) => h(e, q.tab).includes(q.key)) : X, Q = X.filter((e) => e.status.category !== "completed" && e.status.category !== "canceled").length, le = z.state === "past" || z.state === "current" && re(ie(), 2) >= z.endsOn, $ = z.name ? N("cycleNamed", {
52
52
  number: z.number,
53
53
  name: z.name
54
54
  }) : N("cycle", { number: z.number });
@@ -59,15 +59,15 @@ function A() {
59
59
  breadcrumbs: [
60
60
  {
61
61
  label: B?.name ?? j,
62
- href: s(A, j, "issues")
62
+ href: u(A, j, "issues")
63
63
  },
64
64
  {
65
65
  label: N("cycles"),
66
- href: s(A, j, "cycles")
66
+ href: u(A, j, "cycles")
67
67
  },
68
68
  { label: $ }
69
69
  ],
70
- titleActions: /* @__PURE__ */ C(p, {
70
+ titleActions: /* @__PURE__ */ C(f, {
71
71
  workspace: A,
72
72
  kind: "cycle",
73
73
  target: z.id
@@ -80,7 +80,7 @@ function A() {
80
80
  /* @__PURE__ */ w("div", {
81
81
  className: "flex flex-wrap items-center gap-3",
82
82
  children: [
83
- /* @__PURE__ */ C(te, { className: `size-5 shrink-0 ${z.state === "current" ? "text-status-started" : "text-muted-foreground"}` }),
83
+ /* @__PURE__ */ C(ne, { className: `size-5 shrink-0 ${z.state === "current" ? "text-status-started" : "text-muted-foreground"}` }),
84
84
  /* @__PURE__ */ C("h1", {
85
85
  className: "text-xl font-semibold tracking-tight",
86
86
  children: $
@@ -101,7 +101,7 @@ function A() {
101
101
  className: "text-sm text-muted-foreground",
102
102
  children: N("carriedOut", { count: z.carriedOut })
103
103
  }),
104
- V && Q > 0 && le && /* @__PURE__ */ C(ie, {
104
+ V && Q > 0 && le && /* @__PURE__ */ C(_, {
105
105
  type: "button",
106
106
  onClick: () => Y.mutate(),
107
107
  loading: Y.isPending,
@@ -139,11 +139,11 @@ function A() {
139
139
  /* @__PURE__ */ C("section", {
140
140
  className: "mt-6",
141
141
  "aria-label": N("progressTitle"),
142
- children: /* @__PURE__ */ C(d, { progress: z.progress })
142
+ children: /* @__PURE__ */ C(c, { progress: z.progress })
143
143
  }),
144
144
  /* @__PURE__ */ C("section", {
145
145
  className: "mt-6 rounded-xl border border-border bg-card p-4",
146
- children: /* @__PURE__ */ C(m, {
146
+ children: /* @__PURE__ */ C(p, {
147
147
  workspace: A,
148
148
  teamKey: j,
149
149
  cycle: z
@@ -151,7 +151,7 @@ function A() {
151
151
  }),
152
152
  X.length > 0 && /* @__PURE__ */ C("div", {
153
153
  className: "mt-8 xl:hidden",
154
- children: /* @__PURE__ */ C(h, {
154
+ children: /* @__PURE__ */ C(m, {
155
155
  workspace: A,
156
156
  issues: X,
157
157
  tabs: k,
@@ -170,14 +170,14 @@ function A() {
170
170
  size: "sm",
171
171
  variant: "ghost",
172
172
  label: N("issueBreakdown.showAll"),
173
- icon: /* @__PURE__ */ C(o, {}),
173
+ icon: /* @__PURE__ */ C(te, {}),
174
174
  onClick: () => J(null)
175
175
  })]
176
176
  }), Z.length === 0 ? /* @__PURE__ */ C(oe, { title: N("noIssuesInCycle") }) : /* @__PURE__ */ C(ae, {
177
177
  size: "fill",
178
178
  padding: "none",
179
179
  className: "overflow-hidden",
180
- children: /* @__PURE__ */ C(_, {
180
+ children: /* @__PURE__ */ C(g, {
181
181
  workspace: A,
182
182
  issues: Z
183
183
  })
@@ -187,7 +187,7 @@ function A() {
187
187
  }), X.length > 0 && /* @__PURE__ */ C("aside", {
188
188
  "aria-label": N("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__ */ C(h, {
190
+ children: /* @__PURE__ */ C(m, {
191
191
  workspace: A,
192
192
  issues: X,
193
193
  tabs: k,
@@ -3,10 +3,10 @@ import { usePageTitle as n } from "../../../../../lib/pageTitle.js";
3
3
  import { Link as r } from "../../../../../lib/router.js";
4
4
  import { cyclesQuery as i, teamsQuery as a } from "../../../../../api/queries.js";
5
5
  import { AddIcon as o, CycleIcon as s } from "../../../../../components/icons.js";
6
- import { teamPath as c } from "../../../../../lib/teamPaths.js";
7
- import { Route as l } from "./index.js";
8
- import { useTime as u } from "../../../../../lib/time.js";
9
- import { useCan as d } from "../../../../../lib/roles.js";
6
+ import { useTime as c } from "../../../../../lib/time.js";
7
+ import { useCan as l } from "../../../../../lib/roles.js";
8
+ import { teamPath as u } from "../../../../../lib/teamPaths.js";
9
+ import { Route as d } from "./index.js";
10
10
  import { BurnUp as f } from "../../../../../components/Reports.js";
11
11
  import { Button as p, EmptyState as m, ErrorText as h, PageHeader as g, StatusBadge as _ } from "@parallelworks/ui";
12
12
  import { useState as v } from "react";
@@ -23,17 +23,17 @@ function A(e) {
23
23
  return n > 0 ? n : null;
24
24
  }
25
25
  function j() {
26
- let { workspace: u, key: f } = l.useParams(), _ = x("planning"), b = y(), { data: k } = D(a(u)), { data: j } = D(i(u, f)), N = k.find((e) => e.key === f);
26
+ let { workspace: c, key: f } = d.useParams(), _ = x("planning"), b = y(), { data: k } = D(a(c)), { data: j } = D(i(c, f)), N = k.find((e) => e.key === f);
27
27
  n(_("cycles"), N?.name);
28
- let P = d(u, "manage_cycles", { team: f }), F = E(), [I, L] = v(!1), R = T({
28
+ let P = l(c, "manage_cycles", { team: f }), F = E(), [I, L] = v(!1), R = T({
29
29
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/teams/{key}/cycles", {
30
30
  params: { path: {
31
- workspace: u,
31
+ workspace: c,
32
32
  key: f
33
33
  } },
34
34
  body: {}
35
35
  })),
36
- onSettled: () => F.invalidateQueries({ queryKey: i(u, f).queryKey })
36
+ onSettled: () => F.invalidateQueries({ queryKey: i(c, f).queryKey })
37
37
  }), z = [...j].sort((e, t) => e.number - t.number), B = z.filter((e) => e.state === "past"), V = I ? 0 : Math.max(0, B.length - O), H = z.filter((e) => e.state !== "past" || B.indexOf(e) >= V), U = A(j);
38
38
  return /* @__PURE__ */ w("div", {
39
39
  className: "flex h-full min-h-0 flex-col",
@@ -41,7 +41,7 @@ function j() {
41
41
  heading: !1,
42
42
  breadcrumbs: [{
43
43
  label: N?.name ?? f,
44
- href: c(u, f, "issues")
44
+ href: u(c, f, "issues")
45
45
  }, { label: _("cycles") }]
46
46
  }), /* @__PURE__ */ C("div", {
47
47
  className: "min-h-0 flex-1 overflow-y-auto",
@@ -78,7 +78,7 @@ function j() {
78
78
  action: /* @__PURE__ */ C(r, {
79
79
  to: "/$workspace/teams/$key/settings",
80
80
  params: {
81
- workspace: u,
81
+ workspace: c,
82
82
  key: f
83
83
  },
84
84
  className: "text-sm text-primary hover:underline",
@@ -97,7 +97,7 @@ function j() {
97
97
  }), /* @__PURE__ */ C("ol", {
98
98
  className: "relative mt-6",
99
99
  children: H.map((e, t) => /* @__PURE__ */ C(M, {
100
- workspace: u,
100
+ workspace: c,
101
101
  teamKey: f,
102
102
  cycle: e,
103
103
  capacity: U,
@@ -111,18 +111,18 @@ function j() {
111
111
  });
112
112
  }
113
113
  function M({ workspace: e, teamKey: t, cycle: n, capacity: i, first: a, last: o }) {
114
- let c = x("planning"), l = u(), d = b(), p = n.state === "current", m = (e) => d.number(e, {
114
+ let l = x("planning"), u = c(), d = b(), p = n.state === "current", m = (e) => d.number(e, {
115
115
  style: "percent",
116
116
  maximumFractionDigits: 0
117
117
  }), h = n.state === "past" ? k(n) : n.progress.total, g = i !== null && n.state !== "past" && h > i, v = n.state === "past" ? [
118
- ...h > 0 ? [c("success", { percent: m(n.progress.completed / h) })] : [],
119
- c("completedCount", { count: n.progress.completed }),
120
- c("scopeCount", { count: h }),
121
- ...n.carriedOut > 0 ? [c("carriedOut", { count: n.carriedOut })] : []
118
+ ...h > 0 ? [l("success", { percent: m(n.progress.completed / h) })] : [],
119
+ l("completedCount", { count: n.progress.completed }),
120
+ l("scopeCount", { count: h }),
121
+ ...n.carriedOut > 0 ? [l("carriedOut", { count: n.carriedOut })] : []
122
122
  ] : [
123
- ...i ? [c("ofCapacity", { percent: m(h / i) })] : [],
124
- c("scopeCount", { count: h }),
125
- ...n.carriedIn > 0 ? [c("carriedIn", { count: n.carriedIn })] : []
123
+ ...i ? [l("ofCapacity", { percent: m(h / i) })] : [],
124
+ l("scopeCount", { count: h }),
125
+ ...n.carriedIn > 0 ? [l("carriedIn", { count: n.carriedIn })] : []
126
126
  ];
127
127
  return /* @__PURE__ */ w("li", {
128
128
  className: "grid grid-cols-[3.5rem_1fr] gap-x-3 md:grid-cols-[4.5rem_1fr] md:gap-x-4",
@@ -131,7 +131,7 @@ function M({ workspace: e, teamKey: t, cycle: n, capacity: i, first: a, last: o
131
131
  children: [
132
132
  /* @__PURE__ */ C("span", {
133
133
  className: "absolute top-4 right-5 text-right text-xs leading-tight text-muted-foreground tabular-nums",
134
- children: l.day(n.startsOn)
134
+ children: u.day(n.startsOn)
135
135
  }),
136
136
  /* @__PURE__ */ C("span", {
137
137
  "aria-hidden": "true",
@@ -159,20 +159,20 @@ function M({ workspace: e, teamKey: t, cycle: n, capacity: i, first: a, last: o
159
159
  className: "min-w-0",
160
160
  children: [/* @__PURE__ */ C("span", {
161
161
  className: "block truncate text-sm font-medium",
162
- children: n.name ? c("cycleNamed", {
162
+ children: n.name ? l("cycleNamed", {
163
163
  number: n.number,
164
164
  name: n.name
165
- }) : c("cycle", { number: n.number })
165
+ }) : l("cycle", { number: n.number })
166
166
  }), /* @__PURE__ */ C("span", {
167
167
  className: "block text-xs text-muted-foreground",
168
- children: l.dayRange(n.startsOn, n.endsOn)
168
+ children: u.dayRange(n.startsOn, n.endsOn)
169
169
  })]
170
170
  })]
171
171
  }),
172
172
  /* @__PURE__ */ C(_, {
173
173
  variant: p ? "info" : "muted",
174
174
  size: "sm",
175
- children: c(`states.${n.state}`)
175
+ children: l(`states.${n.state}`)
176
176
  }),
177
177
  /* @__PURE__ */ C("span", {
178
178
  className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground tabular-nums",