Repository navigation
[Task 2/8] Share the sorted actions of an immutable report - #107954
roryabraham merged 4 commits into
Conversation
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
|
@jayeshmangwani 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] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec0fea7b47
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
|
@chrispader, is the PR ready for review? I noticed the title still includes |
|
@jayeshmangwani yes, feel free to already review this! I've removed |
The sorted list now resolves %baseURL on a copy instead of mutating the stored message, so thread ancestors read from Onyx kept the placeholder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: HybridAppios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.mov |
jayeshmangwani
left a comment
There was a problem hiding this comment.
PR works well, lgtm 🚀
|
@roryabraham ready to merge whenever you give your go! 🚀 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham 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! 🧪🧪
|
Several readers sort the same immutable Onyx report value independently. I share the unfiltered display sort by report identity while keeping visibility and permission filtering local to each reader. Policy changelog messages are copied before URL replacement, and results are cached only after the environment URL resolves.
For example, two unfiltered reads of the same report now return the same sorted array; a replacement report value or mutable array input is sorted again.
Explanation of Change
This extracts the independent shared sort from #106703. Synthetic workflow actions and the existing sort order are preserved.
Fixed Issues
$ #107911
PROPOSAL: #107911 (comment)
Tests
On all platforms, use an account with a workspace activity log and a chat with enough messages to paginate.
Offline tests
QA Steps
Same as Tests and Offline tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
macOS · Chromium
Message order, sending online, and sending offline through reconnect in a local test chat.
107954-desktop-chromium.mp4
Scrolling loads earlier messages. The archived room opens without a message composer.
107954-desktop-history-archive.mp4
The workspace activity log link opens the travel chat before and after a full page reload.
107954-desktop-policy-link.mp4
iOS: mWeb Safari
Scrolling through a local test chat and sending a message. The message appears once at the bottom of the chat.
107954-ios-safari.mp4
iOS: Native
Scrolling through older and newer cached messages, then sending offline. The new message appears once at the bottom of the chat.
107954-ios-native.mp4
Android: Native
Scrolling through older and newer cached messages, then sending offline. The new message appears once at the bottom of the chat.
107954-android-native.mp4
Android: mWeb Chrome
Scrolling through chat history, sending a message, and returning to the latest messages shows the new message once.
107954-android-chrome.mp4
🤖 Generated with Codex