@industry-theme/file-city-panel 0.2.15 → 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"}
|
|
@@ -63,6 +63,24 @@ export declare const WithDeadCode: Story;
|
|
|
63
63
|
* Starts in Coverage mode - use the dropdown to switch between different quality visualizations
|
|
64
64
|
*/
|
|
65
65
|
export declare const WithAllQualityMetrics: Story;
|
|
66
|
+
/**
|
|
67
|
+
* With Agent Activity - demonstrates agent session event layers
|
|
68
|
+
* Shows files being read, written, and edited by an AI agent
|
|
69
|
+
* Agent layers take priority and display exclusively when present
|
|
70
|
+
*/
|
|
71
|
+
export declare const WithAgentActivity: Story;
|
|
72
|
+
/**
|
|
73
|
+
* With Multiple Agent Events - demonstrates a complex agent session
|
|
74
|
+
* Shows all operation types: READ, WRITE, CREATE, EDIT, DELETE, SEARCH, LIST
|
|
75
|
+
*/
|
|
76
|
+
export declare const WithMultipleAgentEvents: Story;
|
|
77
|
+
/**
|
|
78
|
+
* With Agent And Git Changes - demonstrates agent activity combined with git status
|
|
79
|
+
* Shows how agent layers display alongside git changes (staged, unstaged, untracked)
|
|
80
|
+
* File type colors are hidden, but git status remains visible
|
|
81
|
+
*/
|
|
82
|
+
export declare const WithAgentAndGitChanges: Story;
|
|
83
|
+
export declare const WithLiveAgentSession: Story;
|
|
66
84
|
/**
|
|
67
85
|
* With Documentation - demonstrates Alexandria documentation color mode
|
|
68
86
|
* Shows: green (documented), red (needs docs), gray (no data)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAoBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KA6BrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAwC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAgD5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAyD9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAkD/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KA8DlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,KA8DlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KA8D1B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,KA6FnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAsE/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KA6GrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,KA+EpC,CAAC;AA4BF,eAAO,MAAM,oBAAoB,EAAE,KA+ElC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KA6D/B,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);
|
|
@@ -15405,33 +15413,44 @@ const CodeCityPanelContent = ({
|
|
|
15405
15413
|
priority: layer.priority || 150,
|
|
15406
15414
|
items: layer.items
|
|
15407
15415
|
}));
|
|
15408
|
-
|
|
15409
|
-
|
|
15410
|
-
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
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
|
+
});
|
|
15415
15430
|
let modeLayers = [];
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15420
|
-
|
|
15421
|
-
|
|
15422
|
-
|
|
15423
|
-
|
|
15424
|
-
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15432
|
-
|
|
15433
|
-
|
|
15434
|
-
|
|
15431
|
+
if (hasAgentLayers) {
|
|
15432
|
+
modeLayers = [...gitStatusLayers, ...formattedAgentLayers];
|
|
15433
|
+
} else {
|
|
15434
|
+
switch (colorMode) {
|
|
15435
|
+
case "fileTypes":
|
|
15436
|
+
modeLayers = fileColorLayers.map((layer) => ({
|
|
15437
|
+
id: layer.id,
|
|
15438
|
+
name: layer.name,
|
|
15439
|
+
enabled: true,
|
|
15440
|
+
color: layer.color,
|
|
15441
|
+
opacity: layer.opacity,
|
|
15442
|
+
borderWidth: layer.borderWidth,
|
|
15443
|
+
priority: layer.priority || 0,
|
|
15444
|
+
items: layer.items
|
|
15445
|
+
}));
|
|
15446
|
+
break;
|
|
15447
|
+
case "git":
|
|
15448
|
+
modeLayers = gitStatusLayers;
|
|
15449
|
+
break;
|
|
15450
|
+
default:
|
|
15451
|
+
modeLayers = qualityLayers;
|
|
15452
|
+
break;
|
|
15453
|
+
}
|
|
15435
15454
|
}
|
|
15436
15455
|
setBaseLayers(modeLayers);
|
|
15437
15456
|
const activePackagePath = selectedPackagePath ?? hoveredPackagePath;
|
|
@@ -15453,9 +15472,9 @@ const CodeCityPanelContent = ({
|
|
|
15453
15472
|
} else {
|
|
15454
15473
|
setHighlightLayers(modeLayers);
|
|
15455
15474
|
}
|
|
15456
|
-
fileColorLayersRegistered.current = colorMode === "fileTypes";
|
|
15457
|
-
gitLayersRegistered.current = colorMode === "git";
|
|
15458
|
-
agentLayersRegistered.current =
|
|
15475
|
+
fileColorLayersRegistered.current = !hasAgentLayers && colorMode === "fileTypes";
|
|
15476
|
+
gitLayersRegistered.current = hasAgentLayers || colorMode === "git";
|
|
15477
|
+
agentLayersRegistered.current = hasAgentLayers;
|
|
15459
15478
|
}, [colorMode, fileColorLayers, gitStatusLayers, qualityLayers, agentHighlightLayersSlice == null ? void 0 : agentHighlightLayersSlice.data, hoveredPackagePath, selectedPackagePath, isFileInPackage]);
|
|
15460
15479
|
useEffect(() => {
|
|
15461
15480
|
if (!(fileTreeSlice == null ? void 0 : fileTreeSlice.data) || !fileTreeSlice.data.allFiles) {
|