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

[HOLD #32800] [$500] Compose Box - User is able to access compose box while side panel is open #34139

Closed
1 of 6 tasks
lanitochka17 opened this issue Jan 9, 2024 · 23 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 9, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.23-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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Open a workspace with an IOU
  2. Click on the IOU preview component
  3. Click on the tab button on keyboard multiple times until it reaches the compose box
  4. Type anything and send

Expected Result:

User should not be able to access compose box while side panel is open

Actual Result:

User is able to type and send messages while side panel 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
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6336714_1704808020648.sidepanel.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014f05f042b5d4262d
  • Upwork Job ID: 1744720652723343360
  • Last Price Increase: 2024-03-26
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 9, 2024
@melvin-bot melvin-bot bot changed the title Compose Box - User is able to access compose box while side panel is open [$500] Compose Box - User is able to access compose box while side panel is open Jan 9, 2024
Copy link

melvin-bot bot commented Jan 9, 2024

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Copy link

melvin-bot bot commented Jan 9, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014f05f042b5d4262d

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 9, 2024
Copy link

melvin-bot bot commented Jan 9, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@shahinyan11
Copy link

shahinyan11 commented Jan 9, 2024

Proposal

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

Compose Box - User is able to access compose box while side panel is open

What is the root cause of that problem?

We do not disable compose when RHP is open

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

  1. Add IsComposeDisabled in state of ReportScreen component and change it to true when the screen blurs and set to false when the screen is focusing.
  2. Add shouldDisableCompose={IsComposeDisabled} prop for ReportFooter component in ReportScreen

What alternative solutions did you explore? (Optional)

Write new util which will get the current route and check if it is in RHP then returns true. And us it in ReportActionCompose component for ComposerWithSuggestions

@tienifr
Copy link
Contributor

tienifr commented Jan 9, 2024

Proposal

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

User is able to type and send messages while side panel is open

What is the root cause of that problem?

We do not have the logic to focus on the RHP, so we're still focus on the report page, that why when users press tab, the first focusable component in report page is focus

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

we should implement the focus trap component for RHP by using focus-trap-react library

What alternative solutions did you explore? (Optional)

When the RHP is opened, we can programmatically focus on the RHP

@Krishna2323
Copy link
Contributor

Proposal

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

Compose Box - User is able to access compose box while side panel is open

What is the root cause of that problem?

We do not have a logic to disable the composer when RPH is open.

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

We already have a function to check the visibility of the composer, we just need to add !checkComposerVisibility() to the value of the isDisabled prop inside ComposerWithSuggestions.

const checkComposerVisibility = useCallback(() => {
// Checking whether the screen is focused or not, helps avoid `modal.isVisible` false when popups are closed, even if the modal is opened.
const isComposerCoveredUp = !isFocused || EmojiPickerActions.isEmojiPickerVisible() || isMenuVisible || modal.isVisible || modal.willAlertModalBecomeVisible;
return !isComposerCoveredUp;
}, [isMenuVisible, modal, isFocused]);

Updated Code: isDisabled={isBlockedFromConcierge || disabled || !checkComposerVisibility()}

Result

@situchan
Copy link
Contributor

situchan commented Jan 9, 2024

I think we should hold this for #32800

@isabelastisser isabelastisser added Monthly KSv2 and removed Daily KSv2 labels Jan 9, 2024
@isabelastisser isabelastisser changed the title [$500] Compose Box - User is able to access compose box while side panel is open [ON HOLD] [$500] Compose Box - User is able to access compose box while side panel is open Jan 9, 2024
Copy link

melvin-bot bot commented Jan 16, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

2 similar comments
Copy link

melvin-bot bot commented Jan 23, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Jan 30, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@situchan
Copy link
Contributor

still on hold

Copy link

melvin-bot bot commented Feb 6, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@isabelastisser
Copy link
Contributor

On hold, Melvin!

Copy link

melvin-bot bot commented Feb 13, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

3 similar comments
Copy link

melvin-bot bot commented Feb 20, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Feb 27, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Mar 5, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@isabelastisser
Copy link
Contributor

Still on hold!

Copy link

melvin-bot bot commented Mar 12, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@isabelastisser
Copy link
Contributor

On hold.

Copy link

melvin-bot bot commented Mar 19, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

1 similar comment
Copy link

melvin-bot bot commented Mar 26, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@isabelastisser isabelastisser changed the title [ON HOLD] [$500] Compose Box - User is able to access compose box while side panel is open [HOLD #32800] [$500] Compose Box - User is able to access compose box while side panel is open Apr 2, 2024
@isabelastisser
Copy link
Contributor

I reviewed this issue again and decided to close it because this is not a high enough priority. Allowing users to type in the compose box while the side panel is open shouldn't be considered a bug. Why do we need to prevent users from accessing the compose box while looking into other users' emails?

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. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants