Skip to content
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

"Release options" modal ( CTRL+D) does not appear when image is open #50114

Open
1 of 6 tasks
lanitochka17 opened this issue Oct 2, 2024 · 6 comments
Open
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 2, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.43-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to any chat
  2. Open a image from chat history
  3. Press Ctrl+D to open "Release options" modal

Expected Result:

"Release options" modal should appear

Actual Result:

"Release options" modal ( CTRL+D) does not appear when image is open

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6622561_1727900232986.Recording__4213.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

Triggered auto assignment to @alexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@lanitochka17
Copy link
Author

@alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@Nodebrute
Copy link
Contributor

Nodebrute commented Oct 3, 2024

Edited by proposal-police: This proposal was edited at 2024-10-03 00:58:22 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

Modal ( CTRL+D) does not appear when image is open

What is the root cause of that problem?

We don't close the previous modals when we open Debug modal using shortcut key CMD + D

const unsubscribeDebugShortcut = KeyboardShortcut.subscribe(
debugShortcutConfig.shortcutKey,
() => {
toggleTestToolsModal();
},

What changes do you think we should make in order to solve the problem?

We can use Modal.close here

const unsubscribeDebugShortcut = KeyboardShortcut.subscribe(
debugShortcutConfig.shortcutKey,
() => {
toggleTestToolsModal();
},

We can do something like this Pseudo code

 const unsubscribeDebugShortcut = KeyboardShortcut.subscribe(
            debugShortcutConfig.shortcutKey,
            () => {
                  Modal.close(toggleTestToolsModal);
            },
            debugShortcutConfig.descriptionKey,
            debugShortcutConfig.modifiers,
            true,
        );
Screen.Recording.2024-10-03.at.5.54.02.AM.mov

This will also fix the modal issue in other parts of app

Before
Screen.Recording.2024-10-03.at.5.57.14.AM.mov
After
Screen.Recording.2024-10-03.at.5.54.23.AM.mov

What alternative solutions did you explore? (Optional)

Optionally we can also use Session.checkIfActionIsAllowed along with above solution

@bernhardoj
Copy link
Contributor

bernhardoj commented Oct 3, 2024

Same solution as #49802

@alexpensify
Copy link
Contributor

@bernhardoj do you think we should close this one or put it on hold for #49802

@bernhardoj
Copy link
Contributor

Let's hold it for #49802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
None yet
Development

No branches or pull requests

4 participants