Skip to content

Commit b81fa40

Browse files
authored
Merge pull request #84 from mcintyre94/verify-quick-actions-functionality-6d52d296
Remove duplicate Quick Actions button from chat input bar
2 parents c553f92 + 11ec8bd commit b81fa40

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

Wisp/Views/SpriteDetail/Chat/ChatInputBar.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ struct ChatInputBar: View {
1616
var onRemoveAttachment: ((AttachedFile) -> Void)? = nil
1717
var lastUploadedFileName: String? = nil
1818
var onStash: (() -> Void)? = nil
19-
var onSideChat: (() -> Void)? = nil
2019
var isFocused: FocusState<Bool>.Binding
2120

2221
@State private var showStopConfirmation = false
@@ -60,15 +59,6 @@ struct ChatInputBar: View {
6059
)
6160
}
6261

63-
if let onSideChat {
64-
Button(action: onSideChat) {
65-
Image(systemName: "bubble.and.pencil")
66-
.font(.title3)
67-
}
68-
.buttonStyle(.glass)
69-
.help("Side chat")
70-
}
71-
7262
PasteInterceptingTextInput(
7363
text: $text,
7464
isFocused: isFocused,
@@ -137,19 +127,6 @@ struct ChatInputBar: View {
137127
)
138128
}
139129

140-
#Preview("With Side Chat") {
141-
@Previewable @State var text = ""
142-
@Previewable @FocusState var isFocused: Bool
143-
ChatInputBar(
144-
text: $text,
145-
isStreaming: false,
146-
onSend: {},
147-
onInterrupt: {},
148-
onSideChat: {},
149-
isFocused: $isFocused
150-
)
151-
}
152-
153130
#Preview("Streaming") {
154131
@Previewable @State var text = ""
155132
@Previewable @FocusState var isFocused: Bool

Wisp/Views/SpriteDetail/Chat/ChatView.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@ struct ChatView: View {
168168
},
169169
lastUploadedFileName: viewModel.lastUploadedFileName,
170170
onStash: { viewModel.stashDraft() },
171-
onSideChat: {
172-
quickActionsViewModel = QuickActionsViewModel(
173-
spriteName: viewModel.spriteName,
174-
sessionId: viewModel.sessionId,
175-
workingDirectory: viewModel.workingDirectory
176-
)
177-
},
178171
isFocused: $isInputFocused
179172
)
180173
}

0 commit comments

Comments
 (0)