-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-10-09] [$500] After Logout, using CMD + J only generates 2 shortcuts in the pop-up (instead of the full list) #26829
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Proposal by @Charan-hsPlease re-state the problem that we are trying to solve in this issue.All keyboard shortcut shows up in modal after Logout What is the root cause of that problem?When we are logged in or logged out we are unsubscribing the event handlers here. App/src/libs/KeyboardShortcut/index.js Lines 83 to 87 in fdcae9f
but When unsubscribing, we remove event listeners but not shortcuts from the variable documentedShortcuts . Even though I have unsubscribed, the shortcuts are still present in documentedShortcuts .
What changes do you think we should make in order to solve the problem?Here, App/src/libs/KeyboardShortcut/index.js Lines 83 to 87 in fdcae9f
When unsubscribed we can remove the values present in documentedShortcuts by displayname (key).
lodashUnset(documentedShortcuts,displayName);
//or
documentedShortcuts = _.omit(documentedShortcuts,displayName);
//or
documentedShortcuts[displayName] = {} // here we can return null or {}
//We can use the delete method also based on your request. What alternative solutions did you explore? (Optional) |
Able to repro! |
@Charan-hs @kavimuru I am confused at this issue. Here is what you've written:
Should these 2 be reversed? i.e. when you're logged in, you see all the shortcuts, but when you're logged out, you only see 2 shortcuts. or are yousaying we should only ever see 2 shortcuts? (which doesn't sound right to me) |
@jliexpensify, I think there are 2 bugs here -
Not reported here but i noticed, i believe can be handled with this issue. Screen.Recording.2023-09-06.at.11.55.25.PM.mov |
@ishpaul777 thanks for reporting this one:
I also noticed this in my testing! After chatting to @kadiealexander I think I got confused initially, so ignore this comment! Going to mark this as external, and I think we should also fix the 2nd issue outlined above. |
Job added to Upwork: https://www.upwork.com/jobs/~0124cd08463cfd5f26 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@jliexpensify, The expected and actual results are based on the logged-out page. This means that when a user signs in, they should be able to see all keyboard shortcuts, such as |
@ishpaul777 Thank you for bringing this to our attention. However, I would like to inform you that this issue is already being addressed and worked on at the moment.#25448 |
@jliexpensify we should keep this hold till #26809 is merged |
I agree with holding this; the result will be better after merging the PR on #26809. |
Cool, thanks! On hold now - please ping me when you want this off hold. |
@jliexpensify this PR #26809 is merged and deployed. |
📣 @ntdiary 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Charan-hs 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @Charan-hs 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@ntdiary PR is ready for Review #28053 but this PR is auto-assigned to @hayata-suenaga |
I don't know why I was auto-assigned to the PR 🤔 @jasperhuangg I unassigned myself and assigned you as the reviewer of the PR 🙇 |
🎯 ⚡️ Woah @ntdiary / @Charan-hs, 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 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-09. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary:
|
@ntdiary bump to complete the checklist please! |
Not a regression, just a tiny feature polish, don't need a regression test. : ) |
@Charan-hs - paying now. For future reference, there's no need to submit work for review. Thanks! |
Everyone has been paid and job is closed! |
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:
cmd+j
to open shortcut modal without page reload.Expected Result:
only ESC and Shortcut(" CMD+J") keys should be shown
Actual Result:
All Shortcuts are shown here
Platforms: MacOS / Chrome / Safari
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.64-0
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
with.bug.shortcut.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Charan-hs
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692612279461809
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: