@industry-theme/file-city-panel 0.3.40 → 0.3.42
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/components/TourPlayer.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels.bundle.js +130 -130
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TourPlayer.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAexE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAKrE,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,EAAE,gBAAgB,CAAC;IAEvB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEvE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE1E,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI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,CAAC;IAEvE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE1E,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAE5D,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,qIAAqI;IACrI,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAE3D,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAEpC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,iEAAiE;IACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAG9B,2GAA2G;IAC3G,YAAY,CAAC,EAAE,sBAAsB,CAAC;CACvC;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiiChD,CAAC"}
|
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,eAAe,CAAC,YAAY,EAAE,oBAAoB,CAAC,GAAG,eAAe,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC,EAuEnI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,YAAY,EACV,2BAA2B,EAC3B,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,EAEd,uBAAuB,EACvB,oBAAoB,EAEpB,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,
|
|
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,S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AAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,YAAY,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAE1F;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,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":"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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AE,CAAC,uBAAuB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -96130,21 +96130,10 @@ const TourPlayer = ({
|
|
|
96130
96130
|
[onInteractiveAction]
|
|
96131
96131
|
);
|
|
96132
96132
|
useEffect(() => {
|
|
96133
|
-
|
|
96134
|
-
hasFetchAudioUrls: !!(actions == null ? void 0 : actions.fetchAudioUrls),
|
|
96135
|
-
tourAudioContext
|
|
96136
|
-
});
|
|
96137
|
-
if (!(actions == null ? void 0 : actions.fetchAudioUrls) || !tourAudioContext) {
|
|
96138
|
-
console.log("[TourPlayer] ❌ Skipping audio fetch:", {
|
|
96139
|
-
reason: !(actions == null ? void 0 : actions.fetchAudioUrls) ? "no fetchAudioUrls action" : "no tourAudioContext"
|
|
96140
|
-
});
|
|
96141
|
-
return;
|
|
96142
|
-
}
|
|
96143
|
-
console.log("[TourPlayer] ✅ Fetching audio URLs...", tourAudioContext);
|
|
96133
|
+
if (!(actions == null ? void 0 : actions.fetchAudioUrls) || !tourAudioContext) return;
|
|
96144
96134
|
async function loadAudio() {
|
|
96145
96135
|
try {
|
|
96146
96136
|
const urls = await actions.fetchAudioUrls(tourAudioContext);
|
|
96147
|
-
console.log("[TourPlayer] ✅ Audio URLs loaded:", urls.size, "URLs");
|
|
96148
96137
|
setAudioUrls(urls);
|
|
96149
96138
|
} catch (error) {
|
|
96150
96139
|
console.error("[TourPlayer] Failed to fetch audio URLs:", error);
|
|
@@ -98706,7 +98695,7 @@ const CodeCityPanelContent = ({
|
|
|
98706
98695
|
actions,
|
|
98707
98696
|
events
|
|
98708
98697
|
}) => {
|
|
98709
|
-
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;
|
|
98710
98699
|
const autoShowTour = ("autoShowTour" in context ? context.autoShowTour : false) ?? false;
|
|
98711
98700
|
const { theme: theme2 } = useTheme();
|
|
98712
98701
|
const [cityData, setCityData] = useState(null);
|
|
@@ -98772,7 +98761,9 @@ const CodeCityPanelContent = ({
|
|
|
98772
98761
|
const storyboardContextSlice = context.storyboardContext;
|
|
98773
98762
|
const agentHighlightLayersSlice = context.agentHighlightLayers;
|
|
98774
98763
|
const colorModesSlice = context.fileCityColorModes;
|
|
98764
|
+
const repositoryEntrySlice = context.repositoryEntry;
|
|
98775
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;
|
|
98776
98767
|
const packagesSlice = context.packages;
|
|
98777
98768
|
const fileColorLayersRegistered = useRef(false);
|
|
98778
98769
|
const gitLayersRegistered = useRef(false);
|
|
@@ -98780,7 +98771,7 @@ const CodeCityPanelContent = ({
|
|
|
98780
98771
|
const commitFilesLayersRegistered = useRef(false);
|
|
98781
98772
|
const agentLayersRegistered = useRef(false);
|
|
98782
98773
|
const lastHasGitOrAgentLayers = useRef(null);
|
|
98783
|
-
const currentRepoPath = (
|
|
98774
|
+
const currentRepoPath = (_f = context.currentScope.repository) == null ? void 0 : _f.path;
|
|
98784
98775
|
const lastRepoPath = useRef(currentRepoPath);
|
|
98785
98776
|
useEffect(() => {
|
|
98786
98777
|
if (lastRepoPath.current !== currentRepoPath) {
|
|
@@ -98836,7 +98827,7 @@ const CodeCityPanelContent = ({
|
|
|
98836
98827
|
}
|
|
98837
98828
|
};
|
|
98838
98829
|
loadTour();
|
|
98839
|
-
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (
|
|
98830
|
+
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, (_g = context.currentScope.repository) == null ? void 0 : _g.path, context.adapters]);
|
|
98840
98831
|
useEffect(() => {
|
|
98841
98832
|
if (autoShowTour && tourData && !hasAutoShownTourRef.current) {
|
|
98842
98833
|
setShowTourPlayer(true);
|
|
@@ -99108,7 +99099,7 @@ const CodeCityPanelContent = ({
|
|
|
99108
99099
|
}
|
|
99109
99100
|
}
|
|
99110
99101
|
return layers;
|
|
99111
|
-
}, [cityData, (
|
|
99102
|
+
}, [cityData, (_h = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _h.filesByStatus, prFilesVersion]);
|
|
99112
99103
|
const commitFilesLayers = useMemo(() => {
|
|
99113
99104
|
var _a2;
|
|
99114
99105
|
if (!cityData || !cityData.buildings || !((_a2 = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) {
|
|
@@ -99186,7 +99177,7 @@ const CodeCityPanelContent = ({
|
|
|
99186
99177
|
}
|
|
99187
99178
|
}
|
|
99188
99179
|
return layers;
|
|
99189
|
-
}, [cityData, (
|
|
99180
|
+
}, [cityData, (_i = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _i.filesByStatus, commitFilesVersion]);
|
|
99190
99181
|
const storyboardLayers = useMemo(() => {
|
|
99191
99182
|
if (!cityData || !cityData.buildings || !(storyboardContextSlice == null ? void 0 : storyboardContextSlice.data)) {
|
|
99192
99183
|
return [];
|
|
@@ -99287,7 +99278,7 @@ const CodeCityPanelContent = ({
|
|
|
99287
99278
|
if (!((_a2 = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _a2.filesByStatus)) return 0;
|
|
99288
99279
|
const { added, modified, removed, renamed } = prFilesSlice.data.filesByStatus;
|
|
99289
99280
|
return added.length + modified.length + removed.length + renamed.length;
|
|
99290
|
-
}, [(
|
|
99281
|
+
}, [(_j = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _j.filesByStatus]);
|
|
99291
99282
|
const legendAgentLayers = useMemo(() => {
|
|
99292
99283
|
const agentLayers = highlightLayers.filter(
|
|
99293
99284
|
(layer) => layer.id.startsWith("event-highlight")
|
|
@@ -99580,7 +99571,7 @@ const CodeCityPanelContent = ({
|
|
|
99580
99571
|
} finally {
|
|
99581
99572
|
setLoading(false);
|
|
99582
99573
|
}
|
|
99583
|
-
}, [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]);
|
|
99584
99575
|
const handleFileClick = useCallback(
|
|
99585
99576
|
(filePath, type) => {
|
|
99586
99577
|
if (type === "file") {
|
|
@@ -99792,43 +99783,21 @@ const CodeCityPanelContent = ({
|
|
|
99792
99783
|
return layers;
|
|
99793
99784
|
}, [highlightLayers, gitTreeHoverLayer, selectedFileLayer, previewCoverLayer, hoveredPackagePath, selectedPackagePath, isFileInPackage, tourHighlightLayers]);
|
|
99794
99785
|
const tourAudioContext = useMemo(() => {
|
|
99795
|
-
var _a2, _b2, _c2
|
|
99796
|
-
|
|
99797
|
-
|
|
99798
|
-
|
|
99799
|
-
fileTreeSliceData: (fileTreeSlice == null ? void 0 : fileTreeSlice.data) ? {
|
|
99800
|
-
hasMetadata: !!fileTreeSlice.data.metadata,
|
|
99801
|
-
metadata: fileTreeSlice.data.metadata,
|
|
99802
|
-
sourceSha: (_b2 = (_a2 = fileTreeSlice.data) == null ? void 0 : _a2.metadata) == null ? void 0 : _b2.sourceSha
|
|
99803
|
-
} : null
|
|
99804
|
-
});
|
|
99805
|
-
if (!tourFilePath) {
|
|
99806
|
-
console.log("[TourAudioContext] ❌ No tourFilePath");
|
|
99807
|
-
return void 0;
|
|
99808
|
-
}
|
|
99809
|
-
const githubRepo = (_c2 = context.currentScope.repository) == null ? void 0 : _c2.githubRepo;
|
|
99810
|
-
if (!githubRepo || !githubRepo.includes("/")) {
|
|
99811
|
-
console.log("[TourAudioContext] ❌ No valid githubRepo:", githubRepo);
|
|
99812
|
-
return void 0;
|
|
99813
|
-
}
|
|
99786
|
+
var _a2, _b2, _c2;
|
|
99787
|
+
if (!tourFilePath) return void 0;
|
|
99788
|
+
const githubRepo = (_a2 = context.currentScope.repository) == null ? void 0 : _a2.githubRepo;
|
|
99789
|
+
if (!githubRepo || !githubRepo.includes("/")) return void 0;
|
|
99814
99790
|
const [owner, repo] = githubRepo.split("/");
|
|
99815
|
-
if (!owner || !repo)
|
|
99816
|
-
|
|
99817
|
-
|
|
99818
|
-
}
|
|
99819
|
-
const commitSha = (_e3 = (_d2 = fileTreeSlice == null ? void 0 : fileTreeSlice.data) == null ? void 0 : _d2.metadata) == null ? void 0 : _e3.sourceSha;
|
|
99820
|
-
if (!commitSha) {
|
|
99821
|
-
console.log("[TourAudioContext] ❌ No commitSha in fileTree metadata");
|
|
99822
|
-
return void 0;
|
|
99823
|
-
}
|
|
99824
|
-
console.log("[TourAudioContext] ✅ All conditions met:", { owner, repo, path: tourFilePath, commitSha });
|
|
99791
|
+
if (!owner || !repo) return void 0;
|
|
99792
|
+
const commitSha = (_c2 = (_b2 = fileTreeSlice == null ? void 0 : fileTreeSlice.data) == null ? void 0 : _b2.metadata) == null ? void 0 : _c2.sourceSha;
|
|
99793
|
+
if (!commitSha) return void 0;
|
|
99825
99794
|
return {
|
|
99826
99795
|
owner,
|
|
99827
99796
|
repo,
|
|
99828
99797
|
path: tourFilePath,
|
|
99829
99798
|
commitSha
|
|
99830
99799
|
};
|
|
99831
|
-
}, [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]);
|
|
99832
99801
|
return /* @__PURE__ */ jsxs(
|
|
99833
99802
|
"div",
|
|
99834
99803
|
{
|
|
@@ -99840,92 +99809,35 @@ const CodeCityPanelContent = ({
|
|
|
99840
99809
|
backgroundColor: theme2.colors.background
|
|
99841
99810
|
},
|
|
99842
99811
|
children: [
|
|
99843
|
-
/* @__PURE__ */
|
|
99812
|
+
/* @__PURE__ */ jsxs(
|
|
99844
99813
|
"div",
|
|
99845
99814
|
{
|
|
99846
99815
|
style: {
|
|
99847
|
-
display: "flex",
|
|
99848
|
-
alignItems: "center",
|
|
99849
|
-
justifyContent: loading || !cityData ? "center" : "space-between",
|
|
99850
|
-
padding: "0 16px",
|
|
99851
99816
|
height: "40px",
|
|
99817
|
+
padding: "0 16px",
|
|
99818
|
+
backgroundColor: theme2.colors.backgroundSecondary,
|
|
99852
99819
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
99853
|
-
|
|
99854
|
-
|
|
99855
|
-
gap: "
|
|
99820
|
+
display: "flex",
|
|
99821
|
+
alignItems: "center",
|
|
99822
|
+
gap: "8px",
|
|
99823
|
+
flexShrink: 0
|
|
99856
99824
|
},
|
|
99857
|
-
children:
|
|
99858
|
-
/* @__PURE__ */ jsx(
|
|
99859
|
-
/* @__PURE__ */ jsx(
|
|
99860
|
-
|
|
99861
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
99862
|
-
/* @__PURE__ */ jsxs(
|
|
99863
|
-
"div",
|
|
99864
|
-
{
|
|
99865
|
-
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
99866
|
-
title: `${computedTreeStats.fileCount.toLocaleString()} files`,
|
|
99867
|
-
children: [
|
|
99868
|
-
/* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
99869
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
99870
|
-
computedTreeStats.fileCount.toLocaleString(),
|
|
99871
|
-
!headerCompact && " files"
|
|
99872
|
-
] })
|
|
99873
|
-
]
|
|
99874
|
-
}
|
|
99875
|
-
),
|
|
99876
|
-
/* @__PURE__ */ jsxs(
|
|
99877
|
-
"div",
|
|
99878
|
-
{
|
|
99879
|
-
style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
|
|
99880
|
-
title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
|
|
99881
|
-
children: [
|
|
99882
|
-
/* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
|
|
99883
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
|
|
99884
|
-
computedTreeStats.directoryCount.toLocaleString(),
|
|
99885
|
-
!headerCompact && " folders"
|
|
99886
|
-
] })
|
|
99887
|
-
]
|
|
99888
|
-
}
|
|
99889
|
-
)
|
|
99890
|
-
] }) }),
|
|
99891
|
-
!showTourPlayer && tourData && /* @__PURE__ */ jsxs(
|
|
99892
|
-
"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",
|
|
99893
99829
|
{
|
|
99894
|
-
onClick: () => {
|
|
99895
|
-
setShowTourPlayer(true);
|
|
99896
|
-
},
|
|
99897
99830
|
style: {
|
|
99898
|
-
|
|
99899
|
-
alignItems: "center",
|
|
99900
|
-
gap: "4px",
|
|
99901
|
-
padding: "4px 8px",
|
|
99902
|
-
backgroundColor: "transparent",
|
|
99903
|
-
color: theme2.colors.primary,
|
|
99904
|
-
border: `1px solid ${theme2.colors.border}`,
|
|
99905
|
-
borderRadius: "4px",
|
|
99906
|
-
fontSize: theme2.fontSizes[0],
|
|
99831
|
+
fontSize: theme2.fontSizes[1],
|
|
99907
99832
|
fontFamily: theme2.fonts.body,
|
|
99908
|
-
|
|
99909
|
-
|
|
99910
|
-
transition: "all 0.2s",
|
|
99911
|
-
flexShrink: 0
|
|
99912
|
-
},
|
|
99913
|
-
onMouseEnter: (e) => {
|
|
99914
|
-
e.currentTarget.style.backgroundColor = theme2.colors.primary + "10";
|
|
99915
|
-
e.currentTarget.style.borderColor = theme2.colors.primary;
|
|
99916
|
-
},
|
|
99917
|
-
onMouseLeave: (e) => {
|
|
99918
|
-
e.currentTarget.style.backgroundColor = "transparent";
|
|
99919
|
-
e.currentTarget.style.borderColor = theme2.colors.border;
|
|
99833
|
+
color: theme2.colors.textSecondary,
|
|
99834
|
+
flex: 1
|
|
99920
99835
|
},
|
|
99921
|
-
title: "
|
|
99922
|
-
children:
|
|
99923
|
-
/* @__PURE__ */ jsx(BookOpen, { size: 12 }),
|
|
99924
|
-
"Tour"
|
|
99925
|
-
]
|
|
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"
|
|
99926
99838
|
}
|
|
99927
99839
|
)
|
|
99928
|
-
]
|
|
99840
|
+
]
|
|
99929
99841
|
}
|
|
99930
99842
|
),
|
|
99931
99843
|
/* @__PURE__ */ jsxs(
|
|
@@ -100160,14 +100072,14 @@ const CodeCityPanelContent = ({
|
|
|
100160
100072
|
workspacePackageCount: legendPackageData.workspacePackageCount,
|
|
100161
100073
|
gitStatus: gitSlice == null ? void 0 : gitSlice.data,
|
|
100162
100074
|
panelActions: actions,
|
|
100163
|
-
prFiles: (
|
|
100164
|
-
prFileStats: (
|
|
100165
|
-
prNumber: (
|
|
100166
|
-
commitFiles: (
|
|
100167
|
-
commitHash: (
|
|
100168
|
-
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,
|
|
100169
100081
|
fileTree: fileTreeSlice == null ? void 0 : fileTreeSlice.data,
|
|
100170
|
-
rootPath: (
|
|
100082
|
+
rootPath: (_t = context.currentScope.repository) == null ? void 0 : _t.path,
|
|
100171
100083
|
onGitFileClick: handleLegendFileClick,
|
|
100172
100084
|
onGitNodeHover: handleGitNodeHover,
|
|
100173
100085
|
onPrFileClick: handleLegendFileClick,
|
|
@@ -100346,6 +100258,94 @@ const CodeCityPanelContent = ({
|
|
|
100346
100258
|
]
|
|
100347
100259
|
}
|
|
100348
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
|
+
),
|
|
100349
100349
|
isEditingCover && selectedPackagePath && /* @__PURE__ */ jsx(
|
|
100350
100350
|
CoverEditor,
|
|
100351
100351
|
{
|