Skip to content

Conversation

@pac-guerreiro
Copy link
Contributor

@pac-guerreiro pac-guerreiro commented Sep 10, 2025

Explanation of Change

This is the second attempt after the first PR was reverted.

We needed to split the changes from the original PR into smaller, more manageable PRs.

In this one, we aim to ensure that when opening the transaction thread, the view scrolls to the top by default rather than to the bottom

With fix:

478002387-ecb76fe7-c6cb-4c5a-adc3-4dd2744b991a.mp4

On staging:

478002409-1f1e9984-329d-4ca5-a2e6-21e465d0048d.mp4

Fixed Issues

$#63253
PROPOSAL:

Tests

  1. Open Reports > Expense Reports
  2. Open an expense report with multiple transactions on it
  3. Open one transaction thread and confirm that the list is scrolled to the top
  4. Repeat previous step of other transaction threads

Regression tests:

$ #69701

  1. Open an expense from LHN
  2. Confirm the whole screen is vertically aligned to the bottom

$ #69761

  1. Open Reports > Expense Reports
  2. Open an expense report with multiple transactions on it
  3. Mark any message as unread (write one if none exists)
  4. Confirm that the new message button is not showing at the top of the screen while the message is in view

$ #69758

This needs to be tested on both Android - Chrome and iOS - Safari platforms.

  1. Open Reports > Expense Reports
  2. Open an expense report with multiple transactions on it
  3. Do some scrolling then open the keyboard
  4. Confirm that the last visible content is displayed above the keyboard
  5. (iOS - Safari only) Long press a message from the chat and confirm that the message shows above the menu

Offline tests

Same as tests.

QA Steps

Same as tests.

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android_Native.mp4
Android: mWeb Chrome
Android_Chrome.mp4
iOS: Native
iOS_Native.mp4
iOS: mWeb Safari
iOS_Safari.mp4
MacOS: Chrome / Safari
MacOS_Chrome.mp4
MacOS: Desktop
MacOS_Desktop.mp4

@pac-guerreiro pac-guerreiro marked this pull request as ready for review September 11, 2025 22:54
@pac-guerreiro pac-guerreiro requested a review from a team as a code owner September 11, 2025 22:54
@melvin-bot melvin-bot bot requested a review from c3024 September 11, 2025 22:54
@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2025

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

@melvin-bot melvin-bot bot removed the request for review from a team September 11, 2025 22:54
@pac-guerreiro
Copy link
Contributor Author

@vit @c3024 PR is ready for review!

We'll need confirmation from design team regarding this:

MacOS_Desktop

Previously there was a top blank space because the content was vertically aligned to the bottom. I switched this to be aligned to the top, but now the blank space lies at the bottom. IMO it's easier to read the transaction details when using the header arrows to move between transactions.

@c3024
Copy link
Contributor

c3024 commented Sep 12, 2025

@Expensify/design

Can you please confirm the above?

Noting here that with this alignment, if the transaction thread has several messages, the view will show the transaction details rather than the latest message details.

Screen.Recording.2025-09-12.at.7.40.03.AM.mov

@dubielzyk-expensify
Copy link
Contributor

I believe we've recently introduced this so it's by design. @Expensify/design for triple check

@shawnborton
Copy link
Contributor

Indeed that is desired behavior. And I love it!

@c3024
Copy link
Contributor

c3024 commented Sep 12, 2025

On Android, clicking on a transaction while the onscreen keyboard is open adds extra space at the bottom, as if the keyboard is still present after navigating to the transaction. This works correctly on main.

On main:

threadAndroidKeyboardOnMain.mov

On this branch:

threadAndroidKeyboardOnThisBranch.mov

