question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Chat Preview Line to Side Bar Options

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Currently we show the user email below a chat row listed in the Sidebar like this: Screen Shot 2021-01-29 at 12 42 05 PM

For this issue we will instead include the lastMessageText on a report (chat) and it will be truncated like so…

Screen Shot 2021-01-29 at 12 44 42 PM

Additionally, the lastMessage does not yet show who left the message for reports with multiple participants.

Deliverables:

  1. Where we are saving the lastMessageText we should also save the lastActorEmail (which should be accessible via actorEmail property on reportAction and report) e.g. see these two places: https://github.com/Expensify/Expensify.cash/blob/376c07b551f067e21736f7a73581c6b6fe7ea1ad/src/libs/actions/Report.js#L252-L263 https://github.com/Expensify/Expensify.cash/blob/376c07b551f067e21736f7a73581c6b6fe7ea1ad/src/libs/actions/Report.js#L252-L263
  2. Next we must replace the alternate text with the lastMessageText and append the displayName of the lastActorEmail when the report has multiple participants here: https://github.com/Expensify/Expensify.cash/blob/376c07b551f067e21736f7a73581c6b6fe7ea1ad/src/libs/OptionsListUtils.js#L85-L87
  3. Finally we must make sure that the alternate text always shows for all options by updating the logic here: https://github.com/Expensify/Expensify.cash/blob/376c07b551f067e21736f7a73581c6b6fe7ea1ad/src/pages/home/sidebar/OptionRow.js#L97
  4. And also make sure that the alternateText is truncated with ellipsis

Upwork

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
laurenreidexpensifycommented, Feb 15, 2021

Confirmed no regression - have issued payment now @parasharrajat

1reaction
marcaaroncommented, Feb 5, 2021

@parasharrajat Thanks for your work on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Edit Your New Facebook Chat Sidebar and Settings
you can, simply hit cog at bottom of chatbar and choose "Hide Sidebar." My sidebar has changed to a popup from the bottom...
Read more >
Adjust your sidebar preferences - Slack
From your desktop, click your profile picture in the top right. · Select Preferences from the menu. · Click Sidebar in the left-side...
Read more >
Customize the Group Chat windows layout - Microsoft Support
Right-click the My Chat title bar, point to Dock to, and then click Left, Right, Top, or Bottom. My Chat docks to the...
Read more >
How To Edit Your New Facebook Chat Sidebar ... - Mari Smith
Chat with friends​​ If you don't see the sidebar, just click Chat in the bottom right corner of your screen, which shows the...
Read more >
Everything you need to know about the new Gmail view - Streak
Check or uncheck apps to add or remove them from the sidebar. Click Done. Click Reload to refresh your Gmail window with your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found