mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
fix(files): the review items of #848 that go on top
A restore no longer pages through a whole large folder for an expanded folder that is gone: directories are listed before files across pages, so a loaded file ends the search, and the expansion is forgotten. An expanded folder that waits for its turn in the restore says it is loading, and a search-result folder opened while the tree was loading runs the restore afterwards. The error line keeps its parts in separate elements so the zh-CN entries apply, one local match reads in the singular, and the search box labels the phone keyboard's Enter key. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
76c5f1a99b
commit
fc41bb5b13
6 files changed
+151
-7
No files matched your search
@@ -839,7 +839,13 @@ Expand All opens only loaded folders. Refresh retains visible expansion state; a
|
||||
restoration skips recorded load errors and hidden-off expansions before requesting pages.
|
||||
Hidden-path checks are relative to the listing root, so a worktree's dotted prefix does not
|
||||
hide its ordinary folders. Explicit Retry loads the failed folder/page; errors retain entries
|
||||
already loaded. Tests: `test/routes/file-routes-lazy.test.ts`, `test/file-browser-lazy.test.ts`
|
||||
already loaded. A page lists the folder's directories before its files, and that order holds
|
||||
across pages, so a restore or a reveal that has a file loaded for a folder stops asking for
|
||||
more pages: the folder it looks for is not there. A restore then forgets that expansion
|
||||
(the folder was deleted or renamed); one stopped by a failed page keeps it. An expanded
|
||||
folder whose own request has not started is drawn with the loading line, never as an empty
|
||||
folder, and a search-result folder opened while the tree was still loading runs the restore
|
||||
when it is done. Tests: `test/routes/file-routes-lazy.test.ts`, `test/file-browser-lazy.test.ts`
|
||||
and `test/mobile/file-browser.test.ts`.
|
||||
|
||||
The recursive listing and `q` search policies below remain unchanged for existing callers.
|
||||
|
||||
Reference in new issue
Block a user