Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/mobile/src/j5/agents/AgentLibrarySettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function OwnerAgentLibrarySettingsScreen() {
) : null}

<SettingsSection
title="Agent Setup"
title="Personas"
footer={
Platform.OS === "web"
? "Use Settings → Agent Setup in the web app to import files."
Expand Down Expand Up @@ -490,7 +490,7 @@ function OwnerAgentLibrarySettingsScreen() {

{effectiveEnvironmentId !== null ? (
<SettingsSection
title="Library sources"
title="Persona library sources"
footer={
librarySources.data?.configured === false
? "Folders this environment reads YAML definitions from, on its machine. Bundled examples appear until a folder is configured or the default folder exists. Adding a folder writes agent-personas.json."
Expand Down
19 changes: 14 additions & 5 deletions apps/mobile/src/j5/playbooks/PlaybookLibrarySettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,24 @@ function PlaybookLibrary({
{/* SafeAreaView takes no className, so the theme surface and flex go on a View. */}
<View className="flex-1 bg-sheet">
<SafeAreaView style={{ flex: 1 }}>
<ScrollView contentContainerClassName="gap-3 p-4">
<Text className="text-xl font-semibold text-foreground">{detail.title}</Text>
{/* The persona sheets' header: the title, and Done at the top. */}
<View className="flex-row items-center justify-between gap-3 px-5 py-3">
<Text className="min-w-0 shrink text-xl font-t3-semibold" numberOfLines={1}>
{detail.title}
</Text>
<Pressable
accessibilityRole="button"
onPress={() => setDetails(null)}
className="px-3 py-2"
>
<Text>Done</Text>
</Pressable>
</View>
<ScrollView contentContainerClassName="gap-3 px-5 pb-6">
<Text className="text-foreground-muted">{detail.description}</Text>
{detail.steps.map((step, index) => (
<Text key={step.id}>{playbookStepLabel(step, index)}</Text>
))}
<Pressable accessibilityRole="button" onPress={() => setDetails(null)}>
<Text className="text-primary">Close</Text>
</Pressable>
</ScrollView>
</SafeAreaView>
</View>
Expand Down
Loading