mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Review round on the first commit. Two library folders may carry the same name, and their rows then shared one `folder/<name>` key, so one chevron toggled both: a folder row's key now carries its place in the folder list, which also keeps it from ever reading as a pattern id (a file's pattern keeps the id the file carries). `pattern_list` lost its only caller when the field's presets moved to `pattern_presets`, so it goes with it. The tests stop reading the shipped library: they build six patterns of their own ids and names in two folders of their own, and count rows against what the session offers. They also pin the two cases the new layout decides: an empty Pattern value resolves to the first row that is not a folder - the first pattern of the first folder, not the document's loose pattern the flat list started on - and two folders of one name keep rows, and chevrons, apart.