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

[$250] [Search v2.2] Add room name to the top of chats #48897

Open
luacmartins opened this issue Sep 10, 2024 · 94 comments
Open

[$250] [Search v2.2] Add room name to the top of chats #48897

luacmartins opened this issue Sep 10, 2024 · 94 comments
Assignees
Labels
External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2

Comments

@luacmartins
Copy link
Contributor

luacmartins commented Sep 10, 2024

Problem

Coming from here, chats miss the context of the room they belong too, so users can find the same chat sent to different people.

Solution

Add the room name to the chats. This requires both backend and frontend changes.

Issue OwnerCurrent Issue Owner: @luacmartins
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834524447256118011
  • Upwork Job ID: 1834524447256118011
  • Last Price Increase: 2024-09-13
  • Automatic offers:
    • situchan | Reviewer | 103992205
    • DylanDylann | Contributor | 104770986
@luacmartins luacmartins added Daily KSv2 NewFeature Something to build that is a new item. labels Sep 10, 2024
@luacmartins luacmartins self-assigned this Sep 10, 2024
Copy link

melvin-bot bot commented Sep 10, 2024

Triggered auto assignment to @stephanieelliott (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 10, 2024
@luacmartins luacmartins added Daily KSv2 and removed Weekly KSv2 labels Sep 12, 2024
@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Sep 13, 2024
@melvin-bot melvin-bot bot changed the title [Serach v2.2] Add room name to the top of chats [$250] [Serach v2.2] Add room name to the top of chats Sep 13, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

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

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

melvin-bot bot commented Sep 13, 2024

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

@luacmartins
Copy link
Contributor Author

cc @Kicu @289Adam289 @SzymczakJ @Guccio163 in case you wanna work on the frontend part of this. These changes also have a backend component that's still not available.

@luacmartins luacmartins changed the title [$250] [Serach v2.2] Add room name to the top of chats [$250] [Search v2.2] Add room name to the top of chats Sep 13, 2024
@zfurtak
Copy link
Contributor

zfurtak commented Sep 16, 2024

hello @luacmartins I would like to take care of this issue. When do you expect the backend changes to be ready? 🤔

@melvin-bot melvin-bot bot added the Overdue label Sep 16, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

@luacmartins, @stephanieelliott, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 16, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

📣 @situchan 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@luacmartins
Copy link
Contributor Author

All yours @zfurtak

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2024
@zfurtak
Copy link
Contributor

zfurtak commented Sep 17, 2024

Do you have any idea when the backend will be ready @luacmartins? 😃

@luacmartins
Copy link
Contributor Author

@zfurtak I started looking into this today. I have a draft PR to return report data in the chat queries, but I'm not sure that that's enough to display the correct report names. Do you know which data you'll need to properly display them? It seems like we need quite a bit of data for getReportName

@luacmartins
Copy link
Contributor Author

Here's a sample data after we start returning the report data:

[
    {
        "key": "snapshot_2089317297",
        "onyxMethod": "set",
        "value": {
            "data": {
                "personalDetailsList": {
                    "844": {
                        "accountID": 844,
                        "avatar": "https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_5.png",
                        "displayName": "sdf",
                        "firstName": "sdf",
                        "lastName": "",
                        "login": "[email protected]"
                    }
                },
                "reportActions_2226999844364749": {
                    "6133238980486036910": {
                        "accountID": 844,
                        "actionName": "ADDCOMMENT",
                        "created": "2024-08-27 21:00:44.078",
                        "message": [
                            {
                                "html": "<a href=\"https://dev.new.expensify.com:8082/search?q=type%3Achat%20status%3Alinks%20sortBy%3Adate%20sortOrder%3Adesc&amp;isCustomQuery=false\" target=\"_blank\" rel=\"noreferrer noopener\">https://dev.new.expensify.com:8082/search?q=type%3Achat%20status%3Alinks%20sortBy%3Adate%20sortOrder%3Adesc&amp;isCustomQuery=false</a>",
                                "text": "https://dev.new.expensify.com:8082/search?q=type%3Achat%20status%3Alinks%20sortBy%3Adate%20sortOrder%3Adesc&isCustomQuery=false",
                                "type": "COMMENT",
                                "whisperedTo": []
                            }
                        ],
                        "reportActionID": "6133238980486036910",
                        "reportID": "2226999844364749"
                    }
                },
                "reportActions_3613091925157067": {
                    "4865297248518576461": {
                        "accountID": 844,
                        "actionName": "ADDCOMMENT",
                        "created": "2024-09-12 22:55:20.809",
                        "message": [
                            {
                                "html": "<a href=\"https://www.expensify.com.dev/chat-attachments/4865297248518576461/w_efeb24490b01fb7b9b2c596b6cafafd778c09e3e.sh\" data-expensify-source=\"https://www.expensify.com.dev/chat-attachments/4865297248518576461/w_efeb24490b01fb7b9b2c596b6cafafd778c09e3e.sh\">checkDeploymentSuccess.sh</a>",
                                "text": "[Attachment]",
                                "type": "COMMENT",
                                "whisperedTo": []
                            }
                        ],
                        "reportActionID": "4865297248518576461",
                        "reportID": "3613091925157067"
                    }
                },
                "report_2226999844364749": {
                    "accountID": 0,
                    "action": "view",
                    "created": "2024-03-27 17:09:53",
                    "currency": "USD",
                    "managerID": 0,
                    "policyID": "818714A5DBC2E598",
                    "reportID": "2226999844364749",
                    "reportName": "#admins",
                    "total": 0,
                    "type": "chat"
                },
                "report_3613091925157067": {
                    "accountID": 0,
                    "action": "view",
                    "created": "2024-02-20 18:23:08",
                    "currency": "USD",
                    "managerID": 0,
                    "policyID": "_FAKE_",
                    "reportID": "3613091925157067",
                    "reportName": "Chat Report",
                    "total": 0,
                    "type": "chat"
                }
            },
            "search": {
                "columnsToShow": {
                    "shouldShowCategoryColumn": true,
                    "shouldShowTagColumn": true,
                    "shouldShowTaxColumn": true
                },
                "hasMoreResults": false,
                "offset": 0,
                "status": "links",
                "statusToShow": {
                    "expense": {
                        "all": true,
                        "approved": false,
                        "drafts": true,
                        "outstanding": true,
                        "paid": true
                    }
                },
                "type": "chat"
            }
        }
    }
]

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 6, 2025
@luacmartins
Copy link
Contributor Author

We'll resume work on this soon

@melvin-bot melvin-bot bot removed the Overdue label Jan 9, 2025
@zfurtak
Copy link
Contributor

zfurtak commented Jan 10, 2025

From today, I'm back and will take care of this 😊

@melvin-bot melvin-bot bot added the Overdue label Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

@luacmartins, @stephanieelliott, @zfurtak, @DylanDylann Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@luacmartins
Copy link
Contributor Author

We're still working on this one

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jan 14, 2025
Copy link

melvin-bot bot commented Jan 20, 2025

@luacmartins, @stephanieelliott, @zfurtak, @DylanDylann Eep! 4 days overdue now. Issues have feelings too...

@Kicu
Copy link
Member

Kicu commented Jan 21, 2025

I'm currently reviewing the draft for this.

@stephanieelliott
Copy link
Contributor

Still under review.

Copy link

melvin-bot bot commented Jan 22, 2025

@luacmartins, @stephanieelliott, @zfurtak, @DylanDylann 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@luacmartins
Copy link
Contributor Author

PR is being reviewed

@melvin-bot melvin-bot bot removed the Overdue label Jan 22, 2025
@zfurtak
Copy link
Contributor

zfurtak commented Jan 23, 2025

I'm resolving the conflicts right now and adjusting the PR to comments from review

@luacmartins
Copy link
Contributor Author

Thanks! Let's aim to get this one wrapped up by next week

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 24, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jan 29, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jan 29, 2025
@mallenexpensify
Copy link
Contributor

@luacmartins , will the PRs for this fix the bug I found where I'm unable to find rooms?
ie. when I search beer or #beer I don't see the #beer room/channel show. If rooms are at top then the fix here should have #beer at top, right?

@luacmartins
Copy link
Contributor Author

No, this PR just adds the report name to the top of chat results

Copy link

melvin-bot bot commented Feb 7, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

10 participants