@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.
- package/_virtual/_virtual_i18n/en/common.js +1 -0
- package/_virtual/_virtual_i18n/es/common.js +1 -0
- package/_virtual/_virtual_i18n/ja/common.js +1 -0
- package/_virtual/_virtual_i18n/ko/common.js +1 -0
- package/_virtual/_virtual_i18n/zh/common.js +1 -0
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +57 -57
- package/components/ActorAvatar.js +4 -4
- package/components/AgentWork.js +494 -494
- package/components/AppLauncher.js +7 -7
- package/components/AreaLink.js +13 -13
- package/components/AreaTiles.js +13 -13
- package/components/AreaWork.js +22 -22
- package/components/Attachments.js +29 -29
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +38 -38
- package/components/CollabEditor.js +13 -13
- package/components/CommandPalette.js +206 -206
- package/components/CustomFields.js +95 -95
- package/components/CustomerRequests.js +11 -11
- package/components/DashboardPanel.js +23 -23
- package/components/DateChip.js +21 -21
- package/components/DocHistory.js +14 -14
- package/components/DocIcon.js +4 -4
- package/components/DocIconPicker.js +4 -4
- package/components/DocLinkPicker.js +22 -22
- package/components/DocLook.js +16 -16
- package/components/DocProperties.js +81 -81
- package/components/DocTable.js +53 -53
- package/components/DocsTree.js +179 -179
- package/components/Editor.js +69 -69
- package/components/FavoritesNav.js +78 -78
- package/components/GitHub.js +87 -87
- package/components/Graph.js +14 -14
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +74 -74
- package/components/IssueBoard.js +13 -10
- package/components/IssueBreakdown.js +31 -31
- package/components/IssueCode.js +19 -19
- package/components/IssueEvent.js +12 -12
- package/components/IssueFilters.js +103 -99
- package/components/IssueGroup.js +16 -16
- package/components/IssueImport.js +13 -13
- package/components/IssueInsights.js +20 -20
- package/components/IssueListBlock.js +81 -81
- package/components/IssueRelations.js +34 -34
- package/components/IssueRow.js +31 -31
- package/components/IssueSentry.js +4 -4
- package/components/IssueTemplates.js +23 -23
- package/components/IssueTypes.js +40 -40
- package/components/MarkdownTransfer.js +10 -10
- package/components/MentionPicker.js +19 -19
- package/components/NewIssueDialog.js +53 -53
- package/components/NewProjectDialog.js +82 -82
- package/components/PersonActivity.js +13 -13
- package/components/PersonHoverCard.js +44 -44
- package/components/Planning.js +16 -16
- package/components/Reports.js +8 -8
- package/components/SettingsNav.js +15 -15
- package/components/ShareDialog.js +8 -8
- package/components/SharedViewer.js +23 -23
- package/components/SlashMenu.js +26 -26
- package/components/SubPages.js +10 -10
- package/components/TeamForm.js +9 -9
- package/components/TeamRepositories.js +21 -21
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +29 -29
- package/components/Updates.js +8 -8
- package/components/Widgets.js +4 -4
- package/components/WorkCounts.js +12 -12
- package/components/cycleCrumb.js +8 -8
- package/components/editorPlugins.js +101 -101
- package/components/settings.js +6 -6
- package/components/video.js +7 -7
- package/hostedApp.js +24 -24
- package/index.js +18 -18
- package/lib/assigneeOrder.js +6 -0
- package/lib/assignees.js +24 -20
- package/lib/attachments.js +12 -12
- package/lib/boardMove.js +27 -27
- package/lib/collab.js +1 -1
- package/lib/docs.js +115 -115
- package/lib/githubLink.js +7 -7
- package/lib/issueList.js +51 -51
- package/lib/issueMenu.js +117 -117
- package/lib/knowledge.js +134 -134
- package/lib/live.js +38 -38
- package/lib/notifications.js +47 -47
- package/lib/views.js +31 -31
- package/package.json +24 -24
- package/pages/area.js +64 -64
- package/pages/areas.js +199 -199
- package/pages/decisions.js +51 -51
- package/pages/issues.js +120 -120
- package/pages/projects.js +238 -238
- package/pages/triage.js +109 -109
- package/routes/_workspace/agents/_slug2.js +127 -127
- package/routes/_workspace/agents/index2.js +22 -22
- package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
- package/routes/_workspace/dashboards/index2.js +34 -34
- package/routes/_workspace/docs/_doc2.js +267 -267
- package/routes/_workspace/docs/space2._space.js +31 -31
- package/routes/_workspace/docs2.js +4 -4
- package/routes/_workspace/graph2.js +11 -11
- package/routes/_workspace/graph3.js +11 -11
- package/routes/_workspace/issues/_identifier2.js +477 -477
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +175 -175
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -117
- package/routes/_workspace/measures2.js +8 -8
- package/routes/_workspace/measures3.js +29 -29
- package/routes/_workspace/notifications2.js +263 -263
- package/routes/_workspace/people/_username.js +10 -10
- package/routes/_workspace/people/_username2.js +41 -41
- package/routes/_workspace/projects/_projectId3.js +303 -303
- package/routes/_workspace/projects/_projectId4.js +4 -4
- package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
- package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
- package/routes/_workspace/projects/index.js +8 -8
- package/routes/_workspace/settings/account2.js +8 -8
- package/routes/_workspace/settings/audit-log2.js +8 -8
- package/routes/_workspace/settings/audit-log3.js +155 -155
- package/routes/_workspace/settings/connections2.js +4 -4
- package/routes/_workspace/settings/fields2.js +5 -5
- package/routes/_workspace/settings/github2.js +11 -11
- package/routes/_workspace/settings/gitlab2.js +5 -5
- package/routes/_workspace/settings/groups2.js +52 -52
- package/routes/_workspace/settings/import2.js +39 -39
- package/routes/_workspace/settings/index2.js +5 -5
- package/routes/_workspace/settings/intercom2.js +11 -11
- package/routes/_workspace/settings/labels2.js +33 -33
- package/routes/_workspace/settings/members2.js +81 -81
- package/routes/_workspace/settings/notifications2.js +46 -46
- package/routes/_workspace/settings/parallelworks2.js +20 -20
- package/routes/_workspace/settings/roles2.js +41 -41
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sentry2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +9 -9
- package/routes/_workspace/settings/sessions3.js +4 -4
- package/routes/_workspace/settings/slack2.js +12 -12
- package/routes/_workspace/settings/sso2.js +37 -37
- package/routes/_workspace/settings/sso3.js +7 -7
- package/routes/_workspace/settings/teams2.js +29 -29
- package/routes/_workspace/settings/tokens2.js +32 -32
- package/routes/_workspace/settings/tokens3.js +4 -4
- package/routes/_workspace/settings/webhooks2.js +41 -41
- package/routes/_workspace/settings/zendesk2.js +11 -11
- package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
- package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
- package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
- package/routes/_workspace/teams/_key/issues.js +10 -10
- package/routes/_workspace/teams/_key/projects.js +6 -6
- package/routes/_workspace/teams/_key/settings2.js +396 -396
- package/routes/_workspace2.js +308 -308
- package/routes/_workspace3.js +8 -8
- package/routes/device2.js +4 -4
- package/routes/device3.js +4 -4
- package/routes/docs/_tag/_endpoint2.js +3 -3
- package/routes/docs/_tag/index2.js +3 -3
- package/routes/docs/route2.js +7 -7
- package/routes/index2.js +5 -5
- package/routes/login2.js +10 -10
- package/routes/new2.js +12 -12
- package/routes/new3.js +5 -5
- package/routes/request2._token.js +6 -6
- package/routes/share2._secret.js +4 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { auditLogQuery as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { paramFields as e } from "./audit-log.js";
|
|
2
|
+
import { auditLogQuery as t } from "../../../api/queries.js";
|
|
3
|
+
import { Timeline as n, TimelineItem as r, activityIcon as i } from "../../../components/ActivityTimeline.js";
|
|
4
|
+
import { AreaLink as a } from "../../../components/AreaLink.js";
|
|
5
|
+
import { CalendarIcon as o, HistoryIcon as s, UserIcon as c, usePriorityNames as l } from "../../../components/icons.js";
|
|
6
|
+
import { emojis as u } from "../../../components/Reactions.js";
|
|
7
7
|
import { SettingsPage as d } from "../../../components/settings.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { usePeople as f } from "../../../lib/people.js";
|
|
9
|
+
import { useCan as p, useRoleName as m } from "../../../lib/roles.js";
|
|
10
|
+
import { Link as h, useNavigate as g } from "../../../lib/router.js";
|
|
11
|
+
import { useTime as _ } from "../../../lib/time.js";
|
|
12
|
+
import { Route as v } from "./audit-log2.js";
|
|
13
13
|
import { Avatar as y, Button as b, Callout as x, EmptyState as S } from "@parallelworks/ui";
|
|
14
14
|
import { useMemo as C } from "react";
|
|
15
15
|
import { useFormatter as w, useTranslations as T } from "use-intl";
|
|
@@ -33,7 +33,7 @@ var L = [
|
|
|
33
33
|
"workspace"
|
|
34
34
|
];
|
|
35
35
|
function R() {
|
|
36
|
-
let { workspace: e } =
|
|
36
|
+
let { workspace: e } = v.useParams(), t = T("audit"), n = p(e, "manage_workspace");
|
|
37
37
|
return /* @__PURE__ */ D(d, {
|
|
38
38
|
title: t("title"),
|
|
39
39
|
description: t("description"),
|
|
@@ -58,28 +58,28 @@ function z(e) {
|
|
|
58
58
|
}
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
function B({ workspace:
|
|
62
|
-
let
|
|
61
|
+
function B({ workspace: r }) {
|
|
62
|
+
let i = T("audit"), a = v.useSearch(), l = g({ from: v.fullPath }), { members: u, agents: d } = f(r), p = C(() => [
|
|
63
63
|
{
|
|
64
64
|
key: "actor",
|
|
65
|
-
label:
|
|
66
|
-
icon: /* @__PURE__ */ D(
|
|
65
|
+
label: i("actor"),
|
|
66
|
+
icon: /* @__PURE__ */ D(c, {}),
|
|
67
67
|
kind: "people",
|
|
68
68
|
multiple: !1,
|
|
69
69
|
operators: ["is"],
|
|
70
70
|
options: [
|
|
71
71
|
{
|
|
72
72
|
value: "user:*",
|
|
73
|
-
label:
|
|
73
|
+
label: i("anyPerson")
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
value: "agent:*",
|
|
77
|
-
label:
|
|
77
|
+
label: i("anyAgent")
|
|
78
78
|
},
|
|
79
79
|
...u.map((e) => ({
|
|
80
80
|
value: `user:${e.user.username}`,
|
|
81
81
|
label: e.user.name,
|
|
82
|
-
group:
|
|
82
|
+
group: i("people"),
|
|
83
83
|
icon: /* @__PURE__ */ D(y, {
|
|
84
84
|
name: e.user.name,
|
|
85
85
|
src: e.user.avatarUrl,
|
|
@@ -90,7 +90,7 @@ function B({ workspace: e }) {
|
|
|
90
90
|
...d.map((e) => ({
|
|
91
91
|
value: `agent:${e.slug}`,
|
|
92
92
|
label: e.name,
|
|
93
|
-
group:
|
|
93
|
+
group: i("agents"),
|
|
94
94
|
icon: /* @__PURE__ */ D(y, {
|
|
95
95
|
name: e.name,
|
|
96
96
|
kind: "agent",
|
|
@@ -102,54 +102,54 @@ function B({ workspace: e }) {
|
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
key: "type",
|
|
105
|
-
label:
|
|
106
|
-
icon: /* @__PURE__ */ D(
|
|
105
|
+
label: i("activity"),
|
|
106
|
+
icon: /* @__PURE__ */ D(s, {}),
|
|
107
107
|
kind: "enum",
|
|
108
108
|
multiple: !1,
|
|
109
109
|
operators: ["is"],
|
|
110
110
|
options: L.map((e) => ({
|
|
111
111
|
value: e,
|
|
112
|
-
label:
|
|
112
|
+
label: i(`types.${e}`)
|
|
113
113
|
}))
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
key: "date",
|
|
117
|
-
label:
|
|
118
|
-
icon: /* @__PURE__ */ D(
|
|
117
|
+
label: i("date"),
|
|
118
|
+
icon: /* @__PURE__ */ D(o, {}),
|
|
119
119
|
kind: "date"
|
|
120
120
|
}
|
|
121
121
|
], [
|
|
122
|
-
|
|
122
|
+
i,
|
|
123
123
|
u,
|
|
124
124
|
d
|
|
125
|
-
]),
|
|
126
|
-
storageKey: `audit-log:${
|
|
127
|
-
fields:
|
|
125
|
+
]), m = F({
|
|
126
|
+
storageKey: `audit-log:${r}`,
|
|
127
|
+
fields: p,
|
|
128
128
|
store: {
|
|
129
|
-
value: P(
|
|
130
|
-
onChange: (
|
|
131
|
-
search: (
|
|
129
|
+
value: P(a, e),
|
|
130
|
+
onChange: (t) => l({
|
|
131
|
+
search: (n) => I(n, t, e),
|
|
132
132
|
replace: !0
|
|
133
133
|
})
|
|
134
134
|
}
|
|
135
|
-
}),
|
|
136
|
-
...
|
|
135
|
+
}), h = z(m.active), _ = Object.keys(h).length > 0, { data: x, fetchNextPage: w, hasNextPage: N, isFetchingNextPage: R } = A({
|
|
136
|
+
...t(r, h),
|
|
137
137
|
placeholderData: k
|
|
138
138
|
}), B = x?.pages.flatMap((e) => e.entries) ?? [];
|
|
139
139
|
return /* @__PURE__ */ O(E, { children: [
|
|
140
140
|
/* @__PURE__ */ D(j, {
|
|
141
|
-
filters:
|
|
142
|
-
end: /* @__PURE__ */ D(M, { filters:
|
|
141
|
+
filters: m,
|
|
142
|
+
end: /* @__PURE__ */ D(M, { filters: m }),
|
|
143
143
|
className: "mb-2"
|
|
144
144
|
}),
|
|
145
145
|
x && B.length === 0 ? /* @__PURE__ */ D(S, {
|
|
146
|
-
icon: /* @__PURE__ */ D(
|
|
147
|
-
title:
|
|
148
|
-
description:
|
|
149
|
-
}) : /* @__PURE__ */ D(
|
|
150
|
-
workspace:
|
|
151
|
-
entry:
|
|
152
|
-
},
|
|
146
|
+
icon: /* @__PURE__ */ D(s, {}),
|
|
147
|
+
title: i(_ ? "noMatches" : "empty"),
|
|
148
|
+
description: i(_ ? "noMatchesDescription" : "emptyDescription")
|
|
149
|
+
}) : /* @__PURE__ */ D(n, { children: B.map((e) => /* @__PURE__ */ D(W, {
|
|
150
|
+
workspace: r,
|
|
151
|
+
entry: e
|
|
152
|
+
}, e.id)) }),
|
|
153
153
|
N && /* @__PURE__ */ D("div", {
|
|
154
154
|
className: "mt-3 flex justify-center",
|
|
155
155
|
children: /* @__PURE__ */ D(b, {
|
|
@@ -157,7 +157,7 @@ function B({ workspace: e }) {
|
|
|
157
157
|
size: "sm",
|
|
158
158
|
disabled: R,
|
|
159
159
|
onClick: () => w(),
|
|
160
|
-
children:
|
|
160
|
+
children: i(R ? "loadingMore" : "loadMore")
|
|
161
161
|
})
|
|
162
162
|
})
|
|
163
163
|
] });
|
|
@@ -165,173 +165,173 @@ function B({ workspace: e }) {
|
|
|
165
165
|
function V(e) {
|
|
166
166
|
return e.type === "related" ? "related" : e.type === "blocks" ? e.outgoing ? "blocks" : "blockedBy" : e.outgoing ? "duplicates" : "duplicatedBy";
|
|
167
167
|
}
|
|
168
|
-
function H({ workspace:
|
|
169
|
-
let { kind:
|
|
170
|
-
if (!
|
|
171
|
-
switch (
|
|
172
|
-
case "issue": return /* @__PURE__ */ D(
|
|
168
|
+
function H({ workspace: e, entry: t, children: n }) {
|
|
169
|
+
let { kind: r, key: i } = t.target, o = "font-medium text-foreground hover:underline";
|
|
170
|
+
if (!i) return /* @__PURE__ */ D("span", { children: n });
|
|
171
|
+
switch (r) {
|
|
172
|
+
case "issue": return /* @__PURE__ */ D(h, {
|
|
173
173
|
to: "/$workspace/issues/$identifier",
|
|
174
174
|
params: {
|
|
175
|
-
workspace:
|
|
176
|
-
identifier:
|
|
175
|
+
workspace: e,
|
|
176
|
+
identifier: i
|
|
177
177
|
},
|
|
178
178
|
className: `${o} whitespace-nowrap`,
|
|
179
|
-
children:
|
|
179
|
+
children: n
|
|
180
180
|
});
|
|
181
|
-
case "doc": return /* @__PURE__ */ D(
|
|
181
|
+
case "doc": return /* @__PURE__ */ D(h, {
|
|
182
182
|
to: "/$workspace/docs/$doc",
|
|
183
183
|
params: {
|
|
184
|
-
workspace:
|
|
185
|
-
doc:
|
|
184
|
+
workspace: e,
|
|
185
|
+
doc: i
|
|
186
186
|
},
|
|
187
187
|
className: o,
|
|
188
|
-
children:
|
|
188
|
+
children: n
|
|
189
189
|
});
|
|
190
|
-
case "knowledge": return /* @__PURE__ */ D(
|
|
190
|
+
case "knowledge": return /* @__PURE__ */ D(h, {
|
|
191
191
|
to: "/$workspace/knowledge/$term",
|
|
192
192
|
params: {
|
|
193
|
-
workspace:
|
|
194
|
-
term:
|
|
193
|
+
workspace: e,
|
|
194
|
+
term: i
|
|
195
195
|
},
|
|
196
196
|
className: o,
|
|
197
|
-
children:
|
|
197
|
+
children: n
|
|
198
198
|
});
|
|
199
|
-
case "agent": return /* @__PURE__ */ D(
|
|
199
|
+
case "agent": return /* @__PURE__ */ D(h, {
|
|
200
200
|
to: "/$workspace/agents/$slug",
|
|
201
201
|
params: {
|
|
202
|
-
workspace:
|
|
203
|
-
slug:
|
|
202
|
+
workspace: e,
|
|
203
|
+
slug: i
|
|
204
204
|
},
|
|
205
205
|
className: o,
|
|
206
|
-
children:
|
|
206
|
+
children: n
|
|
207
207
|
});
|
|
208
|
-
case "label": return /* @__PURE__ */ D(
|
|
208
|
+
case "label": return /* @__PURE__ */ D(h, {
|
|
209
209
|
to: "/$workspace/issues",
|
|
210
|
-
params: { workspace:
|
|
211
|
-
search: { label:
|
|
210
|
+
params: { workspace: e },
|
|
211
|
+
search: { label: i },
|
|
212
212
|
className: o,
|
|
213
|
-
children:
|
|
213
|
+
children: n
|
|
214
214
|
});
|
|
215
|
-
case "team": return /* @__PURE__ */ D(
|
|
215
|
+
case "team": return /* @__PURE__ */ D(h, {
|
|
216
216
|
to: "/$workspace/teams/$key/settings",
|
|
217
217
|
params: {
|
|
218
|
-
workspace:
|
|
219
|
-
key:
|
|
218
|
+
workspace: e,
|
|
219
|
+
key: i
|
|
220
220
|
},
|
|
221
221
|
className: o,
|
|
222
|
-
children:
|
|
222
|
+
children: n
|
|
223
223
|
});
|
|
224
|
-
case "project": return /* @__PURE__ */ D(
|
|
224
|
+
case "project": return /* @__PURE__ */ D(h, {
|
|
225
225
|
to: "/$workspace/projects/$projectId",
|
|
226
226
|
params: {
|
|
227
|
-
workspace:
|
|
228
|
-
projectId:
|
|
227
|
+
workspace: e,
|
|
228
|
+
projectId: i
|
|
229
229
|
},
|
|
230
230
|
className: o,
|
|
231
|
-
children:
|
|
231
|
+
children: n
|
|
232
232
|
});
|
|
233
|
-
case "area": return /* @__PURE__ */ D(
|
|
234
|
-
workspace:
|
|
235
|
-
area: { key:
|
|
233
|
+
case "area": return /* @__PURE__ */ D(a, {
|
|
234
|
+
workspace: e,
|
|
235
|
+
area: { key: i },
|
|
236
236
|
className: o,
|
|
237
|
-
children:
|
|
237
|
+
children: n
|
|
238
238
|
});
|
|
239
|
-
default: return /* @__PURE__ */ D(
|
|
239
|
+
default: return /* @__PURE__ */ D(h, {
|
|
240
240
|
to: "/$workspace/settings",
|
|
241
|
-
params: { workspace:
|
|
241
|
+
params: { workspace: e },
|
|
242
242
|
className: o,
|
|
243
|
-
children:
|
|
243
|
+
children: n
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
function U(e) {
|
|
248
|
-
let t = T("relations"), n = T("flow"), r = w(), i =
|
|
248
|
+
let t = T("relations"), n = T("flow"), r = w(), i = _(), a = l(), { person: o, nameOf: s } = f(e), c = m(e);
|
|
249
249
|
return (e) => {
|
|
250
|
-
let
|
|
250
|
+
let l = e.data ?? {}, d = (e) => String(l[e] ?? ""), f = (e) => l[e]?.name ?? "", p = (e) => a[Number(l[e])] ?? "";
|
|
251
251
|
switch (e.type) {
|
|
252
252
|
case "issue.created": return ["issueCreated", {}];
|
|
253
253
|
case "issue.title_changed": return ["issueTitleChanged", {
|
|
254
|
-
from:
|
|
255
|
-
to:
|
|
254
|
+
from: d("from"),
|
|
255
|
+
to: d("to")
|
|
256
256
|
}];
|
|
257
257
|
case "issue.body_changed": return ["issueBodyChanged", {}];
|
|
258
258
|
case "issue.status_changed": return ["issueStatusChanged", {
|
|
259
|
-
from:
|
|
260
|
-
to:
|
|
259
|
+
from: f("from"),
|
|
260
|
+
to: f("to")
|
|
261
261
|
}];
|
|
262
262
|
case "issue.priority_changed": return ["issuePriorityChanged", {
|
|
263
|
-
from:
|
|
264
|
-
to:
|
|
263
|
+
from: p("from"),
|
|
264
|
+
to: p("to")
|
|
265
265
|
}];
|
|
266
266
|
case "issue.assignee_added":
|
|
267
|
-
case "issue.assignee_removed": return [e.type === "issue.assignee_added" ? "issueAssigned" : "issueUnassigned", { assignee: d(
|
|
268
|
-
case "issue.label_added": return ["issueLabelAdded", { label:
|
|
269
|
-
case "issue.label_removed": return ["issueLabelRemoved", { label:
|
|
270
|
-
case "issue.parent_changed": return
|
|
267
|
+
case "issue.assignee_removed": return [e.type === "issue.assignee_added" ? "issueAssigned" : "issueUnassigned", { assignee: s(d("kind"), d("handle")) }];
|
|
268
|
+
case "issue.label_added": return ["issueLabelAdded", { label: d("name") }];
|
|
269
|
+
case "issue.label_removed": return ["issueLabelRemoved", { label: d("name") }];
|
|
270
|
+
case "issue.parent_changed": return l.identifier ? ["issueParentSet", { identifier: d("identifier") }] : ["issueParentCleared", {}];
|
|
271
271
|
case "issue.relation_added":
|
|
272
272
|
case "issue.relation_removed": return [e.type === "issue.relation_added" ? "issueRelationAdded" : "issueRelationRemoved", {
|
|
273
|
-
relation: t(`kinds.${V(
|
|
274
|
-
identifier:
|
|
273
|
+
relation: t(`kinds.${V(l)}`).toLowerCase(),
|
|
274
|
+
identifier: d("identifier")
|
|
275
275
|
}];
|
|
276
276
|
case "issue.pull_request_changed": return ["issuePullRequest", {
|
|
277
|
-
repository:
|
|
278
|
-
number:
|
|
277
|
+
repository: d("repository"),
|
|
278
|
+
number: d("number")
|
|
279
279
|
}];
|
|
280
280
|
case "issue.pull_request_unlinked": return ["issuePullRequestUnlinked", {
|
|
281
|
-
repository:
|
|
282
|
-
number:
|
|
281
|
+
repository: d("repository"),
|
|
282
|
+
number: d("number")
|
|
283
283
|
}];
|
|
284
284
|
case "issue.branch_changed": return ["issueBranch", {
|
|
285
|
-
branch:
|
|
286
|
-
deleted:
|
|
285
|
+
branch: d("branch"),
|
|
286
|
+
deleted: l.deleted ? "yes" : "no"
|
|
287
287
|
}];
|
|
288
288
|
case "issue.archived": return ["issueArchived", {}];
|
|
289
289
|
case "issue.restored": return ["issueRestored", {}];
|
|
290
290
|
case "issue.deleted": return ["issueDeleted", {
|
|
291
|
-
identifier:
|
|
292
|
-
title:
|
|
291
|
+
identifier: d("identifier"),
|
|
292
|
+
title: d("title")
|
|
293
293
|
}];
|
|
294
|
-
case "issue.attachment_added": return ["issueAttachmentAdded", { file:
|
|
294
|
+
case "issue.attachment_added": return ["issueAttachmentAdded", { file: d("name") }];
|
|
295
295
|
case "issue.released": return ["issueReleased", {
|
|
296
|
-
commit:
|
|
297
|
-
targets: r.list(
|
|
296
|
+
commit: d("commit").slice(0, 7),
|
|
297
|
+
targets: r.list(l.targets ?? [])
|
|
298
298
|
}];
|
|
299
|
-
case "issue.stage_changed": return
|
|
299
|
+
case "issue.stage_changed": return l.to ? ["issueStageMoved", { stage: n(`stages.${d("to")}`) }] : ["issueStageLeft", {}];
|
|
300
300
|
case "issue.area_changed":
|
|
301
301
|
case "doc.area_changed": {
|
|
302
|
-
let t =
|
|
302
|
+
let t = l.to?.title, n = e.type === "doc.area_changed";
|
|
303
303
|
return t ? [n ? "docAreaSet" : "issueAreaSet", { area: t }] : [n ? "docAreaCleared" : "issueAreaCleared", {}];
|
|
304
304
|
}
|
|
305
|
-
case "issue.project_changed": return
|
|
306
|
-
case "issue.milestone_changed": return
|
|
307
|
-
case "issue.cycle_changed": return
|
|
308
|
-
case "issue.estimate_changed": return Number(
|
|
309
|
-
case "issue.due_date_changed": return
|
|
310
|
-
case "issue.type_changed": return
|
|
311
|
-
case "issue.fields_changed": return ["issueFieldsChanged", { fields: r.list(
|
|
305
|
+
case "issue.project_changed": return l.name ? ["issueProjectSet", { project: d("name") }] : ["issueProjectCleared", {}];
|
|
306
|
+
case "issue.milestone_changed": return l.name ? ["issueMilestoneSet", { milestone: d("name") }] : ["issueMilestoneCleared", {}];
|
|
307
|
+
case "issue.cycle_changed": return l.number ? ["issueCycleSet", { number: d("number") }] : ["issueCycleCleared", {}];
|
|
308
|
+
case "issue.estimate_changed": return Number(l.to) ? ["issueEstimateSet", { points: r.number(Number(l.to)) }] : ["issueEstimateCleared", {}];
|
|
309
|
+
case "issue.due_date_changed": return l.to ? ["issueDueDateSet", { date: i.day(d("to")) }] : ["issueDueDateCleared", {}];
|
|
310
|
+
case "issue.type_changed": return l.to ? ["issueTypeChanged", { type: d("to") }] : ["issueTypeCleared", {}];
|
|
311
|
+
case "issue.fields_changed": return ["issueFieldsChanged", { fields: r.list(l.fields ?? []) }];
|
|
312
312
|
case "issue.reaction_added":
|
|
313
|
-
case "issue.reaction_removed": return [e.type === "issue.reaction_added" ? "issueReactionAdded" : "issueReactionRemoved", { emoji:
|
|
313
|
+
case "issue.reaction_removed": return [e.type === "issue.reaction_added" ? "issueReactionAdded" : "issueReactionRemoved", { emoji: u[d("emoji")] ?? d("emoji") }];
|
|
314
314
|
case "issue.triage_accepted": return ["issueTriageAccepted", {}];
|
|
315
315
|
case "issue.triage_declined": return ["issueTriageDeclined", {}];
|
|
316
316
|
case "comment.created": return ["commentCreated", {}];
|
|
317
317
|
case "comment.edited": return ["commentEdited", {}];
|
|
318
318
|
case "comment.deleted": return ["commentDeleted", {}];
|
|
319
319
|
case "run.created": return ["runCreated", {}];
|
|
320
|
-
case "run.state_changed": return ["runState", { state:
|
|
320
|
+
case "run.state_changed": return ["runState", { state: d("to") }];
|
|
321
321
|
case "decision.requested": return ["decisionRequested", {}];
|
|
322
322
|
case "decision.answered": return ["decisionAnswered", {}];
|
|
323
323
|
case "label.created": return ["labelCreated", {}];
|
|
324
324
|
case "label.updated": return ["labelUpdated", {}];
|
|
325
325
|
case "label.deleted": return ["labelDeleted", {}];
|
|
326
|
-
case "team.status_created": return ["statusCreated", { status:
|
|
327
|
-
case "team.status_updated": return ["statusUpdated", { status:
|
|
326
|
+
case "team.status_created": return ["statusCreated", { status: d("name") }];
|
|
327
|
+
case "team.status_updated": return ["statusUpdated", { status: d("name") }];
|
|
328
328
|
case "team.status_deleted": return ["statusDeleted", {
|
|
329
|
-
status:
|
|
330
|
-
movedTo:
|
|
329
|
+
status: f("status"),
|
|
330
|
+
movedTo: f("movedTo")
|
|
331
331
|
}];
|
|
332
332
|
case "issue.team_changed": {
|
|
333
333
|
let e = (e) => {
|
|
334
|
-
let t =
|
|
334
|
+
let t = l[e];
|
|
335
335
|
return t ? `${t.key}-${t.number}` : "";
|
|
336
336
|
};
|
|
337
337
|
return ["issueTeamChanged", {
|
|
@@ -342,9 +342,9 @@ function U(e) {
|
|
|
342
342
|
case "project.created": return ["projectCreated", {}];
|
|
343
343
|
case "project.updated": return ["projectUpdated", {}];
|
|
344
344
|
case "project.deleted": return ["projectDeleted", {}];
|
|
345
|
-
case "project.milestone_created": return ["milestoneCreated", { milestone:
|
|
346
|
-
case "project.milestone_updated": return ["milestoneUpdated", { milestone:
|
|
347
|
-
case "project.milestone_deleted": return ["milestoneDeleted", { milestone:
|
|
345
|
+
case "project.milestone_created": return ["milestoneCreated", { milestone: d("name") }];
|
|
346
|
+
case "project.milestone_updated": return ["milestoneUpdated", { milestone: d("name") }];
|
|
347
|
+
case "project.milestone_deleted": return ["milestoneDeleted", { milestone: d("name") }];
|
|
348
348
|
case "project.update_posted": return ["updatePosted", {}];
|
|
349
349
|
case "project.update_deleted": return ["updateDeleted", {}];
|
|
350
350
|
case "area.created": return ["areaCreated", {}];
|
|
@@ -353,22 +353,22 @@ function U(e) {
|
|
|
353
353
|
case "area.merged": return ["areaMerged", {}];
|
|
354
354
|
case "area.archived": return ["areaArchived", {}];
|
|
355
355
|
case "area.restored": return ["areaRestored", {}];
|
|
356
|
-
case "cycle.created": return ["cycleCreated", { number:
|
|
357
|
-
case "cycle.updated": return ["cycleUpdated", { number:
|
|
356
|
+
case "cycle.created": return ["cycleCreated", { number: d("number") }];
|
|
357
|
+
case "cycle.updated": return ["cycleUpdated", { number: d("number") }];
|
|
358
358
|
case "team.created": return ["teamCreated", {}];
|
|
359
359
|
case "team.updated": return ["teamUpdated", {}];
|
|
360
360
|
case "team.deleted": return ["teamDeleted", {}];
|
|
361
|
-
case "team.member_added": return ["teamMemberAdded", { person:
|
|
362
|
-
case "team.member_removed": return ["teamMemberRemoved", { person:
|
|
361
|
+
case "team.member_added": return ["teamMemberAdded", { person: o(d("username")).name }];
|
|
362
|
+
case "team.member_removed": return ["teamMemberRemoved", { person: o(d("username")).name }];
|
|
363
363
|
case "team.rotation_changed": return ["teamRotationChanged", {}];
|
|
364
|
-
case "team.rotation_handed_off": return ["teamRotationHandedOff", { person:
|
|
365
|
-
case "team.repository_linked": return ["teamRepositoryLinked", { repository:
|
|
366
|
-
case "team.repository_unlinked": return ["teamRepositoryUnlinked", { repository:
|
|
364
|
+
case "team.rotation_handed_off": return ["teamRotationHandedOff", { person: o(d("to")).name }];
|
|
365
|
+
case "team.repository_linked": return ["teamRepositoryLinked", { repository: d("repository") }];
|
|
366
|
+
case "team.repository_unlinked": return ["teamRepositoryUnlinked", { repository: d("repository") }];
|
|
367
367
|
case "doc.created": return ["docCreated", {}];
|
|
368
|
-
case "doc.title_changed": return ["docTitleChanged", { from:
|
|
368
|
+
case "doc.title_changed": return ["docTitleChanged", { from: d("from") }];
|
|
369
369
|
case "doc.body_changed": return ["docBodyChanged", {}];
|
|
370
370
|
case "doc.moved": return [e.target.kind === "doc" ? "docMoved" : "docMovedOut", {}];
|
|
371
|
-
case "doc.template_changed": return ["docTemplateChanged", { template:
|
|
371
|
+
case "doc.template_changed": return ["docTemplateChanged", { template: l.template ? "yes" : "no" }];
|
|
372
372
|
case "doc.appearance_changed": return ["docAppearanceChanged", {}];
|
|
373
373
|
case "doc.archived": return ["docArchived", {}];
|
|
374
374
|
case "doc.restored": return ["docRestored", {}];
|
|
@@ -383,15 +383,15 @@ function U(e) {
|
|
|
383
383
|
case "knowledge.archived": return ["knowledgeArchived", {}];
|
|
384
384
|
case "knowledge.restored": return ["knowledgeRestored", {}];
|
|
385
385
|
case "agent.created": return ["agentCreated", {}];
|
|
386
|
-
case "agent.updated": return ["agentUpdated", { version:
|
|
386
|
+
case "agent.updated": return ["agentUpdated", { version: d("version") }];
|
|
387
387
|
case "workspace.created": return ["workspaceCreated", {}];
|
|
388
388
|
case "workspace.updated": return ["workspaceUpdated", {}];
|
|
389
|
-
case "workspace.role_created": return ["roleCreated", { role:
|
|
390
|
-
case "workspace.role_updated": return ["roleUpdated", { role:
|
|
391
|
-
case "workspace.role_deleted": return ["roleDeleted", { role:
|
|
389
|
+
case "workspace.role_created": return ["roleCreated", { role: d("name") }];
|
|
390
|
+
case "workspace.role_updated": return ["roleUpdated", { role: d("name") }];
|
|
391
|
+
case "workspace.role_deleted": return ["roleDeleted", { role: d("name") }];
|
|
392
392
|
case "workspace.member_role_changed": return ["memberRoleChanged", {
|
|
393
|
-
person:
|
|
394
|
-
role:
|
|
393
|
+
person: o(d("username")).name,
|
|
394
|
+
role: c(d("role"))
|
|
395
395
|
}];
|
|
396
396
|
case "workspace.access_changed": return ["workspaceAccessChanged", {}];
|
|
397
397
|
case "team.access_changed": return ["teamAccessChanged", {}];
|
|
@@ -401,14 +401,14 @@ function U(e) {
|
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
function W({ workspace: e, entry: t }) {
|
|
404
|
-
let n = T("audit"),
|
|
405
|
-
agent:
|
|
406
|
-
person:
|
|
407
|
-
}) :
|
|
408
|
-
...
|
|
409
|
-
name:
|
|
410
|
-
target:
|
|
411
|
-
actor: (e) => /* @__PURE__ */ O(E, { children: [
|
|
404
|
+
let n = T("audit"), a = U(e), { person: o, agentName: s, actorName: c } = f(e), { actor: l, target: u } = t, d = l.kind === "agent", p = d && l.onBehalfOf ? n("onBehalfOf", {
|
|
405
|
+
agent: s(l.handle),
|
|
406
|
+
person: o(l.onBehalfOf).name
|
|
407
|
+
}) : c(l), m = u.kind === "issue" ? u.key : u.kind === "agent" ? s(u.key) : u.title || u.key, [h, g] = a(t), _ = n.rich(`events.${h}`, {
|
|
408
|
+
...g,
|
|
409
|
+
name: p,
|
|
410
|
+
target: m || n("removedTarget"),
|
|
411
|
+
actor: (e) => /* @__PURE__ */ O(E, { children: [d && /* @__PURE__ */ D("span", {
|
|
412
412
|
className: "mr-1 rounded bg-agent-soft px-1.5 py-px align-[1px] text-[10px] font-medium text-agent",
|
|
413
413
|
children: n("agentBadge")
|
|
414
414
|
}), /* @__PURE__ */ D("span", {
|
|
@@ -421,13 +421,13 @@ function W({ workspace: e, entry: t }) {
|
|
|
421
421
|
children: n
|
|
422
422
|
})
|
|
423
423
|
});
|
|
424
|
-
return /* @__PURE__ */ D(
|
|
424
|
+
return /* @__PURE__ */ D(r, {
|
|
425
425
|
workspace: e,
|
|
426
|
-
icon:
|
|
427
|
-
actor:
|
|
426
|
+
icon: i(t.type, t.data),
|
|
427
|
+
actor: l,
|
|
428
428
|
at: t.createdAt,
|
|
429
|
-
detail:
|
|
430
|
-
children:
|
|
429
|
+
detail: u.kind === "issue" && u.title,
|
|
430
|
+
children: _
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
export { R as component };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { GitHubAccount as e } from "../../../components/GitHub.js";
|
|
2
|
+
import { SettingsPage as t } from "../../../components/settings.js";
|
|
3
3
|
import { useTranslations as n } from "use-intl";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
// src/routes/$workspace/settings/connections.tsx?tsr-split=component
|
|
6
6
|
function i() {
|
|
7
7
|
let i = n("account"), a = n("settingsNav");
|
|
8
|
-
return /* @__PURE__ */ r(
|
|
8
|
+
return /* @__PURE__ */ r(t, {
|
|
9
9
|
title: a("connections"),
|
|
10
10
|
description: i("connectionsDescription"),
|
|
11
|
-
children: /* @__PURE__ */ r(
|
|
11
|
+
children: /* @__PURE__ */ r(e, {})
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
export { i as component };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldSettings as e } from "../../../components/CustomFields.js";
|
|
2
2
|
import { IssueTypeSettings as t } from "../../../components/IssueTypes.js";
|
|
3
3
|
import { AdminOnly as n, SettingsPage as r } from "../../../components/settings.js";
|
|
4
|
-
import {
|
|
4
|
+
import { useCan as i } from "../../../lib/roles.js";
|
|
5
5
|
import { Route as a } from "./fields.js";
|
|
6
6
|
import { useTranslations as o } from "use-intl";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
// src/routes/$workspace/settings/fields.tsx?tsr-split=component
|
|
9
9
|
function l() {
|
|
10
|
-
let { workspace: l } = a.useParams(), u = o("customFields"), d =
|
|
10
|
+
let { workspace: l } = a.useParams(), u = o("customFields"), d = i(l, "manage_labels");
|
|
11
11
|
return /* @__PURE__ */ c(r, {
|
|
12
12
|
title: u("title"),
|
|
13
13
|
description: u("pageDescription"),
|
|
@@ -15,11 +15,11 @@ function l() {
|
|
|
15
15
|
className: "space-y-10",
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ s(t, { workspace: l }),
|
|
18
|
-
/* @__PURE__ */ s(
|
|
18
|
+
/* @__PURE__ */ s(e, {
|
|
19
19
|
workspace: l,
|
|
20
20
|
target: "issue"
|
|
21
21
|
}),
|
|
22
|
-
/* @__PURE__ */ s(
|
|
22
|
+
/* @__PURE__ */ s(e, {
|
|
23
23
|
workspace: l,
|
|
24
24
|
target: "project"
|
|
25
25
|
})
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { codeHostQuery as e } from "../../../api/queries.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { CodeHostDangerZone as t, CodeHostSettings as n } from "../../../components/CodeHostSettings.js";
|
|
3
|
+
import { GitHubSettings as r } from "../../../components/GitHub.js";
|
|
4
|
+
import { AdminOnly as i, SettingsPage as a } from "../../../components/settings.js";
|
|
5
|
+
import { useCan as o } from "../../../lib/roles.js";
|
|
6
|
+
import { Route as s } from "./github.js";
|
|
7
7
|
import { useTranslations as c } from "use-intl";
|
|
8
8
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
9
|
import { useSuspenseQuery as d } from "@tanstack/react-query";
|
|
10
10
|
// src/routes/$workspace/settings/github.tsx?tsr-split=component
|
|
11
11
|
function f() {
|
|
12
|
-
let { workspace: f } =
|
|
13
|
-
return /* @__PURE__ */ u(
|
|
12
|
+
let { workspace: f } = s.useParams(), { codeHost: p } = s.useSearch(), { data: m } = d(e(f)), h = o(f, "manage_workspace"), g = c("settingsNav"), _ = c("code");
|
|
13
|
+
return /* @__PURE__ */ u(a, {
|
|
14
14
|
title: g("github"),
|
|
15
15
|
description: _("pageDescription"),
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ l(
|
|
18
|
-
/* @__PURE__ */ l(
|
|
17
|
+
/* @__PURE__ */ l(i, { workspace: f }),
|
|
18
|
+
/* @__PURE__ */ l(n, {
|
|
19
19
|
workspace: f,
|
|
20
20
|
isAdmin: h,
|
|
21
21
|
result: p
|
|
22
22
|
}),
|
|
23
|
-
h && m.provider !== "" && /* @__PURE__ */ l(
|
|
24
|
-
h && m.provider !== "" && /* @__PURE__ */ l(
|
|
23
|
+
h && m.provider !== "" && /* @__PURE__ */ l(r, { workspace: f }),
|
|
24
|
+
h && m.provider !== "" && /* @__PURE__ */ l(t, { workspace: f })
|
|
25
25
|
]
|
|
26
26
|
});
|
|
27
27
|
}
|