@parallelworks/tandem-web 0.155.1 → 0.156.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.
- package/_virtual/_virtual_i18n/en/common.js +38 -1
- package/_virtual/_virtual_i18n/es/common.js +38 -1
- package/_virtual/_virtual_i18n/ja/common.js +38 -1
- package/_virtual/_virtual_i18n/ko/common.js +38 -1
- package/_virtual/_virtual_i18n/zh/common.js +38 -1
- package/api/queries.js +39 -6
- package/components/IssueSentry.js +81 -0
- package/components/SettingsNav.js +78 -73
- package/components/icons.js +7 -7
- package/package.json +1 -1
- package/routeTree.gen.js +212 -206
- package/routes/_workspace/issues/_identifier2.js +95 -90
- package/routes/_workspace/settings/sentry.js +6 -0
- package/routes/_workspace/settings/sentry2.js +152 -0
- package/routes/_workspace/settings/sentry3.js +4 -0
|
@@ -1,167 +1,172 @@
|
|
|
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 {
|
|
4
|
-
import { useParams as
|
|
5
|
-
import { useTranslations as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { useQuery as
|
|
8
|
-
import { AppFrameNavGroup as
|
|
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
|
|
11
|
-
let { data: e } =
|
|
12
|
-
...n(
|
|
13
|
-
enabled: !!
|
|
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:
|
|
17
|
+
label: a("account"),
|
|
18
18
|
items: [
|
|
19
19
|
{
|
|
20
20
|
to: "/$workspace/settings/account",
|
|
21
|
-
label:
|
|
22
|
-
Icon:
|
|
21
|
+
label: a("profile"),
|
|
22
|
+
Icon: b
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
to: "/$workspace/settings/notifications",
|
|
26
|
-
label:
|
|
27
|
-
Icon:
|
|
26
|
+
label: a("notifications"),
|
|
27
|
+
Icon: h
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
to: "/$workspace/settings/runners",
|
|
31
|
-
label:
|
|
32
|
-
Icon:
|
|
31
|
+
label: a("runners"),
|
|
32
|
+
Icon: C
|
|
33
33
|
},
|
|
34
|
-
...
|
|
34
|
+
...D?.enabled ? [{
|
|
35
35
|
to: "/$workspace/settings/connections",
|
|
36
|
-
label:
|
|
37
|
-
Icon:
|
|
36
|
+
label: a("connections"),
|
|
37
|
+
Icon: f
|
|
38
38
|
}] : [],
|
|
39
|
-
...
|
|
39
|
+
...E ? [] : [{
|
|
40
40
|
to: "/$workspace/settings/tokens",
|
|
41
|
-
label:
|
|
42
|
-
Icon:
|
|
41
|
+
label: a("tokens"),
|
|
42
|
+
Icon: d
|
|
43
43
|
}, {
|
|
44
44
|
to: "/$workspace/settings/sessions",
|
|
45
|
-
label:
|
|
46
|
-
Icon:
|
|
45
|
+
label: a("sessions"),
|
|
46
|
+
Icon: v
|
|
47
47
|
}]
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
label:
|
|
51
|
+
label: a("workspace"),
|
|
52
52
|
items: [
|
|
53
53
|
{
|
|
54
54
|
to: "/$workspace/settings",
|
|
55
|
-
label:
|
|
56
|
-
Icon:
|
|
55
|
+
label: a("general"),
|
|
56
|
+
Icon: _
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
to: "/$workspace/settings/members",
|
|
60
|
-
label:
|
|
61
|
-
Icon:
|
|
60
|
+
label: a(E ? "access" : "members"),
|
|
61
|
+
Icon: x
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
to: "/$workspace/settings/roles",
|
|
65
|
-
label:
|
|
66
|
-
Icon:
|
|
65
|
+
label: a("roles"),
|
|
66
|
+
Icon: v
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
to: "/$workspace/settings/groups",
|
|
70
|
-
label:
|
|
71
|
-
Icon:
|
|
70
|
+
label: a("groups"),
|
|
71
|
+
Icon: v
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
to: "/$workspace/settings/teams",
|
|
75
|
-
label:
|
|
76
|
-
Icon:
|
|
75
|
+
label: a("teams"),
|
|
76
|
+
Icon: c
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
to: "/$workspace/settings/labels",
|
|
80
|
-
label:
|
|
81
|
-
Icon:
|
|
80
|
+
label: a("labels"),
|
|
81
|
+
Icon: y
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
to: "/$workspace/settings/fields",
|
|
85
|
-
label:
|
|
86
|
-
Icon:
|
|
85
|
+
label: a("fields"),
|
|
86
|
+
Icon: p
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
to: "/$workspace/settings/audit-log",
|
|
90
|
-
label:
|
|
91
|
-
Icon:
|
|
90
|
+
label: a("auditLog"),
|
|
91
|
+
Icon: l
|
|
92
92
|
},
|
|
93
|
-
...
|
|
93
|
+
...E ? [] : [{
|
|
94
94
|
to: "/$workspace/settings/sso",
|
|
95
|
-
label:
|
|
96
|
-
Icon:
|
|
95
|
+
label: a("sso"),
|
|
96
|
+
Icon: d
|
|
97
97
|
}]
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
label:
|
|
101
|
+
label: a("integrations"),
|
|
102
102
|
items: [
|
|
103
103
|
{
|
|
104
104
|
to: "/$workspace/settings/github",
|
|
105
|
-
label:
|
|
106
|
-
Icon:
|
|
105
|
+
label: a("github"),
|
|
106
|
+
Icon: g
|
|
107
107
|
},
|
|
108
|
-
...
|
|
108
|
+
...j?.enabled ? [{
|
|
109
109
|
to: "/$workspace/settings/gitlab",
|
|
110
|
-
label:
|
|
111
|
-
Icon:
|
|
110
|
+
label: a("gitlab"),
|
|
111
|
+
Icon: g
|
|
112
112
|
}] : [],
|
|
113
113
|
{
|
|
114
114
|
to: "/$workspace/settings/slack",
|
|
115
|
-
label:
|
|
116
|
-
Icon:
|
|
115
|
+
label: a("slack"),
|
|
116
|
+
Icon: s
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
to: "/$workspace/settings/zendesk",
|
|
120
|
-
label:
|
|
121
|
-
Icon:
|
|
120
|
+
label: a("zendesk"),
|
|
121
|
+
Icon: u
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
to: "/$workspace/settings/sentry",
|
|
125
|
+
label: a("sentry"),
|
|
126
|
+
Icon: i
|
|
122
127
|
},
|
|
123
128
|
{
|
|
124
129
|
to: "/$workspace/settings/webhooks",
|
|
125
|
-
label:
|
|
126
|
-
Icon:
|
|
130
|
+
label: a("webhooks"),
|
|
131
|
+
Icon: S
|
|
127
132
|
},
|
|
128
133
|
{
|
|
129
134
|
to: "/$workspace/settings/parallelworks",
|
|
130
|
-
label:
|
|
131
|
-
Icon:
|
|
135
|
+
label: a("parallelWorks"),
|
|
136
|
+
Icon: o
|
|
132
137
|
},
|
|
133
138
|
{
|
|
134
139
|
to: "/$workspace/settings/import",
|
|
135
|
-
label:
|
|
136
|
-
Icon:
|
|
140
|
+
label: a("import"),
|
|
141
|
+
Icon: m
|
|
137
142
|
}
|
|
138
143
|
]
|
|
139
144
|
}
|
|
140
145
|
];
|
|
141
146
|
}
|
|
142
|
-
function
|
|
143
|
-
let n =
|
|
144
|
-
return /* @__PURE__ */
|
|
147
|
+
function P({ workspace: t }) {
|
|
148
|
+
let n = T("settingsNav"), r = N(), i = e();
|
|
149
|
+
return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(M, {
|
|
145
150
|
label: n("label"),
|
|
146
|
-
icon: /* @__PURE__ */
|
|
151
|
+
icon: /* @__PURE__ */ D(a, { className: "size-4 rotate-90" }),
|
|
147
152
|
href: `/${t}/issues`,
|
|
148
153
|
className: "font-semibold"
|
|
149
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ D("nav", {
|
|
150
155
|
"aria-label": n("label"),
|
|
151
156
|
className: "-mx-3 mt-2 min-h-0 flex-1 overflow-y-auto px-3",
|
|
152
|
-
children: r.map((e) => /* @__PURE__ */
|
|
157
|
+
children: r.map((e) => /* @__PURE__ */ D(j, {
|
|
153
158
|
label: e.label,
|
|
154
159
|
collapsible: !1,
|
|
155
160
|
children: e.items.map(({ to: e, label: n, Icon: r }) => {
|
|
156
|
-
let
|
|
157
|
-
return /* @__PURE__ */
|
|
161
|
+
let a = e.replace("$workspace", t);
|
|
162
|
+
return /* @__PURE__ */ D(M, {
|
|
158
163
|
label: n,
|
|
159
|
-
icon: /* @__PURE__ */
|
|
160
|
-
href:
|
|
161
|
-
selected:
|
|
164
|
+
icon: /* @__PURE__ */ D(r, { className: "size-4" }),
|
|
165
|
+
href: a,
|
|
166
|
+
selected: i === a
|
|
162
167
|
}, e);
|
|
163
168
|
})
|
|
164
169
|
}, e.label))
|
|
165
170
|
})] });
|
|
166
171
|
}
|
|
167
|
-
export {
|
|
172
|
+
export { P as SettingsNav, N as useSettingsPages };
|
package/components/icons.js
CHANGED
|
@@ -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
|
|
209
|
-
function
|
|
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
|
|
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
|
|
223
|
+
var he = u(i.ReleaseIcon), ge = u(i.MegaphoneIcon), _e = u(i.SwapIcon), ve = u(i.TrashIcon);
|
|
224
224
|
i.EyeIcon;
|
|
225
|
-
var
|
|
225
|
+
var ye = u(i.SuccessIcon), be = u(i.CancelIcon), xe = u(i.AgentIcon);
|
|
226
226
|
i.ArrowRightIcon;
|
|
227
|
-
export { d as AddIcon,
|
|
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 };
|