Outerline 1.0-1112
Summary
Build 1112 adds ascending and descending sort direction controls to the macOS Library document-list sort menu, persists library sort state and per-folder sort direction, and updates the editor inspector Contents panel copy-link wording so it matches the editor's heading context menu.
Fixes & Improvements
- Added ascending and descending sort direction controls to the macOS Library document-list sort menu.
- Persisted macOS library sort state in
.outerline-data/.outerline-sort-preferences.jsonusingmacLibrarySortSetting. - Extended Sort Library Per Folder so macOS per-folder sort settings persist both sort option and direction in
macFolderSortSettings. - Kept the legacy
folderSortOptionsmetadata mirrored for compatibility with existing vaults. - Updated shared sort metadata so iOS and macOS can both represent
Name,Date Modified,Date Created, andWord Countsort options. - Updated the macOS editor inspector Contents panel context menu so section rows now say
Copy Link to "Heading Title", matching the editor section right-click menu wording. - Added focused coverage for the Contents panel copy-link menu title formatter in
EditorViewModelOutlineStateTests. - Committed the change as
56a24aa Match inspector copy link menu labels. - Fixed the macOS Version History panel reporting "no version snapshots" for vaults stored in iCloud Drive: files inside
.outerline-data/are flagged hidden by the OS there, so directory listings using.skipsHiddenFilesreturned nothing. The same flaw also stopped snapshot pruning and the legacy-to-UUID snapshot migration from running in iCloud mode. (OUT-144) - Routed all version-history directory listings (list, prune, migration) and the embedded MCP
VersionHistoryReaderthrough a helper that no longer skips hidden files and instead filters dotfiles by name while still excluding.DS_Storeand the.migrated-v2sentinel. - Added a regression test that flags snapshot files hidden and confirms
listSnapshotsstill returns them. - Committed the change as
6ef5789 Fix version history panel empty in iCloud mode (OUT-144).
QA Focus
- In the macOS Library document list, verify the sort toolbar menu shows Ascending and Descending below the existing sort options.
- Confirm changing direction immediately reorders documents for name, date modified, date created, and word count sorts.
- With Sort Library Per Folder off, confirm the selected sort option and direction apply app-wide after switching folders and relaunching.
- With Sort Library Per Folder on, confirm each folder remembers its own sort option and direction after switching folders and relaunching.
- Confirm iOS library sorting still works, including Word Count, after the shared metadata update.
- In the macOS editor inspector Contents panel, right-click a heading row and verify the menu item includes the heading label, for example
Copy Link to "Alpha Heading". - Compare with right-clicking the same heading in the editor and confirm the Copy Link wording matches.
- Focused verification already run:
swift test --filter EditorViewModelOutlineStateTestspassed with 23 tests. - Using an iCloud-mode vault, open a document that has saved versions and confirm the Version History panel now lists its snapshots; confirm restoring a snapshot and the side-by-side diff still work.
- Confirm Version History still works for a local "choose your own folder" vault.
- Make many edits to a document in iCloud mode and confirm old snapshots are still pruned to the most recent 50 per document.
- Focused verification already run: full
swift testsuite passed (1126 tests, including the newVersionHistoryServiceTests.testListSnapshotsIncludesFilesFlaggedHidden).