Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(search): filter threads with GitHub-style qualifiers #16858

Closedonmax(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/16858/headopened View on GitHub

Showing 31 changed files with 112 additions and 27 deletions (loading 29).

x
0 of 31 viewed, 31 left
14 additions and 1 deletionapps/mobile/src/features/home/HomeRouteScreen.tsxModified
View file
@@ -36,7 +36,20 @@
const { savedConnectionsById } = useSavedRemoteConnections();
const navigation = useNavigation();
const [searchQuery, setSearchQuery] = useState("");
- const handleSelectThread = useHomeThreadSelection();
+ const selectThread = useHomeThreadSelection();
+ const handleSelectThread = useCallback(
+ (thread: EnvironmentThreadShell) => {
+ if (thread.archivedAt !== null) {
+ navigation.navigate("SettingsSheet", {
+ screen: "SettingsContent",
+ params: { screen: "SettingsArchive" },
+ });
+ return;
+ }
+ selectThread(thread);
+ },
+ [navigation, selectThread],
+ );
const handleNewThreadOnBranch = useCallback(
(thread: EnvironmentThreadShell) => {
navigation.navigate("NewTaskSheet", {
98 additions and 26 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -5,6 +5,7 @@
import {
type EnvironmentProject,
type EnvironmentThreadShell,