Repository navigation
Conversation
Co-authored-by: huult <huult@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🤖 Android test steps verification results: Android NewDot opened with a fresh signed-in account, but the required attachment chat and protected PDF were missing, blocking all PDF test cases. The running revision could not be independently confirmed; Safari behavior was not tested.
|
|
🤖 Web test steps verification results: Web testing in Chrome was blocked: the fresh signed-in account contained only Concierge, with no required attachment chat, protected PDF, or known password. The served revision could not be independently confirmed, and real Safari keyboard/rotation behavior remains unverified.
|
|
@MelvinBot Please update the test steps and QA steps accordingly: Preconditions:
|
|
Updated both Tests and QA Steps with your exact preconditions and six steps for native iOS staging. Tests were not rerun. |
|
@MelvinBot ready for review |
|
Marked the PR as ready for review. Manual Safari and native iOS verification remain outstanding. |
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. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@MelvinBot please check the findings below and update the PR / tests where it makes sense. Manual testing of this PR for #103531 (web build at What I tested
Not a regression (same on
|
Co-authored-by: huult <huult@users.noreply.github.com>
|
Pushed the follow-up changes and updated the PR description/testing steps.
Validation: 20/20 carousel tests and the full suite passed (2,556 suites, 42,390 tests). Typecheck, targeted lint/compiler checks, formatting, and Storybook passed. Full lint/changed-file checks encountered environment issues documented in the PR. Still unverified: real Safari reproduction of item 2 and the rapid-double-arrow observation. Your reported pre-existing reverse-rotation PDF remount remains outside this change. |
|
|


Explanation of Change
Implement the approved Safari/web carousel proposal without changing native behavior or removing PDF lazy mounting.
Review follow-up: Scroll and viewability handlers now only inspect geometry; they cannot restore over an in-progress swipe. Restoration is invalidated after attachment-count changes and external page changes, even at unchanged width, while local navigation acknowledgements do not force restoration. Each accepted event reuses one geometry snapshot rather than measuring twice. Added regression cases for invalid/empty initial content becoming valid and deletion before an interior/final selection.
Manual evidence reported by
huultat the previous revision (a6fbd16e734): iOS Simulator Mobile Safari retained the selected protected PDF and open password form on portrait-to-landscape rotation; Safari before/after comparison withmainwas not completed. Chromium staging stress tests with 10 attachments retained page/attachment identity and working navigation through repeated resizes and arrow navigation. The password form closing on landscape-to-portrait was reported as identical with the base carousel file and is outside this change. These results were supplied by the requester, not independently rerun here; the follow-up changes still need real Safari verification, particularly a swipe while resize restoration remains unsettled. Automated geometry mocks cannot establish Safari keyboard behavior.Created upstream because Melvin does not have push access to
huult's fork. To move the branch to your fork:Then close this draft and open a replacement from your fork if desired.
Fixed Issues
$ #103531
PROPOSAL: #103531 (comment)
Tests
Preconditions:
Additional web regression steps (also run in Mobile Safari)
Offline tests
// TODO: The human co-author must fill out the relevant offline verification before marking this PR as "ready for review".
QA Steps
Preconditions:
Also perform the four Additional web regression steps from Tests on the staging web build, including Mobile Safari. The native iOS steps above remain a separate regression check, not a replacement for web verification.
AI Tests
Follow-up verification at
5d7dc02bf1:npm run typecheckon retry (the first concurrent run failed the Jest project without diagnostics; an isolated rerun and the subsequent complete run passed).oxfmtpre-commit hook formatted both changed files successfully. Read-only AI review found no violations.lint-changedcould not find a merge base in this shallow checkout; a history-fetch attempt andspell-changedtimed out fetchingorigin/main. The matrix'sprettierscript is not defined. The default compiler changed-files command resolves an empty base ref toorigin/; the explicit-file check passed instead.Original implementation verification (before this follow-up):
npm run lintandnpm run lint-changed.npm run typecheckfor all configured projects.npm test -- --silent --maxWorkers=2: 2,556 suites and 42,386 tests passed; 1 suite and 146 tests skipped; 161 snapshots passed.npm run storybook -- --smoke-test --ciandnpm run spell-changed.oxfmtpre-commit hook. The matrix'snpm run prettier -- --log-level errorcommand cannot run because this checkout no longer defines aprettierscript.npm run react-compiler-compliance-check check-changedencountered an existing environment issue: the empty base ref resolves toorigin/. The explicit-file compiler check passed for the changed component instead.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
Web verification setup blocker only; not evidence of successful Safari/PDF-flow verification:
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari