Skip to content

Commit a12985c

Browse files
committed
fix: narrow shared question card visibility
1 parent 361996d commit a12985c

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

apps/.i18n/native-source.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36731,55 +36731,55 @@
3673136731
},
3673236732
{
3673336733
"kind": "ui-call",
36734-
"line": 237,
36734+
"line": 234,
3673536735
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3673636736
"source": "Other answer",
3673736737
"surface": "apple",
3673836738
"id": "native.apple.da4494f9e875169d"
3673936739
},
3674036740
{
3674136741
"kind": "conditional-branch",
36742-
"line": 276,
36742+
"line": 273,
3674336743
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3674436744
"source": "Not selected",
3674536745
"surface": "apple",
3674636746
"id": "native.apple.e9c3855562d8e4e9"
3674736747
},
3674836748
{
3674936749
"kind": "conditional-branch",
36750-
"line": 276,
36750+
"line": 273,
3675136751
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3675236752
"source": "Selected",
3675336753
"surface": "apple",
3675436754
"id": "native.apple.bd4335213464d4be"
3675536755
},
3675636756
{
3675736757
"kind": "conditional-branch",
36758-
"line": 288,
36758+
"line": 285,
3675936759
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3676036760
"source": "Submit",
3676136761
"surface": "apple",
3676236762
"id": "native.apple.e3095b651fc46b52"
3676336763
},
3676436764
{
3676536765
"kind": "conditional-branch",
36766-
"line": 288,
36766+
"line": 285,
3676736767
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3676836768
"source": "Submitting…",
3676936769
"surface": "apple",
3677036770
"id": "native.apple.6c1adc16e0a846e5"
3677136771
},
3677236772
{
3677336773
"kind": "conditional-branch",
36774-
"line": 309,
36774+
"line": 306,
3677536775
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3677636776
"source": "Expires in \\(seconds / 60)m \\(seconds % 60)s",
3677736777
"surface": "apple",
3677836778
"id": "native.apple.698bdb0d6537edb6"
3677936779
},
3678036780
{
3678136781
"kind": "conditional-branch",
36782-
"line": 309,
36782+
"line": 306,
3678336783
"path": "apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift",
3678436784
"source": "Expires in \\(seconds)s",
3678536785
"surface": "apple",

apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatQuestionCard.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,22 +194,19 @@ public final class OpenClawQuestionCardModel: Identifiable {
194194
}
195195
}
196196

197-
// periphery:ignore - Public SwiftUI component for package consumers; native apps embed it through the shared list.
198-
public struct OpenClawQuestionCard: View {
197+
struct OpenClawQuestionCard: View {
199198
@Bindable private var model: OpenClawQuestionCardModel
200199
private let onSubmit: @MainActor @Sendable (OpenClawQuestionCardModel) async -> Void
201200

202-
// periphery:ignore - Public construction is part of the exported SwiftUI component API.
203-
public init(
201+
init(
204202
model: OpenClawQuestionCardModel,
205203
onSubmit: @escaping @MainActor @Sendable (OpenClawQuestionCardModel) async -> Void)
206204
{
207205
self.model = model
208206
self.onSubmit = onSubmit
209207
}
210208

211-
// periphery:ignore - SwiftUI View witness must stay public for the exported component.
212-
public var body: some View {
209+
var body: some View {
213210
TimelineView(.periodic(from: .now, by: 1)) { context in
214211
VStack(alignment: .leading, spacing: 14) {
215212
ForEach(self.model.record.questions, id: \.id) { question in

0 commit comments

Comments
 (0)