feat: integrate subtree ID retrieval in local folder cleanup process and enhance UI component styling for folder selection

This commit is contained in:
Anish Sarkar 2026-04-08 17:25:18 +05:30
parent cab0d1bdfe
commit f3aa514240
2 changed files with 6 additions and 2 deletions

View file

@ -861,8 +861,12 @@ async def index_local_folder(
root_fid = folder_mapping.get("")
if root_fid:
from app.services.folder_service import get_folder_subtree_ids
subtree_ids = await get_folder_subtree_ids(session, root_fid)
await _cleanup_empty_folders(
session, root_fid, search_space_id, existing_dirs, folder_mapping
session, root_fid, search_space_id, existing_dirs, folder_mapping,
subtree_ids=subtree_ids,
)
try:

View file

@ -170,7 +170,7 @@ export function FolderWatchDialog({
<DialogDescription>Select a folder to sync and watch for changes.</DialogDescription>
</DialogHeader>
<div className="space-y-3 pt-2">
<div className="space-y-3 pt-2 min-h-[13rem]">
{selectedFolder ? (
<div className="flex items-center gap-2 py-1.5 pl-4 pr-2 rounded-md bg-slate-400/5 dark:bg-white/5 overflow-hidden">
<div className="min-w-0 flex-1 select-text">