App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-27] Automated Accounts Issues still showing Time in Details Page and call options should be reconsidered.

Open Santhosh-Sellavel opened this issue 5 years ago β€’ 21 comments

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


Action Performed:

  1. Open new Expensify
  2. Open concierge chat
  3. Click on chat header to view details
  4. We still show Local Time for concierge, other automated accounts & wrong time for unregistered Accounts
  5. Showing call options

Expected Result:

  1. We should not show time for automated accounts (we removed in chat page) & unregistered accounts on the Details page
  2. Excluding concierge, call options should not be enabled for chronos & other automated accounts if needed

Actual Result:

  1. We show time for automated accounts & unregistered accounts

Automated Accounts

Screenshot 2021-08-30 at 4 53 56 PM ### Unregistered Accounts Screenshot 2021-08-30 at 5 08 18 PM
  1. Call options google meet or zoom call for chronos? Screenshot 2021-08-30 at 5 03 55 PM

Workaround:

Can the user still use Expensify without this being fixed? Yes

Proposal

Post triage & discussion

Platform:

Where is this issue occurring? All

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:

View all open jobs on GitHub

Santhosh-Sellavel avatar Aug 30 '21 12:08 Santhosh-Sellavel

Triggered auto assignment to @strepanier03 (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 30 '21 12:08 MelvinBot

Reviewing this now.

Updated: Looks good, sending this on.

strepanier03 avatar Aug 30 '21 18:08 strepanier03

Triggered auto assignment to @Jag96 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 30 '21 20:08 MelvinBot

We should not show time for automated accounts (we removed in chat page)

I agree with this, we should remove the time for automated accounts in the details panel

We should not show time for unregistered accounts on the Details page

To clarify, what do you mean by unregistered accounts? Do you mean accounts that haven't set a password yet?

Excluding concierge, call options should not be enabled for chronos & other automated accounts if needed

I agree with this as well, the call option doesn't make sense for chronos

Going to make this one external, thanks for filing @Santhosh-Sellavel

Jag96 avatar Aug 31 '21 00:08 Jag96

Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Aug 31 '21 00:08 MelvinBot

To clarify, what do you mean by unregistered accounts? Do you mean accounts that haven't set a password yet?

Yes

Santhosh-Sellavel avatar Aug 31 '21 02:08 Santhosh-Sellavel

Proposal

@Jag96

1. To disable local time

We can add a new boolean variable to showLocalTime here. Which will exclude based on the login and by checking against automated emails. And unregistered account how to identify those? Need some help regarding this I think it will have a backend dependency. https://github.com/Expensify/App/blob/fdcf519fcadfaecedde844b6adc33c4b30cbcb77/src/pages/DetailsPage.js#L68

If it's true we will show time can add that check along the line below https://github.com/Expensify/App/blob/fdcf519fcadfaecedde844b6adc33c4b30cbcb77/src/pages/DetailsPage.js#L129

2. For call options

We can add a boolean or exclude with a check against email or emails directly here https://github.com/Expensify/App/blob/fdcf519fcadfaecedde844b6adc33c4b30cbcb77/src/pages/home/HeaderView.js#L165

Santhosh-Sellavel avatar Aug 31 '21 03:08 Santhosh-Sellavel

Created a job in Upwork! Internal Link External Link

adelekennedy avatar Sep 01 '21 23:09 adelekennedy

@Santhosh-Sellavel one of my related PR, https://github.com/Expensify/App/pull/4821 will soon get merged. Something that you'd want to consider in your proposal for automated accounts. It has a list of all automated accounts, which we would like to update periodically. Hope it helps.

mananjadhav avatar Sep 02 '21 15:09 mananjadhav

@mananjadhav Yes mate, I'm aware of that thanks for the heads up!

Santhosh-Sellavel avatar Sep 02 '21 16:09 Santhosh-Sellavel

@Santhosh-Sellavel that proposal sounds good to me, feel free to start on a PR! A couple of things:

  1. Instead of showLocalTime, I'd name it shouldShowLocalTime to match the naming convention
  2. It looks like right now, unvalidated accounts (accounts without password set) show the timezone in the chat if the timezone is different than yours (the one that says It's 12:45 PM for [email protected]). Looking at this logic we will always set the default timezone to PDT, so I think that would have to be updated. I think we can leave updating how unvalidated accounts appear for another issue since it'll likely require some discussion, but feel free to post in #expensify-open-source.

@adelekennedy we're good to hire @Santhosh-Sellavel for this job!

Jag96 avatar Sep 03 '21 19:09 Jag96

@Jag96 ~Waiting for PR #4821 to get merged since it has many EMAIL CONST.~

Can you confirm on emails alone to restrict for I'm assuming that all Expensify emails we should not show timezone? Regarding call options should we exclude emails other than Chronos, if then let me know the emails thanks!

Santhosh-Sellavel avatar Sep 03 '21 20:09 Santhosh-Sellavel

Correct, I agree that these emails should not show timezone, and I think we can remove the call button for all of those emails as well except for Concierge so we can keep the concierge specific logic.

Jag96 avatar Sep 03 '21 20:09 Jag96

Oops, We have emails already in main I don't know how I missed that. I'll let you know when PR is ready!

Santhosh-Sellavel avatar Sep 03 '21 20:09 Santhosh-Sellavel

@Santhosh-Sellavel I just hired you in Upwork for this issue!

adelekennedy avatar Sep 03 '21 22:09 adelekennedy

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

botify avatar Sep 14 '21 22:09 botify

πŸš€ Deployed to staging by @Jag96 in version: 1.0.98-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 success βœ…
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 15 '21 21:09 botify

Updating the title here, this has been deployed to production on 20th September, but the script did not work as expected. Apologies for that.

mountiny avatar Sep 22 '21 16:09 mountiny

Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Sep 24 '21 16:09 MelvinBot

@arielgreen I'm ooo most of next week, assigning you for payment!

adelekennedy avatar Sep 24 '21 16:09 adelekennedy