Skip to content

Commit bee555c

Browse files
Added issue navigator menu
1 parent 9cabecd commit bee555c

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// IssueNavigatorView.swift
3+
// CodeEdit
4+
//
5+
// Created by Abe Malla on 3/14/25.
6+
//
7+
8+
import SwiftUI
9+
10+
struct IssueNavigatorView: View {
11+
var body: some View {
12+
VStack {
13+
Spacer()
14+
}
15+
}
16+
}

CodeEdit/Features/NavigatorArea/Models/NavigatorTab.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ enum NavigatorTab: WorkspacePanelTab {
1313
case project
1414
case sourceControl
1515
case search
16+
case issues
1617
case uiExtension(endpoint: AppExtensionIdentity, data: ResolvedSidebar.SidebarStore)
1718

1819
var systemImage: String {
@@ -23,6 +24,8 @@ enum NavigatorTab: WorkspacePanelTab {
2324
return "vault"
2425
case .search:
2526
return "magnifyingglass"
27+
case .issues:
28+
return "exclamationmark.triangle"
2629
case .uiExtension(_, let data):
2730
return data.icon ?? "e.square"
2831
}
@@ -43,6 +46,8 @@ enum NavigatorTab: WorkspacePanelTab {
4346
return "Source Control"
4447
case .search:
4548
return "Search"
49+
case .issues:
50+
return "Issues"
4651
case .uiExtension(_, let data):
4752
return data.help ?? data.sceneID
4853
}
@@ -56,6 +61,8 @@ enum NavigatorTab: WorkspacePanelTab {
5661
SourceControlNavigatorView()
5762
case .search:
5863
FindNavigatorView()
64+
case .issues:
65+
IssueNavigatorView()
5966
case let .uiExtension(endpoint, data):
6067
ExtensionSceneView(with: endpoint, sceneID: data.sceneID)
6168
}

CodeEdit/Features/NavigatorArea/Views/NavigatorAreaView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct NavigatorAreaView: View {
1919
self.workspace = workspace
2020
self.viewModel = viewModel
2121

22-
viewModel.tabItems = [.project, .sourceControl, .search] +
22+
viewModel.tabItems = [.project, .sourceControl, .search, .issues] +
2323
extensionManager
2424
.extensions
2525
.map { ext in

0 commit comments

Comments
 (0)