@industry-theme/file-city-panel 0.3.41 → 0.4.0
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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/mocks/panelContext.d.ts.map +1 -1
- package/dist/panels/AgentMailFileCityPanel.d.ts.map +1 -1
- package/dist/panels/AgentMailPanel.d.ts.map +1 -1
- package/dist/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +122 -89
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { codeCityPanelTools, codeCityPanelToolsMetadata, focusBuildingTool, sele
|
|
|
23
23
|
/**
|
|
24
24
|
* Export types for host applications to create the fileCityColorModes slice.
|
|
25
25
|
*/
|
|
26
|
-
export type { FileCityColorModesSliceData, QualitySliceData, ColorMode, ColorModeConfig, FileMetricData, HighlightLayer, CodeCityPanelPropsTyped, CodeCityPanelContext, CommitFilesSliceData, PrFilesSliceData, PackagesSliceData, } from './types';
|
|
26
|
+
export type { FileCityColorModesSliceData, QualitySliceData, ColorMode, ColorModeConfig, FileMetricData, HighlightLayer, CodeCityPanelPropsTyped, CodeCityPanelContext, CommitFilesSliceData, PrFilesSliceData, PackagesSliceData, RepositoryEntrySliceData, } from './types';
|
|
27
27
|
/**
|
|
28
28
|
* Export color mode constants for host applications.
|
|
29
29
|
*/
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAqB,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGhI;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC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AsB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzF,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,YAAY,EACV,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EAIlB,MAAM,UAAU,CAAC;AA+BlB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,iBAAiB,CAAC,KACrC,
|
|
1
|
+
{"version":3,"file":"panelContext.d.ts","sourceRoot":"","sources":["../../src/mocks/panelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EAIlB,MAAM,UAAU,CAAC;AA+BlB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,iBAAiB,CAAC,KACrC,iBA+GF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,YAAY,OAAO,CAAC,YAAY,CAAC,KAChC,YA0BD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,iBAwCnC,CAAC;AAEF;;;GAGG;AACH,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA0E9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentMailFileCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgentMailFileCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"AgentMailFileCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgentMailFileCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAajF,OAAO,KAAK,EAAE,mBAAmB,EAA6B,MAAM,UAAU,CAAC;AAonB/E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMhE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentMailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgentMailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"AgentMailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgentMailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,UAAU,CAAC;AAuf/D;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkCjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAexD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,cAAc,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;YACpG,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACzC,iBAAiB,CAAC,EAAE,KAAK,CAAC;gBAAE,IAAI,EAAE,MAAM,CAAC;gB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KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAGD,YAAY,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAmCpF;;GAEG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAwhE3D,CAAC;AAEF;;;GAGG;AACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -98695,7 +98695,7 @@ const CodeCityPanelContent = ({
|
|
|
98695
98695
|
actions,
|
|
98696
98696
|
events
|
|
98697
98697
|
}) => {
|
|
98698
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
98698
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
98699
98699
|
const autoShowTour = ("autoShowTour" in context ? context.autoShowTour : false) ?? false;
|
|
98700
98700
|
const { theme: theme2 } = useTheme();
|
|
98701
98701
|
const [cityData, setCityData] = useState(null);
|
|
@@ -98761,7 +98761,9 @@ const CodeCityPanelContent = ({
|
|
|
98761
98761
|
const storyboardContextSlice = context.storyboardContext;
|
|
98762
98762
|
const agentHighlightLayersSlice = context.agentHighlightLayers;
|
|
98763
98763
|
const colorModesSlice = context.fileCityColorModes;
|
|
98764
|
+
const repositoryEntrySlice = context.repositoryEntry;
|
|
98764
98765
|
const qualityData = (_c = colorModesSlice == null ? void 0 : colorModesSlice.data) == null ? void 0 : _c.qualityData;
|
|
98766
|
+
const isGitHubPublic = (_e2 = (_d = repositoryEntrySlice == null ? void 0 : repositoryEntrySlice.data) == null ? void 0 : _d.github) == null ? void 0 : _e2.isPublic;
|
|
98765
98767
|
const packagesSlice = context.packages;
|
|
98766
98768
|
const fileColorLayersRegistered = useRef(false);
|
|
98767
98769
|
const gitLayersRegistered = useRef(false);
|
|
@@ -98769,7 +98771,7 @@ const CodeCityPanelContent = ({
|
|
|
98769
98771
|
const commitFilesLayersRegistered = useRef(false);
|
|
98770
98772
|
const agentLayersRegistered = useRef(false);
|
|
98771
98773
|
const lastHasGitOrAgentLayers = useRef(null);
|
|
98772
|
-
const currentRepoPath = (
|
|
98774
|
+
const currentRepoPath = (_f = context.currentScope.repository) == null ? void 0 : _f.path;
|
|
98773
98775
|
const lastRepoPath = useRef(currentRepoPath);
|
|
98774
98776
|
useEffect(() => {
|
|
98775
98777
|
if (lastRepoPath.current !== currentRepoPath) {
|
|
@@ -98825,7 +98827,7 @@ const CodeCityPanelContent = ({
|
|
|
98825
98827
|
}
|
|
98826
98828
|
};
|
|
98827
98829
|
loadTour();
|
|
98828
|
-
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (
|
|
98830
|
+
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (_g = context.currentScope.repository) == null ? void 0 : _g.path, context.adapters]);
|
|
98829
98831
|
useEffect(() => {
|
|
98830
98832
|
if (autoShowTour && tourData && !hasAutoShownTourRef.current) {
|
|
98831
98833
|
setShowTourPlayer(true);
|
|
@@ -99097,7 +99099,7 @@ const CodeCityPanelContent = ({
|
|
|
99097
99099
|
}
|
|
99098
99100
|
}
|
|
99099
99101
|
return layers;
|
|
99100
|
-
}, [cityData, (
|
|
99102
|
+
}, [cityData, (_h = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _h.filesByStatus, prFilesVersion]);
|
|
99101
99103
|
const commitFilesLayers = useMemo(() => {
|
|
99102
99104
|
var _a2;
|
|
99103
99105
|
if (!cityData || !cityData.buildings || !((_a2 = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) {
|
|
@@ -99175,7 +99177,7 @@ const CodeCityPanelContent = ({
|
|
|
99175
99177
|
}
|
|
99176
99178
|
}
|
|
99177
99179
|
return layers;
|
|
99178
|
-
}, [cityData, (
|
|
99180
|
+
}, [cityData, (_i = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _i.filesByStatus, commitFilesVersion]);
|
|
99179
99181
|
const storyboardLayers = useMemo(() => {
|
|
99180
99182
|
if (!cityData || !cityData.buildings || !(storyboardContextSlice == null ? void 0 : storyboardContextSlice.data)) {
|
|
99181
99183
|
return [];
|
|
@@ -99276,7 +99278,7 @@ const CodeCityPanelContent = ({
|
|
|
99276
99278
|
if (!((_a2 = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) return 0;
|
|
99277
99279
|
const { added, modified, removed, renamed } = prFilesSlice.data.filesByStatus;
|
|
99278
99280
|
return added.length + modified.length + removed.length + renamed.length;
|
|
99279
|
-
}, [(
|
|
99281
|
+
}, [(_j = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _j.filesByStatus]);
|
|
99280
99282
|
const legendAgentLayers = useMemo(() => {
|
|
99281
99283
|
const agentLayers = highlightLayers.filter(
|
|
99282
99284
|
(layer) => layer.id.startsWith("event-highlight")
|
|
@@ -99569,7 +99571,7 @@ const CodeCityPanelContent = ({
|
|
|
99569
99571
|
} finally {
|
|
99570
99572
|
setLoading(false);
|
|
99571
99573
|
}
|
|
99572
|
-
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, fileTreeSlice == null ? void 0 : fileTreeSlice.loading, (
|
|
99574
|
+
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, fileTreeSlice == null ? void 0 : fileTreeSlice.loading, (_k = context.currentScope.repository) == null ? void 0 : _k.path]);
|
|
99573
99575
|
const handleFileClick = useCallback(
|
|
99574
99576
|
(filePath, type) => {
|
|
99575
99577
|
if (type === "file") {
|
|
@@ -99795,7 +99797,7 @@ const CodeCityPanelContent = ({
|
|
|
99795
99797
|
path: tourFilePath,
|
|
99796
99798
|
commitSha
|
|
99797
99799
|
};
|
|
99798
|
-
}, [tourFilePath, context.currentScope.repository, (
|
|
99800
|
+
}, [tourFilePath, context.currentScope.repository, (_m = (_l = fileTreeSlice == null ? void 0 : fileTreeSlice.data) == null ? void 0 : _l.metadata) == null ? void 0 : _m.sourceSha]);
|
|
99799
99801
|
return /* @__PURE__ */ jsxs(
|
|
99800
99802
|
"div",
|
|
99801
99803
|
{
|
|
@@ -99807,92 +99809,35 @@ const CodeCityPanelContent = ({
|
|
|
99807
99809
|
backgroundColor: theme2.colors.background
|
|
99808
99810
|
},
|
|
99809
99811
|
children: [
|
|
99810
|
-
/* @__PURE__ */
|
|
99812
|
+
/* @__PURE__ */ jsxs(
|
|
99811
99813
|
"div",
|
|
99812
99814
|
{
|
|
99813
99815
|
style: {
|
|
99814
|
-
display: "flex",
|
|
99815
|
-
alignItems: "center",
|
|
99816
|
-
justifyContent: loading || !cityData ? "center" : "space-between",
|
|
99817
|
-
padding: "0 16px",
|
|
99818
99816
|
height: "40px",
|
|
99817
|
+
padding: "0 16px",
|
|
99818
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
99819
99819
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
99820
|
-
|
|
99821
|
-
|
|
99822
|
-
gap: "
|
|
99820
|
+
display: "flex",
|
|
99821
|
+
alignItems: "center",
|
|
99822
|
+
gap: "8px",
|
|
99823
|
+
flexShrink: 0
|
|
99823
99824
|
},
|
|
99824
|
-
children:
|
|
99825
|
-
/* @__PURE__ */ jsx(
|
|
99826
|
-
/* @__PURE__ */ jsx(
|
|
99827
|
-
|
|
99828
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
99829
|
-
/* @__PURE__ */ jsxs(
|
|
99830
|
-
"div",
|
|
99831
|
-
{
|
|
99832
|
-
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
99833
|
-
title: `${computedTreeStats.fileCount.toLocaleString()} files`,
|
|
99834
|
-
children: [
|
|
99835
|
-
/* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
99836
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
99837
|
-
computedTreeStats.fileCount.toLocaleString(),
|
|
99838
|
-
!headerCompact && " files"
|
|
99839
|
-
] })
|
|
99840
|
-
]
|
|
99841
|
-
}
|
|
99842
|
-
),
|
|
99843
|
-
/* @__PURE__ */ jsxs(
|
|
99844
|
-
"div",
|
|
99845
|
-
{
|
|
99846
|
-
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
99847
|
-
title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
|
|
99848
|
-
children: [
|
|
99849
|
-
/* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
99850
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
99851
|
-
computedTreeStats.directoryCount.toLocaleString(),
|
|
99852
|
-
!headerCompact && " folders"
|
|
99853
|
-
] })
|
|
99854
|
-
]
|
|
99855
|
-
}
|
|
99856
|
-
)
|
|
99857
|
-
] }) }),
|
|
99858
|
-
!showTourPlayer && tourData && /* @__PURE__ */ jsxs(
|
|
99859
|
-
"button",
|
|
99825
|
+
children: [
|
|
99826
|
+
isGitHubPublic === false ? /* @__PURE__ */ jsx(Lock, { size: 16, color: theme2.colors.textSecondary }) : isGitHubPublic === true ? /* @__PURE__ */ jsx(Globe, { size: 16, color: theme2.colors.textSecondary }) : /* @__PURE__ */ jsx(Building2, { size: 16, color: theme2.colors.primary }),
|
|
99827
|
+
/* @__PURE__ */ jsx(
|
|
99828
|
+
"span",
|
|
99860
99829
|
{
|
|
99861
|
-
onClick: () => {
|
|
99862
|
-
setShowTourPlayer(true);
|
|
99863
|
-
},
|
|
99864
99830
|
style: {
|
|
99865
|
-
|
|
99866
|
-
alignItems: "center",
|
|
99867
|
-
gap: "4px",
|
|
99868
|
-
padding: "4px 8px",
|
|
99869
|
-
backgroundColor: "transparent",
|
|
99870
|
-
color: theme2.colors.primary,
|
|
99871
|
-
border: `1px solid ${theme2.colors.border}`,
|
|
99872
|
-
borderRadius: "4px",
|
|
99873
|
-
fontSize: theme2.fontSizes[0],
|
|
99831
|
+
fontSize: theme2.fontSizes[1],
|
|
99874
99832
|
fontFamily: theme2.fonts.body,
|
|
99875
|
-
|
|
99876
|
-
|
|
99877
|
-
transition: "all 0.2s",
|
|
99878
|
-
flexShrink: 0
|
|
99879
|
-
},
|
|
99880
|
-
onMouseEnter: (e) => {
|
|
99881
|
-
e.currentTarget.style.backgroundColor = theme2.colors.primary + "10";
|
|
99882
|
-
e.currentTarget.style.borderColor = theme2.colors.primary;
|
|
99883
|
-
},
|
|
99884
|
-
onMouseLeave: (e) => {
|
|
99885
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
99886
|
-
e.currentTarget.style.borderColor = theme2.colors.border;
|
|
99833
|
+
color: theme2.colors.textSecondary,
|
|
99834
|
+
flex: 1
|
|
99887
99835
|
},
|
|
99888
|
-
title: "
|
|
99889
|
-
children:
|
|
99890
|
-
/* @__PURE__ */ jsx(BookOpen, { size: 12 }),
|
|
99891
|
-
"Tour"
|
|
99892
|
-
]
|
|
99836
|
+
title: isGitHubPublic === false ? "This repository is private on GitHub" : isGitHubPublic === true ? "This repository is public on GitHub" : void 0,
|
|
99837
|
+
children: isGitHubPublic === false ? "Private Repo" : isGitHubPublic === true ? "Public Repo" : "File City"
|
|
99893
99838
|
}
|
|
99894
99839
|
)
|
|
99895
|
-
]
|
|
99840
|
+
]
|
|
99896
99841
|
}
|
|
99897
99842
|
),
|
|
99898
99843
|
/* @__PURE__ */ jsxs(
|
|
@@ -100127,14 +100072,14 @@ const CodeCityPanelContent = ({
|
|
|
100127
100072
|
workspacePackageCount: legendPackageData.workspacePackageCount,
|
|
100128
100073
|
gitStatus: gitSlice == null ? void 0 : gitSlice.data,
|
|
100129
100074
|
panelActions: actions,
|
|
100130
|
-
prFiles: (
|
|
100131
|
-
prFileStats: (
|
|
100132
|
-
prNumber: (
|
|
100133
|
-
commitFiles: (
|
|
100134
|
-
commitHash: (
|
|
100135
|
-
commitStats: (
|
|
100075
|
+
prFiles: (_n = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _n.filesByStatus,
|
|
100076
|
+
prFileStats: (_o = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _o.files,
|
|
100077
|
+
prNumber: (_p = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _p.pullNumber,
|
|
100078
|
+
commitFiles: (_q = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _q.filesByStatus,
|
|
100079
|
+
commitHash: (_r = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _r.commitHash,
|
|
100080
|
+
commitStats: (_s = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _s.stats,
|
|
100136
100081
|
fileTree: fileTreeSlice == null ? void 0 : fileTreeSlice.data,
|
|
100137
|
-
rootPath: (
|
|
100082
|
+
rootPath: (_t = context.currentScope.repository) == null ? void 0 : _t.path,
|
|
100138
100083
|
onGitFileClick: handleLegendFileClick,
|
|
100139
100084
|
onGitNodeHover: handleGitNodeHover,
|
|
100140
100085
|
onPrFileClick: handleLegendFileClick,
|
|
@@ -100313,6 +100258,94 @@ const CodeCityPanelContent = ({
|
|
|
100313
100258
|
]
|
|
100314
100259
|
}
|
|
100315
100260
|
),
|
|
100261
|
+
/* @__PURE__ */ jsx(
|
|
100262
|
+
"div",
|
|
100263
|
+
{
|
|
100264
|
+
style: {
|
|
100265
|
+
display: "flex",
|
|
100266
|
+
alignItems: "center",
|
|
100267
|
+
justifyContent: loading || !cityData ? "center" : "space-between",
|
|
100268
|
+
padding: "0 16px",
|
|
100269
|
+
height: "40px",
|
|
100270
|
+
borderTop: `1px solid ${theme2.colors.border}`,
|
|
100271
|
+
backgroundColor: theme2.colors.background,
|
|
100272
|
+
flexShrink: 0,
|
|
100273
|
+
gap: "12px"
|
|
100274
|
+
},
|
|
100275
|
+
children: loading || !cityData ? /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
|
|
100276
|
+
/* @__PURE__ */ jsx(Building2, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
100277
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.textSecondary }, children: "Building File City..." })
|
|
100278
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
100279
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
100280
|
+
/* @__PURE__ */ jsxs(
|
|
100281
|
+
"div",
|
|
100282
|
+
{
|
|
100283
|
+
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
100284
|
+
title: `${computedTreeStats.fileCount.toLocaleString()} files`,
|
|
100285
|
+
children: [
|
|
100286
|
+
/* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
100287
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
100288
|
+
computedTreeStats.fileCount.toLocaleString(),
|
|
100289
|
+
!headerCompact && " files"
|
|
100290
|
+
] })
|
|
100291
|
+
]
|
|
100292
|
+
}
|
|
100293
|
+
),
|
|
100294
|
+
/* @__PURE__ */ jsxs(
|
|
100295
|
+
"div",
|
|
100296
|
+
{
|
|
100297
|
+
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
100298
|
+
title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
|
|
100299
|
+
children: [
|
|
100300
|
+
/* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
100301
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
100302
|
+
computedTreeStats.directoryCount.toLocaleString(),
|
|
100303
|
+
!headerCompact && " folders"
|
|
100304
|
+
] })
|
|
100305
|
+
]
|
|
100306
|
+
}
|
|
100307
|
+
)
|
|
100308
|
+
] }) }),
|
|
100309
|
+
!showTourPlayer && tourData && /* @__PURE__ */ jsxs(
|
|
100310
|
+
"button",
|
|
100311
|
+
{
|
|
100312
|
+
onClick: () => {
|
|
100313
|
+
setShowTourPlayer(true);
|
|
100314
|
+
},
|
|
100315
|
+
style: {
|
|
100316
|
+
display: "flex",
|
|
100317
|
+
alignItems: "center",
|
|
100318
|
+
gap: "4px",
|
|
100319
|
+
padding: "4px 8px",
|
|
100320
|
+
backgroundColor: "transparent",
|
|
100321
|
+
color: theme2.colors.primary,
|
|
100322
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
100323
|
+
borderRadius: "4px",
|
|
100324
|
+
fontSize: theme2.fontSizes[0],
|
|
100325
|
+
fontFamily: theme2.fonts.body,
|
|
100326
|
+
fontWeight: 500,
|
|
100327
|
+
cursor: "pointer",
|
|
100328
|
+
transition: "all 0.2s",
|
|
100329
|
+
flexShrink: 0
|
|
100330
|
+
},
|
|
100331
|
+
onMouseEnter: (e) => {
|
|
100332
|
+
e.currentTarget.style.backgroundColor = theme2.colors.primary + "10";
|
|
100333
|
+
e.currentTarget.style.borderColor = theme2.colors.primary;
|
|
100334
|
+
},
|
|
100335
|
+
onMouseLeave: (e) => {
|
|
100336
|
+
e.currentTarget.style.backgroundColor = "transparent";
|
|
100337
|
+
e.currentTarget.style.borderColor = theme2.colors.border;
|
|
100338
|
+
},
|
|
100339
|
+
title: "Take a guided tour",
|
|
100340
|
+
children: [
|
|
100341
|
+
/* @__PURE__ */ jsx(BookOpen, { size: 12 }),
|
|
100342
|
+
"Tour"
|
|
100343
|
+
]
|
|
100344
|
+
}
|
|
100345
|
+
)
|
|
100346
|
+
] })
|
|
100347
|
+
}
|
|
100348
|
+
),
|
|
100316
100349
|
isEditingCover && selectedPackagePath && /* @__PURE__ */ jsx(
|
|
100317
100350
|
CoverEditor,
|
|
100318
100351
|
{
|