@parallelworks/tandem-web 0.155.2 → 0.157.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.
@@ -1,167 +1,177 @@
1
1
  import { usePathname as e } from "../lib/router.js";
2
2
  import { githubAccountQuery as t, gitlabQuery as n, meQuery as r } from "../api/queries.js";
3
- import { ChevronDownIcon as i, CloudIcon as a, CommentIcon as o, FolderIcon as s, HistoryIcon as c, InboxIcon as l, KeyIcon as u, LinkIcon as d, ListViewIcon as f, MigrationIcon as p, NotificationIcon as m, RepositoryIcon as h, SettingsIcon as g, ShieldIcon as _, TagIcon as v, UserIcon as y, UsersIcon as b, WebhookIcon as x, WorkerIcon as S } from "./icons.js";
4
- import { useParams as C } from "@tanstack/react-router";
5
- import { useTranslations as w } from "use-intl";
6
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
7
- import { useQuery as O, useSuspenseQuery as k } from "@tanstack/react-query";
8
- import { AppFrameNavGroup as A, AppFrameNavItem as j } from "@parallelworks/ui/app-frame";
3
+ import { AlertIcon as i, ChevronDownIcon as a, CloudIcon as o, CommentIcon as s, FolderIcon as c, HistoryIcon as l, InboxIcon as u, KeyIcon as d, LinkIcon as f, ListViewIcon as p, MigrationIcon as m, NotificationIcon as h, RepositoryIcon as g, SettingsIcon as _, ShieldIcon as v, TagIcon as y, UserIcon as b, UsersIcon as x, WebhookIcon as S, WorkerIcon as C } from "./icons.js";
4
+ import { useParams as w } from "@tanstack/react-router";
5
+ import { useTranslations as T } from "use-intl";
6
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
7
+ import { useQuery as k, useSuspenseQuery as A } from "@tanstack/react-query";
8
+ import { AppFrameNavGroup as j, AppFrameNavItem as M } from "@parallelworks/ui/app-frame";
9
9
  // src/components/SettingsNav.tsx
