You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-07-18][$1000] Dev - Console warning on pressing any mentioned user from conversation #21506
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Type a text, mention any user in that text and send it (open console)
Click on that particular mentioned in the chat
Notice on clicking mentioned it throws warning
Expected Result:
No console warning should appear
Actual Result:
Console warning appears
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: v1.3.29-0 Reproducible in staging?: n/a Reproducible in production?: n/a If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
Dev - Console warning on pressing any mentioned user from conversation
What is the root cause of that problem?
The root cause is we recently started using <TextLink> component for MentionUserRenderer.js instead of just <Text> so here the problem is we are not passing accessibilityLabel which required props that is the cause of the error as this should be mandatory as focusable is always true that required accessibilityLabel currently we are not passing or not even passing accessible to false that makes to throw warning on console
What changes do you think we should make in order to solve the problem?
We need to add accessibilityLabel in order to remove the error log this is mandatory because by default focusable is true so we do need to provide accessibilityLabel
We need to define new accessibilityHints for the mentioned user which will be passed to accessibilityLabel message in both languages
If we don’t need accessibilityLabel inside MentionUserRenderer.js then we can just pass accessible to false this will also remove the error
Optional changes
Disregards this error I have logged another bug report that on opening detail page it throws another warning of Warning: Failed prop type: Invalid prop styleof typeobjectsupplied toPressableWithoutFocus, expected an array.
@bfitzexpensify I don't know why this wasn't automatically updated. The PR was deployed into production 2 days ago. We'll have to do the payments in 5 days.
changed the title [-][$1000] Dev - Console warning on pressing any mentioned user from conversation[/-][+][HOLD for payment 2023-07-18][$1000] Dev - Console warning on pressing any mentioned user from conversation[/+]on Jul 13, 2023
[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
I'm unable to track which PR that causing the console error; it's between the migration on PressableWithoutFocus#20202 or the changes on the TouchableWithoutFocus to PressableWithoutFocus in #8483
[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
The console.error can be caught on the PR review. This issue might arise when migrating the generic component and the test is not happening in all the pages, but we have a checklist to check that.
If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
The error is only shown in DEV, so no regression test is needed. The reviewer checklist already covers this.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 24, 2023
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 24, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kbecciv commentedon Jun 24, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
<TextLink>component forMentionUserRenderer.jsinstead of just<Text>so here the problem is we are not passingaccessibilityLabelwhich required props that is the cause of the error as this should be mandatory as focusable is always true that required accessibilityLabel currently we are not passing or not even passingaccessibleto false that makes to throw warning on consoleWhat changes do you think we should make in order to solve the problem?
accessibilityLabelin order to remove the error log this is mandatory because by default focusable is true so we do need to provide accessibilityLabelaccessibilityLabelmessage in both languagesMentionUserRenderer.jsthen we can just pass accessible to false this will also remove the errorOptional changes
Warning: Failed prop type: Invalid propstyleof typeobjectsupplied toPressableWithoutFocus, expected an array.StevenKKC commentedon Jun 25, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Console warning on pressing any mentioned user from conversation.
What is the root cause of that problem?
User details is displayed in
DetailsPagecomponent, andDetailsPagecontainsPressableWithoutFocus.App/src/pages/DetailsPage.js
Lines 150 to 152 in 820fa93
And
PressableWithoutFocushasstyleprops witharraytype.App/src/components/Pressable/PressableWithoutFocus.js
Line 19 in 820fa93
But
styleprop that is passed toPressableWithoutFocusis notarraytype, so the console warning is displayed.What changes do you think we should make in order to solve the problem?
We can change
styleprop toarraytype.What alternative solutions did you explore? (Optional)
None.
melvin-bot commentedon Jun 26, 2023
Triggered auto assignment to @cristipaval (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.bfitzexpensify commentedon Jun 26, 2023
Hey @cristipaval - I can't test on dev, can you confirm this is reproducible? Thanks!
cristipaval commentedon Jun 26, 2023
I can't reproduce with the latest dev.
bfitzexpensify commentedon Jun 27, 2023
@dhairyasenjaliya can you still reproduce this?
dhairyasenjaliya commentedon Jun 27, 2023
I can repro reliably on the latest main @cristipaval @bfitzexpensify

33 remaining items
dhairyasenjaliya commentedon Jul 5, 2023
@mollfpr @cristipaval PR ready for review
melvin-bot commentedon Jul 12, 2023
@cristipaval, @mollfpr, @bfitzexpensify, @dhairyasenjaliya Whoops! This issue is 2 days overdue. Let's get this updated quick!
cristipaval commentedon Jul 13, 2023
@bfitzexpensify I don't know why this wasn't automatically updated. The PR was deployed into production 2 days ago. We'll have to do the payments in 5 days.
[-][$1000] Dev - Console warning on pressing any mentioned user from conversation[/-][+][HOLD for payment 2023-07-18][$1000] Dev - Console warning on pressing any mentioned user from conversation[/+]bfitzexpensify commentedon Jul 13, 2023
Thanks for catching that @cristipaval
mollfpr commentedon Jul 18, 2023
I'm unable to track which PR that causing the console error; it's between the migration on
PressableWithoutFocus#20202 or the changes on theTouchableWithoutFocustoPressableWithoutFocusin #8483The
console.errorcan be caught on the PR review. This issue might arise when migrating the generic component and the test is not happening in all the pages, but we have a checklist to check that.The error is only shown in DEV, so no regression test is needed. The reviewer checklist already covers this.
mollfpr commentedon Jul 18, 2023
Melvin did not calculate the date...
@dhairyasenjaliya Got assigned on Jul 5
And the PR merged on Jul 6

So merged PR within 1.042 days 🚀
bfitzexpensify commentedon Jul 19, 2023
Cool, all payments issued here, BZ checklist complete, so we're all done - thanks for the solid work!