-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$500] [Distance] - mWeb - Focus is missing on the input Distance. #27202
Comments
Job added to Upwork: https://www.upwork.com/jobs/~018884aaf0dffcfd73 |
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Distance] - Focus is not setting when input distance appears What is the root cause of that problem?There is no focus setting within the MoneyRequestParticipantsSelector component, that is responsible for selecting the user What changes do you think we should make in order to solve the problem?Adding autoFocus flag when OptionsSelector is called: <OptionsSelector
...
autoFocus
shouldDelayFocus
...
/> What alternative solutions did you explore?basically add focus to componentDidUpdate hook: if (this.optionsSelectorRef.current && this.optionsSelectorRef.current.focus) {
this.optionsSelectorRef.current.focus();
} and create reference in the MoneyRequestParticipantsSelector component itself, for it to pass to the OptionsSelector Component: lass MoneyRequestParticipantsSelector extends Component {
constructor(props) {
super(props);
...
this.optionsSelectorRef = React.createRef();
...
}
...
return (
<OptionsSelector
...
ref={this.optionsSelectorRef}
...
/>
); |
📣 @papergliff! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.The input when trying to select a Workspace during the Distance Request flow does not automatically gain focus. What is the root cause of that problem?This seems to be intentional. However, if that's not the case, the MoneyRequestParticipantsPage component includes a MoneyRequestParticipantsSelector which makes use of an OptionsSelector, and we're not passing the What changes do you think we should make in order to solve the problem?
<OptionsSelector
...
+ autoFocus={this.props.autoFocus}
+ shouldDelayFocus={this.props.shouldDelayFocus}
/>
<MoneyRequestParticipantsSelector
...
+ autoFocus
+ shouldDelayFocus
/> What alternative solutions did you explore? (Optional)None. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The input when trying to select a Workspace during the Distance Request flow does not autofocus. What is the root cause of that problem ?in the MoneyRequestParticipantsSelector.js file, loads the OptionsSelector component as input. On the other hand, the OptionsSelector component already has an autoFocus prop ready to use, but the MoneyRequestParticipantsSelector.js does not implement the autoFocus props. What changes do you think we should make in order to solve the problem ?only adds the autoFocus and shouldDelayFocus props to the OptionsSelector component in MoneyRequestParticipantsSelector.js rather than passing the props to the parent component.
Screencast.from.2023-09-12.10-42-52.webmWhat alternative solutions did you explore? (Optional)none |
ProposalPlease re-state the problem that we are trying to solve in this issue.The focus appears and disappears instantly. There's also the issue where the screen animation to the participants screen is much quicker than other screen transitions, the screen just snaps out when we click on Next, there should be an animation with the correct timing. What is the root cause of that problem?It's because in What changes do you think we should make in order to solve the problem?This has happened many times with a lot of inputs, and the standard way to fix it is to use So the steps are:
There's a known issue with What alternative solutions did you explore? (Optional)NA |
Proposal from @tienifr looks good to me - in case we should use standard approach inside project for focusing inputs with onEntryTransitionEnd #27202 (comment) |
Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Mauri-salazar 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
PR ready for review: #27294. |
Same as prior issue - distance related! |
🎯 ⚡️ Woah @narefyev91 / @tienifr, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
This is dupe of #24314 and that issue is eligible for reporting bonus because it was reported first |
Hmm @dylanexpensify I think you should still be assigned here as BZ, right? (and not @neil-marcellini) |
FYI this issue was a dupe of #24314. Since #24314 was reported first, we should pay the reporting bonus to @gadhiyamanan. The PR fixing this issue was merged first though, so all other payments remain the same. |
Yes I think BZ is all that remains to be done here. |
@amyevans @narefyev91 @dylanexpensify @tienifr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@dylanexpensify can you handle payments please? 🙏 |
on it @amyevans! |
Payment summary:
|
@dylanexpensify it is eligible for $250 reporting bonus because it was reported before 30 August |
ah yep - updating! nice catch |
@narefyev91 @gadhiyamanan please apply here! |
Hey @dylanexpensify - I'm from Callstack - no need any payment from Upwork :-) |
@dylanexpensify applied, thanks! |
done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Should focus on the input Distance.
Actual Result:
The focus appears and disappears instantly.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.67.1
Reproducible in staging?: y
Reproducible in production?: y
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
Screen_Recording_20230908_121950_Chrome.mp4
Screen_Recording_20230911_170726_Chrome.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Mauri-salazar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694186307956829
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: