Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

feat(mobile): allow creating a list from the manage lists page

Mohamed Bassemf97771286208
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
index 4afea2b1..00488c5b 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_lists.tsx
@@ -1,13 +1,13 @@
import React from "react";
import { ActivityIndicator, Pressable, ScrollView, View } from "react-native";
-import { Stack, useLocalSearchParams } from "expo-router";
+import { Link, Stack, useLocalSearchParams } from "expo-router";
import QueryPageState from "@/components/QueryPageState";
import { RowSeparator } from "@/components/ui/GroupedList";
import { Text } from "@/components/ui/Text";
import { useToast } from "@/components/ui/Toast";
import { useColorScheme } from "@/lib/useColorScheme";
import { useQuery } from "@tanstack/react-query";
-import { Check } from "lucide-react-native";
+import { Check, Plus } from "lucide-react-native";
import { useHeaderHeight } from "expo-router/react-navigation";
import type { ZBookmarkList } from "@karakeep/shared/types/lists";
@@ -121,6 +121,18 @@ const ListPickerPage = () => {
headerShown: true,
headerTransparent: false,
headerTitle: "Manage Lists",
+ headerRight: () => (
+ <Link href="/dashboard/lists/new" asChild>
+ <Pressable
+ accessibilityLabel="Create list"
+ accessibilityRole="button"
+ hitSlop={8}
+ className="px-2"
+ >
+ <Plus size={22} color={colors.primary} strokeWidth={2.5} />
+ </Pressable>
+ </Link>
+ ),
}}
/>
<ScrollView