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.97k stars 2.48k forks source link

Fix new room description field error message is overlapped by other fields highlight #40851

Closed bernhardoj closed 1 week ago

bernhardoj commented 1 week ago

Details

The error message is overflowing from the text input container because the text input container has a max height. This PR fix it.

Fixed Issues

$ https://github.com/Expensify/App/issues/40519 PROPOSAL: https://github.com/Expensify/App/issues/40519#issuecomment-2066160811

Tests

Same as QA Steps

Offline tests

Same as QA Steps

QA Steps

  1. Open new room page
  2. Enter a long text that exceeds the max. on the description field until the error message appears (focus on other field to trigger the error)
  3. Hover/long-press over the Workspace field
  4. Verify the highlight background doesn't overlap with the description error message
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native image
Android: mWeb Chrome Screenshot 2024-04-24 at 12 24 05
iOS: Native https://github.com/Expensify/App/assets/50919443/be7fedef-fb7f-44ff-bb6f-cfd4b41f8505
iOS: mWeb Safari https://github.com/Expensify/App/assets/50919443/7a0a9bd6-f40d-44ae-8755-515cbbf00fa4
MacOS: Chrome / Safari Screenshot 2024-04-24 at 12 09 32
MacOS: Desktop Screenshot 2024-04-24 at 12 16 48
melvin-bot[bot] commented 1 week ago

Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers!

melvin-bot[bot] commented 1 week ago

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

bernhardoj commented 1 week ago

I'm having problem with Android

FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.
> [CXX1409] /Users/bernhardoj/Documents/dev/freelance-temp/Expensify/android/app/.cxx/Debug/4g2e461q/arm64-v8a/android_gradle_build.json developmentDebug|arm64-v8a : expected buildFiles file '/Users/bernhardoj/Documents/dev/freelance-temp/Expensify/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/jni/CMakeLists.txt' to exist
shawnborton commented 1 week ago

Design-wise this looks good. Can you show me what this looks like if the error message is 2 lines long, as well as 3 lines long? Thanks!

Pujan92 commented 1 week ago

I'm having problem with Android

FAILURE: Build failed with an exception. * What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.
> [CXX1409] /Users/bernhardoj/Documents/dev/freelance-temp/Expensify/android/app/.cxx/Debug/4g2e461q/arm64-v8a/android_gradle_build.json developmentDebug|arm64-v8a : expected buildFiles file '/Users/bernhardoj/Documents/dev/freelance-temp/Expensify/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/jni/CMakeLists.txt' to exist

I faced the same and the removal of folder .cxx inside android/app and rebuild the app worked for me.

bernhardoj commented 1 week ago

@shawnborton here is how it looks:

Screenshot 2024-04-24 at 20 50 55 Screenshot 2024-04-24 at 20 50 19

@Pujan92 trying now

shawnborton commented 1 week ago

Lovely, looks good and thanks for confirming for me!

Pujan92 commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native ![Screenshot_1713967499](https://github.com/Expensify/App/assets/14358475/7daf3d17-72cc-43cc-900c-e611815a4879)
Android: mWeb Chrome ![Screenshot_1713965739](https://github.com/Expensify/App/assets/14358475/c603e61f-7ca5-4ca9-9819-8b04c6dc76b9)
iOS: Native ![Simulator Screenshot - iPhone 15 Pro - 2024-04-24 at 18 59 10](https://github.com/Expensify/App/assets/14358475/15888c97-01c2-495d-9975-ae7ecfd37fb8)
iOS: mWeb Safari ![Simulator Screenshot - iPhone 15 Pro - 2024-04-24 at 19 00 20](https://github.com/Expensify/App/assets/14358475/9a04f565-0643-47be-b38a-194650ece19a)
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/14358475/c0b25d67-8434-4e9c-a50c-dfa07e65350a Screenshot 2024-04-24 at 19 13 57 Screenshot 2024-04-24 at 19 18 19
MacOS: Desktop Screenshot 2024-04-24 at 19 09 17
bernhardoj commented 1 week ago

@Pujan92 it works, thanks! I have added the screenshot for android

OSBotify commented 1 week ago

๐Ÿš€ Deployed to staging by https://github.com/marcaaron in version: 1.4.66-0 ๐Ÿš€

platform result
๐Ÿค– android ๐Ÿค– success โœ…
๐Ÿ–ฅ desktop ๐Ÿ–ฅ failure โŒ
๐ŸŽ iOS ๐ŸŽ success โœ…
๐Ÿ•ธ web ๐Ÿ•ธ success โœ…
OSBotify commented 1 week ago

๐Ÿš€ Deployed to staging by https://github.com/marcaaron in version: 1.4.66-0 ๐Ÿš€

platform result
๐Ÿค– android ๐Ÿค– success โœ…
๐Ÿ–ฅ desktop ๐Ÿ–ฅ success โœ…
๐ŸŽ iOS ๐ŸŽ success โœ…
๐Ÿ•ธ web ๐Ÿ•ธ success โœ…
OSBotify commented 1 week ago

๐Ÿš€ Deployed to production by https://github.com/mountiny in version: 1.4.66-5 ๐Ÿš€

platform result
๐Ÿค– android ๐Ÿค– success โœ…
๐Ÿ–ฅ desktop ๐Ÿ–ฅ success โœ…
๐ŸŽ iOS ๐ŸŽ success โœ…
๐Ÿ•ธ web ๐Ÿ•ธ success โœ