@industry-theme/file-city-panel 0.2.16 → 0.2.17
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":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAyqCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -14972,6 +14972,14 @@ const CodeCityPanelContent = ({
|
|
|
14972
14972
|
const fileTreeSlice = context.getSlice("fileTree");
|
|
14973
14973
|
const gitSlice = context.getSlice("git");
|
|
14974
14974
|
const agentHighlightLayersSlice = context.getSlice("agentHighlightLayers");
|
|
14975
|
+
useEffect(() => {
|
|
14976
|
+
var _a2;
|
|
14977
|
+
console.log("[CodeCityPanel] agentHighlightLayers slice:", {
|
|
14978
|
+
hasSlice: !!agentHighlightLayersSlice,
|
|
14979
|
+
data: agentHighlightLayersSlice == null ? void 0 : agentHighlightLayersSlice.data,
|
|
14980
|
+
dataLength: ((_a2 = agentHighlightLayersSlice == null ? void 0 : agentHighlightLayersSlice.data) == null ? void 0 : _a2.length) ?? 0
|
|
14981
|
+
});
|
|
14982
|
+
}, [agentHighlightLayersSlice == null ? void 0 : agentHighlightLayersSlice.data]);
|
|
14975
14983
|
const colorModesSlice = context.getSlice("fileCityColorModes");
|
|
14976
14984
|
const qualityData = (_c = colorModesSlice == null ? void 0 : colorModesSlice.data) == null ? void 0 : _c.qualityData;
|
|
14977
14985
|
const fileColorLayersRegistered = useRef(false);
|
|
@@ -15406,6 +15414,19 @@ const CodeCityPanelContent = ({
|
|
|
15406
15414
|
items: layer.items
|
|
15407
15415
|
}));
|
|
15408
15416
|
const hasAgentLayers = formattedAgentLayers.length > 0;
|
|
15417
|
+
console.log("[CodeCityPanel] Processing layers:", {
|
|
15418
|
+
hasAgentLayers,
|
|
15419
|
+
agentLayerCount: formattedAgentLayers.length,
|
|
15420
|
+
agentLayers: formattedAgentLayers.map((l) => {
|
|
15421
|
+
var _a2, _b2;
|
|
15422
|
+
return {
|
|
15423
|
+
id: l.id,
|
|
15424
|
+
itemCount: ((_a2 = l.items) == null ? void 0 : _a2.length) ?? 0,
|
|
15425
|
+
items: (_b2 = l.items) == null ? void 0 : _b2.slice(0, 3).map((i) => i.path)
|
|
15426
|
+
// First 3 for brevity
|
|
15427
|
+
};
|
|
15428
|
+
})
|
|
15429
|
+
});
|
|
15409
15430
|
let modeLayers = [];
|
|
15410
15431
|
if (hasAgentLayers) {
|
|
15411
15432
|
modeLayers = [...gitStatusLayers, ...formattedAgentLayers];
|