native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move notification bell to replace branch icon in worktree row

khoi 8bad4750 9a02d742

+15 -13
+15 -13
supacode/Features/Repositories/Views/WorktreeRow.swift
··· 11 11 12 12 var body: some View { 13 13 let showsSpinner = isLoading || taskStatus == .running 14 - let iconName = isMainWorktree ? "star.fill" : (isPinned ? "pin.fill" : "arrow.triangle.branch") 14 + let branchIconName = isMainWorktree ? "star.fill" : (isPinned ? "pin.fill" : "arrow.triangle.branch") 15 15 HStack(alignment: .center) { 16 16 ZStack { 17 - Image(systemName: iconName) 18 - .font(.caption) 19 - .foregroundStyle(.secondary) 20 - .opacity(showsSpinner ? 0 : 1) 21 - .accessibilityHidden(true) 17 + if showsNotificationIndicator { 18 + Image(systemName: "bell.fill") 19 + .font(.caption) 20 + .foregroundStyle(.orange) 21 + .opacity(showsSpinner ? 0 : 1) 22 + .help("Unread notifications") 23 + .accessibilityLabel("Unread notifications") 24 + } else { 25 + Image(systemName: branchIconName) 26 + .font(.caption) 27 + .foregroundStyle(.secondary) 28 + .opacity(showsSpinner ? 0 : 1) 29 + .accessibilityHidden(true) 30 + } 22 31 if showsSpinner { 23 32 ProgressView() 24 33 .controlSize(.small) ··· 26 35 } 27 36 Text(name) 28 37 Spacer(minLength: 8) 29 - if showsNotificationIndicator { 30 - Image(systemName: "bell.fill") 31 - .font(.caption) 32 - .foregroundStyle(.orange) 33 - .help("Unread notifications") 34 - .accessibilityLabel("Unread notifications") 35 - } 36 38 if let shortcutHint { 37 39 ShortcutHintView(text: shortcutHint, color: .secondary) 38 40 }