[HOLD for payment 2021-09-27] Automated Accounts Issues still showing Time in Details Page and call options should be reconsidered.
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:
- Open new Expensify
- Open concierge chat
- Click on chat header to view details
- We still show Local Time for concierge, other automated accounts & wrong time for unregistered Accounts
- Showing call options
Expected Result:
- We should not show time for automated accounts (we removed in chat page) & unregistered accounts on the Details page
- Excluding concierge, call options should not be enabled for
chronos& other automated accounts if needed
Actual Result:
- We show time for automated accounts & unregistered accounts
Automated Accounts
### Unregistered Accounts
- Call options google meet or zoom call for chronos?

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:
Triggered auto assignment to @strepanier03 (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Reviewing this now.
Updated: Looks good, sending this on.
Triggered auto assignment to @Jag96 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
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
Triggered auto assignment to @adelekennedy (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
To clarify, what do you mean by unregistered accounts? Do you mean accounts that haven't set a password yet?
Yes
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
Created a job in Upwork! Internal Link External Link
@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 Yes mate, I'm aware of that thanks for the heads up!
@Santhosh-Sellavel that proposal sounds good to me, feel free to start on a PR! A couple of things:
- Instead of
showLocalTime, I'd name itshouldShowLocalTimeto match the naming convention - 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 ~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!
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.
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 I just hired you in Upwork for this issue!
: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.
π Deployed to staging by @Jag96 in version: 1.0.98-2 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
Updating the title here, this has been deployed to production on 20th September, but the script did not work as expected. Apologies for that.
Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@arielgreen I'm ooo most of next week, assigning you for payment!