Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

Using dismissModal function instead of goBack If It is the RHP #41611

Closed cretadn22 closed 1 week ago

cretadn22 commented 2 weeks ago
### Details If a transaction is opened on the search page (RHP), we should use the dismissModal function instead of the goBack function. ### Fixed Issues

$ https://github.com/Expensify/App/issues/41579 PROPOSAL: https://github.com/Expensify/App/issues/41579#issuecomment-2093365530

Tests

  1. Open the search page, Profile > Troubleshoot > New Search Page
  2. Click on a transaction
  3. Resize the window to the narrow view
  4. Click the back button
  5. Verify that it navigates New Search Page
    • [x] Verify that no errors appear in the JS console

Offline tests

  1. Open the search page, Profile > Troubleshoot > New Search Page
  2. Click on a transaction
  3. Resize the window to the narrow view
  4. Click the back button
  5. Verify that it navigates New Search Page

QA Steps

  1. Open the search page, Profile > Troubleshoot > New Search Page
  2. Click on a transaction
  3. Resize the window to the narrow view
  4. Click the back button
  5. Verify that it navigates New Search Page
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome https://github.com/Expensify/App/assets/168617111/cb5aacb6-71f3-494a-af88-ec08102cca30
iOS: Native https://github.com/Expensify/App/assets/168617111/c8362191-298a-4d4b-be6a-e8b5c4d38ba5
iOS: mWeb Safari https://github.com/Expensify/App/assets/168617111/c3444643-fcf8-4287-8ed1-04ed20b64e72
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/168617111/dd5bcec8-0abc-443b-bde9-5d90a4e93ef0
MacOS: Desktop https://github.com/Expensify/App/assets/168617111/1f4183e9-12b1-4cfc-a2eb-76b01b19e96d
melvin-bot[bot] commented 2 weeks ago

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

DylanDylann commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/141406735/44972ddf-ed19-48dc-b9e7-f0f84d39d68b
Android: mWeb Chrome https://github.com/Expensify/App/assets/141406735/2a2f7ec2-efcd-4805-888e-2ab598c05db6
iOS: Native https://github.com/Expensify/App/assets/141406735/dea9192f-8a96-478c-b94e-6e4e80ea10ab
iOS: mWeb Safari https://github.com/Expensify/App/assets/141406735/5af8963b-c32f-44e2-bf99-31d3de5ea230
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/141406735/a15672fa-d5a2-43af-b640-8ecf27aa531a
MacOS: Desktop https://github.com/Expensify/App/assets/141406735/d338f600-77e7-4655-a110-1374a8197e16
DylanDylann commented 2 weeks ago

@cretadn22 Please run prettier to fix the lint error and upload videos

cretadn22 commented 2 weeks ago

@DylanDylann Thanks for letting me know. I encountered some issues while running prettier, but I plan to address them soon

cretadn22 commented 2 weeks ago

@DylanDylann It's fine now

DylanDylann commented 2 weeks ago

@cretadn22 Should we update the same fix to the HeadeView, I see that in some cases we still display ReportScreen as RHP with HeaderView

Screenshot 2024-05-04 at 18 46 45
cretadn22 commented 2 weeks ago

@luacmartins @DylanDylann We can't use a ternary because of the lint rule

Ảnh chụp Màn hình 2024-05-04 lúc 20 15 13

The code change is ready now

DylanDylann commented 2 weeks ago

@luacmartins Bug: Flicker when navigating to transaction report (navigate again to search page a moment before going to transaction report)

https://github.com/Expensify/App/assets/141406735/b0288468-39a7-43d1-96f4-996345e1d60c

OSBotify commented 1 week ago

:hand: 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 commented 1 week ago

🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀

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