# Files changed · PR \#23145 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/23145/diffs)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

[fix\(mobile\): the pull requests tab's empty detail asks for a pull request](https://git.cafe/pingdotgg/t3code/pull/23145.md)

Version: 7

Head commit: c23590a93552b91c4f527ffb31062cdae1c71107

Base commit: fe869aba229e646d62674a08df914ce41c496803

Comparison base: fe869aba229e646d62674a08df914ce41c496803

Showing up to 20 entries from this revision. If the pull request changes, reopen the first page before continuing.

## apps/mobile/src/features/layout/WorkspaceEmptyDetail.tsx

Status: modified; +12; −5

```diff
@@ -5,11 +5,14 @@
 import { NewThreadButton } from "../../components/NewThreadButton";
 import { FloatingActionButton } from "../../components/ui/FloatingActionButton";
 import { EmptyState } from "../../components/ui/EmptyState";
+import type { WorkspaceTab } from "../workspace/workspace-tabs-state";
 
 export function WorkspaceEmptyDetail(props: {
+  readonly tab?: WorkspaceTab;
   readonly onStartNewTask?: () => void;
   readonly onAddConnection?: () => void;
 }) {
+  const pullRequests = props.tab === "pullRequests";
   return (
     <View
       className={
@@ -43,13 +46,17 @@
             tintColorClassName="accent-icon-subtle"
             type="hierarchical"
           />
+          <Text className="text-center text-xl font-t3-bold">
+            {pullRequests ? "Select a pull request" : "Select a thread"}
-          <Text className="text-center text-xl font-t3-bold">Select a thread</Text>
+          </Text>
           <Text className="text-center text-base text-foreground-muted">
+            {pullRequests
+              ? "Choose a pull request from the sidebar to review it."
-            {Platform.OS === "android"
-              ? "Choose a thread from the sidebar or start a new thread."
-              : "Choose a thread from the sidebar or start a new task."}
+              : Platform.OS === "android"
+                ? "Choose a thread from the sidebar or start a new thread."
+                : "Choose a thread from the sidebar or start a new task."}
           </Text>
-          {props.onStartNewTask ? (
+          {props.onStartNewTask && !pullRequests ? (
             Platform.OS === "android" ? (
               <NewThreadButton extended className="mt-2" onPress={props.onStartNewTask} />
             ) : (
```

## apps/mobile/src/features/layout/createWorkspaceStackNavigator.ios.tsx

Status: modified; +1; −0

```diff
@@ -280,6 +280,7 @@
             />
             <ColumnContent>
               <WorkspaceEmptyDetail
+                tab={selectedTab}
                 onStartNewTask={
                   // The detail bar or a visible sidebar already carries compose.
                   detailCompose || panes.primarySidebarVisible ? undefined : openNewTask
```
