@industry-theme/github-panels 0.1.42 → 0.1.44
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/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/GitHubMessagesPanel.d.ts +28 -0
- package/dist/panels/GitHubMessagesPanel.d.ts.map +1 -0
- package/dist/panels/GitHubMessagesPanel.stories.d.ts +71 -0
- package/dist/panels/GitHubMessagesPanel.stories.d.ts.map +1 -0
- package/dist/panels.bundle.js +1381 -72
- package/dist/panels.bundle.js.map +1 -1
- package/dist/tools/index.d.ts +18 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools.bundle.js +93 -1
- package/dist/types/github.d.ts +442 -0
- package/dist/types/github.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/panels.bundle.js
CHANGED
|
@@ -130,7 +130,7 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
130
130
|
* This source code is licensed under the ISC license.
|
|
131
131
|
* See the LICENSE file in the root directory of this source tree.
|
|
132
132
|
*/
|
|
133
|
-
const __iconNode$
|
|
133
|
+
const __iconNode$E = [
|
|
134
134
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
135
135
|
[
|
|
136
136
|
"path",
|
|
@@ -140,14 +140,14 @@ const __iconNode$w = [
|
|
|
140
140
|
}
|
|
141
141
|
]
|
|
142
142
|
];
|
|
143
|
-
const BookOpen = createLucideIcon("book-open", __iconNode$
|
|
143
|
+
const BookOpen = createLucideIcon("book-open", __iconNode$E);
|
|
144
144
|
/**
|
|
145
145
|
* @license lucide-react v0.552.0 - ISC
|
|
146
146
|
*
|
|
147
147
|
* This source code is licensed under the ISC license.
|
|
148
148
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
149
|
*/
|
|
150
|
-
const __iconNode$
|
|
150
|
+
const __iconNode$D = [
|
|
151
151
|
["path", { d: "M10 12h4", key: "a56b0p" }],
|
|
152
152
|
["path", { d: "M10 8h4", key: "1sr2af" }],
|
|
153
153
|
["path", { d: "M14 21v-3a2 2 0 0 0-4 0v3", key: "1rgiei" }],
|
|
@@ -160,86 +160,97 @@ const __iconNode$v = [
|
|
|
160
160
|
],
|
|
161
161
|
["path", { d: "M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16", key: "16ra0t" }]
|
|
162
162
|
];
|
|
163
|
-
const Building2 = createLucideIcon("building-2", __iconNode$
|
|
163
|
+
const Building2 = createLucideIcon("building-2", __iconNode$D);
|
|
164
164
|
/**
|
|
165
165
|
* @license lucide-react v0.552.0 - ISC
|
|
166
166
|
*
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
169
|
*/
|
|
170
|
-
const __iconNode$
|
|
170
|
+
const __iconNode$C = [
|
|
171
171
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
172
172
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
173
173
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
174
174
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
175
175
|
];
|
|
176
|
-
const Calendar = createLucideIcon("calendar", __iconNode$
|
|
176
|
+
const Calendar = createLucideIcon("calendar", __iconNode$C);
|
|
177
177
|
/**
|
|
178
178
|
* @license lucide-react v0.552.0 - ISC
|
|
179
179
|
*
|
|
180
180
|
* This source code is licensed under the ISC license.
|
|
181
181
|
* See the LICENSE file in the root directory of this source tree.
|
|
182
182
|
*/
|
|
183
|
-
const __iconNode$
|
|
184
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
183
|
+
const __iconNode$B = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
184
|
+
const Check = createLucideIcon("check", __iconNode$B);
|
|
185
185
|
/**
|
|
186
186
|
* @license lucide-react v0.552.0 - ISC
|
|
187
187
|
*
|
|
188
188
|
* This source code is licensed under the ISC license.
|
|
189
189
|
* See the LICENSE file in the root directory of this source tree.
|
|
190
190
|
*/
|
|
191
|
-
const __iconNode$
|
|
192
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
191
|
+
const __iconNode$A = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
192
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$A);
|
|
193
193
|
/**
|
|
194
194
|
* @license lucide-react v0.552.0 - ISC
|
|
195
195
|
*
|
|
196
196
|
* This source code is licensed under the ISC license.
|
|
197
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
198
198
|
*/
|
|
199
|
-
const __iconNode$
|
|
200
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
199
|
+
const __iconNode$z = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
200
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$z);
|
|
201
201
|
/**
|
|
202
202
|
* @license lucide-react v0.552.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
206
|
*/
|
|
207
|
-
const __iconNode$
|
|
207
|
+
const __iconNode$y = [
|
|
208
208
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
209
209
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
210
210
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
211
211
|
];
|
|
212
|
-
const CircleAlert = createLucideIcon("circle-alert", __iconNode$
|
|
212
|
+
const CircleAlert = createLucideIcon("circle-alert", __iconNode$y);
|
|
213
213
|
/**
|
|
214
214
|
* @license lucide-react v0.552.0 - ISC
|
|
215
215
|
*
|
|
216
216
|
* This source code is licensed under the ISC license.
|
|
217
217
|
* See the LICENSE file in the root directory of this source tree.
|
|
218
218
|
*/
|
|
219
|
-
const __iconNode$
|
|
219
|
+
const __iconNode$x = [
|
|
220
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
221
|
+
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }]
|
|
222
|
+
];
|
|
223
|
+
const CircleDot = createLucideIcon("circle-dot", __iconNode$x);
|
|
224
|
+
/**
|
|
225
|
+
* @license lucide-react v0.552.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/
|
|
230
|
+
const __iconNode$w = [
|
|
220
231
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
221
232
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
222
233
|
];
|
|
223
|
-
const Copy = createLucideIcon("copy", __iconNode$
|
|
234
|
+
const Copy = createLucideIcon("copy", __iconNode$w);
|
|
224
235
|
/**
|
|
225
236
|
* @license lucide-react v0.552.0 - ISC
|
|
226
237
|
*
|
|
227
238
|
* This source code is licensed under the ISC license.
|
|
228
239
|
* See the LICENSE file in the root directory of this source tree.
|
|
229
240
|
*/
|
|
230
|
-
const __iconNode$
|
|
241
|
+
const __iconNode$v = [
|
|
231
242
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
232
243
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
233
244
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
234
245
|
];
|
|
235
|
-
const Download = createLucideIcon("download", __iconNode$
|
|
246
|
+
const Download = createLucideIcon("download", __iconNode$v);
|
|
236
247
|
/**
|
|
237
248
|
* @license lucide-react v0.552.0 - ISC
|
|
238
249
|
*
|
|
239
250
|
* This source code is licensed under the ISC license.
|
|
240
251
|
* See the LICENSE file in the root directory of this source tree.
|
|
241
252
|
*/
|
|
242
|
-
const __iconNode$
|
|
253
|
+
const __iconNode$u = [
|
|
243
254
|
["path", { d: "m15 15 6 6", key: "1s409w" }],
|
|
244
255
|
["path", { d: "m15 9 6-6", key: "ko1vev" }],
|
|
245
256
|
["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
|
|
@@ -249,26 +260,43 @@ const __iconNode$n = [
|
|
|
249
260
|
["path", { d: "M3 8V3h5", key: "1ln10m" }],
|
|
250
261
|
["path", { d: "M9 9 3 3", key: "v551iv" }]
|
|
251
262
|
];
|
|
252
|
-
const Expand = createLucideIcon("expand", __iconNode$
|
|
263
|
+
const Expand = createLucideIcon("expand", __iconNode$u);
|
|
253
264
|
/**
|
|
254
265
|
* @license lucide-react v0.552.0 - ISC
|
|
255
266
|
*
|
|
256
267
|
* This source code is licensed under the ISC license.
|
|
257
268
|
* See the LICENSE file in the root directory of this source tree.
|
|
258
269
|
*/
|
|
259
|
-
const __iconNode$
|
|
270
|
+
const __iconNode$t = [
|
|
260
271
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
261
272
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
262
273
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
263
274
|
];
|
|
264
|
-
const ExternalLink = createLucideIcon("external-link", __iconNode$
|
|
275
|
+
const ExternalLink = createLucideIcon("external-link", __iconNode$t);
|
|
265
276
|
/**
|
|
266
277
|
* @license lucide-react v0.552.0 - ISC
|
|
267
278
|
*
|
|
268
279
|
* This source code is licensed under the ISC license.
|
|
269
280
|
* See the LICENSE file in the root directory of this source tree.
|
|
270
281
|
*/
|
|
271
|
-
const __iconNode$
|
|
282
|
+
const __iconNode$s = [
|
|
283
|
+
[
|
|
284
|
+
"path",
|
|
285
|
+
{
|
|
286
|
+
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
287
|
+
key: "1nclc0"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
291
|
+
];
|
|
292
|
+
const Eye = createLucideIcon("eye", __iconNode$s);
|
|
293
|
+
/**
|
|
294
|
+
* @license lucide-react v0.552.0 - ISC
|
|
295
|
+
*
|
|
296
|
+
* This source code is licensed under the ISC license.
|
|
297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
+
*/
|
|
299
|
+
const __iconNode$r = [
|
|
272
300
|
[
|
|
273
301
|
"path",
|
|
274
302
|
{
|
|
@@ -281,14 +309,14 @@ const __iconNode$l = [
|
|
|
281
309
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
282
310
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
283
311
|
];
|
|
284
|
-
const FileText = createLucideIcon("file-text", __iconNode$
|
|
312
|
+
const FileText = createLucideIcon("file-text", __iconNode$r);
|
|
285
313
|
/**
|
|
286
314
|
* @license lucide-react v0.552.0 - ISC
|
|
287
315
|
*
|
|
288
316
|
* This source code is licensed under the ISC license.
|
|
289
317
|
* See the LICENSE file in the root directory of this source tree.
|
|
290
318
|
*/
|
|
291
|
-
const __iconNode$
|
|
319
|
+
const __iconNode$q = [
|
|
292
320
|
[
|
|
293
321
|
"path",
|
|
294
322
|
{
|
|
@@ -297,14 +325,14 @@ const __iconNode$k = [
|
|
|
297
325
|
}
|
|
298
326
|
]
|
|
299
327
|
];
|
|
300
|
-
const FolderOpen = createLucideIcon("folder-open", __iconNode$
|
|
328
|
+
const FolderOpen = createLucideIcon("folder-open", __iconNode$q);
|
|
301
329
|
/**
|
|
302
330
|
* @license lucide-react v0.552.0 - ISC
|
|
303
331
|
*
|
|
304
332
|
* This source code is licensed under the ISC license.
|
|
305
333
|
* See the LICENSE file in the root directory of this source tree.
|
|
306
334
|
*/
|
|
307
|
-
const __iconNode$
|
|
335
|
+
const __iconNode$p = [
|
|
308
336
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
309
337
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
310
338
|
[
|
|
@@ -315,14 +343,14 @@ const __iconNode$j = [
|
|
|
315
343
|
}
|
|
316
344
|
]
|
|
317
345
|
];
|
|
318
|
-
const FolderPlus = createLucideIcon("folder-plus", __iconNode$
|
|
346
|
+
const FolderPlus = createLucideIcon("folder-plus", __iconNode$p);
|
|
319
347
|
/**
|
|
320
348
|
* @license lucide-react v0.552.0 - ISC
|
|
321
349
|
*
|
|
322
350
|
* This source code is licensed under the ISC license.
|
|
323
351
|
* See the LICENSE file in the root directory of this source tree.
|
|
324
352
|
*/
|
|
325
|
-
const __iconNode$
|
|
353
|
+
const __iconNode$o = [
|
|
326
354
|
[
|
|
327
355
|
"path",
|
|
328
356
|
{
|
|
@@ -331,28 +359,65 @@ const __iconNode$i = [
|
|
|
331
359
|
}
|
|
332
360
|
]
|
|
333
361
|
];
|
|
334
|
-
const Folder = createLucideIcon("folder", __iconNode$
|
|
362
|
+
const Folder = createLucideIcon("folder", __iconNode$o);
|
|
335
363
|
/**
|
|
336
364
|
* @license lucide-react v0.552.0 - ISC
|
|
337
365
|
*
|
|
338
366
|
* This source code is licensed under the ISC license.
|
|
339
367
|
* See the LICENSE file in the root directory of this source tree.
|
|
340
368
|
*/
|
|
341
|
-
const __iconNode$
|
|
369
|
+
const __iconNode$n = [
|
|
370
|
+
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }],
|
|
371
|
+
["line", { x1: "3", x2: "9", y1: "12", y2: "12", key: "1dyftd" }],
|
|
372
|
+
["line", { x1: "15", x2: "21", y1: "12", y2: "12", key: "oup4p8" }]
|
|
373
|
+
];
|
|
374
|
+
const GitCommitHorizontal = createLucideIcon("git-commit-horizontal", __iconNode$n);
|
|
375
|
+
/**
|
|
376
|
+
* @license lucide-react v0.552.0 - ISC
|
|
377
|
+
*
|
|
378
|
+
* This source code is licensed under the ISC license.
|
|
379
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
380
|
+
*/
|
|
381
|
+
const __iconNode$m = [
|
|
342
382
|
["circle", { cx: "12", cy: "18", r: "3", key: "1mpf1b" }],
|
|
343
383
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
344
384
|
["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
|
|
345
385
|
["path", { d: "M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9", key: "1uq4wg" }],
|
|
346
386
|
["path", { d: "M12 12v3", key: "158kv8" }]
|
|
347
387
|
];
|
|
348
|
-
const GitFork = createLucideIcon("git-fork", __iconNode$
|
|
388
|
+
const GitFork = createLucideIcon("git-fork", __iconNode$m);
|
|
349
389
|
/**
|
|
350
390
|
* @license lucide-react v0.552.0 - ISC
|
|
351
391
|
*
|
|
352
392
|
* This source code is licensed under the ISC license.
|
|
353
393
|
* See the LICENSE file in the root directory of this source tree.
|
|
354
394
|
*/
|
|
355
|
-
const __iconNode$
|
|
395
|
+
const __iconNode$l = [
|
|
396
|
+
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
|
|
397
|
+
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
398
|
+
["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
|
|
399
|
+
];
|
|
400
|
+
const GitMerge = createLucideIcon("git-merge", __iconNode$l);
|
|
401
|
+
/**
|
|
402
|
+
* @license lucide-react v0.552.0 - ISC
|
|
403
|
+
*
|
|
404
|
+
* This source code is licensed under the ISC license.
|
|
405
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
406
|
+
*/
|
|
407
|
+
const __iconNode$k = [
|
|
408
|
+
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
|
|
409
|
+
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
410
|
+
["path", { d: "M13 6h3a2 2 0 0 1 2 2v7", key: "1yeb86" }],
|
|
411
|
+
["line", { x1: "6", x2: "6", y1: "9", y2: "21", key: "rroup" }]
|
|
412
|
+
];
|
|
413
|
+
const GitPullRequest = createLucideIcon("git-pull-request", __iconNode$k);
|
|
414
|
+
/**
|
|
415
|
+
* @license lucide-react v0.552.0 - ISC
|
|
416
|
+
*
|
|
417
|
+
* This source code is licensed under the ISC license.
|
|
418
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
+
*/
|
|
420
|
+
const __iconNode$j = [
|
|
356
421
|
[
|
|
357
422
|
"path",
|
|
358
423
|
{
|
|
@@ -362,57 +427,57 @@ const __iconNode$g = [
|
|
|
362
427
|
],
|
|
363
428
|
["path", { d: "M9 18c-4.51 2-5-2-7-2", key: "9comsn" }]
|
|
364
429
|
];
|
|
365
|
-
const Github = createLucideIcon("github", __iconNode$
|
|
430
|
+
const Github = createLucideIcon("github", __iconNode$j);
|
|
366
431
|
/**
|
|
367
432
|
* @license lucide-react v0.552.0 - ISC
|
|
368
433
|
*
|
|
369
434
|
* This source code is licensed under the ISC license.
|
|
370
435
|
* See the LICENSE file in the root directory of this source tree.
|
|
371
436
|
*/
|
|
372
|
-
const __iconNode$
|
|
437
|
+
const __iconNode$i = [
|
|
373
438
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
374
439
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
375
440
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
376
441
|
];
|
|
377
|
-
const History = createLucideIcon("history", __iconNode$
|
|
442
|
+
const History = createLucideIcon("history", __iconNode$i);
|
|
378
443
|
/**
|
|
379
444
|
* @license lucide-react v0.552.0 - ISC
|
|
380
445
|
*
|
|
381
446
|
* This source code is licensed under the ISC license.
|
|
382
447
|
* See the LICENSE file in the root directory of this source tree.
|
|
383
448
|
*/
|
|
384
|
-
const __iconNode$
|
|
385
|
-
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$
|
|
449
|
+
const __iconNode$h = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
450
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$h);
|
|
386
451
|
/**
|
|
387
452
|
* @license lucide-react v0.552.0 - ISC
|
|
388
453
|
*
|
|
389
454
|
* This source code is licensed under the ISC license.
|
|
390
455
|
* See the LICENSE file in the root directory of this source tree.
|
|
391
456
|
*/
|
|
392
|
-
const __iconNode$
|
|
457
|
+
const __iconNode$g = [
|
|
393
458
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
394
459
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
395
460
|
];
|
|
396
|
-
const Lock = createLucideIcon("lock", __iconNode$
|
|
461
|
+
const Lock = createLucideIcon("lock", __iconNode$g);
|
|
397
462
|
/**
|
|
398
463
|
* @license lucide-react v0.552.0 - ISC
|
|
399
464
|
*
|
|
400
465
|
* This source code is licensed under the ISC license.
|
|
401
466
|
* See the LICENSE file in the root directory of this source tree.
|
|
402
467
|
*/
|
|
403
|
-
const __iconNode$
|
|
468
|
+
const __iconNode$f = [
|
|
404
469
|
["path", { d: "m10 17 5-5-5-5", key: "1bsop3" }],
|
|
405
470
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
406
471
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }]
|
|
407
472
|
];
|
|
408
|
-
const LogIn = createLucideIcon("log-in", __iconNode$
|
|
473
|
+
const LogIn = createLucideIcon("log-in", __iconNode$f);
|
|
409
474
|
/**
|
|
410
475
|
* @license lucide-react v0.552.0 - ISC
|
|
411
476
|
*
|
|
412
477
|
* This source code is licensed under the ISC license.
|
|
413
478
|
* See the LICENSE file in the root directory of this source tree.
|
|
414
479
|
*/
|
|
415
|
-
const __iconNode$
|
|
480
|
+
const __iconNode$e = [
|
|
416
481
|
[
|
|
417
482
|
"path",
|
|
418
483
|
{
|
|
@@ -421,37 +486,37 @@ const __iconNode$b = [
|
|
|
421
486
|
}
|
|
422
487
|
]
|
|
423
488
|
];
|
|
424
|
-
const MessageSquare = createLucideIcon("message-square", __iconNode$
|
|
489
|
+
const MessageSquare = createLucideIcon("message-square", __iconNode$e);
|
|
425
490
|
/**
|
|
426
491
|
* @license lucide-react v0.552.0 - ISC
|
|
427
492
|
*
|
|
428
493
|
* This source code is licensed under the ISC license.
|
|
429
494
|
* See the LICENSE file in the root directory of this source tree.
|
|
430
495
|
*/
|
|
431
|
-
const __iconNode$
|
|
496
|
+
const __iconNode$d = [
|
|
432
497
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
433
498
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
434
499
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
435
500
|
];
|
|
436
|
-
const Monitor = createLucideIcon("monitor", __iconNode$
|
|
501
|
+
const Monitor = createLucideIcon("monitor", __iconNode$d);
|
|
437
502
|
/**
|
|
438
503
|
* @license lucide-react v0.552.0 - ISC
|
|
439
504
|
*
|
|
440
505
|
* This source code is licensed under the ISC license.
|
|
441
506
|
* See the LICENSE file in the root directory of this source tree.
|
|
442
507
|
*/
|
|
443
|
-
const __iconNode$
|
|
508
|
+
const __iconNode$c = [
|
|
444
509
|
["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
|
|
445
510
|
["path", { d: "M2 12H22", key: "1m8cig" }]
|
|
446
511
|
];
|
|
447
|
-
const MoveRight = createLucideIcon("move-right", __iconNode$
|
|
512
|
+
const MoveRight = createLucideIcon("move-right", __iconNode$c);
|
|
448
513
|
/**
|
|
449
514
|
* @license lucide-react v0.552.0 - ISC
|
|
450
515
|
*
|
|
451
516
|
* This source code is licensed under the ISC license.
|
|
452
517
|
* See the LICENSE file in the root directory of this source tree.
|
|
453
518
|
*/
|
|
454
|
-
const __iconNode$
|
|
519
|
+
const __iconNode$b = [
|
|
455
520
|
[
|
|
456
521
|
"path",
|
|
457
522
|
{
|
|
@@ -460,52 +525,77 @@ const __iconNode$8 = [
|
|
|
460
525
|
}
|
|
461
526
|
]
|
|
462
527
|
];
|
|
463
|
-
const Play = createLucideIcon("play", __iconNode$
|
|
528
|
+
const Play = createLucideIcon("play", __iconNode$b);
|
|
464
529
|
/**
|
|
465
530
|
* @license lucide-react v0.552.0 - ISC
|
|
466
531
|
*
|
|
467
532
|
* This source code is licensed under the ISC license.
|
|
468
533
|
* See the LICENSE file in the root directory of this source tree.
|
|
469
534
|
*/
|
|
470
|
-
const __iconNode$
|
|
535
|
+
const __iconNode$a = [
|
|
471
536
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
472
537
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
473
538
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
474
539
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
475
540
|
];
|
|
476
|
-
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$
|
|
541
|
+
const RefreshCw = createLucideIcon("refresh-cw", __iconNode$a);
|
|
477
542
|
/**
|
|
478
543
|
* @license lucide-react v0.552.0 - ISC
|
|
479
544
|
*
|
|
480
545
|
* This source code is licensed under the ISC license.
|
|
481
546
|
* See the LICENSE file in the root directory of this source tree.
|
|
482
547
|
*/
|
|
483
|
-
const __iconNode$
|
|
548
|
+
const __iconNode$9 = [
|
|
549
|
+
[
|
|
550
|
+
"path",
|
|
551
|
+
{
|
|
552
|
+
d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",
|
|
553
|
+
key: "m3kijz"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
[
|
|
557
|
+
"path",
|
|
558
|
+
{
|
|
559
|
+
d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",
|
|
560
|
+
key: "1fmvmk"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", key: "1f8sc4" }],
|
|
564
|
+
["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", key: "qeys4" }]
|
|
565
|
+
];
|
|
566
|
+
const Rocket = createLucideIcon("rocket", __iconNode$9);
|
|
567
|
+
/**
|
|
568
|
+
* @license lucide-react v0.552.0 - ISC
|
|
569
|
+
*
|
|
570
|
+
* This source code is licensed under the ISC license.
|
|
571
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
572
|
+
*/
|
|
573
|
+
const __iconNode$8 = [
|
|
484
574
|
["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "7g6ntu" }],
|
|
485
575
|
["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z", key: "ijws7r" }],
|
|
486
576
|
["path", { d: "M7 21h10", key: "1b0cd5" }],
|
|
487
577
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
488
578
|
["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2", key: "3gwbw2" }]
|
|
489
579
|
];
|
|
490
|
-
const Scale = createLucideIcon("scale", __iconNode$
|
|
580
|
+
const Scale = createLucideIcon("scale", __iconNode$8);
|
|
491
581
|
/**
|
|
492
582
|
* @license lucide-react v0.552.0 - ISC
|
|
493
583
|
*
|
|
494
584
|
* This source code is licensed under the ISC license.
|
|
495
585
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
586
|
*/
|
|
497
|
-
const __iconNode$
|
|
587
|
+
const __iconNode$7 = [
|
|
498
588
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
499
589
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
500
590
|
];
|
|
501
|
-
const Search = createLucideIcon("search", __iconNode$
|
|
591
|
+
const Search = createLucideIcon("search", __iconNode$7);
|
|
502
592
|
/**
|
|
503
593
|
* @license lucide-react v0.552.0 - ISC
|
|
504
594
|
*
|
|
505
595
|
* This source code is licensed under the ISC license.
|
|
506
596
|
* See the LICENSE file in the root directory of this source tree.
|
|
507
597
|
*/
|
|
508
|
-
const __iconNode$
|
|
598
|
+
const __iconNode$6 = [
|
|
509
599
|
[
|
|
510
600
|
"path",
|
|
511
601
|
{
|
|
@@ -514,14 +604,14 @@ const __iconNode$4 = [
|
|
|
514
604
|
}
|
|
515
605
|
]
|
|
516
606
|
];
|
|
517
|
-
const Star = createLucideIcon("star", __iconNode$
|
|
607
|
+
const Star = createLucideIcon("star", __iconNode$6);
|
|
518
608
|
/**
|
|
519
609
|
* @license lucide-react v0.552.0 - ISC
|
|
520
610
|
*
|
|
521
611
|
* This source code is licensed under the ISC license.
|
|
522
612
|
* See the LICENSE file in the root directory of this source tree.
|
|
523
613
|
*/
|
|
524
|
-
const __iconNode$
|
|
614
|
+
const __iconNode$5 = [
|
|
525
615
|
[
|
|
526
616
|
"path",
|
|
527
617
|
{
|
|
@@ -531,21 +621,46 @@ const __iconNode$3 = [
|
|
|
531
621
|
],
|
|
532
622
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
533
623
|
];
|
|
534
|
-
const Tag = createLucideIcon("tag", __iconNode$
|
|
624
|
+
const Tag = createLucideIcon("tag", __iconNode$5);
|
|
535
625
|
/**
|
|
536
626
|
* @license lucide-react v0.552.0 - ISC
|
|
537
627
|
*
|
|
538
628
|
* This source code is licensed under the ISC license.
|
|
539
629
|
* See the LICENSE file in the root directory of this source tree.
|
|
540
630
|
*/
|
|
541
|
-
const __iconNode$
|
|
631
|
+
const __iconNode$4 = [
|
|
542
632
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
543
633
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
544
634
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
545
635
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
546
636
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
547
637
|
];
|
|
548
|
-
const Trash2 = createLucideIcon("trash-2", __iconNode$
|
|
638
|
+
const Trash2 = createLucideIcon("trash-2", __iconNode$4);
|
|
639
|
+
/**
|
|
640
|
+
* @license lucide-react v0.552.0 - ISC
|
|
641
|
+
*
|
|
642
|
+
* This source code is licensed under the ISC license.
|
|
643
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
644
|
+
*/
|
|
645
|
+
const __iconNode$3 = [
|
|
646
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
647
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
648
|
+
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
649
|
+
];
|
|
650
|
+
const UserMinus = createLucideIcon("user-minus", __iconNode$3);
|
|
651
|
+
/**
|
|
652
|
+
* @license lucide-react v0.552.0 - ISC
|
|
653
|
+
*
|
|
654
|
+
* This source code is licensed under the ISC license.
|
|
655
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
656
|
+
*/
|
|
657
|
+
const __iconNode$2 = [
|
|
658
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
659
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
660
|
+
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
661
|
+
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
662
|
+
];
|
|
663
|
+
const UserPlus = createLucideIcon("user-plus", __iconNode$2);
|
|
549
664
|
/**
|
|
550
665
|
* @license lucide-react v0.552.0 - ISC
|
|
551
666
|
*
|
|
@@ -2047,7 +2162,7 @@ const GitHubSearchPanelMetadata = {
|
|
|
2047
2162
|
slices: ["workspace", "workspaceRepositories"],
|
|
2048
2163
|
surfaces: ["panel"]
|
|
2049
2164
|
};
|
|
2050
|
-
const formatDate$
|
|
2165
|
+
const formatDate$2 = (dateString) => {
|
|
2051
2166
|
const date = new Date(dateString);
|
|
2052
2167
|
const now = /* @__PURE__ */ new Date();
|
|
2053
2168
|
const diffMs = now.getTime() - date.getTime();
|
|
@@ -2467,7 +2582,7 @@ const GitHubIssuesPanelContent = ({
|
|
|
2467
2582
|
" ",
|
|
2468
2583
|
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.primary }, children: issue.user.login })
|
|
2469
2584
|
] }),
|
|
2470
|
-
/* @__PURE__ */ jsx("span", { children: formatDate$
|
|
2585
|
+
/* @__PURE__ */ jsx("span", { children: formatDate$2(issue.created_at) }),
|
|
2471
2586
|
issue.comments > 0 && /* @__PURE__ */ jsxs(
|
|
2472
2587
|
"span",
|
|
2473
2588
|
{
|
|
@@ -43046,8 +43161,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
43046
43161
|
style: {
|
|
43047
43162
|
flex: 1,
|
|
43048
43163
|
cursor: "pointer",
|
|
43049
|
-
|
|
43050
|
-
opacity: isChecked ? 0.6 : 1,
|
|
43164
|
+
color: isChecked ? theme2.colors.textMuted : "inherit",
|
|
43051
43165
|
lineHeight: theme2.lineHeights.relaxed
|
|
43052
43166
|
}
|
|
43053
43167
|
}, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
|
|
@@ -44115,6 +44229,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
44115
44229
|
handleRunBashCommand,
|
|
44116
44230
|
handlePromptCopy,
|
|
44117
44231
|
enableHtmlPopout = true,
|
|
44232
|
+
autoFocusOnVisible = true,
|
|
44118
44233
|
searchQuery,
|
|
44119
44234
|
slideHeaderMarginTopOverride,
|
|
44120
44235
|
theme: themeOverride,
|
|
@@ -44321,11 +44436,11 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
44321
44436
|
}
|
|
44322
44437
|
}, [enableKeyboardScrolling, isVisible, slideIndex, scrollConfig]);
|
|
44323
44438
|
useEffect(() => {
|
|
44324
|
-
if (isVisible && slideRef.current) {
|
|
44439
|
+
if (autoFocusOnVisible && isVisible && slideRef.current) {
|
|
44325
44440
|
console.log("🎯 Auto-focusing slide container");
|
|
44326
44441
|
slideRef.current.focus();
|
|
44327
44442
|
}
|
|
44328
|
-
}, [isVisible]);
|
|
44443
|
+
}, [autoFocusOnVisible, isVisible]);
|
|
44329
44444
|
const openPlaceholderModal = (placeholders, promptContent) => {
|
|
44330
44445
|
if (!handlePromptCopy)
|
|
44331
44446
|
return;
|
|
@@ -46299,6 +46414,7 @@ var DocumentView = ({
|
|
|
46299
46414
|
slideIdPrefix = "document",
|
|
46300
46415
|
enableHtmlPopout = true,
|
|
46301
46416
|
enableKeyboardScrolling = true,
|
|
46417
|
+
autoFocusOnVisible = true,
|
|
46302
46418
|
onLinkClick,
|
|
46303
46419
|
handleRunBashCommand,
|
|
46304
46420
|
handlePromptCopy,
|
|
@@ -46346,6 +46462,7 @@ var DocumentView = ({
|
|
|
46346
46462
|
onCheckboxChange,
|
|
46347
46463
|
enableHtmlPopout,
|
|
46348
46464
|
enableKeyboardScrolling,
|
|
46465
|
+
autoFocusOnVisible,
|
|
46349
46466
|
onLinkClick,
|
|
46350
46467
|
handleRunBashCommand,
|
|
46351
46468
|
fontSizeScale,
|
|
@@ -46382,6 +46499,7 @@ var DocumentView = ({
|
|
|
46382
46499
|
onCheckboxChange,
|
|
46383
46500
|
enableHtmlPopout,
|
|
46384
46501
|
enableKeyboardScrolling,
|
|
46502
|
+
autoFocusOnVisible,
|
|
46385
46503
|
onLinkClick,
|
|
46386
46504
|
handleRunBashCommand,
|
|
46387
46505
|
fontSizeScale,
|
|
@@ -46448,6 +46566,7 @@ var DocumentView = ({
|
|
|
46448
46566
|
onCheckboxChange,
|
|
46449
46567
|
enableHtmlPopout,
|
|
46450
46568
|
enableKeyboardScrolling,
|
|
46569
|
+
autoFocusOnVisible,
|
|
46451
46570
|
onLinkClick,
|
|
46452
46571
|
handleRunBashCommand,
|
|
46453
46572
|
fontSizeScale,
|
|
@@ -46464,7 +46583,7 @@ var DocumentView = ({
|
|
|
46464
46583
|
}
|
|
46465
46584
|
})))));
|
|
46466
46585
|
};
|
|
46467
|
-
const formatDate = (dateString) => {
|
|
46586
|
+
const formatDate$1 = (dateString) => {
|
|
46468
46587
|
const date = new Date(dateString);
|
|
46469
46588
|
const now = /* @__PURE__ */ new Date();
|
|
46470
46589
|
const diffMs = now.getTime() - date.getTime();
|
|
@@ -46632,7 +46751,7 @@ const GitHubIssueDetailPanelContent = ({ events }) => {
|
|
|
46632
46751
|
"by ",
|
|
46633
46752
|
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.primary }, children: selectedIssue.user.login }),
|
|
46634
46753
|
" ",
|
|
46635
|
-
formatDate(selectedIssue.created_at)
|
|
46754
|
+
formatDate$1(selectedIssue.created_at)
|
|
46636
46755
|
]
|
|
46637
46756
|
}
|
|
46638
46757
|
),
|
|
@@ -46790,6 +46909,1077 @@ const GitHubIssueDetailPanelMetadata = {
|
|
|
46790
46909
|
slices: [],
|
|
46791
46910
|
surfaces: ["panel"]
|
|
46792
46911
|
};
|
|
46912
|
+
const formatDate = (dateString) => {
|
|
46913
|
+
const date = new Date(dateString);
|
|
46914
|
+
const now = /* @__PURE__ */ new Date();
|
|
46915
|
+
const diffMs = now.getTime() - date.getTime();
|
|
46916
|
+
const diffDays = Math.floor(diffMs / (1e3 * 60 * 60 * 24));
|
|
46917
|
+
if (diffDays === 0) {
|
|
46918
|
+
const diffHours = Math.floor(diffMs / (1e3 * 60 * 60));
|
|
46919
|
+
if (diffHours === 0) {
|
|
46920
|
+
const diffMins = Math.floor(diffMs / (1e3 * 60));
|
|
46921
|
+
if (diffMins < 1) return "just now";
|
|
46922
|
+
return `${diffMins}m ago`;
|
|
46923
|
+
}
|
|
46924
|
+
return `${diffHours}h ago`;
|
|
46925
|
+
}
|
|
46926
|
+
if (diffDays === 1) return "yesterday";
|
|
46927
|
+
if (diffDays < 7) return `${diffDays}d ago`;
|
|
46928
|
+
const weeks = Math.floor(diffDays / 7);
|
|
46929
|
+
if (diffDays < 30) return `${weeks}w ago`;
|
|
46930
|
+
const months = Math.floor(diffDays / 30);
|
|
46931
|
+
if (diffDays < 365) return `${months}mo ago`;
|
|
46932
|
+
const years = Math.floor(diffDays / 365);
|
|
46933
|
+
return `${years}y ago`;
|
|
46934
|
+
};
|
|
46935
|
+
const formatSha = (sha) => sha.substring(0, 7);
|
|
46936
|
+
const Avatar = ({ user, size = 32 }) => {
|
|
46937
|
+
const { theme: theme2 } = useTheme();
|
|
46938
|
+
return /* @__PURE__ */ jsx(
|
|
46939
|
+
"img",
|
|
46940
|
+
{
|
|
46941
|
+
src: user.avatar_url,
|
|
46942
|
+
alt: user.login,
|
|
46943
|
+
style: {
|
|
46944
|
+
width: size,
|
|
46945
|
+
height: size,
|
|
46946
|
+
borderRadius: "50%",
|
|
46947
|
+
border: `1px solid ${theme2.colors.border}`
|
|
46948
|
+
}
|
|
46949
|
+
}
|
|
46950
|
+
);
|
|
46951
|
+
};
|
|
46952
|
+
const ReactionsDisplay = ({ reactions }) => {
|
|
46953
|
+
const { theme: theme2 } = useTheme();
|
|
46954
|
+
if (reactions.total_count === 0) return null;
|
|
46955
|
+
const reactionEmojis = {
|
|
46956
|
+
"+1": "👍",
|
|
46957
|
+
"-1": "👎",
|
|
46958
|
+
laugh: "😄",
|
|
46959
|
+
hooray: "🎉",
|
|
46960
|
+
confused: "😕",
|
|
46961
|
+
heart: "❤️",
|
|
46962
|
+
rocket: "🚀",
|
|
46963
|
+
eyes: "👀"
|
|
46964
|
+
};
|
|
46965
|
+
const reactionCounts = {
|
|
46966
|
+
"+1": reactions["+1"],
|
|
46967
|
+
"-1": reactions["-1"],
|
|
46968
|
+
laugh: reactions.laugh,
|
|
46969
|
+
hooray: reactions.hooray,
|
|
46970
|
+
confused: reactions.confused,
|
|
46971
|
+
heart: reactions.heart,
|
|
46972
|
+
rocket: reactions.rocket,
|
|
46973
|
+
eyes: reactions.eyes
|
|
46974
|
+
};
|
|
46975
|
+
const activeReactions = Object.entries(reactionEmojis).filter(([key]) => reactionCounts[key] > 0).map(([key, emoji]) => ({
|
|
46976
|
+
emoji,
|
|
46977
|
+
count: reactionCounts[key]
|
|
46978
|
+
}));
|
|
46979
|
+
return /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: "8px", marginTop: "8px" }, children: activeReactions.map(({ emoji, count }) => /* @__PURE__ */ jsxs(
|
|
46980
|
+
"span",
|
|
46981
|
+
{
|
|
46982
|
+
style: {
|
|
46983
|
+
display: "inline-flex",
|
|
46984
|
+
alignItems: "center",
|
|
46985
|
+
gap: "4px",
|
|
46986
|
+
padding: "2px 8px",
|
|
46987
|
+
borderRadius: "12px",
|
|
46988
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
46989
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
46990
|
+
fontSize: theme2.fontSizes[0]
|
|
46991
|
+
},
|
|
46992
|
+
children: [
|
|
46993
|
+
/* @__PURE__ */ jsx("span", { children: emoji }),
|
|
46994
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textSecondary }, children: count })
|
|
46995
|
+
]
|
|
46996
|
+
},
|
|
46997
|
+
emoji
|
|
46998
|
+
)) });
|
|
46999
|
+
};
|
|
47000
|
+
const CommentEvent = ({ event }) => {
|
|
47001
|
+
const { theme: theme2 } = useTheme();
|
|
47002
|
+
const user = event.user || event.actor;
|
|
47003
|
+
return /* @__PURE__ */ jsxs(
|
|
47004
|
+
"div",
|
|
47005
|
+
{
|
|
47006
|
+
style: {
|
|
47007
|
+
display: "flex",
|
|
47008
|
+
gap: "12px",
|
|
47009
|
+
padding: "16px",
|
|
47010
|
+
borderBottom: `1px solid ${theme2.colors.border}`
|
|
47011
|
+
},
|
|
47012
|
+
children: [
|
|
47013
|
+
/* @__PURE__ */ jsx(Avatar, { user }),
|
|
47014
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
47015
|
+
/* @__PURE__ */ jsxs(
|
|
47016
|
+
"div",
|
|
47017
|
+
{
|
|
47018
|
+
style: {
|
|
47019
|
+
display: "flex",
|
|
47020
|
+
alignItems: "center",
|
|
47021
|
+
gap: "8px",
|
|
47022
|
+
marginBottom: "8px"
|
|
47023
|
+
},
|
|
47024
|
+
children: [
|
|
47025
|
+
/* @__PURE__ */ jsx(
|
|
47026
|
+
"span",
|
|
47027
|
+
{
|
|
47028
|
+
style: {
|
|
47029
|
+
fontWeight: 600,
|
|
47030
|
+
color: theme2.colors.text,
|
|
47031
|
+
fontFamily: theme2.fonts.body,
|
|
47032
|
+
fontSize: theme2.fontSizes[1]
|
|
47033
|
+
},
|
|
47034
|
+
children: user.login
|
|
47035
|
+
}
|
|
47036
|
+
),
|
|
47037
|
+
/* @__PURE__ */ jsxs(
|
|
47038
|
+
"span",
|
|
47039
|
+
{
|
|
47040
|
+
style: {
|
|
47041
|
+
color: theme2.colors.textMuted,
|
|
47042
|
+
fontSize: theme2.fontSizes[0]
|
|
47043
|
+
},
|
|
47044
|
+
children: [
|
|
47045
|
+
"commented ",
|
|
47046
|
+
formatDate(event.created_at)
|
|
47047
|
+
]
|
|
47048
|
+
}
|
|
47049
|
+
),
|
|
47050
|
+
event.author_association && event.author_association !== "NONE" && /* @__PURE__ */ jsx(
|
|
47051
|
+
"span",
|
|
47052
|
+
{
|
|
47053
|
+
style: {
|
|
47054
|
+
padding: "2px 6px",
|
|
47055
|
+
borderRadius: "4px",
|
|
47056
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47057
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47058
|
+
fontSize: theme2.fontSizes[0],
|
|
47059
|
+
color: theme2.colors.textSecondary,
|
|
47060
|
+
textTransform: "uppercase"
|
|
47061
|
+
},
|
|
47062
|
+
children: event.author_association.toLowerCase()
|
|
47063
|
+
}
|
|
47064
|
+
)
|
|
47065
|
+
]
|
|
47066
|
+
}
|
|
47067
|
+
),
|
|
47068
|
+
/* @__PURE__ */ jsx(
|
|
47069
|
+
"div",
|
|
47070
|
+
{
|
|
47071
|
+
style: {
|
|
47072
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47073
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47074
|
+
borderRadius: "8px",
|
|
47075
|
+
overflow: "hidden"
|
|
47076
|
+
},
|
|
47077
|
+
children: /* @__PURE__ */ jsx(
|
|
47078
|
+
DocumentView,
|
|
47079
|
+
{
|
|
47080
|
+
content: event.body,
|
|
47081
|
+
theme: theme2,
|
|
47082
|
+
maxWidth: "100%",
|
|
47083
|
+
transparentBackground: true
|
|
47084
|
+
}
|
|
47085
|
+
)
|
|
47086
|
+
}
|
|
47087
|
+
),
|
|
47088
|
+
event.reactions && /* @__PURE__ */ jsx(ReactionsDisplay, { reactions: event.reactions })
|
|
47089
|
+
] })
|
|
47090
|
+
]
|
|
47091
|
+
}
|
|
47092
|
+
);
|
|
47093
|
+
};
|
|
47094
|
+
const ReviewEvent = ({ event }) => {
|
|
47095
|
+
const { theme: theme2 } = useTheme();
|
|
47096
|
+
const stateConfig = {
|
|
47097
|
+
approved: {
|
|
47098
|
+
icon: /* @__PURE__ */ jsx(Check, { size: 16 }),
|
|
47099
|
+
color: theme2.colors.success || "#22c55e",
|
|
47100
|
+
label: "approved"
|
|
47101
|
+
},
|
|
47102
|
+
changes_requested: {
|
|
47103
|
+
icon: /* @__PURE__ */ jsx(CircleAlert, { size: 16 }),
|
|
47104
|
+
color: theme2.colors.error || "#ef4444",
|
|
47105
|
+
label: "requested changes"
|
|
47106
|
+
},
|
|
47107
|
+
commented: {
|
|
47108
|
+
icon: /* @__PURE__ */ jsx(MessageSquare, { size: 16 }),
|
|
47109
|
+
color: theme2.colors.textSecondary,
|
|
47110
|
+
label: "reviewed"
|
|
47111
|
+
},
|
|
47112
|
+
dismissed: {
|
|
47113
|
+
icon: /* @__PURE__ */ jsx(X, { size: 16 }),
|
|
47114
|
+
color: theme2.colors.textMuted,
|
|
47115
|
+
label: "dismissed review"
|
|
47116
|
+
}
|
|
47117
|
+
};
|
|
47118
|
+
const config = stateConfig[event.state] || stateConfig.commented;
|
|
47119
|
+
return /* @__PURE__ */ jsxs(
|
|
47120
|
+
"div",
|
|
47121
|
+
{
|
|
47122
|
+
style: {
|
|
47123
|
+
display: "flex",
|
|
47124
|
+
gap: "12px",
|
|
47125
|
+
padding: "16px",
|
|
47126
|
+
borderBottom: `1px solid ${theme2.colors.border}`
|
|
47127
|
+
},
|
|
47128
|
+
children: [
|
|
47129
|
+
/* @__PURE__ */ jsx(Avatar, { user: event.user }),
|
|
47130
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
47131
|
+
/* @__PURE__ */ jsxs(
|
|
47132
|
+
"div",
|
|
47133
|
+
{
|
|
47134
|
+
style: {
|
|
47135
|
+
display: "flex",
|
|
47136
|
+
alignItems: "center",
|
|
47137
|
+
gap: "8px",
|
|
47138
|
+
marginBottom: event.body ? "8px" : 0
|
|
47139
|
+
},
|
|
47140
|
+
children: [
|
|
47141
|
+
/* @__PURE__ */ jsx("span", { style: { color: config.color }, children: config.icon }),
|
|
47142
|
+
/* @__PURE__ */ jsx(
|
|
47143
|
+
"span",
|
|
47144
|
+
{
|
|
47145
|
+
style: {
|
|
47146
|
+
fontWeight: 600,
|
|
47147
|
+
color: theme2.colors.text,
|
|
47148
|
+
fontFamily: theme2.fonts.body,
|
|
47149
|
+
fontSize: theme2.fontSizes[1]
|
|
47150
|
+
},
|
|
47151
|
+
children: event.user.login
|
|
47152
|
+
}
|
|
47153
|
+
),
|
|
47154
|
+
/* @__PURE__ */ jsx(
|
|
47155
|
+
"span",
|
|
47156
|
+
{
|
|
47157
|
+
style: {
|
|
47158
|
+
color: config.color,
|
|
47159
|
+
fontWeight: 500,
|
|
47160
|
+
fontSize: theme2.fontSizes[1]
|
|
47161
|
+
},
|
|
47162
|
+
children: config.label
|
|
47163
|
+
}
|
|
47164
|
+
),
|
|
47165
|
+
/* @__PURE__ */ jsx(
|
|
47166
|
+
"span",
|
|
47167
|
+
{
|
|
47168
|
+
style: {
|
|
47169
|
+
color: theme2.colors.textMuted,
|
|
47170
|
+
fontSize: theme2.fontSizes[0]
|
|
47171
|
+
},
|
|
47172
|
+
children: formatDate(event.submitted_at)
|
|
47173
|
+
}
|
|
47174
|
+
)
|
|
47175
|
+
]
|
|
47176
|
+
}
|
|
47177
|
+
),
|
|
47178
|
+
event.body && /* @__PURE__ */ jsx(
|
|
47179
|
+
"div",
|
|
47180
|
+
{
|
|
47181
|
+
style: {
|
|
47182
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47183
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47184
|
+
borderRadius: "8px",
|
|
47185
|
+
overflow: "hidden"
|
|
47186
|
+
},
|
|
47187
|
+
children: /* @__PURE__ */ jsx(
|
|
47188
|
+
DocumentView,
|
|
47189
|
+
{
|
|
47190
|
+
content: event.body,
|
|
47191
|
+
theme: theme2,
|
|
47192
|
+
maxWidth: "100%",
|
|
47193
|
+
transparentBackground: true
|
|
47194
|
+
}
|
|
47195
|
+
)
|
|
47196
|
+
}
|
|
47197
|
+
)
|
|
47198
|
+
] })
|
|
47199
|
+
]
|
|
47200
|
+
}
|
|
47201
|
+
);
|
|
47202
|
+
};
|
|
47203
|
+
const CommitEvent = ({ event }) => {
|
|
47204
|
+
var _a;
|
|
47205
|
+
const { theme: theme2 } = useTheme();
|
|
47206
|
+
const [expanded, setExpanded] = useState(false);
|
|
47207
|
+
const messageLines = event.message.split("\n");
|
|
47208
|
+
const title = messageLines[0];
|
|
47209
|
+
const body = messageLines.slice(1).join("\n").trim();
|
|
47210
|
+
return /* @__PURE__ */ jsxs(
|
|
47211
|
+
"div",
|
|
47212
|
+
{
|
|
47213
|
+
style: {
|
|
47214
|
+
display: "flex",
|
|
47215
|
+
alignItems: "flex-start",
|
|
47216
|
+
gap: "12px",
|
|
47217
|
+
padding: "12px 16px",
|
|
47218
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47219
|
+
backgroundColor: theme2.colors.background
|
|
47220
|
+
},
|
|
47221
|
+
children: [
|
|
47222
|
+
/* @__PURE__ */ jsx(
|
|
47223
|
+
"div",
|
|
47224
|
+
{
|
|
47225
|
+
style: {
|
|
47226
|
+
width: 32,
|
|
47227
|
+
height: 32,
|
|
47228
|
+
borderRadius: "50%",
|
|
47229
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47230
|
+
display: "flex",
|
|
47231
|
+
alignItems: "center",
|
|
47232
|
+
justifyContent: "center",
|
|
47233
|
+
color: theme2.colors.textSecondary
|
|
47234
|
+
},
|
|
47235
|
+
children: /* @__PURE__ */ jsx(GitCommitHorizontal, { size: 16 })
|
|
47236
|
+
}
|
|
47237
|
+
),
|
|
47238
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
47239
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
47240
|
+
body && /* @__PURE__ */ jsx(
|
|
47241
|
+
"button",
|
|
47242
|
+
{
|
|
47243
|
+
type: "button",
|
|
47244
|
+
onClick: () => setExpanded(!expanded),
|
|
47245
|
+
style: {
|
|
47246
|
+
background: "none",
|
|
47247
|
+
border: "none",
|
|
47248
|
+
padding: 0,
|
|
47249
|
+
cursor: "pointer",
|
|
47250
|
+
color: theme2.colors.textSecondary,
|
|
47251
|
+
display: "flex",
|
|
47252
|
+
alignItems: "center"
|
|
47253
|
+
},
|
|
47254
|
+
children: expanded ? /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) : /* @__PURE__ */ jsx(ChevronRight, { size: 16 })
|
|
47255
|
+
}
|
|
47256
|
+
),
|
|
47257
|
+
/* @__PURE__ */ jsx(
|
|
47258
|
+
"span",
|
|
47259
|
+
{
|
|
47260
|
+
style: {
|
|
47261
|
+
fontFamily: theme2.fonts.body,
|
|
47262
|
+
fontSize: theme2.fontSizes[1],
|
|
47263
|
+
color: theme2.colors.text,
|
|
47264
|
+
flex: 1
|
|
47265
|
+
},
|
|
47266
|
+
children: title
|
|
47267
|
+
}
|
|
47268
|
+
),
|
|
47269
|
+
/* @__PURE__ */ jsx(
|
|
47270
|
+
"a",
|
|
47271
|
+
{
|
|
47272
|
+
href: event.html_url,
|
|
47273
|
+
target: "_blank",
|
|
47274
|
+
rel: "noopener noreferrer",
|
|
47275
|
+
style: {
|
|
47276
|
+
fontFamily: theme2.fonts.monospace,
|
|
47277
|
+
fontSize: theme2.fontSizes[0],
|
|
47278
|
+
color: theme2.colors.primary,
|
|
47279
|
+
textDecoration: "none"
|
|
47280
|
+
},
|
|
47281
|
+
children: formatSha(event.sha)
|
|
47282
|
+
}
|
|
47283
|
+
)
|
|
47284
|
+
] }),
|
|
47285
|
+
expanded && body && /* @__PURE__ */ jsx(
|
|
47286
|
+
"pre",
|
|
47287
|
+
{
|
|
47288
|
+
style: {
|
|
47289
|
+
marginTop: "8px",
|
|
47290
|
+
padding: "12px",
|
|
47291
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47292
|
+
borderRadius: "6px",
|
|
47293
|
+
fontFamily: theme2.fonts.monospace,
|
|
47294
|
+
fontSize: theme2.fontSizes[0],
|
|
47295
|
+
color: theme2.colors.textSecondary,
|
|
47296
|
+
whiteSpace: "pre-wrap",
|
|
47297
|
+
overflow: "auto"
|
|
47298
|
+
},
|
|
47299
|
+
children: body
|
|
47300
|
+
}
|
|
47301
|
+
),
|
|
47302
|
+
/* @__PURE__ */ jsxs(
|
|
47303
|
+
"div",
|
|
47304
|
+
{
|
|
47305
|
+
style: {
|
|
47306
|
+
marginTop: "4px",
|
|
47307
|
+
fontSize: theme2.fontSizes[0],
|
|
47308
|
+
color: theme2.colors.textMuted
|
|
47309
|
+
},
|
|
47310
|
+
children: [
|
|
47311
|
+
event.author.name,
|
|
47312
|
+
" committed ",
|
|
47313
|
+
formatDate(event.committer.date),
|
|
47314
|
+
((_a = event.verification) == null ? void 0 : _a.verified) && /* @__PURE__ */ jsxs(
|
|
47315
|
+
"span",
|
|
47316
|
+
{
|
|
47317
|
+
style: {
|
|
47318
|
+
marginLeft: "8px",
|
|
47319
|
+
color: theme2.colors.success || "#22c55e"
|
|
47320
|
+
},
|
|
47321
|
+
children: [
|
|
47322
|
+
/* @__PURE__ */ jsx(Check, { size: 12, style: { verticalAlign: "middle" } }),
|
|
47323
|
+
" Verified"
|
|
47324
|
+
]
|
|
47325
|
+
}
|
|
47326
|
+
)
|
|
47327
|
+
]
|
|
47328
|
+
}
|
|
47329
|
+
)
|
|
47330
|
+
] })
|
|
47331
|
+
]
|
|
47332
|
+
}
|
|
47333
|
+
);
|
|
47334
|
+
};
|
|
47335
|
+
const SimpleEvent = ({ icon, actor, action, timestamp }) => {
|
|
47336
|
+
const { theme: theme2 } = useTheme();
|
|
47337
|
+
return /* @__PURE__ */ jsxs(
|
|
47338
|
+
"div",
|
|
47339
|
+
{
|
|
47340
|
+
style: {
|
|
47341
|
+
display: "flex",
|
|
47342
|
+
alignItems: "center",
|
|
47343
|
+
gap: "12px",
|
|
47344
|
+
padding: "8px 16px",
|
|
47345
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47346
|
+
fontSize: theme2.fontSizes[0],
|
|
47347
|
+
color: theme2.colors.textSecondary
|
|
47348
|
+
},
|
|
47349
|
+
children: [
|
|
47350
|
+
/* @__PURE__ */ jsx(
|
|
47351
|
+
"div",
|
|
47352
|
+
{
|
|
47353
|
+
style: {
|
|
47354
|
+
width: 32,
|
|
47355
|
+
display: "flex",
|
|
47356
|
+
justifyContent: "center"
|
|
47357
|
+
},
|
|
47358
|
+
children: icon
|
|
47359
|
+
}
|
|
47360
|
+
),
|
|
47361
|
+
/* @__PURE__ */ jsx(Avatar, { user: actor, size: 20 }),
|
|
47362
|
+
/* @__PURE__ */ jsx("span", { style: { fontWeight: 500, color: theme2.colors.text }, children: actor.login }),
|
|
47363
|
+
action,
|
|
47364
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.textMuted, marginLeft: "auto" }, children: formatDate(timestamp) })
|
|
47365
|
+
]
|
|
47366
|
+
}
|
|
47367
|
+
);
|
|
47368
|
+
};
|
|
47369
|
+
const LabelEvent = ({ event }) => {
|
|
47370
|
+
const { theme: theme2 } = useTheme();
|
|
47371
|
+
const isLabeled = event.event === "labeled";
|
|
47372
|
+
return /* @__PURE__ */ jsx(
|
|
47373
|
+
SimpleEvent,
|
|
47374
|
+
{
|
|
47375
|
+
icon: /* @__PURE__ */ jsx(Tag, { size: 14, style: { color: theme2.colors.textMuted } }),
|
|
47376
|
+
actor: event.actor,
|
|
47377
|
+
action: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47378
|
+
/* @__PURE__ */ jsx("span", { children: isLabeled ? "added" : "removed" }),
|
|
47379
|
+
/* @__PURE__ */ jsx(
|
|
47380
|
+
"span",
|
|
47381
|
+
{
|
|
47382
|
+
style: {
|
|
47383
|
+
padding: "2px 8px",
|
|
47384
|
+
borderRadius: "12px",
|
|
47385
|
+
backgroundColor: `#${event.label.color}`,
|
|
47386
|
+
color: parseInt(event.label.color, 16) > 8388607 ? "#000" : "#fff",
|
|
47387
|
+
fontSize: "11px",
|
|
47388
|
+
fontWeight: 500
|
|
47389
|
+
},
|
|
47390
|
+
children: event.label.name
|
|
47391
|
+
}
|
|
47392
|
+
)
|
|
47393
|
+
] }),
|
|
47394
|
+
timestamp: event.created_at
|
|
47395
|
+
}
|
|
47396
|
+
);
|
|
47397
|
+
};
|
|
47398
|
+
const AssignEvent = ({ event }) => {
|
|
47399
|
+
const { theme: theme2 } = useTheme();
|
|
47400
|
+
const isAssigned = event.event === "assigned";
|
|
47401
|
+
return /* @__PURE__ */ jsx(
|
|
47402
|
+
SimpleEvent,
|
|
47403
|
+
{
|
|
47404
|
+
icon: isAssigned ? /* @__PURE__ */ jsx(UserPlus, { size: 14, style: { color: theme2.colors.textMuted } }) : /* @__PURE__ */ jsx(UserMinus, { size: 14, style: { color: theme2.colors.textMuted } }),
|
|
47405
|
+
actor: event.actor,
|
|
47406
|
+
action: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47407
|
+
/* @__PURE__ */ jsx("span", { children: isAssigned ? "assigned" : "unassigned" }),
|
|
47408
|
+
/* @__PURE__ */ jsx("span", { style: { fontWeight: 500, color: theme2.colors.text }, children: event.assignee.login })
|
|
47409
|
+
] }),
|
|
47410
|
+
timestamp: event.created_at
|
|
47411
|
+
}
|
|
47412
|
+
);
|
|
47413
|
+
};
|
|
47414
|
+
const ReviewRequestEvent = ({ event }) => {
|
|
47415
|
+
var _a, _b;
|
|
47416
|
+
const { theme: theme2 } = useTheme();
|
|
47417
|
+
const isRequested = event.event === "review_requested";
|
|
47418
|
+
const reviewer = ((_a = event.requested_reviewer) == null ? void 0 : _a.login) || ((_b = event.requested_team) == null ? void 0 : _b.name) || "unknown";
|
|
47419
|
+
return /* @__PURE__ */ jsx(
|
|
47420
|
+
SimpleEvent,
|
|
47421
|
+
{
|
|
47422
|
+
icon: /* @__PURE__ */ jsx(Eye, { size: 14, style: { color: theme2.colors.textMuted } }),
|
|
47423
|
+
actor: event.review_requester,
|
|
47424
|
+
action: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47425
|
+
/* @__PURE__ */ jsx("span", { children: isRequested ? "requested review from" : "removed review request from" }),
|
|
47426
|
+
/* @__PURE__ */ jsx("span", { style: { fontWeight: 500, color: theme2.colors.text }, children: reviewer })
|
|
47427
|
+
] }),
|
|
47428
|
+
timestamp: event.created_at
|
|
47429
|
+
}
|
|
47430
|
+
);
|
|
47431
|
+
};
|
|
47432
|
+
const MergeEvent = ({ event }) => {
|
|
47433
|
+
const { theme: theme2 } = useTheme();
|
|
47434
|
+
return /* @__PURE__ */ jsx(
|
|
47435
|
+
SimpleEvent,
|
|
47436
|
+
{
|
|
47437
|
+
icon: /* @__PURE__ */ jsx(GitMerge, { size: 14, style: { color: theme2.colors.success || "#22c55e" } }),
|
|
47438
|
+
actor: event.actor,
|
|
47439
|
+
action: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47440
|
+
/* @__PURE__ */ jsx("span", { style: { color: theme2.colors.success || "#22c55e", fontWeight: 500 }, children: "merged" }),
|
|
47441
|
+
/* @__PURE__ */ jsx("span", { children: "commit" }),
|
|
47442
|
+
/* @__PURE__ */ jsx(
|
|
47443
|
+
"code",
|
|
47444
|
+
{
|
|
47445
|
+
style: {
|
|
47446
|
+
padding: "2px 6px",
|
|
47447
|
+
borderRadius: "4px",
|
|
47448
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47449
|
+
fontFamily: theme2.fonts.monospace,
|
|
47450
|
+
fontSize: "11px"
|
|
47451
|
+
},
|
|
47452
|
+
children: formatSha(event.commit_id)
|
|
47453
|
+
}
|
|
47454
|
+
)
|
|
47455
|
+
] }),
|
|
47456
|
+
timestamp: event.created_at
|
|
47457
|
+
}
|
|
47458
|
+
);
|
|
47459
|
+
};
|
|
47460
|
+
const StateEvent = ({ event }) => {
|
|
47461
|
+
const { theme: theme2 } = useTheme();
|
|
47462
|
+
const isClosed = event.event === "closed";
|
|
47463
|
+
return /* @__PURE__ */ jsx(
|
|
47464
|
+
SimpleEvent,
|
|
47465
|
+
{
|
|
47466
|
+
icon: isClosed ? /* @__PURE__ */ jsx(CircleDot, { size: 14, style: { color: theme2.colors.error || "#ef4444" } }) : /* @__PURE__ */ jsx(CircleDot, { size: 14, style: { color: theme2.colors.success || "#22c55e" } }),
|
|
47467
|
+
actor: event.actor,
|
|
47468
|
+
action: /* @__PURE__ */ jsx(
|
|
47469
|
+
"span",
|
|
47470
|
+
{
|
|
47471
|
+
style: {
|
|
47472
|
+
color: isClosed ? theme2.colors.error || "#ef4444" : theme2.colors.success || "#22c55e",
|
|
47473
|
+
fontWeight: 500
|
|
47474
|
+
},
|
|
47475
|
+
children: isClosed ? "closed" : "reopened"
|
|
47476
|
+
}
|
|
47477
|
+
),
|
|
47478
|
+
timestamp: event.created_at
|
|
47479
|
+
}
|
|
47480
|
+
);
|
|
47481
|
+
};
|
|
47482
|
+
const RefEvent = ({ event }) => {
|
|
47483
|
+
const { theme: theme2 } = useTheme();
|
|
47484
|
+
const labels = {
|
|
47485
|
+
head_ref_force_pushed: "force-pushed",
|
|
47486
|
+
head_ref_deleted: "deleted branch",
|
|
47487
|
+
head_ref_restored: "restored branch"
|
|
47488
|
+
};
|
|
47489
|
+
return /* @__PURE__ */ jsx(
|
|
47490
|
+
SimpleEvent,
|
|
47491
|
+
{
|
|
47492
|
+
icon: /* @__PURE__ */ jsx(Rocket, { size: 14, style: { color: theme2.colors.textMuted } }),
|
|
47493
|
+
actor: event.actor,
|
|
47494
|
+
action: /* @__PURE__ */ jsx("span", { children: labels[event.event] || event.event }),
|
|
47495
|
+
timestamp: event.created_at
|
|
47496
|
+
}
|
|
47497
|
+
);
|
|
47498
|
+
};
|
|
47499
|
+
const InlineReviewComment = ({ comment: comment2 }) => {
|
|
47500
|
+
const { theme: theme2 } = useTheme();
|
|
47501
|
+
return /* @__PURE__ */ jsxs(
|
|
47502
|
+
"div",
|
|
47503
|
+
{
|
|
47504
|
+
style: {
|
|
47505
|
+
display: "flex",
|
|
47506
|
+
gap: "12px",
|
|
47507
|
+
padding: "12px 16px",
|
|
47508
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47509
|
+
backgroundColor: theme2.colors.backgroundSecondary
|
|
47510
|
+
},
|
|
47511
|
+
children: [
|
|
47512
|
+
/* @__PURE__ */ jsx(Avatar, { user: comment2.user, size: 28 }),
|
|
47513
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
47514
|
+
/* @__PURE__ */ jsxs(
|
|
47515
|
+
"div",
|
|
47516
|
+
{
|
|
47517
|
+
style: {
|
|
47518
|
+
display: "flex",
|
|
47519
|
+
alignItems: "center",
|
|
47520
|
+
gap: "8px",
|
|
47521
|
+
marginBottom: "8px"
|
|
47522
|
+
},
|
|
47523
|
+
children: [
|
|
47524
|
+
/* @__PURE__ */ jsx(
|
|
47525
|
+
"span",
|
|
47526
|
+
{
|
|
47527
|
+
style: {
|
|
47528
|
+
fontWeight: 600,
|
|
47529
|
+
color: theme2.colors.text,
|
|
47530
|
+
fontSize: theme2.fontSizes[0]
|
|
47531
|
+
},
|
|
47532
|
+
children: comment2.user.login
|
|
47533
|
+
}
|
|
47534
|
+
),
|
|
47535
|
+
/* @__PURE__ */ jsx(
|
|
47536
|
+
"span",
|
|
47537
|
+
{
|
|
47538
|
+
style: {
|
|
47539
|
+
color: theme2.colors.textMuted,
|
|
47540
|
+
fontSize: theme2.fontSizes[0]
|
|
47541
|
+
},
|
|
47542
|
+
children: "on"
|
|
47543
|
+
}
|
|
47544
|
+
),
|
|
47545
|
+
/* @__PURE__ */ jsx(
|
|
47546
|
+
"code",
|
|
47547
|
+
{
|
|
47548
|
+
style: {
|
|
47549
|
+
padding: "2px 6px",
|
|
47550
|
+
borderRadius: "4px",
|
|
47551
|
+
backgroundColor: theme2.colors.background,
|
|
47552
|
+
fontFamily: theme2.fonts.monospace,
|
|
47553
|
+
fontSize: "11px",
|
|
47554
|
+
color: theme2.colors.primary
|
|
47555
|
+
},
|
|
47556
|
+
children: comment2.path
|
|
47557
|
+
}
|
|
47558
|
+
),
|
|
47559
|
+
comment2.line && /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[0], color: theme2.colors.textSecondary }, children: [
|
|
47560
|
+
"line ",
|
|
47561
|
+
comment2.line
|
|
47562
|
+
] })
|
|
47563
|
+
]
|
|
47564
|
+
}
|
|
47565
|
+
),
|
|
47566
|
+
comment2.diff_hunk && /* @__PURE__ */ jsx(
|
|
47567
|
+
"pre",
|
|
47568
|
+
{
|
|
47569
|
+
style: {
|
|
47570
|
+
margin: "0 0 8px 0",
|
|
47571
|
+
padding: "8px",
|
|
47572
|
+
backgroundColor: theme2.colors.background,
|
|
47573
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47574
|
+
borderRadius: "6px",
|
|
47575
|
+
fontFamily: theme2.fonts.monospace,
|
|
47576
|
+
fontSize: "11px",
|
|
47577
|
+
color: theme2.colors.textSecondary,
|
|
47578
|
+
overflow: "auto",
|
|
47579
|
+
maxHeight: "100px"
|
|
47580
|
+
},
|
|
47581
|
+
children: comment2.diff_hunk
|
|
47582
|
+
}
|
|
47583
|
+
),
|
|
47584
|
+
/* @__PURE__ */ jsx(
|
|
47585
|
+
"div",
|
|
47586
|
+
{
|
|
47587
|
+
style: {
|
|
47588
|
+
backgroundColor: theme2.colors.background,
|
|
47589
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47590
|
+
borderRadius: "6px",
|
|
47591
|
+
overflow: "hidden"
|
|
47592
|
+
},
|
|
47593
|
+
children: /* @__PURE__ */ jsx(
|
|
47594
|
+
DocumentView,
|
|
47595
|
+
{
|
|
47596
|
+
content: comment2.body,
|
|
47597
|
+
theme: theme2,
|
|
47598
|
+
maxWidth: "100%",
|
|
47599
|
+
transparentBackground: true
|
|
47600
|
+
}
|
|
47601
|
+
)
|
|
47602
|
+
}
|
|
47603
|
+
),
|
|
47604
|
+
comment2.reactions && /* @__PURE__ */ jsx(ReactionsDisplay, { reactions: comment2.reactions })
|
|
47605
|
+
] })
|
|
47606
|
+
]
|
|
47607
|
+
}
|
|
47608
|
+
);
|
|
47609
|
+
};
|
|
47610
|
+
const TimelineEventRenderer = ({ event }) => {
|
|
47611
|
+
switch (event.event) {
|
|
47612
|
+
case "commented":
|
|
47613
|
+
return /* @__PURE__ */ jsx(CommentEvent, { event });
|
|
47614
|
+
case "reviewed":
|
|
47615
|
+
return /* @__PURE__ */ jsx(ReviewEvent, { event });
|
|
47616
|
+
case "committed":
|
|
47617
|
+
return /* @__PURE__ */ jsx(CommitEvent, { event });
|
|
47618
|
+
case "labeled":
|
|
47619
|
+
case "unlabeled":
|
|
47620
|
+
return /* @__PURE__ */ jsx(LabelEvent, { event });
|
|
47621
|
+
case "assigned":
|
|
47622
|
+
case "unassigned":
|
|
47623
|
+
return /* @__PURE__ */ jsx(AssignEvent, { event });
|
|
47624
|
+
case "review_requested":
|
|
47625
|
+
case "review_request_removed":
|
|
47626
|
+
return /* @__PURE__ */ jsx(ReviewRequestEvent, { event });
|
|
47627
|
+
case "merged":
|
|
47628
|
+
return /* @__PURE__ */ jsx(MergeEvent, { event });
|
|
47629
|
+
case "closed":
|
|
47630
|
+
case "reopened":
|
|
47631
|
+
return /* @__PURE__ */ jsx(StateEvent, { event });
|
|
47632
|
+
case "head_ref_force_pushed":
|
|
47633
|
+
case "head_ref_deleted":
|
|
47634
|
+
case "head_ref_restored":
|
|
47635
|
+
return /* @__PURE__ */ jsx(RefEvent, { event });
|
|
47636
|
+
default:
|
|
47637
|
+
return null;
|
|
47638
|
+
}
|
|
47639
|
+
};
|
|
47640
|
+
const GitHubMessagesPanelContent = ({ context, events }) => {
|
|
47641
|
+
const { theme: theme2 } = useTheme();
|
|
47642
|
+
const [messagesData, setMessagesData] = useState(null);
|
|
47643
|
+
useEffect(() => {
|
|
47644
|
+
var _a;
|
|
47645
|
+
if (!context) return;
|
|
47646
|
+
const sliceData = (_a = context.getSlice) == null ? void 0 : _a.call(context, "github-messages");
|
|
47647
|
+
if (sliceData) {
|
|
47648
|
+
setMessagesData(sliceData);
|
|
47649
|
+
}
|
|
47650
|
+
}, [context]);
|
|
47651
|
+
useEffect(() => {
|
|
47652
|
+
if (!events) return;
|
|
47653
|
+
const handleMessagesData = (event) => {
|
|
47654
|
+
setMessagesData(event.payload);
|
|
47655
|
+
};
|
|
47656
|
+
const unsubData = events.on("github-messages:data", handleMessagesData);
|
|
47657
|
+
return () => {
|
|
47658
|
+
if (typeof unsubData === "function") unsubData();
|
|
47659
|
+
};
|
|
47660
|
+
}, [events]);
|
|
47661
|
+
useEffect(() => {
|
|
47662
|
+
if (!events) return;
|
|
47663
|
+
const handleIssueSelected = (event) => {
|
|
47664
|
+
events.emit({
|
|
47665
|
+
type: "github-messages:request",
|
|
47666
|
+
source: "github-messages-panel",
|
|
47667
|
+
timestamp: Date.now(),
|
|
47668
|
+
payload: {
|
|
47669
|
+
owner: event.payload.owner,
|
|
47670
|
+
repo: event.payload.repo,
|
|
47671
|
+
number: event.payload.issue.number,
|
|
47672
|
+
type: "issue"
|
|
47673
|
+
}
|
|
47674
|
+
});
|
|
47675
|
+
};
|
|
47676
|
+
const handlePRSelected = (event) => {
|
|
47677
|
+
events.emit({
|
|
47678
|
+
type: "github-messages:request",
|
|
47679
|
+
source: "github-messages-panel",
|
|
47680
|
+
timestamp: Date.now(),
|
|
47681
|
+
payload: {
|
|
47682
|
+
owner: event.payload.owner,
|
|
47683
|
+
repo: event.payload.repo,
|
|
47684
|
+
number: event.payload.pullRequest.number,
|
|
47685
|
+
type: "pull_request"
|
|
47686
|
+
}
|
|
47687
|
+
});
|
|
47688
|
+
};
|
|
47689
|
+
const unsubIssue = events.on("issue:selected", handleIssueSelected);
|
|
47690
|
+
const unsubPR = events.on("pr:selected", handlePRSelected);
|
|
47691
|
+
return () => {
|
|
47692
|
+
if (typeof unsubIssue === "function") unsubIssue();
|
|
47693
|
+
if (typeof unsubPR === "function") unsubPR();
|
|
47694
|
+
};
|
|
47695
|
+
}, [events]);
|
|
47696
|
+
const containerStyle = {
|
|
47697
|
+
display: "flex",
|
|
47698
|
+
flexDirection: "column",
|
|
47699
|
+
height: "100%",
|
|
47700
|
+
backgroundColor: theme2.colors.background,
|
|
47701
|
+
overflow: "hidden"
|
|
47702
|
+
};
|
|
47703
|
+
if (!messagesData || !messagesData.target) {
|
|
47704
|
+
return /* @__PURE__ */ jsx("div", { style: containerStyle, children: /* @__PURE__ */ jsxs(
|
|
47705
|
+
"div",
|
|
47706
|
+
{
|
|
47707
|
+
style: {
|
|
47708
|
+
flex: 1,
|
|
47709
|
+
display: "flex",
|
|
47710
|
+
flexDirection: "column",
|
|
47711
|
+
alignItems: "center",
|
|
47712
|
+
justifyContent: "center",
|
|
47713
|
+
gap: "16px",
|
|
47714
|
+
padding: "24px",
|
|
47715
|
+
textAlign: "center"
|
|
47716
|
+
},
|
|
47717
|
+
children: [
|
|
47718
|
+
/* @__PURE__ */ jsx(MessageSquare, { size: 48, style: { color: theme2.colors.textMuted } }),
|
|
47719
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
47720
|
+
/* @__PURE__ */ jsx(
|
|
47721
|
+
"h3",
|
|
47722
|
+
{
|
|
47723
|
+
style: {
|
|
47724
|
+
margin: 0,
|
|
47725
|
+
marginBottom: "8px",
|
|
47726
|
+
fontFamily: theme2.fonts.heading,
|
|
47727
|
+
fontSize: theme2.fontSizes[3],
|
|
47728
|
+
fontWeight: 600,
|
|
47729
|
+
color: theme2.colors.text
|
|
47730
|
+
},
|
|
47731
|
+
children: "No Conversation Selected"
|
|
47732
|
+
}
|
|
47733
|
+
),
|
|
47734
|
+
/* @__PURE__ */ jsx(
|
|
47735
|
+
"p",
|
|
47736
|
+
{
|
|
47737
|
+
style: {
|
|
47738
|
+
margin: 0,
|
|
47739
|
+
fontFamily: theme2.fonts.body,
|
|
47740
|
+
fontSize: theme2.fontSizes[1],
|
|
47741
|
+
color: theme2.colors.textSecondary,
|
|
47742
|
+
lineHeight: 1.5
|
|
47743
|
+
},
|
|
47744
|
+
children: "Select an issue or pull request to view its conversation thread."
|
|
47745
|
+
}
|
|
47746
|
+
)
|
|
47747
|
+
] })
|
|
47748
|
+
]
|
|
47749
|
+
}
|
|
47750
|
+
) });
|
|
47751
|
+
}
|
|
47752
|
+
if (messagesData.loading) {
|
|
47753
|
+
return /* @__PURE__ */ jsx("div", { style: containerStyle, children: /* @__PURE__ */ jsx(
|
|
47754
|
+
"div",
|
|
47755
|
+
{
|
|
47756
|
+
style: {
|
|
47757
|
+
flex: 1,
|
|
47758
|
+
display: "flex",
|
|
47759
|
+
alignItems: "center",
|
|
47760
|
+
justifyContent: "center",
|
|
47761
|
+
color: theme2.colors.textSecondary
|
|
47762
|
+
},
|
|
47763
|
+
children: "Loading conversation..."
|
|
47764
|
+
}
|
|
47765
|
+
) });
|
|
47766
|
+
}
|
|
47767
|
+
if (messagesData.error) {
|
|
47768
|
+
return /* @__PURE__ */ jsx("div", { style: containerStyle, children: /* @__PURE__ */ jsxs(
|
|
47769
|
+
"div",
|
|
47770
|
+
{
|
|
47771
|
+
style: {
|
|
47772
|
+
flex: 1,
|
|
47773
|
+
display: "flex",
|
|
47774
|
+
flexDirection: "column",
|
|
47775
|
+
alignItems: "center",
|
|
47776
|
+
justifyContent: "center",
|
|
47777
|
+
gap: "8px",
|
|
47778
|
+
color: theme2.colors.error || "#ef4444"
|
|
47779
|
+
},
|
|
47780
|
+
children: [
|
|
47781
|
+
/* @__PURE__ */ jsx(CircleAlert, { size: 32 }),
|
|
47782
|
+
/* @__PURE__ */ jsx("span", { children: messagesData.error })
|
|
47783
|
+
]
|
|
47784
|
+
}
|
|
47785
|
+
) });
|
|
47786
|
+
}
|
|
47787
|
+
const { target, timeline, reviewComments } = messagesData;
|
|
47788
|
+
const isPR = target.type === "pull_request";
|
|
47789
|
+
const getStatusConfig = () => {
|
|
47790
|
+
if (isPR && target.merged) {
|
|
47791
|
+
return {
|
|
47792
|
+
icon: /* @__PURE__ */ jsx(GitMerge, { size: 14 }),
|
|
47793
|
+
color: "#a855f7",
|
|
47794
|
+
// purple for merged
|
|
47795
|
+
label: "Merged"
|
|
47796
|
+
};
|
|
47797
|
+
}
|
|
47798
|
+
if (target.state === "open") {
|
|
47799
|
+
return {
|
|
47800
|
+
icon: isPR ? /* @__PURE__ */ jsx(GitPullRequest, { size: 14 }) : /* @__PURE__ */ jsx(CircleDot, { size: 14 }),
|
|
47801
|
+
color: theme2.colors.success || "#22c55e",
|
|
47802
|
+
label: target.draft ? "Draft" : "Open"
|
|
47803
|
+
};
|
|
47804
|
+
}
|
|
47805
|
+
return {
|
|
47806
|
+
icon: /* @__PURE__ */ jsx(CircleDot, { size: 14 }),
|
|
47807
|
+
color: theme2.colors.error || "#ef4444",
|
|
47808
|
+
label: "Closed"
|
|
47809
|
+
};
|
|
47810
|
+
};
|
|
47811
|
+
const statusConfig = getStatusConfig();
|
|
47812
|
+
return /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
|
|
47813
|
+
/* @__PURE__ */ jsxs(
|
|
47814
|
+
"div",
|
|
47815
|
+
{
|
|
47816
|
+
style: {
|
|
47817
|
+
height: "40px",
|
|
47818
|
+
minHeight: "40px",
|
|
47819
|
+
padding: "0 12px",
|
|
47820
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47821
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47822
|
+
display: "flex",
|
|
47823
|
+
alignItems: "center",
|
|
47824
|
+
gap: "12px",
|
|
47825
|
+
boxSizing: "border-box"
|
|
47826
|
+
},
|
|
47827
|
+
children: [
|
|
47828
|
+
/* @__PURE__ */ jsxs(
|
|
47829
|
+
"span",
|
|
47830
|
+
{
|
|
47831
|
+
style: {
|
|
47832
|
+
display: "inline-flex",
|
|
47833
|
+
alignItems: "center",
|
|
47834
|
+
gap: "6px",
|
|
47835
|
+
fontFamily: theme2.fonts.monospace,
|
|
47836
|
+
fontSize: theme2.fontSizes[0],
|
|
47837
|
+
color: theme2.colors.textSecondary
|
|
47838
|
+
},
|
|
47839
|
+
children: [
|
|
47840
|
+
isPR ? /* @__PURE__ */ jsx(GitPullRequest, { size: 14 }) : /* @__PURE__ */ jsx(CircleDot, { size: 14 }),
|
|
47841
|
+
"#",
|
|
47842
|
+
target.number
|
|
47843
|
+
]
|
|
47844
|
+
}
|
|
47845
|
+
),
|
|
47846
|
+
/* @__PURE__ */ jsxs(
|
|
47847
|
+
"span",
|
|
47848
|
+
{
|
|
47849
|
+
style: {
|
|
47850
|
+
display: "inline-flex",
|
|
47851
|
+
alignItems: "center",
|
|
47852
|
+
gap: "6px",
|
|
47853
|
+
padding: "4px 10px",
|
|
47854
|
+
borderRadius: "999px",
|
|
47855
|
+
backgroundColor: `${statusConfig.color}20`,
|
|
47856
|
+
color: statusConfig.color,
|
|
47857
|
+
fontFamily: theme2.fonts.heading,
|
|
47858
|
+
fontSize: theme2.fontSizes[0],
|
|
47859
|
+
fontWeight: 600
|
|
47860
|
+
},
|
|
47861
|
+
children: [
|
|
47862
|
+
statusConfig.icon,
|
|
47863
|
+
statusConfig.label
|
|
47864
|
+
]
|
|
47865
|
+
}
|
|
47866
|
+
),
|
|
47867
|
+
/* @__PURE__ */ jsx(
|
|
47868
|
+
"span",
|
|
47869
|
+
{
|
|
47870
|
+
style: {
|
|
47871
|
+
flex: 1,
|
|
47872
|
+
overflow: "hidden",
|
|
47873
|
+
textOverflow: "ellipsis",
|
|
47874
|
+
whiteSpace: "nowrap",
|
|
47875
|
+
color: theme2.colors.text,
|
|
47876
|
+
fontSize: theme2.fontSizes[1]
|
|
47877
|
+
},
|
|
47878
|
+
children: target.title
|
|
47879
|
+
}
|
|
47880
|
+
),
|
|
47881
|
+
/* @__PURE__ */ jsxs(
|
|
47882
|
+
"span",
|
|
47883
|
+
{
|
|
47884
|
+
style: {
|
|
47885
|
+
display: "inline-flex",
|
|
47886
|
+
alignItems: "center",
|
|
47887
|
+
gap: "4px",
|
|
47888
|
+
color: theme2.colors.textSecondary,
|
|
47889
|
+
fontSize: theme2.fontSizes[0]
|
|
47890
|
+
},
|
|
47891
|
+
children: [
|
|
47892
|
+
/* @__PURE__ */ jsx(MessageSquare, { size: 12 }),
|
|
47893
|
+
timeline.filter((e) => e.event === "commented" || e.event === "reviewed").length
|
|
47894
|
+
]
|
|
47895
|
+
}
|
|
47896
|
+
),
|
|
47897
|
+
/* @__PURE__ */ jsx(
|
|
47898
|
+
"a",
|
|
47899
|
+
{
|
|
47900
|
+
href: target.html_url,
|
|
47901
|
+
target: "_blank",
|
|
47902
|
+
rel: "noopener noreferrer",
|
|
47903
|
+
title: "View on GitHub",
|
|
47904
|
+
style: {
|
|
47905
|
+
display: "inline-flex",
|
|
47906
|
+
alignItems: "center",
|
|
47907
|
+
justifyContent: "center",
|
|
47908
|
+
width: "28px",
|
|
47909
|
+
height: "28px",
|
|
47910
|
+
padding: 0,
|
|
47911
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
47912
|
+
borderRadius: "6px",
|
|
47913
|
+
backgroundColor: theme2.colors.background,
|
|
47914
|
+
color: theme2.colors.textSecondary,
|
|
47915
|
+
textDecoration: "none"
|
|
47916
|
+
},
|
|
47917
|
+
children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
|
|
47918
|
+
}
|
|
47919
|
+
)
|
|
47920
|
+
]
|
|
47921
|
+
}
|
|
47922
|
+
),
|
|
47923
|
+
/* @__PURE__ */ jsx(
|
|
47924
|
+
"div",
|
|
47925
|
+
{
|
|
47926
|
+
style: {
|
|
47927
|
+
flex: 1,
|
|
47928
|
+
overflow: "auto"
|
|
47929
|
+
},
|
|
47930
|
+
children: timeline.length === 0 && reviewComments.length === 0 ? /* @__PURE__ */ jsx(
|
|
47931
|
+
"div",
|
|
47932
|
+
{
|
|
47933
|
+
style: {
|
|
47934
|
+
padding: "40px",
|
|
47935
|
+
textAlign: "center",
|
|
47936
|
+
color: theme2.colors.textMuted,
|
|
47937
|
+
fontFamily: theme2.fonts.body,
|
|
47938
|
+
fontSize: theme2.fontSizes[1]
|
|
47939
|
+
},
|
|
47940
|
+
children: "No activity yet."
|
|
47941
|
+
}
|
|
47942
|
+
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47943
|
+
timeline.map((event, index2) => /* @__PURE__ */ jsx(TimelineEventRenderer, { event }, `${event.event}-${index2}`)),
|
|
47944
|
+
reviewComments.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
47945
|
+
/* @__PURE__ */ jsxs(
|
|
47946
|
+
"div",
|
|
47947
|
+
{
|
|
47948
|
+
style: {
|
|
47949
|
+
padding: "12px 16px",
|
|
47950
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47951
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47952
|
+
fontWeight: 600,
|
|
47953
|
+
fontSize: theme2.fontSizes[0],
|
|
47954
|
+
color: theme2.colors.textSecondary,
|
|
47955
|
+
textTransform: "uppercase"
|
|
47956
|
+
},
|
|
47957
|
+
children: [
|
|
47958
|
+
"Inline Review Comments (",
|
|
47959
|
+
reviewComments.length,
|
|
47960
|
+
")"
|
|
47961
|
+
]
|
|
47962
|
+
}
|
|
47963
|
+
),
|
|
47964
|
+
reviewComments.map((comment2) => /* @__PURE__ */ jsx(InlineReviewComment, { comment: comment2 }, comment2.id))
|
|
47965
|
+
] })
|
|
47966
|
+
] })
|
|
47967
|
+
}
|
|
47968
|
+
)
|
|
47969
|
+
] });
|
|
47970
|
+
};
|
|
47971
|
+
const GitHubMessagesPanel = (props) => {
|
|
47972
|
+
return /* @__PURE__ */ jsx(GitHubMessagesPanelContent, { ...props });
|
|
47973
|
+
};
|
|
47974
|
+
const GitHubMessagesPanelMetadata = {
|
|
47975
|
+
id: "github-messages",
|
|
47976
|
+
name: "GitHub Messages",
|
|
47977
|
+
description: "View conversation threads for GitHub issues and pull requests",
|
|
47978
|
+
icon: "message-square",
|
|
47979
|
+
version: "0.1.0",
|
|
47980
|
+
slices: ["github-messages"],
|
|
47981
|
+
surfaces: ["panel"]
|
|
47982
|
+
};
|
|
46793
47983
|
const OwnerRepositoriesPanelContent = ({
|
|
46794
47984
|
events,
|
|
46795
47985
|
context,
|
|
@@ -48329,6 +49519,92 @@ const refreshIssuesTool = {
|
|
|
48329
49519
|
event_type: "github-issues:refresh"
|
|
48330
49520
|
}
|
|
48331
49521
|
};
|
|
49522
|
+
const viewIssueMessagesTool = {
|
|
49523
|
+
name: "view_issue_messages",
|
|
49524
|
+
description: "View the conversation thread (comments, timeline events) for a GitHub issue.",
|
|
49525
|
+
inputs: {
|
|
49526
|
+
type: "object",
|
|
49527
|
+
properties: {
|
|
49528
|
+
owner: {
|
|
49529
|
+
type: "string",
|
|
49530
|
+
description: "The repository owner (user or organization)"
|
|
49531
|
+
},
|
|
49532
|
+
repo: {
|
|
49533
|
+
type: "string",
|
|
49534
|
+
description: "The repository name"
|
|
49535
|
+
},
|
|
49536
|
+
number: {
|
|
49537
|
+
type: "number",
|
|
49538
|
+
description: "The issue number"
|
|
49539
|
+
}
|
|
49540
|
+
},
|
|
49541
|
+
required: ["owner", "repo", "number"]
|
|
49542
|
+
},
|
|
49543
|
+
outputs: {
|
|
49544
|
+
type: "object",
|
|
49545
|
+
properties: {
|
|
49546
|
+
success: { type: "boolean" }
|
|
49547
|
+
}
|
|
49548
|
+
},
|
|
49549
|
+
tags: ["github", "issues", "messages", "comments", "conversation"],
|
|
49550
|
+
tool_call_template: {
|
|
49551
|
+
call_template_type: "panel_event",
|
|
49552
|
+
event_type: "github-messages:request"
|
|
49553
|
+
}
|
|
49554
|
+
};
|
|
49555
|
+
const viewPullRequestMessagesTool = {
|
|
49556
|
+
name: "view_pull_request_messages",
|
|
49557
|
+
description: "View the conversation thread (comments, reviews, commits, timeline events) for a GitHub pull request.",
|
|
49558
|
+
inputs: {
|
|
49559
|
+
type: "object",
|
|
49560
|
+
properties: {
|
|
49561
|
+
owner: {
|
|
49562
|
+
type: "string",
|
|
49563
|
+
description: "The repository owner (user or organization)"
|
|
49564
|
+
},
|
|
49565
|
+
repo: {
|
|
49566
|
+
type: "string",
|
|
49567
|
+
description: "The repository name"
|
|
49568
|
+
},
|
|
49569
|
+
number: {
|
|
49570
|
+
type: "number",
|
|
49571
|
+
description: "The pull request number"
|
|
49572
|
+
}
|
|
49573
|
+
},
|
|
49574
|
+
required: ["owner", "repo", "number"]
|
|
49575
|
+
},
|
|
49576
|
+
outputs: {
|
|
49577
|
+
type: "object",
|
|
49578
|
+
properties: {
|
|
49579
|
+
success: { type: "boolean" }
|
|
49580
|
+
}
|
|
49581
|
+
},
|
|
49582
|
+
tags: ["github", "pull-request", "pr", "messages", "comments", "reviews", "conversation"],
|
|
49583
|
+
tool_call_template: {
|
|
49584
|
+
call_template_type: "panel_event",
|
|
49585
|
+
event_type: "github-messages:request"
|
|
49586
|
+
}
|
|
49587
|
+
};
|
|
49588
|
+
const refreshMessagesTool = {
|
|
49589
|
+
name: "refresh_messages",
|
|
49590
|
+
description: "Refresh the conversation thread for the currently viewed issue or pull request.",
|
|
49591
|
+
inputs: {
|
|
49592
|
+
type: "object",
|
|
49593
|
+
properties: {},
|
|
49594
|
+
required: []
|
|
49595
|
+
},
|
|
49596
|
+
outputs: {
|
|
49597
|
+
type: "object",
|
|
49598
|
+
properties: {
|
|
49599
|
+
success: { type: "boolean" }
|
|
49600
|
+
}
|
|
49601
|
+
},
|
|
49602
|
+
tags: ["github", "messages", "refresh", "update"],
|
|
49603
|
+
tool_call_template: {
|
|
49604
|
+
call_template_type: "panel_event",
|
|
49605
|
+
event_type: "github-messages:refresh"
|
|
49606
|
+
}
|
|
49607
|
+
};
|
|
48332
49608
|
const githubTools = [
|
|
48333
49609
|
listRepositoriesTool,
|
|
48334
49610
|
selectRepositoryTool,
|
|
@@ -48337,7 +49613,10 @@ const githubTools = [
|
|
|
48337
49613
|
openRepositorySwitcherTool,
|
|
48338
49614
|
requestGitHubLoginTool,
|
|
48339
49615
|
listIssuesTool,
|
|
48340
|
-
refreshIssuesTool
|
|
49616
|
+
refreshIssuesTool,
|
|
49617
|
+
viewIssueMessagesTool,
|
|
49618
|
+
viewPullRequestMessagesTool,
|
|
49619
|
+
refreshMessagesTool
|
|
48341
49620
|
];
|
|
48342
49621
|
const githubToolsMetadata = {
|
|
48343
49622
|
id: "github-panels",
|
|
@@ -48345,6 +49624,18 @@ const githubToolsMetadata = {
|
|
|
48345
49624
|
description: "Tools for browsing and managing GitHub repositories",
|
|
48346
49625
|
tools: githubTools
|
|
48347
49626
|
};
|
|
49627
|
+
function getTimelineEventType(event) {
|
|
49628
|
+
return event.event;
|
|
49629
|
+
}
|
|
49630
|
+
function isCommentEvent(event) {
|
|
49631
|
+
return event.event === "commented";
|
|
49632
|
+
}
|
|
49633
|
+
function isReviewEvent(event) {
|
|
49634
|
+
return event.event === "reviewed";
|
|
49635
|
+
}
|
|
49636
|
+
function isCommitEvent(event) {
|
|
49637
|
+
return event.event === "committed";
|
|
49638
|
+
}
|
|
48348
49639
|
const panels = [
|
|
48349
49640
|
{
|
|
48350
49641
|
metadata: {
|
|
@@ -48417,6 +49708,16 @@ const panels = [
|
|
|
48417
49708
|
onUnmount: async (_context) => {
|
|
48418
49709
|
console.log("Recent Repositories Panel unmounting");
|
|
48419
49710
|
}
|
|
49711
|
+
},
|
|
49712
|
+
{
|
|
49713
|
+
metadata: GitHubMessagesPanelMetadata,
|
|
49714
|
+
component: GitHubMessagesPanel,
|
|
49715
|
+
onMount: async (_context) => {
|
|
49716
|
+
console.log("GitHub Messages Panel mounted");
|
|
49717
|
+
},
|
|
49718
|
+
onUnmount: async (_context) => {
|
|
49719
|
+
console.log("GitHub Messages Panel unmounting");
|
|
49720
|
+
}
|
|
48420
49721
|
}
|
|
48421
49722
|
];
|
|
48422
49723
|
const onPackageLoad = async () => {
|
|
@@ -48428,6 +49729,7 @@ const onPackageUnload = async () => {
|
|
|
48428
49729
|
export {
|
|
48429
49730
|
GitHubIssueDetailPanel,
|
|
48430
49731
|
GitHubIssuesPanel,
|
|
49732
|
+
GitHubMessagesPanel,
|
|
48431
49733
|
GitHubProjectCard,
|
|
48432
49734
|
GitHubProjectsPanel,
|
|
48433
49735
|
GitHubSearchPanel,
|
|
@@ -48435,8 +49737,12 @@ export {
|
|
|
48435
49737
|
RecentRepositoriesPanel,
|
|
48436
49738
|
addRecentOwner,
|
|
48437
49739
|
addRecentRepository,
|
|
49740
|
+
getTimelineEventType,
|
|
48438
49741
|
githubTools,
|
|
48439
49742
|
githubToolsMetadata,
|
|
49743
|
+
isCommentEvent,
|
|
49744
|
+
isCommitEvent,
|
|
49745
|
+
isReviewEvent,
|
|
48440
49746
|
listIssuesTool,
|
|
48441
49747
|
listRepositoriesTool,
|
|
48442
49748
|
onPackageLoad,
|
|
@@ -48445,8 +49751,11 @@ export {
|
|
|
48445
49751
|
panels,
|
|
48446
49752
|
previewRepositoryTool,
|
|
48447
49753
|
refreshIssuesTool,
|
|
49754
|
+
refreshMessagesTool,
|
|
48448
49755
|
requestGitHubLoginTool,
|
|
48449
49756
|
searchRepositoriesTool,
|
|
48450
|
-
selectRepositoryTool
|
|
49757
|
+
selectRepositoryTool,
|
|
49758
|
+
viewIssueMessagesTool,
|
|
49759
|
+
viewPullRequestMessagesTool
|
|
48451
49760
|
};
|
|
48452
49761
|
//# sourceMappingURL=panels.bundle.js.map
|