Skip to content

Commit

Permalink
fixed history section and updated history tab icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-sethi committed Mar 19, 2024
1 parent 041d22d commit d229e0b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 47 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,50 +18,6 @@
endingLineNumber = "30"
landmarkName = "body"
landmarkType = "24">
<Locations>
<Location
uuid = "ED4C0402-E86E-494C-ADA8-B773FBEE5A38 - debefea96e68db80"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "(1) suspend resume partial function for closure #1 @Sendable () async -&gt; () in closure #1 () -&gt; () in closure #1 () -&gt; SwiftUI._ConditionalContent&lt;ChatUI.APITokenSetup, &lt;&lt;opaque return type of SwiftUI.View.onAppear(perform: Swift.Optional&lt;() -&gt; ()&gt;) -&gt; some&gt;&gt;.0&gt; in ChatUI.ChatUIApp.body.getter : some"
moduleName = "ChatUI"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/nishantsethi/MyWork/xcode%20playgrounds/ChatUI/ChatUI/ChatUIApp.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "30"
endingLineNumber = "30">
</Location>
<Location
uuid = "ED4C0402-E86E-494C-ADA8-B773FBEE5A38 - 148f305722944a76"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "(2) await resume partial function for closure #1 @Sendable () async -&gt; () in closure #1 () -&gt; () in closure #1 () -&gt; SwiftUI._ConditionalContent&lt;ChatUI.APITokenSetup, &lt;&lt;opaque return type of SwiftUI.View.onAppear(perform: Swift.Optional&lt;() -&gt; ()&gt;) -&gt; some&gt;&gt;.0&gt; in ChatUI.ChatUIApp.body.getter : some"
moduleName = "ChatUI"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/nishantsethi/MyWork/xcode%20playgrounds/ChatUI/ChatUI/ChatUIApp.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "30"
endingLineNumber = "30">
</Location>
<Location
uuid = "ED4C0402-E86E-494C-ADA8-B773FBEE5A38 - 66e961011db1e786"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "(3) suspend resume partial function for closure #1 @Sendable () async -&gt; () in closure #1 () -&gt; () in closure #1 () -&gt; SwiftUI._ConditionalContent&lt;ChatUI.APITokenSetup, &lt;&lt;opaque return type of SwiftUI.View.onAppear(perform: Swift.Optional&lt;() -&gt; ()&gt;) -&gt; some&gt;&gt;.0&gt; in ChatUI.ChatUIApp.body.getter : some"
moduleName = "ChatUI"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/nishantsethi/MyWork/xcode%20playgrounds/ChatUI/ChatUI/ChatUIApp.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "30"
endingLineNumber = "30">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
Expand Down
3 changes: 1 addition & 2 deletions ChatUI/Modules/Home/HistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ struct HistoryView: View {
var body: some View {
NavigationStack {
List(historyItems) { item in
NavigationLink(destination: Chat(promptVM: promptVM, historyVM: HistoryViewModel())) {
NavigationLink(destination: Chat(promptVM: promptVM, historyVM: HistoryViewModel(),history: item)) {
ChatHistoryItem(historyItem: item)
}
Text(item.prompt)
}
.listStyle(.inset)
.navigationTitle("Chat History")
Expand Down
2 changes: 1 addition & 1 deletion ChatUI/Modules/Home/Main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct Main: View {
Label("Prompt Library", systemImage: "books.vertical.circle")
}.tag(Tab.library)
HistoryView(promptVM: promptVM, historyItems: historyVM.history).tabItem {
Label("History", systemImage: "globe")
Label("History", systemImage: "note.text")
}.tag(Tab.history)
ExploreView(exploreItems: Explore.sampleData).tabItem {
Label("Explore", systemImage: "globe")
Expand Down

0 comments on commit d229e0b

Please sign in to comment.