-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chat Composer Glow Up / Changed Functionality #1513
Changes from 6 commits
54026ef
952b479
db9553b
cc44c63
f78c3bb
8102c02
1728c8c
b6419ad
99e3525
a3d0d83
55814f5
4a9fb97
9517160
5b29a45
ea59bf7
cd458c7
39474b6
f4824a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import { ParsedText } from "@components/ParsedText/ParsedText"; | |
import Clipboard from "@react-native-clipboard/clipboard"; | ||
import { actionSheetColors } from "@styles/colors"; | ||
import * as Linking from "expo-linking"; | ||
import { useCallback } from "react"; | ||
import { useCallback, useEffect } from "react"; | ||
import { StyleProp, StyleSheet, TextStyle, useColorScheme } from "react-native"; | ||
import { navigate } from "../utils/navigation"; | ||
import { | ||
|
@@ -26,6 +26,10 @@ export function ClickableText({ children, style }: Props) { | |
const colorScheme = useColorScheme(); | ||
const styles = useStyles(); | ||
|
||
useEffect(() => { | ||
console.log("ClickableText", children); | ||
}, [children]); | ||
|
||
const handleEmailPress = useCallback((email: string) => { | ||
try { | ||
Linking.openURL(`mailto:${email}`); | ||
|
@@ -38,7 +42,7 @@ export function ClickableText({ children, style }: Props) { | |
}, []); | ||
|
||
const handleNewConversationPress = useCallback((peer: string) => { | ||
navigate("NewConversation", { peer }); | ||
navigate("Conversation", { peer }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Navigation route inconsistency detected The change to use "Conversation" in
🔗 Analysis chainVerify navigation flow changes. The navigation destination has changed from "NewConversation" to "Conversation". Ensure this change is intentional and all related navigation flows have been updated accordingly. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for any remaining references to the old navigation route
rg '"NewConversation"' --type ts --type tsx
# Search for navigation.navigate calls to verify consistency
ast-grep --pattern 'navigate("Conversation"'
Length of output: 120 Script: #!/bin/bash
# Search for both old and new navigation routes
rg -t typescript -t javascriptreact -t typescriptreact '"NewConversation"|"Conversation"'
# Search for navigation patterns using ast-grep
ast-grep --pattern 'navigate($ROUTE, $$$)'
# Also search for navigation.navigate pattern
ast-grep --pattern 'navigation.navigate($ROUTE, $$$)'
Length of output: 4641 |
||
}, []); | ||
|
||
const showCopyActionSheet = useCallback( | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove debug logging before production deployment.
The useEffect hook with console.log should be removed before deploying to production as it may impact performance and pollute logs.