Closed kavimuru closed 1 year ago
Triggered auto assignment to @sonialiap (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)Keyboard shortcuts modal does not display the shortcuts in a fixed order.
This is a side effect of a bigger problem. We're showing the shortcuts in the modal depending if they've been subscribed to or not. If they are subscribed, we're saving those in a static file here. This approach has multiple issues:
KeyboardShortcutsModal
doesn't re-render since the documentedShortcuts
is not stored in a state.We should use a Context
that exposes the functions in this file. Using it, will cause our model to re-render whenever a shortcut gets subscribed.
The Context should also return the subscribed shortcuts in a sorted order such that the order always remains the same.
We can just sort the results in this file if using a context is not an option.
Keyboard shortcut bugs are not in scope. Closing the bug as per this comment
Triggered auto assignment to @marcaaron (Engineering
), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
I can't think of a reason why the order of these things would change. I have some suggestions about the clarity of the issue description.
The positioning of the keyboard shortcuts is consistent across different browsers
I would change "positioning" to "ordering". I spent a while looking at the modal and wondering why we care about it's "position" changing a few pixels. Then saw it. Which maybe gives an idea about how urgent this issue is :D
Job added to Upwork: https://www.upwork.com/jobs/~01cbc0a7bdb5971dcf
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External
)
Current assignee @marcaaron is eligible for the External assigner, not assigning anyone new.
When pressing CMD+J to list keyboard shortcuts, the last two shortcuts in the list appear inconsistently with respect to their order across different browsers
The shortcut list is stored here and set here
As we can see the shortcuts are populated in first-come-first-serve order to the subscribe() function. As a result a race condition can make the ordering inconsistent.
Sorting documentedShortcuts
each time a new shortcut is added should resolve the issue
Using a Context
may be a better solution that would also fix the problem of new shortcuts being added after the CMD+J page is loaded. I also noticed that there is no error thrown in case more than one attempts to register the same shortcut combination is there.
📣 @aayushagrawal9! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: aayush@lunadawn.dev Upwork Profile Link: https://www.upwork.com/freelancers/aayushagrawal
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
@allroundexperts, awesome job investigating this, we definitely should fix the bigger problem here. In addition to that, this will resolve another issue here. The discussion in Slack concluded that this is worth fixing, so I think we can move forward with @allroundexperts's proposal
🎀👀🎀 C+ reviewed! cc: @marcaaron
@sonialiap, @marcaaron Whoops! This issue is 2 days overdue. Let's get this updated quick!
Assigning @allroundexperts. But I think I prefer the alternate solution? This issue doesn't seem related to whatever other problem is being discussed here. Can we implement this without using Context?
📣 @eVoloshchak You have been assigned to this job by @marcaaron! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
📣 @allroundexperts You have been assigned to this job by @marcaaron! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
PR created https://github.com/Expensify/App/pull/19305
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.18-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-06-02. :confetti_ball:
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.
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:
Not overdue, will issue payment on June 2
The PR that introduced the bug has been identified. Link to the PR: https://github.com/Expensify/App/pull/6112
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: https://github.com/Expensify/App/pull/6112/files#r1214592096
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: This is a visual bug, not much we can improve besides paying more attention during the PR review. This can be reproduced when using desktop Safari, but it's not a part of the standard review process
Determine if we should create a regression test for this bug. Is it easy to test for this bug? Yes Is the bug related to an important user flow? No Is it an impactful bug? No Don't think a regression test is needed here, the bug is very minor
@adeel0202 offer sent for reporting issue - paid @allroundexperts offer sent for the fix + 3 day merge bonus - paid @eVoloshchak offer sent for the review + 3 day merge bonus - paid
Whoops, @eVoloshchak the Upwork job got closed early 🤦 recreating it and sending you a new offer
Edit: Sent
@sonialiap, accepted, thanks!
Everyone has been paid ✅
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:
The ordering of the keyboard shortcuts is consistent across different browsers.
Actual Result:
The ordering of the keyboard shortcuts is not consistent across different browsers.
Workaround:
Can the user still use Expensify without this being fixed?
Yes.
Have you informed them of the workaround?
No actual user cares about this.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.11-2 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
https://user-images.githubusercontent.com/43996225/236687782-ee7b3f67-cb04-46b1-bd65-de3e2322517d.mov
Uploading Recording #182.mp4…
Expensify/Expensify Issue URL: Issue reported by: @adeel0202 Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683295067148079
View all open jobs on GitHub
Upwork Automation - Do Not Edit