@industry-theme/git-panels 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuS9D,CAAC;AAwMF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -1191,10 +1191,8 @@ const GitPullRequestsPanel = ({
|
|
|
1191
1191
|
style: {
|
|
1192
1192
|
flex: 1,
|
|
1193
1193
|
overflowY: "auto",
|
|
1194
|
-
padding: "16px",
|
|
1195
1194
|
display: "flex",
|
|
1196
|
-
flexDirection: "column"
|
|
1197
|
-
gap: "12px"
|
|
1195
|
+
flexDirection: "column"
|
|
1198
1196
|
},
|
|
1199
1197
|
children: filteredPullRequests.length === 0 ? /* @__PURE__ */ jsxs(
|
|
1200
1198
|
"div",
|
|
@@ -1239,15 +1237,13 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1239
1237
|
}
|
|
1240
1238
|
},
|
|
1241
1239
|
style: {
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
padding: "16px",
|
|
1240
|
+
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
1241
|
+
padding: "12px 16px",
|
|
1245
1242
|
backgroundColor: theme2.colors.backgroundSecondary,
|
|
1246
1243
|
display: "flex",
|
|
1247
1244
|
flexDirection: "column",
|
|
1248
|
-
gap: "
|
|
1245
|
+
gap: "8px",
|
|
1249
1246
|
cursor: onClick ? "pointer" : "default",
|
|
1250
|
-
transition: "border-color 0.15s ease",
|
|
1251
1247
|
minWidth: 0
|
|
1252
1248
|
},
|
|
1253
1249
|
children: [
|
|
@@ -1256,10 +1252,8 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1256
1252
|
{
|
|
1257
1253
|
style: {
|
|
1258
1254
|
display: "flex",
|
|
1259
|
-
alignItems: "
|
|
1260
|
-
gap: "8px"
|
|
1261
|
-
minWidth: 0,
|
|
1262
|
-
overflow: "hidden"
|
|
1255
|
+
alignItems: "baseline",
|
|
1256
|
+
gap: "8px"
|
|
1263
1257
|
},
|
|
1264
1258
|
children: [
|
|
1265
1259
|
/* @__PURE__ */ jsxs(
|
|
@@ -1278,64 +1272,23 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1278
1272
|
]
|
|
1279
1273
|
}
|
|
1280
1274
|
),
|
|
1281
|
-
|
|
1275
|
+
/* @__PURE__ */ jsx(
|
|
1282
1276
|
"span",
|
|
1283
1277
|
{
|
|
1284
1278
|
style: {
|
|
1285
|
-
padding: "4px 10px",
|
|
1286
|
-
borderRadius: "999px",
|
|
1287
|
-
backgroundColor: theme2.colors.background,
|
|
1288
|
-
color: theme2.colors.textSecondary,
|
|
1289
1279
|
fontFamily: theme2.fonts.heading,
|
|
1290
|
-
fontSize: theme2.fontSizes[
|
|
1280
|
+
fontSize: theme2.fontSizes[2],
|
|
1291
1281
|
fontWeight: 600,
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
},
|
|
1296
|
-
children: "Draft"
|
|
1297
|
-
}
|
|
1298
|
-
),
|
|
1299
|
-
/* @__PURE__ */ jsxs(
|
|
1300
|
-
"span",
|
|
1301
|
-
{
|
|
1302
|
-
style: {
|
|
1303
|
-
display: "inline-flex",
|
|
1304
|
-
alignItems: "center",
|
|
1305
|
-
gap: "6px",
|
|
1306
|
-
color: theme2.colors.textSecondary,
|
|
1307
|
-
fontFamily: theme2.fonts.monospace,
|
|
1308
|
-
fontSize: theme2.fontSizes[0],
|
|
1309
|
-
overflow: "hidden",
|
|
1310
|
-
textOverflow: "ellipsis",
|
|
1311
|
-
whiteSpace: "nowrap",
|
|
1312
|
-
minWidth: 0
|
|
1282
|
+
color: theme2.colors.text,
|
|
1283
|
+
lineHeight: 1.3,
|
|
1284
|
+
wordBreak: "break-word"
|
|
1313
1285
|
},
|
|
1314
|
-
children:
|
|
1315
|
-
/* @__PURE__ */ jsx(GitBranch, { size: 14, style: { flexShrink: 0 } }),
|
|
1316
|
-
((_a = pr.head) == null ? void 0 : _a.ref) ?? "unknown",
|
|
1317
|
-
" → ",
|
|
1318
|
-
((_b = pr.base) == null ? void 0 : _b.ref) ?? "unknown"
|
|
1319
|
-
]
|
|
1286
|
+
children: pr.title
|
|
1320
1287
|
}
|
|
1321
1288
|
)
|
|
1322
1289
|
]
|
|
1323
1290
|
}
|
|
1324
1291
|
),
|
|
1325
|
-
/* @__PURE__ */ jsx(
|
|
1326
|
-
"div",
|
|
1327
|
-
{
|
|
1328
|
-
style: {
|
|
1329
|
-
fontFamily: theme2.fonts.heading,
|
|
1330
|
-
fontSize: theme2.fontSizes[2],
|
|
1331
|
-
fontWeight: 600,
|
|
1332
|
-
color: theme2.colors.text,
|
|
1333
|
-
lineHeight: 1.3,
|
|
1334
|
-
wordBreak: "break-word"
|
|
1335
|
-
},
|
|
1336
|
-
children: pr.title
|
|
1337
|
-
}
|
|
1338
|
-
),
|
|
1339
1292
|
/* @__PURE__ */ jsxs(
|
|
1340
1293
|
"div",
|
|
1341
1294
|
{
|
|
@@ -1349,9 +1302,26 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1349
1302
|
fontSize: theme2.fontSizes[0]
|
|
1350
1303
|
},
|
|
1351
1304
|
children: [
|
|
1305
|
+
pr.draft && /* @__PURE__ */ jsx(
|
|
1306
|
+
"span",
|
|
1307
|
+
{
|
|
1308
|
+
style: {
|
|
1309
|
+
padding: "4px 10px",
|
|
1310
|
+
borderRadius: "999px",
|
|
1311
|
+
backgroundColor: theme2.colors.background,
|
|
1312
|
+
color: theme2.colors.textSecondary,
|
|
1313
|
+
fontFamily: theme2.fonts.heading,
|
|
1314
|
+
fontSize: theme2.fontSizes[0],
|
|
1315
|
+
fontWeight: 600,
|
|
1316
|
+
textTransform: "uppercase",
|
|
1317
|
+
letterSpacing: "0.02em"
|
|
1318
|
+
},
|
|
1319
|
+
children: "Draft"
|
|
1320
|
+
}
|
|
1321
|
+
),
|
|
1352
1322
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
1353
1323
|
"by ",
|
|
1354
|
-
((
|
|
1324
|
+
((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown"
|
|
1355
1325
|
] }),
|
|
1356
1326
|
/* @__PURE__ */ jsxs(
|
|
1357
1327
|
"span",
|
|
@@ -1401,47 +1371,76 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1401
1371
|
]
|
|
1402
1372
|
}
|
|
1403
1373
|
),
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
{
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1374
|
+
/* @__PURE__ */ jsxs(
|
|
1375
|
+
"button",
|
|
1376
|
+
{
|
|
1377
|
+
type: "button",
|
|
1378
|
+
onClick: (e) => {
|
|
1379
|
+
e.stopPropagation();
|
|
1380
|
+
setIsExpanded(!isExpanded);
|
|
1381
|
+
},
|
|
1382
|
+
style: {
|
|
1383
|
+
display: "inline-flex",
|
|
1384
|
+
alignItems: "center",
|
|
1385
|
+
gap: "4px",
|
|
1386
|
+
padding: 0,
|
|
1387
|
+
border: "none",
|
|
1388
|
+
backgroundColor: "transparent",
|
|
1389
|
+
color: theme2.colors.textSecondary,
|
|
1390
|
+
fontFamily: theme2.fonts.body,
|
|
1391
|
+
fontSize: theme2.fontSizes[0],
|
|
1392
|
+
cursor: "pointer"
|
|
1393
|
+
},
|
|
1394
|
+
children: [
|
|
1395
|
+
isExpanded ? /* @__PURE__ */ jsx(ChevronUp, { size: 14 }) : /* @__PURE__ */ jsx(ChevronDown, { size: 14 }),
|
|
1396
|
+
isExpanded ? "Collapse" : "Expand"
|
|
1397
|
+
]
|
|
1398
|
+
}
|
|
1399
|
+
),
|
|
1400
|
+
isExpanded && /* @__PURE__ */ jsxs(
|
|
1401
|
+
"div",
|
|
1402
|
+
{
|
|
1403
|
+
style: {
|
|
1404
|
+
display: "flex",
|
|
1405
|
+
flexDirection: "column",
|
|
1406
|
+
gap: "10px"
|
|
1407
|
+
},
|
|
1408
|
+
children: [
|
|
1409
|
+
/* @__PURE__ */ jsxs(
|
|
1410
|
+
"span",
|
|
1411
|
+
{
|
|
1412
|
+
style: {
|
|
1413
|
+
display: "inline-flex",
|
|
1414
|
+
alignItems: "center",
|
|
1415
|
+
gap: "6px",
|
|
1416
|
+
color: theme2.colors.textSecondary,
|
|
1417
|
+
fontFamily: theme2.fonts.monospace,
|
|
1418
|
+
fontSize: theme2.fontSizes[0]
|
|
1419
|
+
},
|
|
1420
|
+
children: [
|
|
1421
|
+
/* @__PURE__ */ jsx(GitBranch, { size: 14 }),
|
|
1422
|
+
((_b = pr.head) == null ? void 0 : _b.ref) ?? "unknown",
|
|
1423
|
+
" → ",
|
|
1424
|
+
((_c = pr.base) == null ? void 0 : _c.ref) ?? "unknown"
|
|
1425
|
+
]
|
|
1426
|
+
}
|
|
1427
|
+
),
|
|
1428
|
+
pr.body && /* @__PURE__ */ jsx(
|
|
1429
|
+
"div",
|
|
1430
|
+
{
|
|
1431
|
+
style: {
|
|
1432
|
+
color: theme2.colors.textSecondary,
|
|
1433
|
+
fontFamily: theme2.fonts.body,
|
|
1434
|
+
fontSize: theme2.fontSizes[1],
|
|
1435
|
+
lineHeight: 1.5,
|
|
1436
|
+
wordBreak: "break-word"
|
|
1437
|
+
},
|
|
1438
|
+
children: pr.body
|
|
1439
|
+
}
|
|
1440
|
+
)
|
|
1441
|
+
]
|
|
1442
|
+
}
|
|
1443
|
+
)
|
|
1445
1444
|
]
|
|
1446
1445
|
}
|
|
1447
1446
|
);
|