-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: migrating touch component to RN touchable from RNGH #7473
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
base: develop
Are you sure you want to change the base?
Changes from 4 commits
109e596
946e086
b0703d5
442eee9
2334cbd
73e8bcc
6bc22e0
a04b802
5ecd71c
9a7d4e5
c66940f
8c09e6d
24bc31f
6ce41b8
3998556
1044076
e134ee4
c1bc640
6a7bed4
2b0e87d
dbff978
0fad987
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,7 @@ import { WidthAwareView } from './Components/WidthAwareView'; | |||||
| import MessageTime from './Time'; | ||||||
| import { useResponsiveLayout } from '../../lib/hooks/useResponsiveLayout/useResponsiveLayout'; | ||||||
| import Quote from './Components/Attachments/Quote'; | ||||||
| import Touch from './Touch'; | ||||||
| import Touch from '../Touch'; | ||||||
|
Contributor
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. 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== File map ==\n'
git ls-files app/containers/message/Message.tsx app/containers/Touch.tsx app/containers/message | sed 's#^`#-` #'
printf '\n== Relevant outlines ==\n'
ast-grep outline app/containers/message/Message.tsx --view expanded || true
printf '\n---\n'
ast-grep outline app/containers/Touch.tsx --view expanded || true
printf '\n== Targeted reads ==\n'
sed -n '1,120p' app/containers/Touch.tsx
printf '\n--- Message.tsx around import and Touch usage ---\n'
sed -n '1,260p' app/containers/message/Message.tsx
printf '\n== Search for enabled/disabled usage with Touch ==\n'
rg -n "enabled=|disabled=|<Touch|Touch " app/containers/message app/containers/Touch.tsxRepository: RocketChat/Rocket.Chat.ReactNative Length of output: 50390 Use
Suggested fix- disabled={isDisabled}
+ enabled={!isDisabled}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| import { useLastFocusedMessageRef } from '../../lib/a11y/useLastFocusedMessageRef'; | ||||||
| import { useMessageAccessibilityLabel } from './hooks/useMessageAccessibilityLabel'; | ||||||
| import { useMessageAccessibilityActions } from './hooks/useMessageAccessibilityActions'; | ||||||
|
|
||||||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Incorrect contains-pattern for text selectors.
These text selectors use
'.*keyword*.'instead of the correct'.*keyword.*'form (leading and trailing.*). Since the target keyword sits at the end of the matched string in all three cases, the pattern will fail to match at runtime.Based on learnings, in Maestro YAML selector fields, use the contains pattern
'.*keyword.*'(leading and trailing.*);'.*keyword*.'is incorrect and will fail to match cases where the keyword appears at the end of the element's text.🩹 Proposed fix
Also applies to: 267-267, 286-286
🤖 Prompt for AI Agents
Source: Learnings