@industry-theme/alexandria-panels 0.1.37 → 0.1.38

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":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/LocalProjectsPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,0BAA0B,CAAC;AAClC,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAoBvD,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAg0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAEhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EA6C7C,CAAC;AAGF,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/LocalProjectsPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,0BAA0B,CAAC;AAClC,OAAO,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAoBvD,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AA2wBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAEhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EA6C7C,CAAC;AAGF,YAAY,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -937,7 +937,6 @@ const LocalProjectsPanelContent = ({
937
937
  const [scanStatus, setScanStatus] = useState("");
938
938
  const [selectedEntry, setSelectedEntry] = useState(null);
939
939
  const [windowStates, setWindowStates] = useState(/* @__PURE__ */ new Map());
940
- const [sortByOrg, setSortByOrg] = useState(false);
941
940
  const handleToggleSearch = useCallback(() => {
942
941
  if (defaultShowSearch) return;
943
942
  setShowSearch((prev) => {
@@ -1131,7 +1130,6 @@ const LocalProjectsPanelContent = ({
1131
1130
  return haystack.includes(normalizedFilter);
1132
1131
  });
1133
1132
  return filtered.sort((a, b) => {
1134
- var _a2, _b2;
1135
1133
  if (!a.isDiscovered && b.isDiscovered) return -1;
1136
1134
  if (a.isDiscovered && !b.isDiscovered) return 1;
1137
1135
  if (a.lastOpenedAt && !b.lastOpenedAt) return -1;
@@ -1141,15 +1139,9 @@ const LocalProjectsPanelContent = ({
1141
1139
  const bTime = new Date(b.lastOpenedAt).getTime();
1142
1140
  if (aTime !== bTime) return bTime - aTime;
1143
1141
  }
1144
- if (sortByOrg) {
1145
- const aOrg = (((_a2 = a.github) == null ? void 0 : _a2.owner) ?? "").toLowerCase();
1146
- const bOrg = (((_b2 = b.github) == null ? void 0 : _b2.owner) ?? "").toLowerCase();
1147
- const orgCompare = aOrg.localeCompare(bOrg);
1148
- if (orgCompare !== 0) return orgCompare;
1149
- }
1150
1142
  return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
1151
1143
  });
1152
- }, [allRepositories, normalizedFilter, sortByOrg]);
1144
+ }, [allRepositories, normalizedFilter]);
1153
1145
  const baseContainerStyle = {
1154
1146
  display: "flex",
1155
1147
  flexDirection: "column",
@@ -1299,28 +1291,6 @@ const LocalProjectsPanelContent = ({
1299
1291
  }
1300
1292
  ),
1301
1293
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0" }, children: [
1302
- /* @__PURE__ */ jsx(
1303
- "button",
1304
- {
1305
- onClick: () => setSortByOrg(!sortByOrg),
1306
- title: sortByOrg ? "Sort by: Last opened, then organization" : "Sort by: Last opened, then name",
1307
- style: {
1308
- padding: "0 12px",
1309
- height: "40px",
1310
- borderRadius: "0",
1311
- border: "none",
1312
- backgroundColor: theme.colors.backgroundSecondary,
1313
- color: sortByOrg ? theme.colors.primary : theme.colors.textSecondary,
1314
- cursor: "pointer",
1315
- display: "flex",
1316
- alignItems: "center",
1317
- justifyContent: "center",
1318
- transition: "all 0.15s",
1319
- flexShrink: 0
1320
- },
1321
- children: sortByOrg ? /* @__PURE__ */ jsx(Building2, { size: 16 }) : /* @__PURE__ */ jsx(FolderGit2, { size: 16 })
1322
- }
1323
- ),
1324
1294
  /* @__PURE__ */ jsx(
1325
1295
  "button",
1326
1296
  {
@@ -1456,28 +1426,6 @@ const LocalProjectsPanelContent = ({
1456
1426
  children: /* @__PURE__ */ jsx(Search, { size: 16 })
1457
1427
  }
1458
1428
  ),
1459
- /* @__PURE__ */ jsx(
1460
- "button",
1461
- {
1462
- onClick: () => setSortByOrg(!sortByOrg),
1463
- title: sortByOrg ? "Sort by: Last opened, then organization" : "Sort by: Last opened, then name",
1464
- style: {
1465
- padding: "0 12px",
1466
- height: "40px",
1467
- borderRadius: "0",
1468
- border: "none",
1469
- backgroundColor: theme.colors.backgroundSecondary,
1470
- color: sortByOrg ? theme.colors.primary : theme.colors.textSecondary,
1471
- cursor: "pointer",
1472
- display: "flex",
1473
- alignItems: "center",
1474
- justifyContent: "center",
1475
- transition: "all 0.15s",
1476
- flexShrink: 0
1477
- },
1478
- children: sortByOrg ? /* @__PURE__ */ jsx(Building2, { size: 16 }) : /* @__PURE__ */ jsx(FolderGit2, { size: 16 })
1479
- }
1480
- ),
1481
1429
  /* @__PURE__ */ jsx(
1482
1430
  "button",
1483
1431
  {