[CP Staging] Revert "Fix #admin room visibility in LHN for Track Workspace onboarding"#94805
Conversation
|
@mkhutornyi Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2c008cead
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| requiresAttention || | ||
| (report.isOwnPolicyExpenseChat && !isReportArchived); |
There was a problem hiding this comment.
Preserve the admin-room hidden override
When the #admins report's current-user notification preference is HIDDEN or missing (which isHiddenForCurrentUser(report) treats as hidden), this gate now returns {shouldDisplay: false} before shouldReportBeInOptionList gets a chance to allow admin rooms. That makes the onboarding/admin room disappear from the LHN for users whose admin room is still hidden/defaulted, even though onboarding can still navigate them to that report.
Useful? React with 👍 / 👎.
| isChatReport(report) && | ||
| !isPolicyExpenseChat(report) && | ||
| !isAdminRoom(report) && | ||
| !isTripRoom(report) && |
There was a problem hiding this comment.
Exclude #admins from empty-chat hiding
When a #admins report is otherwise visible but has no last message yet and is not pinned/focused, it now satisfies this generic empty-chat predicate because the admin-room exemption was removed. New workspace admin rooms can be empty until the server/welcome actions arrive, so excludeEmptyChats: true in the LHN path drops the room and users lose the expected entry point.
Useful? React with 👍 / 👎.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…-workspace-admin-lhn [CP Staging] Revert "Fix #admin room visibility in LHN for Track Workspace onboarding" (cherry picked from commit fd2b949) (cherry-picked to staging by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.21-5 🚀
|
|
🤖 Help site review: no changes required. This PR reverts #94104 — an internal change to LHN (left-hand navigation / inbox) display logic. It removes the special-casing that forced an empty #admins room to always appear in the inbox during Track Workspace onboarding. This is purely internal code behavior (
No draft docs PR was created since there is nothing to update. @mountiny, flagging for your confirmation — let me know if you'd still like a docs PR opened for anything I may have missed. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.21-9 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.22-1 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.24-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.4.24-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.4.24-0 🚀
|
Reverts #94104
Fixed issues
$ #94747
$ #94781