-
Notifications
You must be signed in to change notification settings - Fork 0
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
test github input #1
Comments
|
function resetContactMethodValidateCodeSentState(contactMethod) {
const existingLoginData = Onyx.get(ONYXKEYS.LOGIN_LIST, {});
if (existingLoginData.hasOwnProperty(contactMethod)) {
return;
} Onyx.merge(ONYXKEYS.LOGIN_LIST, {
[contactMethod]: {
validateCodeSent: false,
},
});
} |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that when we click add reaction bubble below a comment. Emoji selector covers LHN What is the root cause of that problem?The root cause of the problem is here: https://github.com/Expensify/App/blob/6319e59c29bf7304654e4ede3c2215a6e65016bf/src/components/EmojiPicker/EmojiPicker.js#L47 What changes do you think we should make in order to solve the problem?We can pass in the anchorOrigin value with a horizontal origin of 'center'. What alternative solutions did you explore? (Optional)None Result |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that Money in wallet badge is not center, bottom is bigger than top. What is the root cause of that problem?The root cause of the problem is : What changes do you think we should make in order to solve the problem?We can set the line-height of the badgeText and the height of the badge to be the same, which will center it. What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.if tooltip was in an opened state and the user navigated to external site and came back, tooltip will show again What is the root cause of that problem?When the "Add bank account" button is clicked, it opens a Plaid page in an iframe. When the mouse moves within the iframe, the parent page does not receive any mouse events. Once the user closes the iframe and stops moving the mouse, the onMouseEnter function triggers automatically and sets setIsHovered to true, regardless of any other conditions. What changes do you think we should make in order to solve the problem?We can add an event listener to identify if the mouse has entered the iframe:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.if tooltip was in an opened state and the user navigated to external site and came back, tooltip will show again What is the root cause of that problem?When the "Add bank account" button is clicked, it opens a Plaid page in an iframe. When the mouse moves within the iframe, the parent page does not receive any mouse events. Once the user closes the iframe and stops moving the mouse, the onMouseEnter function triggers automatically and sets setIsHovered to true, regardless of any other conditions. What changes do you think we should make in order to solve the problem?We can add an event listener to identify if the mouse has entered the iframe:
Add if block in the onMouseEnter that checks for the isMouseEnterIframe state:
What alternative solutions did you explore? (Optional)replaced |
1 similar comment
ProposalPlease re-state the problem that we are trying to solve in this issue.if tooltip was in an opened state and the user navigated to external site and came back, tooltip will show again What is the root cause of that problem?When the "Add bank account" button is clicked, it opens a Plaid page in an iframe. When the mouse moves within the iframe, the parent page does not receive any mouse events. Once the user closes the iframe and stops moving the mouse, the onMouseEnter function triggers automatically and sets setIsHovered to true, regardless of any other conditions. What changes do you think we should make in order to solve the problem?We can add an event listener to identify if the mouse has entered the iframe:
Add if block in the onMouseEnter that checks for the isMouseEnterIframe state:
What alternative solutions did you explore? (Optional)replaced |
Add a mutation observer in componentDidMount that checks if there is an iFrame.
Disconnect the mutation observer in componentWillUnmount:
Check if state.isMouseEnterIframe is true in onMouseEnter:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Avatar of a new user changes to another default avatar when switching from offline to online What is the root cause of that problem?When we are offline and create a chat with a new user, we use an optimistic ID as their account ID: When switching from offline to online, the server will update the optimistic ID to use the correct ID instead. At the same time, it also changed the address of the avatar: https://d2k5ns\2zxldvw.cloudfront.net/images/avatars/default-avatar_7.png We're using function getAvatar to calculate the avatar here:
When a new avatar address is passed into the isDefaultAvatar function, it returns true. As a result, we recalculated the avatar address with the new accountID, and it return a different avatar. What changes do you think we should make in order to solve the problem?We can change the logic in isDefaultAvatar, remove this part:
What alternative solutions did you explore? (Optional) |
Proposal
Please re-state the problem that we are trying to solve in this issue.
Hardcoding contact method details URL with a non existent contact method shows magic code verification for a brief amount of time before showing not found page.
What is the root cause of that problem?
The root cause of this problem is on ContactMethodDetailsPage.js file, lines 212-215:
const loginData = this.props.loginList[contactMethod]; if (!contactMethod || !loginData || !loginData.partnerUserID) { return <NotFoundPage />; }
An existent contact method object will have a bunch of properties when created, one of them being partnerUserID which I will use for the solution of the problem. A non existent contact method object will only have the validateCodeSent property set to false, getting it from our resetContactMethodValidateCodeSentState method.
On the above code section, we are only checking if the loginData object exists, and it does, with the validateCodeSent property I mentioned above.
This of course is not the correct check to do to determine if the contact method is found, which leads to showing the Magic Code validation page later on the code, which we show when that condition is true:
!loginData.validatedDate && !isFailedAddContactMethod, and of course, since loginData only has the validateCodeSent it becomes true.
What changes do you think we should make in order to solve the problem?
On lines 212-215 , we should add a check for partnerUserID in the condition:
if (!contactMethod || !loginData || !loginData.partnerUserID) { return <NotFoundPage />; }
https://github.com/Expensify/App/blob/4230f289341c8d6d9a8b780d54da0725d4764b2b/src/libs/actions/User.js#L266-L272to
260231292-5a482dbc-f38f-44f6-b4de-7ff30dac172a.mov
function resetContactMethodValidateCodeSentState(contactMethod) { const existingLoginData = Onyx.get(ONYXKEYS.LOGIN_LIST, {}); if (existingLoginData.hasOwnProperty(contactMethod)) { return; } Onyx.merge(ONYXKEYS.LOGIN_LIST, { [contactMethod]: { validateCodeSent: false, }, }); }
The text was updated successfully, but these errors were encountered: