-
Notifications
You must be signed in to change notification settings - Fork 93
Fix: Hide info icon in idle state (resolves #497) #505
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
Fix: Hide info icon in idle state (resolves #497) #505
Conversation
…ribe-org#497) The information icon was appearing in idle state, SELECT_COMMAND state, and when selecting specific commands (TRANSLATE, CONJUGATE, PLURAL). This fix ensures the icon only appears when there's an invalid input error. Changes: - Added binding.ivInfo.visibility = View.GONE in setupIdleView() - Added binding.ivInfo.visibility = View.GONE in setupSelectCommandView() - Added binding.ivInfo.visibility = View.GONE in setupToolbarView() - Icon now only shows in setupInvalidView() as intended
Thank you for the pull request! ❤️The Scribe-Android team will do our best to address your contribution as soon as we can. If you're not already a member of our public Matrix community, please consider joining! We'd suggest that you use the Element client as well as Element X for a mobile app, and definitely join the |
Maintainer ChecklistThe following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First PR Commit Check
- The commit messages for the remote branch should be checked to make sure the contributor's email is set up correctly so that they receive credit for their contribution
- The contributor's name and icon in remote commits should be the same as what appears in the PR
- If there's a mismatch, the contributor needs to make sure that the email they use for GitHub matches what they have forgit config user.emailin their local Scribe-Android repo (can be set withgit config --global user.email "GITHUB_EMAIL")
|
Hey @sahiljagtap08 👋 In checking the commit message for this PR, it looks like your email for GitHub isn't set up properly. Can you make sure that the email you use for GitHub matches what you have for If it's not important to you, then we can also proceed with the review! :) |
|
Hi @andrewtavis ! I've corrected my git config to use [email protected] (which is my verified GitHub email). Ready for review whenever you are! |
8b3cb6c to
dbbb445
Compare
andrewtavis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: All's working really well here, @sahiljagtap08 😊 Thanks so much for your contribution!
Contributor checklist
./gradlew lintKotlin detekt testcommand as directed in the testing section of the contributing guideDescription
The information icon was appearing in both idle state (command selection) and invalid state (after invalid input). This fix ensures the icon only appears when there's actually an invalid input error, not during normal command browsing.
Changes:
Added binding.ivInfo.visibility = View.GONE in setupIdleView()
Icon now only shows in setupInvalidView() as intended
The Problem:
The Solution:
Added
binding.ivInfo.visibility = View.GONEin three locations:setupIdleView()- hides icon in normal typing statesetupSelectCommandView()- hides icon when viewing command menusetupToolbarView()- hides icon when a command is selectedThe icon now only shows in
setupInvalidView()when there's actually invalid input.Testing:
Related issue