mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
feat: integrate subtree ID retrieval in local folder cleanup process and enhance UI component styling for folder selection
This commit is contained in:
parent
cab0d1bdfe
commit
f3aa514240
2 changed files with 6 additions and 2 deletions
|
|
@ -861,8 +861,12 @@ async def index_local_folder(
|
||||||
|
|
||||||
root_fid = folder_mapping.get("")
|
root_fid = folder_mapping.get("")
|
||||||
if root_fid:
|
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(
|
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:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ export function FolderWatchDialog({
|
||||||
<DialogDescription>Select a folder to sync and watch for changes.</DialogDescription>
|
<DialogDescription>Select a folder to sync and watch for changes.</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
<div className="space-y-3 pt-2">
|
<div className="space-y-3 pt-2 min-h-[13rem]">
|
||||||
{selectedFolder ? (
|
{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="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">
|
<div className="min-w-0 flex-1 select-text">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue