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

Ensures mini actions menu will disappear when attachment modal opens up #6083

Merged

Conversation

sidferreira
Copy link
Contributor

@sidferreira sidferreira commented Oct 27, 2021

Details

The ={false} value of the prop was forcing the mini action menu to keep visible even when it lost the focus.

Fixed Issues

#5972

Tests

When tapping to open the attachment, should NOT show the mini actions menu after closing the attachments modal

QA Steps

  1. Navigate to a conversation
  2. Send an image
  3. Open the image preview
  4. Click on the top right X to close the modal
  5. Close the modal

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Recording

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@sidferreira
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@sidferreira sidferreira marked this pull request as ready for review October 28, 2021 03:14
@sidferreira sidferreira requested a review from a team as a code owner October 28, 2021 03:14
@MelvinBot MelvinBot removed the request for review from a team October 28, 2021 03:14
@botify botify requested a review from pecanoro October 28, 2021 03:14
@pecanoro
Copy link
Contributor

Could you post a small video to show that it's working? Since it actually has a visual effect, but obviously it cannot be seen with a screenshot.

@sidferreira
Copy link
Contributor Author

@pecanoro done

@parasharrajat
Copy link
Member

@sidferreira Could you upload videos for all platforms mentioned on the template?
More importantly, trigger delete message action from Right Click Context Menu and Mini-action menu.

Your videos should reflect:

  1. Mini action menu behavior.
  2. Right-click Context Menu behavior.
  3. Delete message action modal. Closing this modal via Escape key etc,

@sidferreira
Copy link
Contributor Author

@parasharrajat Updated

@parasharrajat
Copy link
Member

Thanks for uploading those. It would help us review this PR faster.
Did you test Right-click Context Menu behavior?

I will test this later.

@sidferreira
Copy link
Contributor Author

@parasharrajat @mallenexpensify Did the test, but not sure if recorded them (recording was made after the tests/pr)

@parasharrajat
Copy link
Member

Thanks, I will test it today in a few hours.

Copy link
Member

@parasharrajat parasharrajat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Tested on the web. Works well.

Copy link
Member

@parasharrajat parasharrajat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All yours @pecanoro

@pecanoro pecanoro merged commit b078570 into Expensify:main Nov 3, 2021
@OSBotify
Copy link
Contributor

OSBotify commented Nov 3, 2021

@sidferreira, Great job getting your first Expensify/App pull request over the finish line! 🎉

I know there's a lot of information in our contributing guidelines, so here are some points to take note of 📝:

  1. Now that your first PR has been merged, you can be hired for another issue. Once you've completed a few issues, you may be eligible to work on more than one job at a time.
  2. Once your PR is deployed to our staging servers, it will undergo quality assurance (QA) testing. If we find that it doesn't work as expected or causes a regression, you'll be responsible for fixing it. Typically, we would revert this PR and give you another chance to create a similar PR without causing a regression.
  3. Once your PR is deployed to production, we start a 7-day timer ⏰. After it has been on production for 7 days without causing any regressions, then we pay out the Upwork job. 💰

So it might take a while before you're paid for your work, but we typically post multiple new jobs every day, so there's plenty of opportunity. I hope you've had a positive experience contributing to this repo! 😊

@OSBotify
Copy link
Contributor

OSBotify commented Nov 3, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@sidferreira sidferreira deleted the sidferreira-5972-mini-action-menu branch November 3, 2021 20:25
@OSBotify
Copy link
Contributor

OSBotify commented Nov 4, 2021

🚀 Deployed to staging by @pecanoro in version: 1.1.13-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.14-4 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@parasharrajat
Copy link
Member

Oops, I didn't notice that this PR didn't have signed commits. I am not sure what should we do now?

@pecanoro
Copy link
Contributor

@parasharrajat oh interesting, I didn't notice either, in our other repos, we block people from being able to merge PRs with unsigned commits, we should definitely enable that here too.

@parasharrajat
Copy link
Member

Yeah, I raised this in the Slack. Let's put this suggestion there.

@sidferreira
Copy link
Contributor Author

@parasharrajat should I sign this too?

@parasharrajat
Copy link
Member

I think this is not possible now. It is merged so skip this unless someone raises a flag.

@ogumen
Copy link

ogumen commented Nov 21, 2021

Accessibility issues found in this PR:

  1. Keyboard Navigation: New Chat: The invisible clickable message is focusable with tab key - failure of WCAG SC 2.4.3, similar to [med] Keyboard Navigation: Many Pages: Invisible button is focused with Tab key #5452
    https://user-images.githubusercontent.com/88733897/142638431-2e3277c0-91bc-46f3-8b8e-982f5fbf9740.mp4
  2. Keyboard Navigation: Chat: Focus order through messages is reversed bottom-to-top - failure of WCAG SC 2.4.3, same as [med] Keyboard Navigation: Chat: Focus order through messages is reversed bottom-to-top #5676
  3. The image attachment does not have a visible outline on focus - failure of WCAG SC 2.4.7
    https://user-images.githubusercontent.com/88733897/142766775-7575d720-9e65-4a6a-9f86-a2a05ca09b98.mp4
  4. The image attachment cannot be focused with Tab key when the screen reader is enabled - failure of WCAG SC 2.1.1
    https://user-images.githubusercontent.com/88733897/142766965-407741e9-e8c9-4101-8e85-374614a14f6c.mp4
  5. The "Download attachment" button is announced without button role and with no context, as "Attachment" - failure of WCAG SC 4.1.2, similar to [med] JAWS+Chrome: Many Pages: Multiple elements announced without button role #5446 and [med] JAWS+Chrome: Many Pages: Multiple buttons announced without labels #5519
    https://user-images.githubusercontent.com/88733897/142767093-92a98a7c-9f18-4f73-8b9f-f6e7075cc41e.mp4
  6. The non-interactive dialog title is focusable with Tab key - failure of WCAG SC 2.4.3
    https://user-images.githubusercontent.com/88733897/142767239-77f22450-8003-4389-82b4-043f4613c42b.mp4
  7. The zoom-in and zoom-out functionality is not available for screen reader users - failure of WCAG SC 2.1.1
    https://user-images.githubusercontent.com/88733897/142767259-469da5e0-05fb-405f-b302-866fc5ba1925.mp4
  8. The "Close" and "Download attachment" buttons in the opened image attachment modal dialog do not meet the minimum color contrast requirements of 3.0:1. The grey buttons (#C6C9CA) against white background (#FFFFFF) have a color contrast ratio of 1.66:1 - failure of WCAG SC 1.4.11
    Image attachment dialog_Grey buttons on white background do not meet minimum color contrast requirements
  9. The image attachment modal dialog has no programmatic label - failure of WCAG SC 1.3.1
    Image attachment_modal dialog has no programmatic label
  10. The visual "Attachment" heading in the image attachment dialog is not implemented programmatically as a heading - failure of SCAG SC 1.3.1, similar to [low] JAWS+Chrome: Many Pages: Visual headings are not announced as such #5458
    Image attachment_the visual heading not implemented as a heading programmatically

@stitesExpensify
Copy link
Contributor

FYI we're going to revert this, I will make the same change myself so that it is signed, and then we're going to merge that PR. No action required on your parts @parasharrajat @sidferreira. Thanks for bringing it up and we'll keep a closer eye on this moving forward until we make it a requirement for the repo 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants