From e6b4db129454883fc60de622c8a1f492c78cc7aa Mon Sep 17 00:00:00 2001 From: clover caruso Date: Mon, 12 Oct 2026 03:52:40 -0700 Subject: [PATCH] fix(ios): keep sibling groups out of section menus Match the group itself or its slash-delimited descendants when building the section strip menu, so G does not include G2. Prototype gates remain unchanged. Refs #75 Assisted-by: gpt-6.1-sol --- apps/ios/Snowbound/Prototypes.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ios/Snowbound/Prototypes.swift b/apps/ios/Snowbound/Prototypes.swift index 9a72cb95fc89cc0c2f5855fe84e695420aa52d5b..489f174c6979dcae2baa848c67fa7388a8906096 100644 --- a/apps/ios/Snowbound/Prototypes.swift +++ b/apps/ios/Snowbound/Prototypes.swift @@ -151,7 +151,9 @@ final class SectionStrip: UIView { let group = tab.group.split(separator: "/").first.map(String.init) if let group { guard groups.insert(group).inserted else { continue } - let inside = notebook.tabs.filter { $0.readable && $0.group.hasPrefix(group) } + let inside = notebook.tabs.filter { + $0.readable && ($0.group == group || $0.group.hasPrefix(group + "/")) + } let current = inside.first { $0.path == path } row.addArrangedSubview( button(current?.name ?? group, color: current?.uiColor ?? .systemGray, raised: current != nil, -- 2.54.0