authorclover caruso <git@paperclover.net> 2026-10-12 03:52:40-07:00
committerclover caruso <git@paperclover.net> 2026-10-15 01:52:38-07:00
loge6b4db129454883fc60de622c8a1f492c78cc7aa
treead0f6dab71fef7ad33d8affc4290b4bed0bba677
parent38158ef4e891882c34beeffc1c046747004b4983
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover)

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

1 files changed, 3 insertions(+), 1 deletions(-)

apps/ios/Snowbound/Prototypes.swift+3-1
......@@ -151,7 +151,9 @@ final class SectionStrip: UIView {
151151 let group = tab.group.split(separator: "/").first.map(String.init)
152152 if let group {
153153 guard groups.insert(group).inserted else { continue }
154 let inside = notebook.tabs.filter { $0.readable && $0.group.hasPrefix(group) }
154 let inside = notebook.tabs.filter {
155 $0.readable && ($0.group == group || $0.group.hasPrefix(group + "/"))
156 }
155157 let current = inside.first { $0.path == path }
156158 row.addArrangedSubview(
157159 button(current?.name ?? group, color: current?.uiColor ?? .systemGray, raised: current != nil,