@industry-theme/file-city-panel 0.2.66 → 0.2.68
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/panels/AgentMailFileCityPanel.d.ts.map +1 -1
- package/dist/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels/FeedCodeCityPanel.d.ts.map +1 -1
- package/dist/panels/components/Legend.d.ts.map +1 -1
- package/dist/panels.bundle.js +117 -34
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,EAAkB,MAAM,UAAU,CAAC;
|
|
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,EAAkB,MAAM,UAAU,CAAC;AAonBpE;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMhE,CAAC;AAEF,eAAe,sBAAsB,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;AAyBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAepD;;G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;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeedCodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/FeedCodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAgD,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAe/H,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,UAAU,CAAC;AAsBpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;
|
|
1
|
+
{"version":3,"file":"FeedCodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/FeedCodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAgD,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAe/H,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,UAAU,CAAC;AAsBpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AA+XD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EA8B5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/panels/components/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":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AAE,CAAC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACjF,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACtF,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7E,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6kBxC,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -3260,10 +3260,29 @@ function requireDrawLayeredBuildings() {
|
|
|
3260
3260
|
ctx.strokeRect(bounds.x - 1, bounds.y - 1, bounds.width + 2, bounds.height + 2);
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
|
+
let iconBottomY = pos.y;
|
|
3263
3264
|
if (showFileTypeIcons && iconMap) {
|
|
3264
3265
|
const iconConfig = (0, fileTypeIcons_1.getFileTypeIcon)(building.path, iconMap);
|
|
3265
3266
|
if (iconConfig) {
|
|
3266
|
-
|
|
3267
|
+
const isWide = width > height;
|
|
3268
|
+
const iconYOffset = isWide ? -height * 0.15 : 0;
|
|
3269
|
+
const iconY = pos.y + iconYOffset;
|
|
3270
|
+
(0, fileTypeIcons_1.drawFileTypeIcon)(ctx, iconConfig, pos.x, iconY, width, height);
|
|
3271
|
+
const minDimension = Math.min(width, height);
|
|
3272
|
+
if (iconConfig.type === "emoji") {
|
|
3273
|
+
const sizeScale = iconConfig.size || 0.75;
|
|
3274
|
+
const emojiSize = minDimension * sizeScale;
|
|
3275
|
+
iconBottomY = iconY + emojiSize / 2;
|
|
3276
|
+
} else if (iconConfig.type === "lucide") {
|
|
3277
|
+
const sizeScale = iconConfig.size || 0.5;
|
|
3278
|
+
const actualIconSize = minDimension * sizeScale;
|
|
3279
|
+
if (iconConfig.backgroundColor) {
|
|
3280
|
+
const bgRadius = actualIconSize * 0.7;
|
|
3281
|
+
iconBottomY = iconY + bgRadius;
|
|
3282
|
+
} else {
|
|
3283
|
+
iconBottomY = iconY + actualIconSize / 2;
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3267
3286
|
}
|
|
3268
3287
|
}
|
|
3269
3288
|
if (showFileNames && width > 100 && height > 30) {
|
|
@@ -3272,16 +3291,14 @@ function requireDrawLayeredBuildings() {
|
|
|
3272
3291
|
const fontSize = Math.min(30, Math.max(10, Math.floor(Math.min(width, height) * 0.3)));
|
|
3273
3292
|
ctx.font = `${fontSize}px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
|
|
3274
3293
|
ctx.textAlign = "center";
|
|
3275
|
-
ctx.textBaseline = "
|
|
3294
|
+
ctx.textBaseline = "top";
|
|
3276
3295
|
const textMetrics = ctx.measureText(fileName);
|
|
3277
3296
|
const textWidth = textMetrics.width;
|
|
3278
3297
|
if (textWidth < width - 8) {
|
|
3279
|
-
const
|
|
3280
|
-
const
|
|
3281
|
-
ctx.fillStyle = "rgba(0, 0, 0, 0.7)";
|
|
3282
|
-
ctx.fillRect(pos.x - textWidth / 2 - textPadding, pos.y - textHeight / 2, textWidth + textPadding * 2, textHeight);
|
|
3298
|
+
const spacing = 4;
|
|
3299
|
+
const textY = iconBottomY + spacing;
|
|
3283
3300
|
ctx.fillStyle = "rgba(255, 255, 255, 0.95)";
|
|
3284
|
-
ctx.fillText(fileName, pos.x,
|
|
3301
|
+
ctx.fillText(fileName, pos.x, textY);
|
|
3285
3302
|
}
|
|
3286
3303
|
ctx.restore();
|
|
3287
3304
|
}
|
|
@@ -18864,28 +18881,70 @@ const CodeCityPanelContent = ({
|
|
|
18864
18881
|
}
|
|
18865
18882
|
}, [fileTreeSlice == null ? void 0 : fileTreeSlice.data, fileTreeSlice == null ? void 0 : fileTreeSlice.loading, (_i = context.currentScope.repository) == null ? void 0 : _i.path]);
|
|
18866
18883
|
const handleFileClick = useCallback(
|
|
18867
|
-
(filePath) => {
|
|
18868
|
-
|
|
18869
|
-
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
gitStatus = "deleted";
|
|
18884
|
+
(filePath, type) => {
|
|
18885
|
+
if (type === "file") {
|
|
18886
|
+
if (selectedFilePath === filePath) {
|
|
18887
|
+
setSelectedFilePath(null);
|
|
18888
|
+
events.emit({
|
|
18889
|
+
type: "package:select",
|
|
18890
|
+
source: "code-city-panel",
|
|
18891
|
+
timestamp: Date.now(),
|
|
18892
|
+
payload: null
|
|
18893
|
+
});
|
|
18894
|
+
return;
|
|
18879
18895
|
}
|
|
18896
|
+
setSelectedFilePath(filePath);
|
|
18897
|
+
let gitStatus;
|
|
18898
|
+
if (gitSlice == null ? void 0 : gitSlice.data) {
|
|
18899
|
+
if (gitSlice.data.stagedFiles.includes(filePath)) {
|
|
18900
|
+
gitStatus = "staged";
|
|
18901
|
+
} else if (gitSlice.data.modifiedFiles.includes(filePath)) {
|
|
18902
|
+
gitStatus = "unstaged";
|
|
18903
|
+
} else if (gitSlice.data.untrackedFiles.includes(filePath)) {
|
|
18904
|
+
gitStatus = "untracked";
|
|
18905
|
+
} else if (gitSlice.data.deletedFiles.includes(filePath)) {
|
|
18906
|
+
gitStatus = "deleted";
|
|
18907
|
+
}
|
|
18908
|
+
}
|
|
18909
|
+
events.emit({
|
|
18910
|
+
type: "file:open",
|
|
18911
|
+
source: "code-city-panel",
|
|
18912
|
+
timestamp: Date.now(),
|
|
18913
|
+
payload: { path: filePath, gitStatus }
|
|
18914
|
+
});
|
|
18915
|
+
const lastSlashIndex = filePath.lastIndexOf("/");
|
|
18916
|
+
const parentDirectory = lastSlashIndex > 0 ? filePath.substring(0, lastSlashIndex) : "";
|
|
18917
|
+
const packageName = parentDirectory ? parentDirectory.split("/").pop() : "";
|
|
18918
|
+
events.emit({
|
|
18919
|
+
type: "package:select",
|
|
18920
|
+
source: "code-city-panel",
|
|
18921
|
+
timestamp: Date.now(),
|
|
18922
|
+
payload: { packagePath: parentDirectory, packageName }
|
|
18923
|
+
});
|
|
18924
|
+
} else {
|
|
18925
|
+
events.emit({
|
|
18926
|
+
type: "package:select",
|
|
18927
|
+
source: "code-city-panel",
|
|
18928
|
+
timestamp: Date.now(),
|
|
18929
|
+
payload: { packagePath: filePath, packageName: filePath.split("/").pop() }
|
|
18930
|
+
});
|
|
18880
18931
|
}
|
|
18881
|
-
events.emit({
|
|
18882
|
-
type: "file:open",
|
|
18883
|
-
source: "code-city-panel",
|
|
18884
|
-
timestamp: Date.now(),
|
|
18885
|
-
payload: { path: filePath, gitStatus }
|
|
18886
|
-
});
|
|
18887
18932
|
},
|
|
18888
|
-
[events, gitSlice == null ? void 0 : gitSlice.data]
|
|
18933
|
+
[events, gitSlice == null ? void 0 : gitSlice.data, selectedFilePath]
|
|
18934
|
+
);
|
|
18935
|
+
const handleClearPackageSelection = useCallback(() => {
|
|
18936
|
+
events.emit({
|
|
18937
|
+
type: "package:select",
|
|
18938
|
+
source: "code-city-panel",
|
|
18939
|
+
timestamp: Date.now(),
|
|
18940
|
+
payload: null
|
|
18941
|
+
});
|
|
18942
|
+
}, [events]);
|
|
18943
|
+
const handleLegendFileClick = useCallback(
|
|
18944
|
+
(filePath) => {
|
|
18945
|
+
handleFileClick(filePath, "file");
|
|
18946
|
+
},
|
|
18947
|
+
[handleFileClick]
|
|
18889
18948
|
);
|
|
18890
18949
|
const handleGitNodeHover = useCallback(
|
|
18891
18950
|
(nodePath, _isFolder) => {
|
|
@@ -19112,6 +19171,7 @@ const CodeCityPanelContent = ({
|
|
|
19112
19171
|
defaultDirectoryColor: "#111827",
|
|
19113
19172
|
onFileClick: handleFileClick,
|
|
19114
19173
|
showFileTypeIcons: true,
|
|
19174
|
+
showFileNames: true,
|
|
19115
19175
|
className: "w-full h-full",
|
|
19116
19176
|
showDirectoryLabels: true,
|
|
19117
19177
|
onHover: handleHover,
|
|
@@ -19165,7 +19225,29 @@ const CodeCityPanelContent = ({
|
|
|
19165
19225
|
children: [
|
|
19166
19226
|
/* @__PURE__ */ jsx(Folder, { size: 10 }),
|
|
19167
19227
|
"Selected: ",
|
|
19168
|
-
selectedPackagePath
|
|
19228
|
+
selectedPackagePath,
|
|
19229
|
+
/* @__PURE__ */ jsx(
|
|
19230
|
+
"button",
|
|
19231
|
+
{
|
|
19232
|
+
onClick: handleClearPackageSelection,
|
|
19233
|
+
style: {
|
|
19234
|
+
background: "none",
|
|
19235
|
+
border: "none",
|
|
19236
|
+
padding: 0,
|
|
19237
|
+
marginLeft: "4px",
|
|
19238
|
+
cursor: "pointer",
|
|
19239
|
+
display: "flex",
|
|
19240
|
+
alignItems: "center",
|
|
19241
|
+
color: theme2.colors.primary,
|
|
19242
|
+
opacity: 0.7,
|
|
19243
|
+
transition: "opacity 0.2s"
|
|
19244
|
+
},
|
|
19245
|
+
onMouseEnter: (e) => e.currentTarget.style.opacity = "1",
|
|
19246
|
+
onMouseLeave: (e) => e.currentTarget.style.opacity = "0.7",
|
|
19247
|
+
title: "Clear selection",
|
|
19248
|
+
children: /* @__PURE__ */ jsx(X, { size: 12 })
|
|
19249
|
+
}
|
|
19250
|
+
)
|
|
19169
19251
|
]
|
|
19170
19252
|
}
|
|
19171
19253
|
)
|
|
@@ -19352,10 +19434,10 @@ const CodeCityPanelContent = ({
|
|
|
19352
19434
|
commitStats: (_u = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _u.stats,
|
|
19353
19435
|
fileTree: fileTreeSlice == null ? void 0 : fileTreeSlice.data,
|
|
19354
19436
|
rootPath: (_v = context.currentScope.repository) == null ? void 0 : _v.path,
|
|
19355
|
-
onGitFileClick:
|
|
19437
|
+
onGitFileClick: handleLegendFileClick,
|
|
19356
19438
|
onGitNodeHover: handleGitNodeHover,
|
|
19357
|
-
onPrFileClick:
|
|
19358
|
-
onCommitFileClick:
|
|
19439
|
+
onPrFileClick: handleLegendFileClick,
|
|
19440
|
+
onCommitFileClick: handleLegendFileClick,
|
|
19359
19441
|
onCommitNodeHover: handleGitNodeHover,
|
|
19360
19442
|
position: layout.legendPosition
|
|
19361
19443
|
}
|
|
@@ -19383,16 +19465,16 @@ const CodeCityPanelContent = ({
|
|
|
19383
19465
|
qualityMetrics: legendQualityMetrics,
|
|
19384
19466
|
colorMode,
|
|
19385
19467
|
onItemClick: toggleFileType,
|
|
19386
|
-
onGitFileClick:
|
|
19468
|
+
onGitFileClick: handleLegendFileClick,
|
|
19387
19469
|
onGitNodeHover: handleGitNodeHover,
|
|
19388
|
-
onPrFileClick:
|
|
19470
|
+
onPrFileClick: handleLegendFileClick,
|
|
19389
19471
|
onPrNodeHover: handleGitNodeHover,
|
|
19390
|
-
onCommitFileClick:
|
|
19472
|
+
onCommitFileClick: handleLegendFileClick,
|
|
19391
19473
|
onCommitNodeHover: handleGitNodeHover,
|
|
19392
19474
|
storyboardContext: storyboardContextSlice == null ? void 0 : storyboardContextSlice.data,
|
|
19393
19475
|
onStoryboardClick: handleStoryboardClick,
|
|
19394
19476
|
onWorkflowClick: handleWorkflowClick,
|
|
19395
|
-
onStoryboardFileClick:
|
|
19477
|
+
onStoryboardFileClick: handleLegendFileClick,
|
|
19396
19478
|
onStoryboardNodeHover: handleGitNodeHover,
|
|
19397
19479
|
onAgentLayerClick: toggleAgentLayer,
|
|
19398
19480
|
onQualityMetricClick: toggleQualityMetric,
|
|
@@ -19982,6 +20064,7 @@ const FeedCodeCityPanelContent = ({
|
|
|
19982
20064
|
defaultDirectoryColor: "#111827",
|
|
19983
20065
|
onFileClick: handleFileClick,
|
|
19984
20066
|
showFileTypeIcons: true,
|
|
20067
|
+
showFileNames: true,
|
|
19985
20068
|
className: "w-full h-full",
|
|
19986
20069
|
showDirectoryLabels: true,
|
|
19987
20070
|
onHover: handleHover,
|