@industry-theme/git-panels 0.1.5 → 0.1.7

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":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAqYrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,CAAC"}
1
+ {"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AA0XrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,CAAC"}
@@ -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,CAyS9D,CAAC;AA0MF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
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"}
@@ -101,17 +101,6 @@ const createLucideIcon = (iconName, iconNode) => {
101
101
  Component.displayName = toPascalCase(iconName);
102
102
  return Component;
103
103
  };
104
- /**
105
- * @license lucide-react v0.552.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */
110
- const __iconNode$l = [
111
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
112
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
113
- ];
114
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$l);
115
104
  /**
116
105
  * @license lucide-react v0.552.0 - ISC
117
106
  *
@@ -365,10 +354,10 @@ const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$1);
365
354
  * See the LICENSE file in the root directory of this source tree.
366
355
  */
367
356
  const __iconNode = [
368
- ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
369
- ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
357
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
358
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
370
359
  ];
371
- const User = createLucideIcon("user", __iconNode);
360
+ const X = createLucideIcon("x", __iconNode);
372
361
  var terminalTheme$1 = {
373
362
  space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
374
363
  fonts: {
@@ -1191,10 +1180,8 @@ const GitPullRequestsPanel = ({
1191
1180
  style: {
1192
1181
  flex: 1,
1193
1182
  overflowY: "auto",
1194
- padding: "16px",
1195
1183
  display: "flex",
1196
- flexDirection: "column",
1197
- gap: "12px"
1184
+ flexDirection: "column"
1198
1185
  },
1199
1186
  children: filteredPullRequests.length === 0 ? /* @__PURE__ */ jsxs(
1200
1187
  "div",
@@ -1239,15 +1226,13 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
1239
1226
  }
1240
1227
  },
1241
1228
  style: {
1242
- border: `1px solid ${theme2.colors.border}`,
1243
- borderRadius: "12px",
1244
- padding: "16px",
1229
+ borderBottom: `1px solid ${theme2.colors.border}`,
1230
+ padding: "12px 16px",
1245
1231
  backgroundColor: theme2.colors.backgroundSecondary,
1246
1232
  display: "flex",
1247
1233
  flexDirection: "column",
1248
- gap: "10px",
1234
+ gap: "8px",
1249
1235
  cursor: onClick ? "pointer" : "default",
1250
- transition: "border-color 0.15s ease",
1251
1236
  minWidth: 0
1252
1237
  },
1253
1238
  children: [
@@ -45589,28 +45574,6 @@ const GitPullRequestDetailPanelContent = ({
45589
45574
  boxSizing: "border-box"
45590
45575
  },
45591
45576
  children: [
45592
- /* @__PURE__ */ jsx(
45593
- "button",
45594
- {
45595
- type: "button",
45596
- onClick: handleBack,
45597
- title: "Back to list",
45598
- style: {
45599
- display: "inline-flex",
45600
- alignItems: "center",
45601
- justifyContent: "center",
45602
- width: "28px",
45603
- height: "28px",
45604
- padding: 0,
45605
- border: `1px solid ${theme2.colors.border}`,
45606
- borderRadius: "6px",
45607
- backgroundColor: theme2.colors.background,
45608
- color: theme2.colors.textSecondary,
45609
- cursor: "pointer"
45610
- },
45611
- children: /* @__PURE__ */ jsx(ArrowLeft, { size: 16 })
45612
- }
45613
- ),
45614
45577
  /* @__PURE__ */ jsxs(
45615
45578
  "span",
45616
45579
  {
@@ -45663,6 +45626,25 @@ const GitPullRequestDetailPanelContent = ({
45663
45626
  ]
45664
45627
  }
45665
45628
  ),
45629
+ /* @__PURE__ */ jsxs(
45630
+ "span",
45631
+ {
45632
+ style: {
45633
+ display: "inline-flex",
45634
+ alignItems: "center",
45635
+ gap: "6px",
45636
+ color: theme2.colors.textSecondary,
45637
+ fontFamily: theme2.fonts.monospace,
45638
+ fontSize: theme2.fontSizes[0]
45639
+ },
45640
+ children: [
45641
+ /* @__PURE__ */ jsx(GitBranch, { size: 14 }),
45642
+ ((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?",
45643
+ " ← ",
45644
+ ((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"
45645
+ ]
45646
+ }
45647
+ ),
45666
45648
  /* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
45667
45649
  /* @__PURE__ */ jsx(
45668
45650
  "a",
@@ -45686,6 +45668,28 @@ const GitPullRequestDetailPanelContent = ({
45686
45668
  },
45687
45669
  children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
45688
45670
  }
45671
+ ),
45672
+ /* @__PURE__ */ jsx(
45673
+ "button",
45674
+ {
45675
+ type: "button",
45676
+ onClick: handleBack,
45677
+ title: "Close",
45678
+ style: {
45679
+ display: "inline-flex",
45680
+ alignItems: "center",
45681
+ justifyContent: "center",
45682
+ width: "28px",
45683
+ height: "28px",
45684
+ padding: 0,
45685
+ border: `1px solid ${theme2.colors.border}`,
45686
+ borderRadius: "6px",
45687
+ backgroundColor: theme2.colors.background,
45688
+ color: theme2.colors.textSecondary,
45689
+ cursor: "pointer"
45690
+ },
45691
+ children: /* @__PURE__ */ jsx(X, { size: 16 })
45692
+ }
45689
45693
  )
45690
45694
  ]
45691
45695
  }
@@ -45714,13 +45718,12 @@ const GitPullRequestDetailPanelContent = ({
45714
45718
  children: selectedPR.title
45715
45719
  }
45716
45720
  ),
45717
- /* @__PURE__ */ jsxs(
45721
+ (totalComments > 0 || !isOpen) && /* @__PURE__ */ jsxs(
45718
45722
  "div",
45719
45723
  {
45720
45724
  style: {
45721
- display: "grid",
45722
- gridTemplateColumns: "repeat(auto-fit, minmax(180px, 1fr))",
45723
- gap: "12px",
45725
+ display: "flex",
45726
+ gap: "16px",
45724
45727
  marginBottom: "20px",
45725
45728
  padding: "12px",
45726
45729
  backgroundColor: theme2.colors.backgroundSecondary,
@@ -45728,34 +45731,6 @@ const GitPullRequestDetailPanelContent = ({
45728
45731
  border: `1px solid ${theme2.colors.border}`
45729
45732
  },
45730
45733
  children: [
45731
- selectedPR.user && /* @__PURE__ */ jsx(
45732
- MetadataRow,
45733
- {
45734
- icon: /* @__PURE__ */ jsx(User, { size: 14 }),
45735
- label: "Author",
45736
- value: selectedPR.user.login,
45737
- theme: theme2
45738
- }
45739
- ),
45740
- /* @__PURE__ */ jsx(
45741
- MetadataRow,
45742
- {
45743
- icon: /* @__PURE__ */ jsx(GitBranch, { size: 14 }),
45744
- label: "Branch",
45745
- value: `${((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?"} ← ${((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"}`,
45746
- mono: true,
45747
- theme: theme2
45748
- }
45749
- ),
45750
- /* @__PURE__ */ jsx(
45751
- MetadataRow,
45752
- {
45753
- icon: /* @__PURE__ */ jsx(Calendar, { size: 14 }),
45754
- label: "Created",
45755
- value: formatDate(selectedPR.created_at),
45756
- theme: theme2
45757
- }
45758
- ),
45759
45734
  totalComments > 0 && /* @__PURE__ */ jsx(
45760
45735
  MetadataRow,
45761
45736
  {