Skip to content

Commit 880849c

Browse files
author
opencode
committed
fix: address PR 45 comments - move safety note, correct docstring
- front/app/parent/botSimple.tsx: move baseline safety note above Restrict Foul Language so it introduces the toggle group instead of splitting foul/adult toggles (fixes #45 (comment)) - front/components/MarkdownRenderer.tsx: fix linkDomain docstring example (docs.example.com not example.com) per Copilot comment
1 parent d7ba4b1 commit 880849c

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

front/app/parent/botSimple.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ export default function SimpleBotEditor({
123123
}
124124
/>
125125
</ThemedView>
126+
<ThemedView style={styles.formGroup}>
127+
<ThemedText testID="baseline-safety-note" style={styles.safetyNote}>
128+
Syft always applies baseline safety. These toggles add extra limits.
129+
</ThemedText>
130+
</ThemedView>
126131
<ThemedView
127132
style={[styles.formGroupCheckbox, { backgroundColor: bgColor }]}
128133
>
@@ -137,11 +142,6 @@ export default function SimpleBotEditor({
137142
}
138143
/>
139144
</ThemedView>
140-
<ThemedView style={styles.formGroup}>
141-
<ThemedText testID="baseline-safety-note" style={styles.safetyNote}>
142-
Syft always applies baseline safety. These toggles add extra limits.
143-
</ThemedText>
144-
</ThemedView>
145145
<ThemedView
146146
style={[styles.formGroupCheckbox, { backgroundColor: bgColor }]}
147147
>

front/components/MarkdownRenderer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ interface MarkdownRendererProps {
1010

1111
/**
1212
* Extract the hostname to show in the outbound-link confirm sheet, e.g.
13-
* "https://docs.example.com/page" -> "example.com". Falls back to the raw
13+
* "https://docs.example.com/page" -> "docs.example.com" (and
14+
* "https://www.example.com/page" -> "example.com"). Falls back to the raw
1415
* URL when it cannot be parsed.
1516
*/
1617
export function linkDomain(url: string): string {

0 commit comments

Comments
 (0)