* random enough to avoid collisions
*/
function keyExtractor(item: OnyxTypes.ReportAction): string {
if (item.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a separate key extractor for created action?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@c3024 this is to prevent UI flickering after fetching the real created action

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2025

PR Summary

Modified the report action list to ensure transaction threads and money request reports scroll to the top by default instead of the bottom. Implemented proper keyboard handling to prevent content from being obscured when the keyboard is open, and fixed various scrolling behaviors across different platforms.

Changes

File Summary
src/components/ActionSheetAwareScrollView/index.ios.tsx Added support for both inverted and non-inverted scroll views by adjusting padding based on the isInvertedScrollView prop. For non-inverted views, content is positioned above the keyboard using bottom padding instead of top padding.
src/components/ActionSheetAwareScrollView/types.ts Created a new ActionSheetAwareScrollViewAnimationProps type with an isInvertedScrollView boolean property to indicate whether the scroll view is inverted, allowing for proper keyboard spacing adjustments.
src/hooks/useReportScrollManager/index.native.ts Added an optional animated parameter to the scrollToOffset method, defaulting to false, to control whether scrolling should be animated when programmatically adjusting scroll position.
src/hooks/useReportScrollManager/index.ts Enhanced both scrollToEnd and scrollToOffset methods with optional animation parameters to provide more control over scroll behavior, with appropriate defaults for web platforms.
src/hooks/useReportScrollManager/types.ts Modified the ReportScrollManagerData type to include optional animation parameters for both scrollToEnd and scrollToOffset methods, ensuring type safety when using these enhanced functions.
src/pages/home/report/ReportActionsList.tsx Implemented conditional rendering between FlatList and InvertedFlatList based on report type. Transaction threads and money requests now use standard FlatList to display oldest content at the top. Added keyboard handling to ensure content remains visible when the keyboard is open, and fixed various scrolling issues across platforms.

autogenerated by presubmit.ai

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🚨 Pull request needs attention.

Review Summary

Commits Considered (11)
  • 6d142c1: Merge branch 'main' into pac-guerreiro/fix/63253-after-revert-1-open-transaction-thread-on-top
  • f23a6cd: fix(63253): top blank space on transaction threads in RHP
  • 4342e9c: fix(63253): keyboard overlapping last visible message
  • ca4f5d6: fix(63253): keyboard overlapping messages on native platforms
  • 8d67cb7: Merge branch 'main' into pac-guerreiro/fix/63253-after-revert-1-open-transaction-thread-on-top
  • 858d0c1: chore(63253): remove unused import
  • a25f522: fix(63253): does not scroll down to the sent message when keyboard is opened
  • 207ffed: fix(63253): transaction thread does not scroll correctly when menu/keyboard is opened
  • 10523fb: fix(63253): blank space at the bottom in the transaction thread in self DM
  • db872f6: fix(63253): new message button appears on top when the unread message is within the viewport
  • 571b8af: Revert "Merge pull request #69784 from Expensify/revert-68932-pac-guerreiro/fix/63253-1-open-transaction-thread-on-top"

This reverts commit 12d2426, reversing
changes made to c001b19.

Files Processed (8)
  • src/components/ActionSheetAwareScrollView/index.ios.tsx (3 hunks)
  • src/components/ActionSheetAwareScrollView/index.tsx (2 hunks)
  • src/components/ActionSheetAwareScrollView/types.ts (1 hunk)
  • src/components/ActionSheetAwareScrollView/useActionSheetKeyboardSpace.tsx (3 hunks)
  • src/hooks/useReportScrollManager/index.native.ts (1 hunk)
  • src/hooks/useReportScrollManager/index.ts (1 hunk)
  • src/hooks/useReportScrollManager/types.ts (1 hunk)
  • src/pages/home/report/ReportActionsList.tsx (20 hunks)
Actionable Comments (3)
  • src/components/ActionSheetAwareScrollView/useActionSheetKeyboardSpace.tsx [244-255]

    performance: "Inefficient conditional style calculation in animatedStyle"

  • src/pages/home/report/ReportActionsList.tsx [138-142]

    possible bug: "Potential key collision in keyExtractor function"

  • src/pages/home/report/ReportActionsList.tsx [866-873]

    performance: "Inefficient function creation in getRenderScrollComponentWithAnimationProps"

Skipped Comments (3)
  • src/hooks/useReportScrollManager/index.native.ts [57-63]

    possible issue: "Missing default value for animated parameter"

  • src/pages/home/report/ReportActionsList.tsx [350-359]

    performance: "Unnecessary recalculation of topOffset on every render"

  • src/pages/home/report/ReportActionsList.tsx [771-794]

    maintainability: "Complex keyboard handling logic in onLayoutInner function"

Comment on lines 244 to 255
const animatedStyle = useAnimatedStyle(
() =>
isInvertedScrollView
? {
paddingTop: translateY.get(),
}
: {
// On non-inverted scroll views we use bottom to ensure that content is displayed above the context menu / keyboard
bottom: translateY.get(),
},
[isInvertedScrollView],
);
Copy link
Contributor

Choose a reason for hiding this comment

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

The animatedStyle function is recreating a new object on every render due to the conditional logic inside the style calculation. This violates [PERF-4] which requires memoizing objects passed as props. Consider using two separate memoized style objects and conditionally selecting between them:

const invertedStyle = useAnimatedStyle(() => ({ paddingTop: translateY.get() }), []);
const normalStyle = useAnimatedStyle(() => ({ bottom: translateY.get() }), []);

const animatedStyle = isInvertedScrollView ? invertedStyle : normalStyle;

This approach ensures that the style objects are properly memoized and only recreated when their dependencies change.

Comment on lines +138 to 142
if (item.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) {
return CONST.REPORT.ACTIONS.TYPE.CREATED;
}

return item.reportActionID;
Copy link
Contributor

Choose a reason for hiding this comment

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

The keyExtractor function now returns a constant string CONST.REPORT.ACTIONS.TYPE.CREATED for all created actions, which could lead to key collisions if multiple created actions exist in the list. React requires unique keys for optimal rendering performance and to prevent unexpected behavior. Consider appending a unique identifier (like a timestamp or index) to ensure uniqueness:

if (item.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) {
    return `${CONST.REPORT.ACTIONS.TYPE.CREATED}-${item.created || Date.now()}`;
}

Comment on lines 866 to 873
const getRenderScrollComponentWithAnimationProps = useCallback(
(render: NonNullable<RenderScrollComponentType>) => (props: ScrollViewProps) =>
render({
...props,
isInvertedScrollView: !isTransactionThreadReport,
}),
[isTransactionThreadReport],
);
Copy link
Contributor

Choose a reason for hiding this comment

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

The getRenderScrollComponentWithAnimationProps function creates a new function on every render, which violates [PERF-4] requiring memoization of functions passed as props. This could cause unnecessary re-renders of child components. The function itself is properly memoized with useCallback, but it returns a new function that isn't memoized. Consider restructuring this to avoid creating a new function on each render:

const renderScrollComponentWithProps = useCallback(
  (props: ScrollViewProps) => {
    if (!renderScrollComponent) return undefined;
    return renderScrollComponent({
      ...props,
      isInvertedScrollView: !isTransactionThreadReport,
    });
  },
  [isTransactionThreadReport, renderScrollComponent]
);

Then use renderScrollComponentWithProps directly in your component.

@github-actions

This comment has been minimized.

@shawnborton
Copy link
Contributor

Generally this is feeling great!

I found one case that I can reproduce fairly often, when a single expense is a one-expense report, when I open it from Reports > Expenses, sometimes you quickly see the empty report empty state and then the report loads but it's not docked to the top. Video:

CleanShot.2025-09-12.at.17.55.36.mp4

@github-actions
Copy link
Contributor

🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
Built from App PR #70250.

Android 🤖 iOS 🍎
https://ad-hoc-expensify-cash.s3.amazonaws.com/android/70250/index.html https://ad-hoc-expensify-cash.s3.amazonaws.com/ios/70250/index.html
Android iOS
Desktop 💻 Web 🕸️
https://ad-hoc-expensify-cash.s3.amazonaws.com/desktop/70250/NewExpensify.dmg https://70250.pr-testing.expensify.com
Desktop Web

👀 View the workflow run that generated this build 👀

@fabioh8010
Copy link
Contributor

@pac-guerreiro Can we please fix the conflicts here?

@shawnborton
Copy link
Contributor

Nice, I think it resolved the issues we were having before!

…transaction-thread-on-top

# Conflicts:
#	src/components/ActionSheetAwareScrollView/index.ios.tsx
#	src/components/ActionSheetAwareScrollView/index.tsx
#	src/components/ActionSheetAwareScrollView/types.ts
#	src/components/ActionSheetAwareScrollView/useActionSheetKeyboardSpacing.ts
#	src/pages/home/report/ReportActionsList.tsx
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

LGTM!

Review Summary

Commits Considered (1)
  • 1fe9b8d: Merge branch 'main' into pac-guerreiro/fix/63253-after-revert-1-open-transaction-thread-on-top

Conflicts:

src/components/ActionSheetAwareScrollView/index.ios.tsx

src/components/ActionSheetAwareScrollView/index.tsx

src/components/ActionSheetAwareScrollView/types.ts

src/components/ActionSheetAwareScrollView/useActionSheetKeyboardSpacing.ts

src/pages/home/report/ReportActionsList.tsx

Files Processed (2)
  • src/components/ActionSheetAwareScrollView/index.ios.tsx (2 hunks)
  • src/components/ActionSheetAwareScrollView/types.ts (1 hunk)
Actionable Comments (0)
Skipped Comments (3)
  • src/components/ActionSheetAwareScrollView/index.ios.tsx [27-36]

    performance: "Animated style is recreated on every render"

  • src/components/ActionSheetAwareScrollView/index.ios.tsx [9-9]

    best practice: "Missing default value for optional prop"

  • src/components/ActionSheetAwareScrollView/types.ts [4-7]

    performance: "Prop value should be memoized by parent components"

@dannymcclain
Copy link
Contributor

Looking good! I saw one instance of the empty state flash before loading, but I can't reproduce it now. My issue with some expenses not loading at the top is gone in the latest build—woohooooo.

@pac-guerreiro
Copy link
Contributor Author

@c3024 I'm not able to reproduce the issue you mentioned anymore, could you confirm?

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

LGTM!

Review Summary

Commits Considered (2)
  • ffb23f4: Merge branch 'main' into pac-guerreiro/fix/63253-after-revert-1-open-transaction-thread-on-top
  • 50f3b32: fix(63253): adjusting content position when keyboard is open on non money request reports
Files Processed (0)
Actionable Comments (0)
Skipped Comments (0)

@c3024
Copy link
Contributor

c3024 commented Sep 16, 2025

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified there are no new alerts related to the canBeMissing param for useOnyx
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
threadAndroid.mov
Android: mWeb Chrome
threadAndroidmWeb.mov
iOS: HybridApp threadiOS1 threadiOS2
threadiOS3.mov
iOS: mWeb Safari
threadiOSmWeb1.mov
threadiOSmWeb2.mov
MacOS: Chrome / Safari

Uploading threadChrome.mov…

threadChrome1.mov
threadChrome3.mov
MacOS: Desktop

Copy link
Contributor

@c3024 c3024 left a comment

Choose a reason for hiding this comment

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

LGTM!

@melvin-bot melvin-bot bot requested a review from mountiny September 16, 2025 15:13
Copy link
Contributor

@mountiny mountiny left a comment

Choose a reason for hiding this comment

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

thanks! Great effort, lets hope we can pull this one through! Seems like all the previously found issues been resolved.

cc @adamgrzybowski as this might influence some things in your PR

Comment on lines +49 to +54
(offset: number, animated = true) => {
if (!flatListRef?.current) {
return;
}

flatListRef.current.scrollToOffset({animated: true, offset});
flatListRef.current.scrollToOffset({animated, offset});
Copy link
Contributor

Choose a reason for hiding this comment

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

NAB: I guess it would make sense to leave a short comment to explain the difference between the native and web

const {initialHeight} = useInitialWindowDimensions();
const flatListVerticalOffset = useRef(0);
const prevFlatListVerticalOffset = useRef(0);
// initialHeight - windowHeight gives us the height of the keyboard when it's open on mobile Chrome.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// initialHeight - windowHeight gives us the height of the keyboard when it's open on mobile Chrome.
// initialHeight - windowHeight gives us the height of the keyboard when it's open on mobile Chrome.

@mountiny mountiny merged commit 346eb52 into Expensify:main Sep 16, 2025
21 of 23 checks passed
@melvin-bot melvin-bot bot added the Emergency label Sep 16, 2025
@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2025

@mountiny 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.

@mountiny
Copy link
Contributor

all the tests been passing afaik

@OSBotify
Copy link
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
Copy link
Contributor

🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.16-0 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.2.16-14 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by https://github.com/mountiny in version: 9.2.17-0 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.2.17-6 🚀

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants