Skip to content

[CP staging] Revert "fix: android pressability issue with measureAsyncOnUI patch"#86701

Merged
jasperhuangg merged 1 commit into
mainfrom
revert-86160-claude-fixPressabilityNewArch-v3
Mar 31, 2026
Merged

[CP staging] Revert "fix: android pressability issue with measureAsyncOnUI patch"#86701
jasperhuangg merged 1 commit into
mainfrom
revert-86160-claude-fixPressabilityNewArch-v3

Conversation

@jasperhuangg
Copy link
Copy Markdown
Contributor

@jasperhuangg jasperhuangg commented Mar 31, 2026

Reverts #86160

$ #86566

@jasperhuangg jasperhuangg self-assigned this Mar 31, 2026
@jasperhuangg jasperhuangg requested review from a team as code owners March 31, 2026 01:03
@melvin-bot melvin-bot Bot requested review from trjExpensify and removed request for a team March 31, 2026 01:03
@melvin-bot melvin-bot Bot requested review from Valforte and removed request for a team March 31, 2026 01:03
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Mar 31, 2026

@Valforte 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]

@github-actions
Copy link
Copy Markdown
Contributor

🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 524982fb29

ℹ️ 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".

Comment on lines +9 to +10
return {
onPressIn: onPress,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve onPress for accessibility activation on Android

This helper now drops onPress and only wires callbacks to onPressIn, which means non-touch activations can no longer trigger these actions on Android. In our pressable stack, activation paths such as accessibility/keyboard are handled through the onPress pipeline (GenericPressable calls onPressHandler for onPress/accessibility taps), so mapping only onPressIn makes tooltip dismiss/confirm controls effectively no-op for users relying on TalkBack or hardware keyboard navigation.

Useful? React with 👍 / 👎.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/components/ProductTrainingContext/index.tsx 91.22% <0.00%> (ø)
...rainingContext/createPressHandler/index.android.ts 0.00% <0.00%> (ø)
...ProductTrainingContext/createPressHandler/index.ts 0.00% <0.00%> (ø)
... and 5 files with indirect coverage changes

@Expensify Expensify deleted a comment from github-actions Bot Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here.

@github-actions

This comment has been minimized.

@jasperhuangg
Copy link
Copy Markdown
Contributor Author

@jasperhuangg jasperhuangg changed the title Revert "fix: android pressability issue with measureAsyncOnUI patch" [CP staging] Revert "fix: android pressability issue with measureAsyncOnUI patch" Mar 31, 2026
@jasperhuangg jasperhuangg merged commit 2b517db into main Mar 31, 2026
47 of 52 checks passed
@jasperhuangg jasperhuangg deleted the revert-86160-claude-fixPressabilityNewArch-v3 branch March 31, 2026 04:30
@jasperhuangg
Copy link
Copy Markdown
Contributor Author

straight revert

@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Mar 31, 2026

@jasperhuangg looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@github-actions
Copy link
Copy Markdown
Contributor

🚧 @jasperhuangg has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify
Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify pushed a commit that referenced this pull request Mar 31, 2026
…abilityNewArch-v3

[CP staging] Revert "fix: android pressability issue with measureAsyncOnUI patch"

(cherry picked from commit 2b517db)

(cherry-picked to staging by jasperhuangg)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Mar 31, 2026
@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.3.50-8 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot
Copy link
Copy Markdown
Contributor

I have failed to help you. I let you down and for that I am sorry. Please try again later. This may be due to a Claude outage (check here).

Failure details: https://github.com/Expensify/Expensify/actions/runs/23811964226

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/jasperhuangg in version: 9.3.51-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot
Copy link
Copy Markdown
Contributor

🤖 Help Site Review — No Changes Required

I reviewed all the changes in this PR and confirmed that no updates are needed to the help site files under docs/articles.

Reasoning: This PR reverts a React Native patch (react-native+0.83.1+034+fix-pressability-new-arch.patch) and adds an internal workaround in ProductTrainingContext/createPressHandler. All changes are purely technical/internal:

  • Removal of a React Native patch file and its documentation in patches/react-native/details.md
  • Addition of platform-specific press handler logic (createPressHandler/index.android.ts, createPressHandler/index.ts)
  • Minor update to ProductTrainingContext/index.tsx

None of these changes affect user-facing features, workflows, settings names, button labels, or any functionality documented in the help site. I also searched all files under docs/articles and found no references to pressability, ProductTraining, tooltips, or any related terms.

@OSBotify
Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.50-8 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Apr 2, 2026

🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.51-10 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 failure ❌
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging Ready To Build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants