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

Show console debug logs via test tools menu #40656

Open ShridharGoel opened 3 weeks ago

ShridharGoel commented 3 weeks ago

Details

Show console debug logs via test tools menu.

Fixed Issues

$ https://github.com/Expensify/App/issues/40208 PROPOSAL: https://github.com/Expensify/App/issues/40208#issuecomment-2053741494

Tests

  1. Open test tools menu by four-finger tap or via "Open Test Preferences" option.
  2. Switch on client side logging.
  3. A new option should show to view the debug console.
  4. Click on the option.
  5. Debug console should show.
  6. Test the save logs option.
  7. Test the share logs option.

QA Steps

  1. Open test tools menu by four-finger tap or via "Open Test Preferences" option.
  2. Switch on client side logging.
  3. A new option should show to view the debug console.
  4. Click on the option.
  5. Debug console should show.
  6. Test the save logs option.
  7. Test the share logs option.

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/35566748/ad587266-097c-424e-be08-28da799e045d
Android: mWeb Chrome https://github.com/Expensify/App/assets/35566748/67b03442-8ac6-4fe3-8e7e-220775bc21f1
iOS: Native https://github.com/Expensify/App/assets/35566748/f86d2138-d1c3-4c88-9a57-f76fa201bd94
iOS: mWeb Safari https://github.com/Expensify/App/assets/35566748/4fdc54e0-99cc-4206-95c7-fef9273f3285
MacOS: Chrome / Safari Screenshot 2024-04-22 at 8 54 10 PM
MacOS: Desktop Screenshot 2024-04-22 at 9 48 34 PM
melvin-bot[bot] commented 3 weeks ago

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

dubielzyk-expensify commented 3 weeks ago

Let us know when you're ready for design review 😄

ShridharGoel commented 3 weeks ago

@dubielzyk-expensify Design review can be done now.

dubielzyk-expensify commented 3 weeks ago

Doesn't look like there's anything new other than a shortcut from Test Prefs so this looks good to me. Can you confirm that's the case? We haven't tweaked the debug console screen at all?

cc @Expensify/design for visibility

shawnborton commented 3 weeks ago

Only minor comment from me is that it feels like the button is too close to the bottom? image

We had a regression related to that recently, so you might just need to pull main to fix that?

ShridharGoel commented 3 weeks ago

@shawnborton It's the same on staging, and unrelated to these changes since we haven't changed the UI here. I think we can create an issue to fix it?

ShridharGoel commented 3 weeks ago

I also checked after pulling main, it's still the same.

shawnborton commented 3 weeks ago

Okay, cc @luacmartins - another spot where the footer button is broken

eVoloshchak commented 3 weeks ago

@dubielzyk-expensify, this modal doesn't look right to me, it ends up being "inside" of the test tools menu

https://github.com/Expensify/App/assets/9059945/91df0a10-aafe-47c6-8185-2fe09a1ba327

Could you please confirm what is the expected result here? A new modal that is the exact size of the test tools menu modal? A full-screen modal? Or just navigate to a "Debug console" page like it happens currently?

https://github.com/Expensify/App/assets/9059945/b5732a60-138b-429d-884b-596e2c840853

dubielzyk-expensify commented 3 weeks ago

Could you please confirm what is the expected result here? A new modal that is the exact size of the test tools menu modal? A full-screen modal? Or just navigate to a "Debug console" page like it happens currently?

Good point. Yeah I think just navigating to the Debug Console is the right move here cause you're right that it feels weird to show the console within a modal

eVoloshchak commented 2 weeks ago

@ShridharGoel, could you implement the changes described in https://github.com/Expensify/App/pull/40656#issuecomment-2078535642?

ShridharGoel commented 2 weeks ago

@eVoloshchak Yes, I'm working on the changes.

ShridharGoel commented 2 weeks ago

@eVoloshchak Updated.

ShridharGoel commented 2 weeks ago

@eVoloshchak Can you check this when possible?

eVoloshchak commented 2 weeks ago

@ShridharGoel, are you able to test this on iOS? For me the app crashes when you open a debug menu

https://github.com/Expensify/App/assets/9059945/3d9b7b8b-b05a-47d8-af76-3fd55eb35328

ShridharGoel commented 2 weeks ago

@eVoloshchak Yeah, you can use Command+D to get the test menu option.

ShridharGoel commented 2 weeks ago

@eVoloshchak Were you able to check it?

Beamanator commented 1 week ago

@ShridharGoel looks like you've got some conflicts, can you please fix? And @eVoloshchak @ShridharGoel did y'all get the iOS crash resolved?

Beamanator commented 1 week ago

@eVoloshchak can you confirm if the crash you noted still exists, or if you agree this has something to do with the "Shake" option in the simulator? (see this comment)

@ShridharGoel when can you get to the latest review comments & fixing the conflicts here?

eVoloshchak commented 1 week ago

can you confirm if the crash you noted still exists

@Beamanator, the crash issue still exists, verified it is also present om main, so unrelated to this PR

ShridharGoel commented 1 week ago

@Beamanator Some changes are done, need discussion on this: https://github.com/Expensify/App/pull/40656#discussion_r1591470739

ShridharGoel commented 1 week ago

@eVoloshchak Can you have a look?

eVoloshchak commented 1 week ago

Bug:

  1. Open test tools menu by four-finger tap
  2. Switch on client-side logging.
  3. Press the View console button
  4. Press back
  5. Notice the animation is wrong (home screen slides in from the right on top of the current screen) 00:08
  6. Press on "Account Settings"
  7. Notice the animation is wrong (home screen slides to the right to reveal settings page) 00:14
  8. Toggle between "Chats" and"Account Settings"
  9. Notice the animation is back to default
  10. Press on "Account Settings"
  11. Animation is back to default, 00:14

https://github.com/Expensify/App/assets/9059945/0b2c1d7b-410a-44ec-8132-c09a6525ed51

ShridharGoel commented 1 week ago

@eVoloshchak This seems to be production behaviour, can you check by using the troubleshoot page and going to debug console and coming back? The page slides from right to left.

eVoloshchak commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/9059945/6294419f-7c95-4eca-81ff-fb1ae333006e
Android: mWeb Chrome https://github.com/Expensify/App/assets/9059945/7189fe54-933a-480e-9330-6e0d72041613
iOS: Native https://github.com/Expensify/App/assets/9059945/642728c2-7f51-4067-ad73-8221eb73bf3f
iOS: mWeb Safari https://github.com/Expensify/App/assets/9059945/fd9ef791-7bb9-4fb3-b596-5727d3d1dde6
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/9059945/39e08f58-7023-4116-97ee-73519d6c68c6
MacOS: Desktop https://github.com/Expensify/App/assets/9059945/5be10a2f-bfec-4d91-991c-197564b282eb
Beamanator commented 1 week ago

Thanks so much for the hard work, both of you! I'm putting this on HOLD because we're in a merge freeze till Monday I believe - see https://expensify.slack.com/archives/C01GTK53T8Q/p1715105636003919

Beamanator commented 2 days ago

Alright gents, this PR is off hold!

@ShridharGoel can you please pull main & retest? And @eVoloshchak can you please also retest once main is pulled in?