Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Testnet alert banner #19762

Closed
wants to merge 4 commits into from
Closed

Disabling Testnet alert banner #19762

wants to merge 4 commits into from

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Apr 23, 2024

temporarily closes the issue of testnet banner (see #19506) by disabling the testnet alert banner and replacing it with a simple toast that is shown when the user is logged in.
also adds a comment why it's done for the future.

Platforms

  • Android
  • iOS

Areas that maybe impacted

Functional
  • 1-1 chats
  • public chats
  • group chats
  • wallet / transactions
  • dapps / app browsing
  • account recovery
  • new account
  • user profile updates
  • networks
  • mailservers
  • fleet
  • bootnodes

status: ready

@status-github-bot status-github-bot bot added this to REVIEW in Pipeline for QA Apr 23, 2024
@alwx alwx self-assigned this Apr 23, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Apr 23, 2024

Jenkins Builds

Click to see older builds (2)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ e8f98e7 #1 2024-04-23 10:12:33 ~4 min tests 📄log
✔️ e8f98e7 #1 2024-04-23 10:16:12 ~8 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3ab012f #3 2024-04-23 10:21:38 ~3 min tests 📄log
✔️ 3ab012f #3 2024-04-23 10:24:45 ~7 min android-e2e 🤖apk 📲
✔️ 3ab012f #3 2024-04-23 10:26:13 ~8 min ios 📱ipa 📲
✔️ 3ab012f #3 2024-04-23 10:26:41 ~9 min android 🤖apk 📲
✔️ fddaf79 #4 2024-04-23 13:10:31 ~6 min tests 📄log
✔️ fddaf79 #4 2024-04-23 13:14:05 ~10 min ios 📱ipa 📲
✔️ fddaf79 #4 2024-04-23 13:15:56 ~12 min android-e2e 🤖apk 📲
✔️ fddaf79 #4 2024-04-23 13:16:18 ~12 min android 🤖apk 📲

@alwx alwx requested a review from J-Son89 April 23, 2024 10:17
@alwx alwx marked this pull request as ready for review April 23, 2024 10:17
@J-Son89
Copy link
Member

J-Son89 commented Apr 23, 2024

Did we agree to this? 🤔

Can you include a video/ screenshots of how it looks?

@J-Son89
Copy link
Member

J-Son89 commented Apr 23, 2024

At least just do this for the screens where its breaking- wallet looked fine imo

:theme :dark
:text (i18n/label :t/testnet-mode-enabled)
:duration 100000}]]]})))

Copy link
Member

Choose a reason for hiding this comment

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

empty line

@Parveshdhull
Copy link
Member

Parveshdhull commented Apr 23, 2024

@alwx please remove fixes from PR description as this will close the issue.
Also please remove your assignment so that it can be picked by someone.

Copy link
Member

@J-Son89 J-Son89 left a comment

Choose a reason for hiding this comment

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

let's align on this before merging, should we really remove for all screens?
There's some minor issues for our developer experience but does that justify this?

Does this make things better/worse for QA etc?

@alwx
Copy link
Contributor Author

alwx commented Apr 24, 2024

@J-Son89 we can't easily show it only in Wallet because that banner is a part of a global alert mechanism implemented in status-im.common.alert-banner and shown on top of everything in home-stack which means everything in communities, chats, browser and wallet gets affected.
Showing it only in the Wallet means implementing a new mechanism for that purpose, which we can do if we want, but this PR is meant to simply roll back changes that were made in the Testnet banner introduction PR just because it caused a lot of problems.

@mariia-skrypnyk
Copy link

mariia-skrypnyk commented Apr 24, 2024

Hi @J-Son89 @Parveshdhull @alwx !
#19773 it's not the only issue that tracks banner issues.
E.g. we have Change Password added and there are also banner issues there. So @clauxx also need to spend time on fixing them in case banner will be present.
You can find examples here: #19474 (comment)

Yes, Testnet banner gives great visibility but it also raise issues and extra time for their fix.

@Parveshdhull
Copy link
Member

Parveshdhull commented Apr 24, 2024

Thank you @alwx and @mariia-skrypnyk for your feedback and thank you @J-Son89 for raising the point that this needs to be discussed properly before moving forward.

 It caused a lot of problems

I would say this is a little over-exaggeration. If we see issues reported in #19506 they were minor styling issues and needed two lines of fix (- height alert-banners-top-margin) and footer-container-padding.
For debug issues with inspector and pref monitor are nothing new, overlays like the bottom sheet also have the same behavior. Still, I disabled banners for debug builds.

Yes, the Testnet banner gives great visibility but it also raises issues and extra time for this fix.

This is expected. Whenever we build something new, issues are expected and need to be properly tested and fixed. As the alert banner's implementation was sandboxed it missed proper testing phase and now as this is enabled issues are visible. (In idle case these issues should be caught/reported in either of these PRs).

If there are any issues related to alert banner please do report, so we can fix them. As issues mentioned in #19506 are fixed in #19773.

I don't think issues are any problem, they are minor styling issues and can be fixed quickly. The main question should be do we want this feature or not and discuss it with the design team? As far as I remember, we only implemented this functionality because the design team was very keen on this and little persisting.

@Parveshdhull
Copy link
Member

So @clauxx also need to spend time on fixing them in case banner will be present.

@clauxx please let me know if you need any help. Also if issue is only after enabling alert banner, please feel free to log it separately, I can checkout later.
From quick look it seems issue might be in line keyboardVerticalOffset (- (safe-area/get-bottom))}

@yevh-berdnyk
Copy link
Contributor

Hi, I just want to add one more detail from the perspective of e2e tests. This banner presence makes some elements on some screens to be hidden so we need to scroll for them and so it makes the tests a little bit longer. Especially having the issue with SauceLabs emulators that the resolution is a way smaller than a usual modern phone, we need to scroll even more often. Of corse it's not a critical issue but I think it can also be pointed here

@Parveshdhull
Copy link
Member

Thank you @yevh-berdnyk, I can disable alert banner for e2e builds, will that be ok?

@yevh-berdnyk
Copy link
Contributor

Thank you @yevh-berdnyk, I can disable alert banner for e2e builds, will that be ok?

That will be definitely cool!

@Parveshdhull
Copy link
Member

That will be definitely cool!

done

@smohamedjavid
Copy link
Member

I agree with @Parveshdhull to hide it only on the debug builds as hiding the banner completely is not a good idea for the end user (There is a feature planned to disable testnet by tapping on the banner). If this PR fixes those issues and we are all in agreement, can we close this PR?

@alwx
Copy link
Contributor Author

alwx commented Apr 25, 2024

I don't understand why @Parveshdhull decided to work on this despite the discussions we've had. But whatever, I'm closing this then.

@alwx alwx closed this Apr 25, 2024
Pipeline for QA automation moved this from REVIEW to DONE Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

8 participants