Files
Trilium/packages
Elian DoranandClaude Opus 5.5 f3fa99a551 feat(share): key the static export's note maps by their request
The export wrote each note map as `data/note-map/<rootId>-<type>.json`,
so two note map notes on the same root with other relation filters
wrote the same file, the last one winning.

`getNoteMapDataKey()` in commons keys a request by its root, kind and
relation filters, sorted, so the same filters in any order give the
same key. The export writes each request's map once, as
`data/note-map/<n>.json`, and indexes it by its key in `rows.json`
under `noteMaps`; a static froca source builds the key from
`getNoteMap()`'s arguments to find it. `rows.json` is now written last,
once the maps are known. The key avoids `toSorted()`, as the share
theme targets Chrome 96.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-10 15:50:23 +03:00
..