@industry-theme/file-city-panel 0.4.2 → 0.4.3

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;AAmCjF,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;gBAAC,OAAO,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;YAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;SAC1B,CAAC;KACH,CAAC,CAAC;IACH,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC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E,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE;QACb,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,CAymE3D,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"}
@@ -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, _s, _t, _u;
98698
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
98699
98699
  const autoShowTour = ("autoShowTour" in context ? context.autoShowTour : false) ?? false;
98700
98700
  const { theme: theme2 } = useTheme();
98701
98701
  const [cityData, setCityData] = useState(null);
@@ -98722,6 +98722,7 @@ const CodeCityPanelContent = ({
98722
98722
  const [isEditingCover, setIsEditingCover] = useState(false);
98723
98723
  const [coverConfigs, setCoverConfigs] = useState({});
98724
98724
  const [previewCoverOptions, setPreviewCoverOptions] = useState(null);
98725
+ const [showPackageInfo, setShowPackageInfo] = useState(false);
98725
98726
  useEffect(() => {
98726
98727
  const container = contentContainerRef.current;
98727
98728
  if (!container) return;
@@ -99974,7 +99975,20 @@ const CodeCityPanelContent = ({
99974
99975
  ]
99975
99976
  }
99976
99977
  ),
99977
- showTourPlayer && tourData ? (
99978
+ showPackageInfo && legendPackageData.packageData ? (
99979
+ // Package Info - shows package details when toggled from footer
99980
+ /* @__PURE__ */ jsx(ContextContainer, { position: layout.legendPosition === "top" ? "bottom" : layout.legendPosition, children: /* @__PURE__ */ jsx(
99981
+ FileTypesView,
99982
+ {
99983
+ fileTypes: legendFileTypes,
99984
+ packageData: legendPackageData.packageData,
99985
+ workspacePackageCount: legendPackageData.workspacePackageCount,
99986
+ onItemClick: toggleFileType,
99987
+ horizontalPadding: "16px",
99988
+ showHeader: true
99989
+ }
99990
+ ) })
99991
+ ) : showTourPlayer && tourData ? (
99978
99992
  // Tour Player - provides guided tour context
99979
99993
  /* @__PURE__ */ jsx(
99980
99994
  TourPlayer,
@@ -100138,8 +100152,6 @@ const CodeCityPanelContent = ({
100138
100152
  Legend,
100139
100153
  {
100140
100154
  fileTypes: [],
100141
- packageData: legendPackageData.packageData,
100142
- workspacePackageCount: legendPackageData.workspacePackageCount,
100143
100155
  gitStatus: gitSlice == null ? void 0 : gitSlice.data,
100144
100156
  panelActions: actions,
100145
100157
  prFiles: (_o = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _o.filesByStatus,
@@ -100345,36 +100357,64 @@ const CodeCityPanelContent = ({
100345
100357
  children: loading || !cityData ? /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
100346
100358
  /* @__PURE__ */ jsx(Building2, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
100347
100359
  /* @__PURE__ */ jsx("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.textSecondary }, children: "Building File City..." })
100348
- ] }) : /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
100349
- /* @__PURE__ */ jsxs(
100350
- "div",
100351
- {
100352
- style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
100353
- title: `${computedTreeStats.fileCount.toLocaleString()} files`,
100354
- children: [
100355
- /* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
100356
- /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
100357
- computedTreeStats.fileCount.toLocaleString(),
100358
- !headerCompact && " files"
100359
- ] })
100360
- ]
100361
- }
100362
- ),
100363
- /* @__PURE__ */ jsxs(
100364
- "div",
100360
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
100361
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "12px", minWidth: 0, flexShrink: 1 }, children: computedTreeStats && /* @__PURE__ */ jsxs(Fragment, { children: [
100362
+ /* @__PURE__ */ jsxs(
100363
+ "div",
100364
+ {
100365
+ style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
100366
+ title: `${computedTreeStats.fileCount.toLocaleString()} files`,
100367
+ children: [
100368
+ /* @__PURE__ */ jsx(File, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
100369
+ /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
100370
+ computedTreeStats.fileCount.toLocaleString(),
100371
+ !headerCompact && " files"
100372
+ ] })
100373
+ ]
100374
+ }
100375
+ ),
100376
+ /* @__PURE__ */ jsxs(
100377
+ "div",
100378
+ {
100379
+ style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
100380
+ title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
100381
+ children: [
100382
+ /* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
100383
+ /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
100384
+ computedTreeStats.directoryCount.toLocaleString(),
100385
+ !headerCompact && " folders"
100386
+ ] })
100387
+ ]
100388
+ }
100389
+ )
100390
+ ] }) }),
100391
+ legendPackageData.packageData && (hasAgentActivity || gitChangesCount > 0 || legendQualityMetrics.length > 0 && colorMode || showTourPlayer || ((_v = prFilesSlice == null ? void 0 : prFilesSlice.data) == null ? void 0 : _v.filesByStatus) || ((_w = commitFilesSlice == null ? void 0 : commitFilesSlice.data) == null ? void 0 : _w.filesByStatus) || ((_x = storyboardContextSlice == null ? void 0 : storyboardContextSlice.data) == null ? void 0 : _x.storyboard)) && /* @__PURE__ */ jsxs(
100392
+ "button",
100365
100393
  {
100366
- style: { display: "flex", alignItems: "center", gap: "4px", whiteSpace: "nowrap" },
100367
- title: `${computedTreeStats.directoryCount.toLocaleString()} folders`,
100394
+ onClick: () => setShowPackageInfo(!showPackageInfo),
100395
+ style: {
100396
+ display: "flex",
100397
+ alignItems: "center",
100398
+ gap: "4px",
100399
+ padding: "4px 8px",
100400
+ fontSize: theme2.fontSizes[0],
100401
+ fontFamily: theme2.fonts.body,
100402
+ color: showPackageInfo ? theme2.colors.primary : theme2.colors.textSecondary,
100403
+ backgroundColor: showPackageInfo ? `${theme2.colors.primary}15` : "transparent",
100404
+ border: `1px solid ${showPackageInfo ? theme2.colors.primary : theme2.colors.border}`,
100405
+ borderRadius: "4px",
100406
+ cursor: "pointer",
100407
+ transition: "all 0.15s ease",
100408
+ whiteSpace: "nowrap"
100409
+ },
100410
+ title: showPackageInfo ? "Hide package info" : "Show package info",
100368
100411
  children: [
100369
- /* @__PURE__ */ jsx(Folder, { size: 14, style: { color: theme2.colors.textSecondary, flexShrink: 0 } }),
100370
- /* @__PURE__ */ jsxs("span", { style: { fontSize: theme2.fontSizes[1], fontFamily: theme2.fonts.body, color: theme2.colors.text }, children: [
100371
- computedTreeStats.directoryCount.toLocaleString(),
100372
- !headerCompact && " folders"
100373
- ] })
100412
+ /* @__PURE__ */ jsx(Package2, { size: 14 }),
100413
+ /* @__PURE__ */ jsx("span", { children: legendPackageData.packageData.name })
100374
100414
  ]
100375
100415
  }
100376
100416
  )
100377
- ] }) }) })
100417
+ ] })
100378
100418
  }
100379
100419
  ),
100380
100420
  isEditingCover && selectedPackagePath && /* @__PURE__ */ jsx(