@@ -3,19 +3,23 @@ import { StatusBar } from "expo-status-bar";
33import {
44 Bell ,
55 Check ,
6+ CloudUpload ,
7+ Github ,
68 Lightbulb ,
79 type LucideIcon ,
810 Menu ,
911 MessageCircle ,
1012 PanelsTopLeft ,
1113 Shapes ,
1214 SquareCheck ,
15+ UserPlus ,
1316 X ,
1417} from "lucide-react-native" ;
1518import { useCallback , useEffect , useMemo , useState } from "react" ;
1619import {
1720 ActivityIndicator ,
1821 AppState ,
22+ Linking ,
1923 Pressable ,
2024 ScrollView ,
2125 Text ,
@@ -37,6 +41,11 @@ import { ChatScreen, WorkspaceTools } from "./src/chat";
3741import { ComputerEntry } from "./src/computer" ;
3842import { ComputerDraftProvider } from "./src/computer-drafts" ;
3943import { Details } from "./src/details" ;
44+ import {
45+ DEPLOY_TO_RENDER_URL ,
46+ GITHUB_REPOSITORY_URL ,
47+ renderSignupUrlWithUtms ,
48+ } from "./src/render-links" ;
4049import { BrowserScreen , CalendarScreen , FilesScreen , MailScreen } from "./src/screens" ;
4150import { ThreadsProvider , ThreadsSheet , useMuseThread } from "./src/threads" ;
4251import { Button , Card , colors , ErrorNotice , Field , IconButton , Mascot , s } from "./src/ui" ;
@@ -301,14 +310,19 @@ function WorkspaceShell({
301310 marginHorizontal : 20 ,
302311 } }
303312 >
304- < View style = { { position : "absolute" , left : 0 , top : 16 } } >
313+ < View style = { [ s . row , { position : "absolute" , left : 0 , top : 16 } ] } >
305314 < IconButton
306315 icon = { Menu }
307316 label = "Open conversations and menu"
308317 onPress = { ( ) => setThreadsOpen ( true ) }
309318 />
319+ < IconButton
320+ icon = { CloudUpload }
321+ label = "Deploy to Render"
322+ onPress = { ( ) => void Linking . openURL ( DEPLOY_TO_RENDER_URL ) }
323+ />
310324 </ View >
311- < View style = { { alignItems : "center" , gap : 1 } } >
325+ < View style = { { alignItems : "center" , gap : 1 , maxWidth : desktop ? "70%" : 120 } } >
312326 < Pressable
313327 accessibilityRole = "button"
314328 accessibilityLabel = { `Open ${ agentName } activity and approvals` }
@@ -339,7 +353,12 @@ function WorkspaceShell({
339353 </ Pressable >
340354 { section === "chat" && < ComputerEntry /> }
341355 </ View >
342- < View style = { { position : "absolute" , right : 0 , top : 16 } } >
356+ < View style = { [ s . row , { position : "absolute" , right : 0 , top : 16 } ] } >
357+ < IconButton
358+ icon = { UserPlus }
359+ label = "Sign up on Render"
360+ onPress = { ( ) => void Linking . openURL ( renderSignupUrlWithUtms ( ) ) }
361+ />
343362 < IconButton
344363 icon = { Bell }
345364 label = { `Notifications, ${ pending } unread or pending` }
@@ -470,6 +489,17 @@ function WorkspaceShell({
470489 ) ;
471490 } ) }
472491 </ View >
492+ < Pressable
493+ accessibilityRole = "link"
494+ accessibilityLabel = "Open the GitHub repository"
495+ onPress = { ( ) => void Linking . openURL ( GITHUB_REPOSITORY_URL ) }
496+ style = { ( { pressed } ) => ( { opacity : pressed ? 0.6 : 1 , paddingVertical : 5 } ) }
497+ >
498+ < View style = { [ s . row , { gap : 5 , justifyContent : "center" } ] } >
499+ < Github size = { 13 } color = { colors . muted } />
500+ < Text style = { s . small } > GitHub repository</ Text >
501+ </ View >
502+ </ Pressable >
473503 </ View >
474504 </ View >
475505 { ! ! toast && (
0 commit comments