diff --git a/.github/workflows/desktop2_ci.yaml b/.github/workflows/desktop2_ci.yaml
index 1f9dd1771..27939eb87 100644
--- a/.github/workflows/desktop2_ci.yaml
+++ b/.github/workflows/desktop2_ci.yaml
@@ -21,8 +21,6 @@ jobs:
include:
- platform: "macos"
runner: "macos-14"
- - platform: "windows"
- runner: "windows-latest"
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/desktop_ci.yaml b/.github/workflows/desktop_ci.yaml
index 875b21afc..2cd9ba50a 100644
--- a/.github/workflows/desktop_ci.yaml
+++ b/.github/workflows/desktop_ci.yaml
@@ -21,8 +21,6 @@ jobs:
include:
- platform: "macos"
runner: "macos-14"
- - platform: "windows"
- runner: "windows-latest"
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
diff --git a/apps/desktop2/src/components/main/body/sessions/outer-header/folder.tsx b/apps/desktop2/src/components/main/body/sessions/outer-header/folder.tsx
index 6a51c5897..66aeb8d68 100644
--- a/apps/desktop2/src/components/main/body/sessions/outer-header/folder.tsx
+++ b/apps/desktop2/src/components/main/body/sessions/outer-header/folder.tsx
@@ -3,33 +3,56 @@ import { useCallback } from "react";
import * as persisted from "../../../../../store/tinybase/persisted";
import { useTabs } from "../../../../../store/zustand/tabs";
-export function FolderChain({ title, folderId }: { title: string; folderId: string }) {
- const folderIds = persisted.UI.useLinkedRowIds(
- "folderToParentFolder",
- folderId,
- persisted.STORE_ID,
- );
-
- if (!folderIds || folderIds.length === 0) {
- return null;
- }
-
- const folderChain = [...folderIds].reverse();
+export function FolderChain({ sessionId }: { sessionId: string }) {
+ const folderId = persisted.UI.useCell("sessions", sessionId, "folder_id", persisted.STORE_ID);
+ const title = persisted.UI.useCell("sessions", sessionId, "title", persisted.STORE_ID);
return (
- {folderChain.map((id, index) => (
+ {!folderId
+ ?
+ : }
+
+ );
+}
+
+function RenderIfRootExist({ folderId, title }: { folderId: string; title: string }) {
+ const folderIds = useFolderList(folderId);
+ return (
+ <>
+ {folderIds.map((id, index) => (
{index > 0 && /}
))}
-
- /
- {title}
-
-
+ /
+ {title}
+ >
+ );
+}
+
+function RenderIfRootNotExist({ sessionId }: { sessionId: string }) {
+ const title = persisted.UI.useCell("sessions", sessionId, "title", persisted.STORE_ID);
+
+ return (
+ <>
+
+ /
+ {title ?? "Untitled"}
+ >
+ );
+}
+
+function useFolderList(rootFolderId: string) {
+ const folderIds = persisted.UI.useLinkedRowIds(
+ "folderToParentFolder",
+ rootFolderId,
+ persisted.STORE_ID,
);
+ return [...folderIds].reverse();
}
function FolderItem({ folderId }: { folderId: string }) {
@@ -42,7 +65,7 @@ function FolderItem({ folderId }: { folderId: string }) {
return (