Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Quick Look displayed archive entries in storage order and had no column sort actions. Share the app's ordering rules, start with folders first and names ascending, and sort each level when a column header changes. Keep expanded folders and selected entries when reordering the outline.
Finder keeps key focus while Quick Look hosts the preview, so a standard table header ignores clicks in the non-key panel. Accept the first mouse event, as the preview buttons already do, so column sorting works there. Include the regression test and verification images from the shared UI and the actual Finder Quick Look panel.
22f04ea to
7bc8ac3
Compare
What & why
Quick Look displays entries in archive order, and clicking a column header does not sort them. This shares the app's sorting rules with the preview, defaults to folders first and names ascending, and enables sorting by name, packed size, size, and modification date. The header accepts the first mouse event so clicks also work in Finder's non-key Quick Look panel. Reordering preserves expanded folders and selected items, including when browsing nested archives.
AI disclosure: Codex is the primary author of this change. I manually checked the shared Quick Look harness and confirmed that the behavior looks correct.
How it was verified
I tested the Debug app's Quick Look harness alongside the installed release. I also ran automated mouse-event checks in Finder's Quick Look panel with the existing
defaultArchive.zipfixture. These cover initial sorting, both directions of all four headers, and preservation of expansion and selection. I selected the Debug extension for this check and restored both extension elections to their original state afterward.Before and after snapshots below render the actual pre-fix and post-fix AppKit outline controllers with the existing
defaultArchive.zipfixture. The folder is expanded in both views. Before the fix, a file precedes the folder andREADME.mdprecedesNestedArchive.zip; afterward, folders come first and names sort naturally within each folder.The actual Finder-hosted preview after clicking the Name header, with
README.mdstill selected and its folder still expanded:AppKit regression tests cover the initial order, click acceptance in a non-key panel, both directions of all four columns, preservation of expansion and selection, and first expansion of a nested archive. Existing archive-state and search tests also pass.
Checklist
Config/products/macpacker.jsonwhen a new version block is availableChangelog
Add a new version block for this item. The latest block is already tagged.
{ "type": "fix", "title": { "en": "Sort files in Quick Look", "zh-Hans": "在 Quick Look 中排序文件", "fr": "Trier les fichiers dans Quick Look", "de": "Dateien in Quick Look sortieren", "it": "Ordinare i file in Quick Look", "ja": "Quick Lookでファイルを並べ替え", "fa": "مرتبسازی فایلها در Quick Look", "pl": "Sortowanie plików w Quick Look", "pt-BR": "Ordenar arquivos no Quick Look", "ru": "Сортировка файлов в Quick Look", "uk": "Сортування файлів у Quick Look", "es-MX": "Ordenar archivos en Quick Look", "ko": "Quick Look에서 파일 정렬", "nl": "Bestanden sorteren in Quick Look", "tr": "Quick Look'ta dosyaları sıralama", "vi": "Sắp xếp tệp trong Quick Look", "ar": "ترتيب الملفات في Quick Look", "ca": "Ordena els fitxers al Quick Look", "el": "Ταξινόμηση αρχείων στο Quick Look", "nb": "Sorter filer i Quick Look", "zh-TW": "在 Quick Look 中排序檔案" }, "issues": [ "374" ] }Summary by CodeRabbit