@industry-theme/github-panels 0.1.35 → 0.1.36
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":"GitHubIssuesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"GitHubIssuesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA8/BpD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAseD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAExE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -1837,11 +1837,14 @@ ${issue.body}
|
|
|
1837
1837
|
"div",
|
|
1838
1838
|
{
|
|
1839
1839
|
style: {
|
|
1840
|
-
|
|
1840
|
+
height: "40px",
|
|
1841
|
+
minHeight: "40px",
|
|
1842
|
+
padding: "0 16px",
|
|
1841
1843
|
borderBottom: `1px solid ${theme.colors.border}`,
|
|
1842
1844
|
display: "flex",
|
|
1843
1845
|
alignItems: "center",
|
|
1844
|
-
gap: "12px"
|
|
1846
|
+
gap: "12px",
|
|
1847
|
+
boxSizing: "border-box"
|
|
1845
1848
|
},
|
|
1846
1849
|
children: [
|
|
1847
1850
|
/* @__PURE__ */ jsx(Github, { size: 20, color: theme.colors.primary }),
|
|
@@ -1987,7 +1990,7 @@ ${issue.body}
|
|
|
1987
1990
|
]
|
|
1988
1991
|
}
|
|
1989
1992
|
),
|
|
1990
|
-
/* @__PURE__ */ jsx("div", { style: { flex: 1, overflow: "auto"
|
|
1993
|
+
/* @__PURE__ */ jsx("div", { style: { flex: 1, overflow: "auto" }, children: filteredIssues.length === 0 ? /* @__PURE__ */ jsxs(
|
|
1991
1994
|
"div",
|
|
1992
1995
|
{
|
|
1993
1996
|
style: {
|
|
@@ -2024,7 +2027,7 @@ ${issue.body}
|
|
|
2024
2027
|
) : /* @__PURE__ */ jsx(
|
|
2025
2028
|
"div",
|
|
2026
2029
|
{
|
|
2027
|
-
style: { display: "flex", flexDirection: "column"
|
|
2030
|
+
style: { display: "flex", flexDirection: "column" },
|
|
2028
2031
|
children: filteredIssues.map((issue) => /* @__PURE__ */ jsx(
|
|
2029
2032
|
"button",
|
|
2030
2033
|
{
|
|
@@ -2032,9 +2035,10 @@ ${issue.body}
|
|
|
2032
2035
|
onClick: (e) => handleIssueClick(issue, e),
|
|
2033
2036
|
style: {
|
|
2034
2037
|
width: "100%",
|
|
2035
|
-
padding: "12px",
|
|
2036
|
-
borderRadius:
|
|
2037
|
-
border:
|
|
2038
|
+
padding: "8px 12px",
|
|
2039
|
+
borderRadius: 0,
|
|
2040
|
+
border: "none",
|
|
2041
|
+
borderBottom: `1px solid ${selectedIssues.has(issue.number) ? theme.colors.primary : theme.colors.border}`,
|
|
2038
2042
|
backgroundColor: selectedIssues.has(issue.number) ? `${theme.colors.primary}10` : theme.colors.surface,
|
|
2039
2043
|
cursor: "pointer",
|
|
2040
2044
|
textAlign: "left"
|
|
@@ -2604,8 +2608,8 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
2604
2608
|
var _a, _b, _c, _d, _e, _f;
|
|
2605
2609
|
const { theme } = useTheme();
|
|
2606
2610
|
const [selectedRepoId, setSelectedRepoId] = useState(null);
|
|
2607
|
-
const [sortField, setSortField] = useState("
|
|
2608
|
-
const [sortOrder, setSortOrder] = useState("
|
|
2611
|
+
const [sortField, setSortField] = useState("updated");
|
|
2612
|
+
const [sortOrder, setSortOrder] = useState("desc");
|
|
2609
2613
|
const owner = propOwner || ((_b = (_a = context == null ? void 0 : context.currentScope) == null ? void 0 : _a.repository) == null ? void 0 : _b.name);
|
|
2610
2614
|
const ownerSlice = context.getSlice("owner-repositories");
|
|
2611
2615
|
const isLoading = context.isSliceLoading("owner-repositories");
|
|
@@ -2668,7 +2672,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
2668
2672
|
comparison = new Date(b.updated_at || 0).getTime() - new Date(a.updated_at || 0).getTime();
|
|
2669
2673
|
break;
|
|
2670
2674
|
}
|
|
2671
|
-
return sortOrder === "
|
|
2675
|
+
return sortOrder === "asc" ? comparison : -comparison;
|
|
2672
2676
|
});
|
|
2673
2677
|
}, [repositories, sortField, sortOrder]);
|
|
2674
2678
|
const handleSelectRepository = (repo) => {
|
|
@@ -2742,7 +2746,8 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
2742
2746
|
borderBottom: `1px solid ${theme.colors.border}`,
|
|
2743
2747
|
display: "flex",
|
|
2744
2748
|
alignItems: "center",
|
|
2745
|
-
gap: "8px"
|
|
2749
|
+
gap: "8px",
|
|
2750
|
+
boxSizing: "border-box"
|
|
2746
2751
|
},
|
|
2747
2752
|
children: [
|
|
2748
2753
|
/* @__PURE__ */ jsx(Github, { size: 18, color: theme.colors.primary }),
|
|
@@ -2893,8 +2898,7 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
2893
2898
|
{
|
|
2894
2899
|
style: {
|
|
2895
2900
|
flex: 1,
|
|
2896
|
-
overflowY: "auto"
|
|
2897
|
-
padding: "8px"
|
|
2901
|
+
overflowY: "auto"
|
|
2898
2902
|
},
|
|
2899
2903
|
children: sortedRepos.map((repo) => /* @__PURE__ */ jsxs(
|
|
2900
2904
|
"button",
|
|
@@ -2904,10 +2908,11 @@ const OwnerRepositoriesPanelContent = ({
|
|
|
2904
2908
|
onDoubleClick: () => handleOpenRepository(repo),
|
|
2905
2909
|
style: {
|
|
2906
2910
|
width: "100%",
|
|
2907
|
-
padding: "12px",
|
|
2908
|
-
margin:
|
|
2909
|
-
borderRadius:
|
|
2910
|
-
border:
|
|
2911
|
+
padding: "8px 12px",
|
|
2912
|
+
margin: 0,
|
|
2913
|
+
borderRadius: 0,
|
|
2914
|
+
border: "none",
|
|
2915
|
+
borderBottom: selectedRepoId === repo.id ? `2px solid ${theme.colors.primary}` : `1px solid ${theme.colors.border}`,
|
|
2911
2916
|
backgroundColor: selectedRepoId === repo.id ? `${theme.colors.primary}10` : theme.colors.surface,
|
|
2912
2917
|
cursor: "pointer",
|
|
2913
2918
|
textAlign: "left",
|