10
- function M() {
11
- let { data: e } = k(r), i = w("settingsNav"), T = e?.mode === "platform", { data: E } = O(t), { workspace: D } = C({ strict: !1 }), { data: A } = O({
12
- ...n(D ?? ""),
13
- enabled: !!D
10
+ function N() {
11
+ let { data: e } = A(r), a = T("settingsNav"), E = e?.mode === "platform", { data: D } = k(t), { workspace: O } = w({ strict: !1 }), { data: j } = k({
12
+ ...n(O ?? ""),
13
+ enabled: !!O
14
14
  });
15
15
  return [
16
16
  {
17
- label: i("account"),
17
+ label: a("account"),
18
18
  items: [
19
19
  {
20
20
  to: "/$workspace/settings/account",
21
- label: i("profile"),
22
- Icon: y
21
+ label: a("profile"),
22
+ Icon: b
23
23
  },
24
24
  {
25
25
  to: "/$workspace/settings/notifications",
26
- label: i("notifications"),
27
- Icon: m
26
+ label: a("notifications"),
27
+ Icon: h
28
28
  },
29
29
  {
30
30
  to: "/$workspace/settings/runners",
31
- label: i("runners"),
32
- Icon: S
31
+ label: a("runners"),
32
+ Icon: C
33
33
  },
34
- ...E?.enabled ? [{
34
+ ...D?.enabled ? [{
35
35
  to: "/$workspace/settings/connections",
36
- label: i("connections"),
37
- Icon: d
36
+ label: a("connections"),
37
+ Icon: f
38
38
  }] : [],
39
- ...T ? [] : [{
39
+ ...E ? [] : [{
40
40
  to: "/$workspace/settings/tokens",
41
- label: i("tokens"),
42
- Icon: u
41
+ label: a("tokens"),
42
+ Icon: d
43
43
  }, {
44
44
  to: "/$workspace/settings/sessions",
45
- label: i("sessions"),
46
- Icon: _
45
+ label: a("sessions"),
46
+ Icon: v
47
47
  }]
48
48
  ]
49
49
  },
50
50
  {
51
- label: i("workspace"),
51
+ label: a("workspace"),
52
52
  items: [
53
53
  {
54
54
  to: "/$workspace/settings",
55
- label: i("general"),
56
- Icon: g
55
+ label: a("general"),
56
+ Icon: _
57
57
  },
58
58
  {
59
59
  to: "/$workspace/settings/members",
60
- label: i(T ? "access" : "members"),
61
- Icon: b
60
+ label: a(E ? "access" : "members"),
61
+ Icon: x
62
62
  },
63
63
  {
64
64
  to: "/$workspace/settings/roles",
65
- label: i("roles"),
66
- Icon: _
65
+ label: a("roles"),
66
+ Icon: v
67
67
  },
68
68
  {
69
69
  to: "/$workspace/settings/groups",
70
- label: i("groups"),
71
- Icon: _
70
+ label: a("groups"),
71
+ Icon: v
72
72
  },
73
73
  {
74
74
  to: "/$workspace/settings/teams",
75
- label: i("teams"),
76
- Icon: s
75
+ label: a("teams"),
76
+ Icon: c
77
77
  },
78
78
  {
79
79
  to: "/$workspace/settings/labels",
80
- label: i("labels"),
81
- Icon: v
80
+ label: a("labels"),
81
+ Icon: y
82
82
  },
83
83
  {
84
84
  to: "/$workspace/settings/fields",
85
- label: i("fields"),
86
- Icon: f
85
+ label: a("fields"),
86
+ Icon: p
87
87
  },
88
88
  {
89
89
  to: "/$workspace/settings/audit-log",
90
- label: i("auditLog"),
91
- Icon: c
90
+ label: a("auditLog"),
91
+ Icon: l
92
92
  },
93
- ...T ? [] : [{
93
+ ...E ? [] : [{
94
94
  to: "/$workspace/settings/sso",
95
- label: i("sso"),
96
- Icon: u
95
+ label: a("sso"),
96
+ Icon: d
97
97
  }]
98
98
  ]
99
99
  },
100
100
  {
101
- label: i("integrations"),
101
+ label: a("integrations"),
102
102
  items: [
103
103
  {
104
104
  to: "/$workspace/settings/github",
105
- label: i("github"),
106
- Icon: h
105
+ label: a("github"),
106
+ Icon: g
107
107
  },
108
- ...A?.enabled ? [{
108
+ ...j?.enabled ? [{
109
109
  to: "/$workspace/settings/gitlab",
110
- label: i("gitlab"),
111
- Icon: h
110
+ label: a("gitlab"),
111
+ Icon: g
112
112
  }] : [],
113
113
  {
114
114
  to: "/$workspace/settings/slack",
115
- label: i("slack"),
116
- Icon: o
115
+ label: a("slack"),
116
+ Icon: s
117
117
  },
118
118
  {
119
119
  to: "/$workspace/settings/zendesk",
120
- label: i("zendesk"),
121
- Icon: l
120
+ label: a("zendesk"),
121
+ Icon: u
122
+ },
123
+ {
124
+ to: "/$workspace/settings/sentry",
125
+ label: a("sentry"),
126
+ Icon: i
127
+ },
128
+ {
129
+ to: "/$workspace/settings/intercom",
130
+ label: a("intercom"),
131
+ Icon: s
122
132
  },
123
133
  {
124
134
  to: "/$workspace/settings/webhooks",
125
- label: i("webhooks"),
126
- Icon: x
135
+ label: a("webhooks"),
136
+ Icon: S
127
137
  },
128
138
  {
129
139
  to: "/$workspace/settings/parallelworks",
130
- label: i("parallelWorks"),
131
- Icon: a
140
+ label: a("parallelWorks"),
141
+ Icon: o
132
142
  },
133
143
  {
134
144
  to: "/$workspace/settings/import",
135
- label: i("import"),
136
- Icon: p
145
+ label: a("import"),
146
+ Icon: m
137
147
  }
138
148
  ]
139
149
  }
140
150
  ];
141
151
  }
142
- function N({ workspace: t }) {
143
- let n = w("settingsNav"), r = M(), a = e();
144
- return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(j, {
152
+ function P({ workspace: t }) {
153
+ let n = T("settingsNav"), r = N(), i = e();
154
+ return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(M, {
145
155
  label: n("label"),
146
- icon: /* @__PURE__ */ E(i, { className: "size-4 rotate-90" }),
156
+ icon: /* @__PURE__ */ D(a, { className: "size-4 rotate-90" }),
147
157
  href: `/${t}/issues`,
148
158
  className: "font-semibold"
149
- }), /* @__PURE__ */ E("nav", {
159
+ }), /* @__PURE__ */ D("nav", {
150
160
  "aria-label": n("label"),
151
161
  className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
152
- children: r.map((e) => /* @__PURE__ */ E(A, {
162
+ children: r.map((e) => /* @__PURE__ */ D(j, {
153
163
  label: e.label,
154
164
  collapsible: !1,
155
165
  children: e.items.map(({ to: e, label: n, Icon: r }) => {
156
- let i = e.replace("$workspace", t);
157
- return /* @__PURE__ */ E(j, {
166
+ let a = e.replace("$workspace", t);
167
+ return /* @__PURE__ */ D(M, {
158
168
  label: n,
159
- icon: /* @__PURE__ */ E(r, { className: "size-4" }),
160
- href: i,
161
- selected: a === i
169
+ icon: /* @__PURE__ */ D(r, { className: "size-4" }),
170
+ href: a,
171
+ selected: i === a
162
172
  }, e);
163
173
  })
164
174
  }, e.label))
165
175
  })] });
166
176
  }
167
- export { N as SettingsNav, M as useSettingsPages };
177
+ export { P as SettingsNav, N as useSettingsPages };
@@ -203,10 +203,10 @@ function u(e) {
203
203
  }
204
204
  var d = u(i.AddIcon), f = u(i.ColumnsIcon), p = u(i.AttachmentIcon), m = u(i.BranchIcon), h = u(i.CalendarIcon), g = u(i.ClockIcon), _ = u(i.CheckIcon), v = u(i.ChevronDownIcon), y = u(i.ChevronRightIcon), b = u(i.CloseIcon), x = u(i.CommentIcon), S = u(i.DownloadIcon), C = u(i.UploadIcon), w = u(i.ExpandIcon), T = u(i.FileTextIcon), E = u(i.FolderIcon), D = u(i.ChartIcon), O = u(i.BucketIcon), k = u(i.CloudIcon), A = u(i.GridIcon), j = u(i.HistoryIcon), M = u(i.InboxIcon), N = u(i.KeyIcon), P = u(i.MinimizeIcon), F = u(i.LibraryIcon), I = u(i.ListViewIcon), L = u(i.MailIcon), R = u(i.MigrationIcon);
205
205
  i.NavigationIcon;
206
- var z = u(i.NotificationIcon), B = u(i.QueueIcon), V = u(i.ProjectIcon), H = u(i.PullRequestIcon), te = u(i.RepositoryIcon), U = u(i.SearchIcon), W = u(i.SettingsIcon), G = u(i.ShieldIcon), K = u(i.ShrinkIcon);
206
+ var z = u(i.NotificationIcon), B = u(i.QueueIcon), V = u(i.ProjectIcon), H = u(i.PullRequestIcon), te = u(i.RepositoryIcon), U = u(i.SearchIcon), W = u(i.SettingsIcon), G = u(i.ShieldIcon), K = u(i.WarningIcon), q = u(i.ShrinkIcon);
207
207
  i.SignOutIcon;
208
- var q = u(i.TagIcon), J = u(i.UserIcon), Y = u(i.UsersIcon), X = u(i.WebhookIcon), Z = u(i.WorkerIcon), Q = l("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), ne = l("M2.5 3.5h11v9h-11ZM10 3.5v9"), re = l("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), ie = l("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ae = l("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
209
- function oe({ className: e = "size-4", provider: n = "github" }) {
208
+ var J = u(i.TagIcon), Y = u(i.UserIcon), X = u(i.UsersIcon), Z = u(i.WebhookIcon), Q = u(i.WorkerIcon), ne = l("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), re = l("M2.5 3.5h11v9h-11ZM10 3.5v9"), ie = l("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), ae = l("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), oe = l("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
209
+ function se({ className: e = "size-4", provider: n = "github" }) {
210
210
  return n === "gitlab" ? /* @__PURE__ */ t(r, {
211
211
  className: `shrink-0 ${e}`,
212
212
  "aria-hidden": "true"
@@ -218,10 +218,10 @@ function oe({ className: e = "size-4", provider: n = "github" }) {
218
218
  children: /* @__PURE__ */ t("path", { d: "M8 0a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.72 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.66 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 0Z" })
219
219
  });
220
220
  }
221
- var se = u(i.AddUserIcon), ce = u(i.RemoveUserIcon), le = u(i.ArchiveIcon), ue = u(i.RestoreIcon), de = u(i.EditIcon), fe = u(i.RenameIcon), pe = u(i.LinkIcon), $ = u(i.UnlinkIcon);
221
+ var ce = u(i.AddUserIcon), le = u(i.RemoveUserIcon), ue = u(i.ArchiveIcon), de = u(i.RestoreIcon), fe = u(i.EditIcon), pe = u(i.RenameIcon), $ = u(i.LinkIcon), me = u(i.UnlinkIcon);
222
222
  i.CommitIcon;
223
- var me = u(i.ReleaseIcon), he = u(i.MegaphoneIcon), ge = u(i.SwapIcon), _e = u(i.TrashIcon);
223
+ var he = u(i.ReleaseIcon), ge = u(i.MegaphoneIcon), _e = u(i.SwapIcon), ve = u(i.TrashIcon);
224
224
  i.EyeIcon;
225
- var ve = u(i.SuccessIcon), ye = u(i.CancelIcon), be = u(i.AgentIcon);
225
+ var ye = u(i.SuccessIcon), be = u(i.CancelIcon), xe = u(i.AgentIcon);
226
226
  i.ArrowRightIcon;
227
- export { d as AddIcon, se as AddUserIcon, be as AgentIcon, le as ArchiveIcon, ae as AreaIcon, p as AttachmentIcon, f as BoardIcon, m as BranchIcon, O as BucketIcon, h as CalendarIcon, ye as CancelIcon, D as ChartIcon, _ as CheckIcon, v as ChevronDownIcon, y as ChevronRightIcon, g as ClockIcon, b as CloseIcon, k as CloudIcon, oe as CodeHostIcon, x as CommentIcon, Q as CycleIcon, S as DownloadIcon, de as EditIcon, ie as EstimateIcon, w as ExpandIcon, T as FileTextIcon, E as FolderIcon, A as GridIcon, j as HistoryIcon, M as InboxIcon, N as KeyIcon, F as LibraryIcon, pe as LinkIcon, I as ListViewIcon, L as MailIcon, he as MegaphoneIcon, R as MigrationIcon, P as MinimizeIcon, z as NotificationIcon, c as PriorityIcon, V as ProjectIcon, H as PullRequestIcon, me as ReleaseIcon, ce as RemoveUserIcon, fe as RenameIcon, te as RepositoryIcon, ue as RestoreIcon, U as SearchIcon, W as SettingsIcon, G as ShieldIcon, K as ShrinkIcon, ne as SidePanelIcon, o as StatusIcon, ve as SuccessIcon, ge as SwapIcon, q as TagIcon, re as TimelineIcon, _e as TrashIcon, B as TriageIcon, $ as UnlinkIcon, C as UploadIcon, J as UserIcon, Y as UsersIcon, X as WebhookIcon, Z as WorkerIcon, s as usePriorityNames };
227
+ export { d as AddIcon, ce as AddUserIcon, xe as AgentIcon, K as AlertIcon, ue as ArchiveIcon, oe as AreaIcon, p as AttachmentIcon, f as BoardIcon, m as BranchIcon, O as BucketIcon, h as CalendarIcon, be as CancelIcon, D as ChartIcon, _ as CheckIcon, v as ChevronDownIcon, y as ChevronRightIcon, g as ClockIcon, b as CloseIcon, k as CloudIcon, se as CodeHostIcon, x as CommentIcon, ne as CycleIcon, S as DownloadIcon, fe as EditIcon, ae as EstimateIcon, w as ExpandIcon, T as FileTextIcon, E as FolderIcon, A as GridIcon, j as HistoryIcon, M as InboxIcon, N as KeyIcon, F as LibraryIcon, $ as LinkIcon, I as ListViewIcon, L as MailIcon, ge as MegaphoneIcon, R as MigrationIcon, P as MinimizeIcon, z as NotificationIcon, c as PriorityIcon, V as ProjectIcon, H as PullRequestIcon, he as ReleaseIcon, le as RemoveUserIcon, pe as RenameIcon, te as RepositoryIcon, de as RestoreIcon, U as SearchIcon, W as SettingsIcon, G as ShieldIcon, q as ShrinkIcon, re as SidePanelIcon, o as StatusIcon, ye as SuccessIcon, _e as SwapIcon, J as TagIcon, ie as TimelineIcon, ve as TrashIcon, B as TriageIcon, me as UnlinkIcon, C as UploadIcon, Y as UserIcon, X as UsersIcon, Z as WebhookIcon, Q as WorkerIcon, s as usePriorityNames };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.155.2",
3
+ "version": "0.157.0",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",